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

C / C++ / MFC

 
GeneralRe: Display an image using CXImage library Pin
Dominik Reichl29-Mar-05 0:14
Dominik Reichl29-Mar-05 0:14 
GeneralRe: Display an image using CXImage library Pin
Michael Dunn29-Mar-05 0:15
sitebuilderMichael Dunn29-Mar-05 0:15 
Generalquestion regarding : _T(..) function Pin
Static(x)28-Mar-05 23:55
Static(x)28-Mar-05 23:55 
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 
Hi,
Can anyone give me advice on how to pass a progress bar control to my dll?

In my dll I have the following test function:
extern "C" __declspec(dllexport) void MoveBar(CProgressCtrl *ProgBar)

and in my app I can successfully load the dll and call the function passing the &m_ProgressBar in the calling routine.

The trouble is when I use the following code in my dll:
ProgBar->SetPos(50);

My app crashes with the following error:
Debug Assertion Failed!
...
File afxcmn2.inl
Line:288

Now, I'm obviously doing something wrong but I can't figure out what D'Oh! | :doh:
Any help please? Sigh | :sigh:
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 
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 

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.