Click here to Skip to main content
16,004,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSetFocus... Pin
Joan M15-Feb-07 0:49
professionalJoan M15-Feb-07 0:49 
AnswerRe: SetFocus... Pin
Michael Dunn15-Feb-07 20:58
sitebuilderMichael Dunn15-Feb-07 20:58 
GeneralRe: SetFocus... Pin
Joan M15-Feb-07 21:23
professionalJoan M15-Feb-07 21:23 
Questionhow to get physical address of a file after loading it to memory to use for DMA tarnsfer thro NIC Pin
arun kumar spk15-Feb-07 0:10
arun kumar spk15-Feb-07 0:10 
AnswerRe: how to get physical address of a file after loading it to memory to use for DMA tarnsfer thro NIC Pin
toxcct15-Feb-07 0:11
toxcct15-Feb-07 0:11 
GeneralRe: how to get physical address of a file after loading it to memory to use for DMA tarnsfer thro NIC Pin
arun kumar spk15-Feb-07 0:17
arun kumar spk15-Feb-07 0:17 
AnswerRe: how to get physical address of a file after loading it to memory to use for DMA tarnsfer thro NIC Pin
Michael Dunn15-Feb-07 20:59
sitebuilderMichael Dunn15-Feb-07 20:59 
QuestionCalling GlobalLock inside an DLL has problem? Pin
Stan the man14-Feb-07 23:56
Stan the man14-Feb-07 23:56 
HI.

I can't understand something. I have a DLL which has a class that calls a function that is the following:

DWORD dwLen = GlobalSize(m_hDevMode);
BYTE* lp = (BYTE*)GlobalLock(m_hDevMode);
file->Write(&dwLen,sizeof(dwLen));
file->Write(lp,dwLen);
file->Write(&dwLen,sizeof(dwLen));
GlobalUnlock(m_hDevMode);

Now, when I put the .h and .cpp file of the class directly in my application directory and use the class, it works fine. But when I call the class and this function exporting/using it from the DLL, it gives me warnings and does not work. It will comile but when I run the function that calls this function, it does not work.

Can anyone helpl shed some light on this? Or how would I "fix" this?

Thanks ahead of time.
QuestionRe: Calling GlobalLock inside an DLL has problem? Pin
prasad_som15-Feb-07 0:59
prasad_som15-Feb-07 0:59 
QuestionPictute in Visual C++ Pin
gigel00714-Feb-07 23:55
gigel00714-Feb-07 23:55 
AnswerRe: Pictute in Visual C++ Pin
Hamid_RT15-Feb-07 0:02
Hamid_RT15-Feb-07 0:02 
AnswerRe: Pictute in Visual C++ Pin
Christian Graus15-Feb-07 0:04
protectorChristian Graus15-Feb-07 0:04 
AnswerRe: Pictute in Visual C++ Pin
David Crow15-Feb-07 3:09
David Crow15-Feb-07 3:09 
QuestionCreateEvent and WaitForSingleObject Class Pin
Andy20214-Feb-07 23:43
Andy20214-Feb-07 23:43 
AnswerRe: CreateEvent and WaitForSingleObject Class Pin
Cedric Moonen15-Feb-07 0:53
Cedric Moonen15-Feb-07 0:53 
GeneralRe: CreateEvent and WaitForSingleObject Class Pin
Andy20216-Feb-07 0:56
Andy20216-Feb-07 0:56 
QuestionWindows Service and accessing N/W mapped drive Pin
vikramlinux14-Feb-07 23:20
vikramlinux14-Feb-07 23:20 
QuestionQuestion about huge archive of data Pin
Accius14-Feb-07 23:18
Accius14-Feb-07 23:18 
AnswerRe: Question about huge archive of data Pin
Chris Losinger15-Feb-07 1:55
professionalChris Losinger15-Feb-07 1:55 
GeneralRe: Question about huge archive of data Pin
Accius15-Feb-07 2:33
Accius15-Feb-07 2:33 
GeneralRe: Question about huge archive of data Pin
Chris Losinger15-Feb-07 2:43
professionalChris Losinger15-Feb-07 2:43 
GeneralRe: Question about huge archive of data Pin
Accius15-Feb-07 2:54
Accius15-Feb-07 2:54 
GeneralRe: Question about huge archive of data Pin
toxcct15-Feb-07 3:01
toxcct15-Feb-07 3:01 
GeneralRe: Question about huge archive of data Pin
Chris Losinger15-Feb-07 3:02
professionalChris Losinger15-Feb-07 3:02 
GeneralRe: Question about huge archive of data Pin
Accius15-Feb-07 3:28
Accius15-Feb-07 3:28 

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.