Click here to Skip to main content
15,888,590 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CComBSTR to string Pin
Jaime Stuardo11-Aug-04 6:36
Jaime Stuardo11-Aug-04 6:36 
GeneralRe: CComBSTR to string Pin
pocketpool11-Aug-04 11:22
pocketpool11-Aug-04 11:22 
QuestionHow can I tell if I'm running as a service? Pin
JT Anderson11-Aug-04 5:35
JT Anderson11-Aug-04 5:35 
AnswerRe: How can I tell if I'm running as a service? Pin
Ryan Binns11-Aug-04 18:42
Ryan Binns11-Aug-04 18:42 
GeneralMemory problem in CSharedFile. Pin
Aditya_Palanki11-Aug-04 4:47
Aditya_Palanki11-Aug-04 4:47 
GeneralRe: Memory problem in CSharedFile. Pin
Johan Rosengren11-Aug-04 6:25
Johan Rosengren11-Aug-04 6:25 
GeneralRe: Memory problem in CSharedFile. Pin
Aditya_Palanki13-Aug-04 0:26
Aditya_Palanki13-Aug-04 0:26 
GeneralRe: Memory problem in CSharedFile. Pin
Johan Rosengren13-Aug-04 0:34
Johan Rosengren13-Aug-04 0:34 
Aditya_Palanki wrote:
Does this mean that the extra memory that is being allocated is normal?

Yes, it allocates in blocks. If your allocation size is not an exact multiple of the block, you'll get extra padding.


Aditya_Palanki wrote:
Can you suggest any other way of creating an HGLOBAL?

GlobalAlloc is the way of doing it. If the receiver needs to know the size actually allocated, just add this value to the beginning of the block, for example.
GeneralESC And Enter key's Pin
Larsson11-Aug-04 4:31
Larsson11-Aug-04 4:31 
GeneralRe: ESC And Enter key's Pin
Antony M Kancidrowski11-Aug-04 4:48
Antony M Kancidrowski11-Aug-04 4:48 
GeneralRe: ESC And Enter key's Pin
Larsson11-Aug-04 4:55
Larsson11-Aug-04 4:55 
GeneralPassing Array of Strings as BSTR* Pin
arun140511-Aug-04 3:55
arun140511-Aug-04 3:55 
GeneralRe: Passing Array of Strings as BSTR* Pin
Antony M Kancidrowski11-Aug-04 4:34
Antony M Kancidrowski11-Aug-04 4:34 
GeneralRe: Passing Array of Strings as BSTR* Pin
eight22-Feb-10 15:59
eight22-Feb-10 15:59 
GeneralSyntax Error NOT! Pin
jerry0davis11-Aug-04 3:47
jerry0davis11-Aug-04 3:47 
GeneralRe: Syntax Error NOT! Pin
David Crow11-Aug-04 3:52
David Crow11-Aug-04 3:52 
GeneralRe: Syntax Error NOT! Pin
jerry0davis11-Aug-04 4:00
jerry0davis11-Aug-04 4:00 
GeneralRe: Syntax Error NOT! Pin
David Crow11-Aug-04 4:13
David Crow11-Aug-04 4:13 
GeneralRe: Syntax Error NOT! Pin
Tim Smith11-Aug-04 17:45
Tim Smith11-Aug-04 17:45 
GeneralRe: Syntax Error NOT! Pin
David Crow12-Aug-04 2:38
David Crow12-Aug-04 2:38 
GeneralRe: Syntax Error NOT! Pin
Tim Smith12-Aug-04 3:55
Tim Smith12-Aug-04 3:55 
GeneralRe: Syntax Error NOT! Pin
David Crow12-Aug-04 4:51
David Crow12-Aug-04 4:51 
GeneralRe: Syntax Error NOT! Pin
Tim Smith11-Aug-04 3:54
Tim Smith11-Aug-04 3:54 
GeneralProcess Injection Pin
Reza Shademani11-Aug-04 3:46
Reza Shademani11-Aug-04 3:46 
GeneralRe: Process Injection Pin
David Crow11-Aug-04 3:57
David Crow11-Aug-04 3:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.