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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:36:06+00:00 2026-05-18T01:36:06+00:00

(char*)GlobalAlloc(GPTR, len + 1); This is the line of code in question, which I’m

  • 0
(char*)GlobalAlloc(GPTR, len + 1);

This is the line of code in question, which I’m using from a tutorial. I’m reading from an EDITTEXT. I’d mostly like to know where GPTR came from, and what it’s for. It hasn’t been defined anywhere else in the code.

I’ve got a basic understanding of the rest of the line, but MSDN‘s explanation isn’t quite clear. They say this:

HGLOBAL WINAPI GlobalAlloc(
  __in  UINT uFlags,
  __in  SIZE_T dwBytes
);

Could someone explain in plain English where GPTR is from, what it’s for, and how it relates to __in UINT uFlags? I know it’s an unsigned int but then the knowing stops.

Thanks in advance.

  • 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-18T01:36:07+00:00Added an answer on May 18, 2026 at 1:36 am

    Refer here

    GPTR 0x0040 Combines GMEM_FIXED and GMEM_ZEROINIT.

    As you can see, it is just a bit pattern (0x0040) and can be combined with other permissible flags

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

Sidebar

Related Questions

char *pStrBuffer; unsigned char data; unsigned int Address; /* pStrBuffer reading from a file
This is a question based on C code for Win32. In one of my
char* a=dsa qwe; printf(%s, a); output: dsaqwe My question is why does this thing
char imei_temp[14] = {0, }; strcpy(imei_temp, 00000000000000); According to my understanding this is valid
char b; operator<<(cout,(operator>>(cin,b))); this is not compiling in vc++ because all 8 overloads cant
char *p=orkut vs const char *p=orkut whats the difference btwn these two... EDIT from
I'am using the below code to copy paste..but it doesnt copy the whole context
char character = 'c'; string str = null; str = character.ToString();//this is ok char[]
char a[133]; char x[4]=ccc; int line=3,count=1; //string aa; //cin>>aa; ifstream out(text); while(out.getline(a,4,':')&&(strncmp(a,x,4))) {cout<<hi; cout<<a<<endl;
char *funcNames[]= {VString,VChar,VArray,VData}; for(int i=0;i<4;i++) { char* temp = funcNames[i]; int len = strlen(funcNames[i]);

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.