468,456 Members | 1,657 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,456 developers. It's quick & easy.

Error from DialogBox() when called inside a static LIB

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
1 1473

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.

Similar topics

reply views Thread by Maciej Tokarski | last post: by
reply views Thread by erik.erikson | last post: by
1 post views Thread by PeteOlcott | last post: by
1 post views Thread by subhajit12345 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.