Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

share data between projects in the same group

Status
Not open for further replies.

elibb

Programmer
Oct 22, 2001
335
MX
hi, if i have a group 2 exe projects, each one with its forms and all, is there a way to call one project from the other, and share some variables between the two of them??

thank you

Eli
 
Project groups were designed to permit the debugging of DLL
or OCX project from inside of another distinct project.
Theres no real connection between them.

Standard EXEecutables do not expose any public members.
They can not be poked, prodded, or anything else...
There's no way to have one standard EXE talk to another.

Sorry to hand you bad news...

If you want inter-process communication, you'll have to
write an OCX or DLL or ActiveX EXE that IS capable of
exporting it's members. Don't be fooled by the "EXE"
designation on an ActiveX EXE... It behaves alot like
a DLL except it runs outide the process that created it.
A DLL runs inside the memory space that creates it...

Look into the help files for in-process and out-of-process
servers.
 
grandnagel,

>There's no way to have one standard EXE talk to another

Not quite true...

In thread222-563625 Hypetia gives a link to which will lead you to a page that show you how to have two VB program "talk" to each other via the SendMessage API.

elibb,

Besides grandnagel's suggestions you could also search for shared memory to achieve what you want.

Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top