Hi to all,
I have a DLL (MyLib.DLL) writed in C++ eMbedded.
This DLL contains a function named OpenPort() an declared as follow:
__declspec (dllexport) void OpenPort()
{
// ... Any code here ...
}
Using P/Invoke I can use the function by Visual Basic code declaring the follow:
Public Declare Sub OpenPort Lib "MyLib.dll" ().
Now I've a variable in MyLib.DLL declared as follow:
__declspec (dllexport) int PortNumber;
My problem is:
haw can I use this variable in Visual Basic code
Thanx