December 20, 201114 yr Hello!I wrote this simple code: //****************void CALLBACK SimConnectProcess(SIMCONNECT_RECV *pData, DWORD cbData, void *pContext){FSC_Log("SimConnectProcess success");...// rest code}//****************void __stdcall DLLStart(void){// open connection to local SimConnect serverif (SimConnect_Open(&g_hSimConnect, "Dll4Fsx", NULL, 0, NULL, SIMCONNECT_OPEN_CONFIGINDEX_LOCAL) == S_OK) FS_Log("SimConnect_Open success");// register callback routine for message processingif (SimConnect_CallDispatch(g_hSimConnect, SimConnectProcess, NULL) == S_OK) FS_Log("SimConnect_CallDispatch success");FS_Log("DLLStart");}This example was compiled using Borland C++ Builder 2006 Turbo. It works perfectly in my main working OS (where I have IDE installed). But in the clean virtual OS (where only FSX is installed) callback function (SimConnectProcess in the code above) is not processed at all. This is obious as in the final log 'SimConnect_Open success', 'SimConnect_CallDispatch success', 'DLLStart' messages are presented, but 'SimConnectProcess success' is absent.How can I fix this?
December 20, 201114 yr Borland? Yikes! Borland C++ is no longer supported by Borland. You might want to switch to MSVS10 asap.Cheers,- jahman.
December 20, 201114 yr Author Borland? Yikes! Borland C++ is no longer supported by Borland. You might want to switch to MSVS10 asap.Cheers,- jahman.Well, I'm quite informed about it. My question is not about replacement my IDE, but one is about solving specific problem.
December 20, 201114 yr I was just pointing out you could be using a better tool (better debugging and better include libraries).I used win into arguments with my developpers wary of adopting the latest MS tools by pointing out the hundreds of millions BillG was dropping on creating the tools they didn't want to use.Cheers,- jahman.
December 20, 201114 yr Author I have installed MS VC++ 2008 & 2010 Expess IDEs. For several years I developed my soft with Borland Delphi IDE. Most likely I psychologically cannot give up my "native" environment. Though I already built and compiled simple examples in Visual C++ 2008/10 Express and these work perfectly.Incidentally, almost all products (if not all) of CaptainSim are compiled in Borland C++ 2002 :)
December 21, 201114 yr There is a thread here on C++Builder/SimConnect that may (or may not) be helpful.http://www.fsdevelop...ad.php?t=140484 Gerry Howard
Create an account or sign in to comment