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 6829933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:33:31+00:00 2026-05-26T22:33:31+00:00

I have added a resource in my project. Its size is 4.096 byte. i

  • 0

I have added a resource in my project. Its size is 4.096 byte.
i need to assign it to DWORD because 3rd argument of WriteFile() needs it.

WriteFile(hFile, pExeResource,size, &bytesWritten, NULL);

So i cast it like this:

UPDATE2: DWORD bootsize = 4096; //and still warns me
But i get this warning. can you plesae help me?

  • 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-05-26T22:33:32+00:00Added an answer on May 26, 2026 at 10:33 pm

    I think this is a combination of regional/language differences along with C-syntax.

    I assume you mean 4.096 to be 4,096 with a comma separator. (Due to regional/language differences, you probably use . instead of ,.)

    In C/C++, you don’t use the separators. Just do this instead:

    DWORD bootsize = (DWORD)4096;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Plainly put, I have added as a resource to a visual studio project an
I have added the following to my project's pom.xml: <resources> <resource> <directory>src/main/app</directory> </resource> <resource>
I have image in project added as resource, if I try to add it
i have added an sqlite libsqlite3.0.dylib into my project's resources as per given in
For my project I have added following line of code in applicaiton.ini resources.layout.layoutPath =
I have added an image to my form's resource file, myForm.resx, and I would
when working with Qt Creator and developing my project, I've added to a resource
I have added an area to my MVC 3 project. I cannot seem to
I have a SQL file added to my VS.NET 2008 project as an embedded
We have a mother-ship project with several modules: foo + foo-core + foo-resource +

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.