Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Callback function is not processed

Featured Replies

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?

Borland? Yikes! Borland C++ is no longer supported by Borland. You might want to switch to MSVS10 asap.Cheers,- jahman.

  • 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.

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.

  • 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 :)

All very valid points!Cheers,- jahman.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.