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.

String Mapping in GDI+

Featured Replies

Hi does anyone know how to map to a WCHAR string for use in gdi+? sprintf etc aren't working for some reason and im not too keen about writing my own string mapping routines and classes. Is there some sort of easy conversion?-Jon

I keep getting an error with this code: //Altitude StringWCHAR altitude[6] = L"50000";wsprintf(&altitude, "%5f", hgs_alt.var_value.n);because of the first parameter in wsprintfand I get an error with the draw string with the first parameter in this code: wsprintf(altitude, "%5f", hgs_alt.var_value.n); FontFamily fontFamily(L"Arial"); Font font(&fontFamily, 15, FontStyleBold, UnitPoint); RectF altrec(899.0f, 271.0f, 70.0f, 23.0f); gdip_drawer.DrawString(&altitude, -1, &font, altrec, NULL, &solidBrush);

  • Author

Sorry about that, my mistake....swprintf is what you want, not wsprintf. D'oh!WCHAR value_buffer<5>;swprintf(value_buffer, L"%f", .5);

Matt Kaprocki

Boeing777_Banner_DevTeam.jpg

For fastest support, please submit a ticket at http://support.precisionmanuals.com

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.