Click here to Skip to main content
16,012,061 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: question regarding : _T(..) function Pin
Michael Dunn29-Mar-05 0:09
sitebuilderMichael Dunn29-Mar-05 0:09 
GeneralUDP Broadcast to specific Apdapter Pin
ulischmidt28-Mar-05 23:32
ulischmidt28-Mar-05 23:32 
GeneralRe: UDP Broadcast to specific Apdapter Pin
Alexander M.,29-Mar-05 2:52
Alexander M.,29-Mar-05 2:52 
GeneralUsing a <textarea> in an AppWiz Pin
Franz Klein28-Mar-05 23:23
Franz Klein28-Mar-05 23:23 
QuestionPassing a Dialog Control to dll?? Pin
Sonix28-Mar-05 23:11
Sonix28-Mar-05 23:11 
AnswerRe: Passing a Dialog Control to dll?? Pin
Michael Dunn28-Mar-05 23:44
sitebuilderMichael Dunn28-Mar-05 23:44 
GeneralRe: Passing a Dialog Control to dll?? Pin
Sonix28-Mar-05 23:47
Sonix28-Mar-05 23:47 
GeneralRe: Passing a Dialog Control to dll?? Pin
Blake Miller29-Mar-05 5:38
Blake Miller29-Mar-05 5:38 
Is your progrma AND your DLL built to use the MFC DLL the same way? Like both are built using the SHARED MFC DLL? If not, make them match and try again.

Otherwise, you will have to change your DLL function to acept the HWND of the progress bar and set the position manually. You can avoid passing the MFC control pointers across the DLL boundary altogether.

The progress bar position can be set using the HWND like this:
::SendMessage(hProgressBarWindow, PBM_SETPOS, nPos, 0L);

Sometimes MFC does not share the MFC 'CWnd*' map tables across the DLL boundaries. So passing the 'pointer' to some CWnd derived class across the DLL results in an invalid window handle or invalid window class pointer. You can experience the same thing within a single EXE if you have multiple threads running too.

Generaldata transfer across 2 console applications Pin
vikramlinux28-Mar-05 23:08
vikramlinux28-Mar-05 23:08 
GeneralRe: data transfer across 2 console applications Pin
Alexander M.,29-Mar-05 2:48
Alexander M.,29-Mar-05 2:48 
GeneralRe: data transfer across 2 console applications Pin
Blake Miller29-Mar-05 5:40
Blake Miller29-Mar-05 5:40 
GeneralSymmetric matrix Pin
khyap28-Mar-05 22:53
khyap28-Mar-05 22:53 
GeneralRe: Symmetric matrix Pin
namaskaaram29-Mar-05 0:35
namaskaaram29-Mar-05 0:35 
GeneralRe: Symmetric matrix Pin
namaskaaram29-Mar-05 0:35
namaskaaram29-Mar-05 0:35 
GeneralControlling Stop Bit Pin
Logan from Singapore28-Mar-05 22:16
Logan from Singapore28-Mar-05 22:16 
GeneralRe: Controlling Stop Bit Pin
Mike Dimmick29-Mar-05 1:13
Mike Dimmick29-Mar-05 1:13 
GeneralWin32 API: Shutdown a remote PC Pin
shaiba28-Mar-05 22:13
shaiba28-Mar-05 22:13 
GeneralRe: Win32 API: Shutdown a remote PC Pin
ThatsAlok28-Mar-05 22:28
ThatsAlok28-Mar-05 22:28 
GeneralRe: Win32 API: Shutdown a remote PC Pin
shaiba28-Mar-05 23:31
shaiba28-Mar-05 23:31 
GeneralRe: Win32 API: Shutdown a remote PC Pin
ThatsAlok29-Mar-05 0:06
ThatsAlok29-Mar-05 0:06 
QuestionGet window type? Pin
Dominik Reichl28-Mar-05 22:09
Dominik Reichl28-Mar-05 22:09 
AnswerRe: Get window type? Pin
ThatsAlok28-Mar-05 22:23
ThatsAlok28-Mar-05 22:23 
GeneralRe: Get window type? Pin
Dominik Reichl28-Mar-05 22:34
Dominik Reichl28-Mar-05 22:34 
GeneralRe: Get window type? Pin
ThatsAlok28-Mar-05 22:46
ThatsAlok28-Mar-05 22:46 
GeneralRe: Get window type? Pin
Dominik Reichl28-Mar-05 23:50
Dominik Reichl28-Mar-05 23:50 

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.