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.

Visual Studio 2015CE mouse flag warnings

Featured Replies

  • Commercial Member

Got me beat, this one. I've just loaded a VS2013 project (that started in VS2010) into VS2015 and the mouse rect info in all source code files is now showing a


"Warning    C4838    conversion from 'unsigned int' to 'FLAGS' requires a narrowing conversion"

e.g.

MOUSE_BEGIN( captinstr_light_mouse_rect, 0, 0, 0 )
    MOUSE_PARENT_BEGIN( 0, 0, 64, 64, 0)
        MOUSE_TOOLTIP_STRING(DFD_CPTINST)
    MOUSE_PARENT_END
    MOUSE_CHILD_FUNCT( 0, 0, 64, 64, CURSOR_HAND, MOUSE_LEFTSINGLE | MOUSE_RIGHTSINGLE, captinstr_light_mcb)
MOUSE_END

I know VS2015 has much higher security on it and I know that because I'm aware what the narrowing conversion actually is I can ignore the warnings, but I'd like to get rid of them. Or go back to VS2013 :biggrin:

-Dai

  • Moderator

Strange, Dai! Just out of curiosity, why the move to 2015? I'm still using 2005 and cannot convince myself that there's any real advantage to upgrading.

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
  • Commercial Member

Hello Bill

Weelll.... something to do with work. If I work from home and just in case I don't have my work laptop with me, my own PC has to be loaded with various installations of various developer programs, Visual Studio 2015 CE being one of them. I figured it would be beneficial to upgrade most of my FS projects so that I could remove older versions of VS and clean up the HDD.

If it was up to me, the last version of VS I paid for (as an MSDNAA as it happened) was VS2008 and I'd still be there, because, like you, I had no real need to upgrade.

-Dai

 

  • Moderator

Oddly enough Dai, I've used VS2005 these past six or so years mostly for XML gauge scripting... Even though Notepad++ is a superior XML editor, I really like the fact that I can have multiple XML, text, and so forth open in tabs at the same time. It sure makes copy/pasting quick and painless.

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • 2 months later...
  • Author
  • Commercial Member

Finally go the answer to this one, but not the answer to the overall problem - yet. I was right in suspecting VS2015's security as the culprit: on the VS2015 menu go to

Project | [project] property pages

Under Configuration | General | Platform Toolset

If set to "Visual Studio 2015 (v140)" you'll get the errors: if set to "Visual Studio 2013 (v120)" you don't get the errors. Not sure where to go next but Prepar3D v4 requires the V140 toolset. Oh - and the gauges.h file supplied with the Prepar3D SDK is still the original and uncorrected Microsoft FSX SDK offering with added Prepar3D bits.

I wonder if I'll get a response on the Prepar3D forums... :)

  • Moderator
18 hours ago, dragonflightdesign said:

Oh - and the gauges.h file supplied with the Prepar3D SDK is still the original and uncorrected Microsoft FSX SDK offering with added Prepar3D bits.

I wonder if I'll get a response on the Prepar3D forums... :)

Oh dear. I was wondering about that. All those lovely "corrections & improvements" that have been made over the years by Arne and others will have to be added back to L-M's gauges.h file, and both bloody versions to boot? Argh!

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
  • Commercial Member

I've already done it Bill. Better still, it seems that FSX projects will compile and run with the updated P3Dv4gauges.h file, provided that you don't try to use the P3D-specific stuff. I did it by accident! However, I'm reluctant to announce that the P3D gauges.h file 'iz wrong and I haz the propr one' when I've only made two posts on the P3D forums.

-Dai

Archived

This topic is now archived and is closed to further replies.

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.