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.

C# and out of context

Featured Replies

I'm a newcomer to SimConnect and C#. I'm more familiar with C/C++ but I like the simpler environment of C#. I'm working on a basic project to familiarise myself with both, but I keep running into the problem.The code below is part of the project. The first two lines execute fine, but the third comes up with this error:Error 1 The name 'simconnect_OnRecvException' does not exist in the current contextI can't grasp why the first two work, but the third doesn't. I've installed the SDK SP1a patch, but not SP2. Would that fix it? I'd rather not go to SP2 if I can avoid it.[faux code]simconnect.OnRecvOpen += new SimConnect.RecvOpenEventHandler(simconnect_OnRecvOpen);simconnect.OnRecvQuit += new SimConnect.RecvQuitEventHandler(simconnect_OnRecvQuit);simconnect.OnRecvException += new SimConnect.RecvExceptionEventHandler(simconnect_OnRecvException);[/faux code]

Do you have a function called simconnect_OnRecvException? The editor will generally create those for you while typing in the lines using Intellisense, but if you didn't hit Tab or Enter (which ever is required), it might not have created the last one automatically.

>Do you have a function called simconnect_OnRecvException? That was it, thanks. I went through so many pages looking for an explanation for a "context" error without finding a common thread. I'll have to find a list breaking these errors down into plain English.

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.