Data Share for 2 Windows Applications

romangd

Newcomer
Joined
Sep 19, 2003
Messages
2
Hi

I want to data share for two Windows Applications.

I create two proyects Windows Applications (EXE) and a Class Proyect (DLL).

Class Proyect: I have a class with methods for use the serial port. The object is declared as 'public static' (The object is MSCOMM. I import it from Visual Studio 6).

Runnig one Windows Application I open the serial port COM1.

Then I run the other Windows Application but I can't open the serial port COM1 because the device is been used for the first application.

I want to load the Class Proyect only one.

Thanks for your time. Sorry for my English, I'm Spanish...
 
I think he wants to use the same reference in 2 projects(Class Library creates an old MSCOMM control then that single reference can then be used by multiple applications on the same port)

You need to pass the variable containing the reference to the other program, I haven't tried this so I'm not sure how you'd do it though
 
That's the Question !!

Hi

Yes, My question is how I can use the same reference for the old MSCOMM control in 2 projects?

I think it's posible, I'll need to load MSCOMM in a unsafe block code and I'll need to use pointer.
 
Back
Top