API,IDE,EXE,weve,been,situation,want,multi,tr
Quick Search for:  in language:    
API,IDE,EXE,weve,been,situation,want,multi,tr
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
RentACoder Stats

 Code:  lines
 Jobs: 0 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for RentACoder.
Wrapping Scrolling Text
By Paranoid_Androi d on 7/2


Create A Dummy File
By AML on 7/2


Click here to see a screenshot of this code!Captionbar manipulation!
By Peter Hebels on 7/2

(Screen Shot)

A Game Of War
By Co0nest on 7/2


Click here to see a screenshot of this code!KeyGen Example
By Bengie|NET on 7/2

(Screen Shot)

Click here to see a screenshot of this code!OpenBrowser v1.9
By Orlando Jerez on 7/2

(Screen Shot)

SendMessageBySt ring() Example
By Jaime Muscatelli on 7/2


Click here to see a screenshot of this code!FirstSunday
By Jan Paul Penning on 7/2

(Screen Shot)

Click here to see a screenshot of this code!Ikonz v1.0
By Gaurav Creations on 7/2

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Inter-Process Communications

Print
Email
 
winzip icon
Submitted on: 6/13/2000 2:41:02 PM
By: Roger D Taylor 
Level: Advanced
User Rating: By 14 Users
Compatibility:

Users have accessed this code 10058 times.
 
 
     OK, we've all been in the situation where you want a multi tread application but since VB is single threaded it is difficult to do, so you create a second vb app and line the two together using winsock .... this is slow and you my be woring in a machine that does not have IP installed .... what choices do you have ..... well you can use pipes, winsock as i've already mentioned and you can also use Read/WriteProcess memory, these are time consuming and difficult to understand and write ..... but hey, what about SendMessage.... yep that good old API call. it allows you to send a data structure to an other process ..... which is fast and the message will always get there .... this code gives you a quick example of how to do this..... hope you fins this code useful .... You may find that quitting the Client Application after you have sent the message wil cause your VB IDE to crash with a Memory exception .... if you click the control box on this form it might not crash the IDE ... this does not happen as an EXE
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for langauges that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 4 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
6/13/2000 4:45:22 PM:Stephan Kirchmaier
The best thing I've ever saw on PSC!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/13/2000 4:54:41 PM:Roger Taylor
Glad you like it ..... 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/13/2000 6:34:20 PM:webmaistre_alain
a REALLY good piece of code. I will be 
able to awake the second processor of 
my bipro with VB ;-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/13/2000 6:35:22 PM:webmaistre_alain
a REALLY good piece of code. I will be 
able to awake the second processor of 
my bipro with VB ;-) thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/14/2000 7:59:50 AM:Erik Forbes
Very nice! :) Solved a couple delimahs 
for me, actualy. :p
You may want to 
note to others that they should not use 
the VB Development Environemnt's 'Stop' 
button or command any time before 
calling the 'unhook' function. This 
crashes VB. :p
Thanks,
Erik Forbes
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/14/2000 8:24:13 AM:Roger Taylor
Thanks for the note Erik, I made nodes 
about this problem on the submission 
form for this item ... it just does not 
seem to be printed for some reason 
......
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/27/2000 5:34:44 PM:Mike
I dont know if its just me but if the 
function on the client form has a do 
loop in it it will not execute the 
other subs on the other forms till it 
exits the do in the first one hence 
this is not 'threading' sorry help me 
if im wrong
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/27/2000 5:40:28 PM:Mike
please disregard post it was for a 
different project sorry.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/26/2000 9:50:13 AM:Harry
Why not do Multithreading using 
Active-X EXE Server in VB?  I think it 
is a better approach than this one...Am 
i right?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/27/2000 7:37:10 AM:The Author of the Code
Harry, The Point of this is not just 
multithreading, its an example of how 
to get two completly different 
applications to talk to one another. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/21/2000 8:27:09 AM:marvin
coooool just what I was looking for 
!
I have two programs that access an 
SQL Database the one Program stores 
data into the database (from the serial 
port) and the other is for looking up 
the data... the storing program has to 
inform the reading program when new 
data arrived.. I first used sendkeys() 
but that was crappy.... now it's 
excellent ! good work !
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/23/2000 10:02:29 PM:Anthony
Is it just me or does this program lock 
because it won't unhook
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/30/2000 2:14:58 PM:Roger D Taylor
I guess its just you mate, and it does 
unhook correctly.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/16/2001 9:29:01 AM:xeek
what about dde connections?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/19/2001 5:47:19 AM:roger_d_taylor
DDE is ok, but its a nasty beast, this 
way is much simpler. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | RentACoder Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.