By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,171 Members | 992 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,171 IT Pros & Developers. It's quick & easy.

Error from DialogBox() when called inside a static LIB

P: n/a
I'm trying to call

DialogBox(hInst, MAKEINTRESOURCE(DLG_SETUPDIALOG), GetDesktopWindow(),
(DLGPROC)DialogProc);

from inside a static library but I get an error message:

"specified image file did not contain a resource section"

Does anyone know how to fix this? I found the same error posted here:

http://www.gamedev.net/community/for...opic_id=173005

but no solution.

Jul 8 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Marek wrote:
I'm trying to call

DialogBox(hInst, MAKEINTRESOURCE(DLG_SETUPDIALOG), GetDesktopWindow(),
(DLGPROC)DialogProc);

from inside a static library but I get an error message:

"specified image file did not contain a resource section"

Does anyone know how to fix this? I found the same error posted here:

http://www.gamedev.net/community/for...opic_id=173005

but no solution.
You're question has nothing to do with C++. You're having problems
using the Windows API so a forum concerned with Windows programming
will be able to help. Look under the microsoft.public.* hierarchy or
something suggested in this page

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

which also explains the topicality of comp.lang.c++

Gavin

Jul 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.