Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8276783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:28:46+00:00 2026-06-08T08:28:46+00:00

In VS 2012, I’m getting error C4965 (Implizites Boxing mit ganzer Zahl 0. Verwenden

  • 0

In VS 2012, I’m getting error C4965 (Implizites Boxing mit ganzer Zahl 0. Verwenden Sie “nullptr” oder eine explizite Umwandlung), when passing 0 where Platform::Object^ is expected. The intention of the code is indeed to pass the integer value 0, not a null reference. Apparently, in C++/CLI etc., there is a __box keyword that can be used, but this is not recognized by the C++/CX compiler.

So: what’s the proper way to suppress this warning, and to create a boxed WinRT integer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:28:48+00:00Added an answer on June 8, 2026 at 8:28 am

    According to MSDN, you should use explicit boxing. It suggests

    safe_cast<System::Object^>(0)
    

    … so you’re making clear it is not nullptr.
    In your case, this would probably be:

    safe_cast<Platform::Object^>(0)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[2012-01-25 17:03:09,186] WARN - jetbrains.buildServer.SERVER - Failed to start build: null, error: java.lang.NullPointerException I
2012-02-18 03:27:42.278 Abiliator[6149:1a003] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: __ CFObjCIsCollectable Referenced
Update 18th December 2012 Since this question seems to be getting quite a few
2012 dates are not getting disabled and I cannot figure out why, I've tried
2012-07-20T03:04:50+00:00 heroku[web.1]: Process running mem=546M(106.8%) 2012-07-20T03:04:50+00:00 heroku[web.1]: Error R14 (Memory quota exceeded) 2012-07-20T03:05:11+00:00 heroku[web.1]:
[2012-06-01 15:33:10,638][molisamples] ERROR:web-services:Uncaught exception Traceback (most recent call last): File osv\osv.pyo, line 122, in
2012-05-31 00:17:51.384 SAMPLEGAME[2901:10703] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<SAMPLEGAMEViewController 0x752c140>
2012-03-21T04:01:09+00:00 DEBUG (7): fopen(/data01/virt32830/domeenid/www.montonfashion.com/htdocs/var/cache/mage--6/mage---internal-metadatas---bee_DB_PDO_MYSQL_DDL_catalog_product_flat_3_3): failed to open stream: Permission denied/data01/virt32830/domeenid/www.montonfashion.com/htdocs/lib/Zend/Cache/Backend/File.php The question is: Why
March 2012: 9 27 28 29 1 2 3 4 10 5 6 7
Edit (2012-04-12): Since this question was asked it is now possible (as of jQuery

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.