Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoModal in a DLL

Status
Not open for further replies.

evilpeer

Programmer
Sep 24, 2001
16
US
I found this thread:

thread116-194556 I am getting an assertion error when I try to call AfxGetResourceHandle. I'm not sure where to go with this.

---Evil Peer
 
Found the following at:

"If your dialog is being displayed as a result of a
COM method call or an
exported dll method, you need to make sure you
have the following macro at
the start of the function:

AFX_MANAGE_STATE(AfxGetStaticModuleState())"

This solved my problem.

---Evil Peer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top