Jump to content
  • Advertisement
Sign in to follow this  

Post message from dll function

This topic is 5421 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have a client app with a progress bar ( MFC Visual C++). The client calls a dll function , and I need to update the progress bar on the client dialog from my dll function,i'm using this setting:
ClientDlg.h app:


afx_msg LRESULT OnUpdateProgress(WPARAM wParam,LPARAM lParam);
ClientDlg.cpp app:

LRESULT CClientDlg::OnUpdateProgress(WPARAM wParam,LPARAM lParam)
     return 0;

After transfering the CWnd* pWnd from the client app,and including the header file of the message definitions,i tried to call this function:
from my dll function, but I'm getting Assertion Failed:-( What seems to be the problem? Dani. (Edited by moderator to utilise [ source ][ /source ] tags) [Edited by - Timkin on September 15, 2004 6:51:48 PM]

Share this post

Link to post
Share on other sites
First off, I find it somewhat humourous that you have a variable name "pWnd".[smile] *Ahem* Humour aside, however:


This appears to be a tutorial site that contains source code similiar to the stuff you provided. I would think, at first glance, that your error lies in the fact that you have "OnUpdateProgress", then "OnThreadUpdateProgress", then "OnUpdateProgress". But then again, I know little in this area(DLL's and threads). Hope it helps!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!