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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:40:52+00:00 2026-05-14T04:40:52+00:00

ive been working on c++ on linux for the past 2 years,and switched to

  • 0

ive been working on c++ on linux for the past 2 years,and switched to windows c++ programming recently.

can anyone tell me what that L is there in the argument of the function:

SHLoadImageFile(L"\\Program Files\\TrainingApp\\background.png");

and on viewing certain sample code in MSVS C++ i came across hundereds of typedefs like..

LPARAM// typedef LONG_PTR LPARAM… here LONG_PTR is again typedef as __w64 long

WPARAM// typedef UINT_PTR WPARAM…

so there is a lot of chained typedefs.. I never saw this much of typedef chaining on c++ programming on linux using gcc..

what i want to say is that it just creates more confusion in this way for windows application programming.. while ive seen application programming on linux using frameworks like Qt.. there such things are rarely used.. so is there specific purpose in typedefining again and again on MSVSC++?? for eg.. there are typdefs like

typedef int BOOL;

whats the use of this when normal bool is available already..?? there are hundred other cases ive come across where just to decide what data type to use becomes so difficult.. it becomes difficult to understand a pre written code in this fashion too..

Thanks.

  • 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-14T04:40:53+00:00Added an answer on May 14, 2026 at 4:40 am

    The L in the argument is standard way of telling the compiler that the following string literal is unicode not single-byte characters. It is equivalent to the postfix L to indicate that a long integer constant.

    The windows typedefs do seem confusing but once you get your head around the naming scheme they start to make sense.

    You have to remember that this API originated in the early 90’s. Thus the typedefs are/were required to handle pointers on different architectures as well as 32/64 bit types and are also required to compile for non-intel windows machines.

    The BOOL->int mapping is required asthe interface is C compatible (not c++) and thus can’t use the built in bool type.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been working with the Angstrom Linux distribution for the BeagleBoard. Can anyone point
Ive been working with the twitter oauth and api and im having a weird
I've been working on a project that accesses the WMI to get information about
I've been working on an embedded C/C++ project recently using the shell in Tornado
I've been working with databases for the last few years and I'd like to
I'm working on getting my ASP.Net project working on Linux. I've been testing my
I've been programming for 10+ years now for the same employer and only source
My 11 year old son is very interested in programming. He has been working
I've been working on a perl daemon for linux and here is its skeleton:
I've been working/coding in C#/Java for some years, so the basics etc. don't give

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.