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

C / C++ / MFC

 
GeneralRe: Shut down a service programmatically Pin
Antony M Kancidrowski12-Aug-04 0:58
Antony M Kancidrowski12-Aug-04 0:58 
GeneralRe: Shut down a service programmatically Pin
Shay Harel12-Aug-04 3:29
Shay Harel12-Aug-04 3:29 
GeneralCComBSTR to string Pin
pocketpool11-Aug-04 5:56
pocketpool11-Aug-04 5:56 
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 
Hi,

I found a peculiar problem when using CSharedFile.

Requirement:
I have data present in (BYTE*) which needs to be converted to HGLOBAL. The data is segmented, that is the entire data is present in 2-3 BYTE*.

What was done:
a) Created a CSharedFile and attached it to a CArchive object. Then the entire BYTE* data was archived using a while loop for each BYTE*.
b) Called CSharedFile::Detach to obtain the HGLOBAL data.

Problem:
The actual size of the data is 1184 bytes. But when checking the actual size of the memory allocated using GlobalSize() function the return value was 8192!!!

Please let me know what could be the reason for this?
You can reach me at s_adityapalanki@yahoo.com


Thanks and regards,
Aditya Palanki
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 
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 

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.