« on: February 09, 2010, 12:17 PM »
I am having trouble and hope one of my new-found friends (here on DC) can help.
In unmanaged C++ code, inside a simple DLL (for use with a proprietary interface), I need to access a COM port and read the data stream.
I can handle all the 'interpolation' of the data, but am having a real struggle getting access to the COM port; which, by the way is actually 'virtual' from a Bluetooth device.
Is there anyone out there with experience in this realm who is willing to help me?
I have scoured the Web for samples but none work as expected.
Inside this construct, I need to connect and read from a COM port:
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD
/* Init Code here */
/* If there is something you need to do before the functions in this
* Library can be used, perform it here and return a true (or false if it fails) */
MessageBox ( NULL, L"Process Attach", L"DXExternal DLL", MB_OK);
/* Thread-specific init code here */
MessageBox ( NULL, L"Thread Attach", L"DXExternal DLL", MB_OK);
/* Thread-specific cleanup code here.
MessageBox ( NULL, L"Thread Detach", L"DXExternal DLL", MB_OK);
/* Cleanup code here */
/* This is called as the DLL is being unloaded (most likely when your
* application is shutting down. */
MessageBox ( NULL, L"Process Detach", L"DXExternal DLL", MB_OK);
/* The return value is used for successful DLL_PROCESS_ATTACH */
Thanks, in advance.