If you want to have resources in a static library just put them in their own
this). You should use resource ID's that are out of range of those that MFC
the application's resources.
On Mar 16, 12:07 pm, "Ajay Kalra" <ajayka...@yahoo.com> wrote:
Debug and see what particular call fails starting from the constructor on
and into OnInitDialog. Its possible that the dialog resource is not being
found.
--
Ajay Kalra [MVP - VC++]
ajayka...@yahoo.com
"Fish in a Barrel" <aaron.m.john...@gmail.com> wrote in
messagenews:1174059752.164785.48790@e1g2000hsg.googlegroups.com...
I have a static library that I want to run a dialog from. I added a
resource file and created the dialog and it's class, but it won't
run. When my application makes the library call that ultimately ends
with DoModal being called, it just locks up the application. There is
a brief flicker like the dialog is trying to display, but that's it.
What am I doing wrong here?
I'm not seeing anything erroring out here. From construction all the
way through my OnInitDialog it runs without error.
After some more experimentation, it looks to me like the application
is attempting to load the resource out of it own resource file instead
of from the resource in the library. The dialog I'm trying to display
has resource ID 101. The application has a form with resource ID
101. The window that flickers into view when I try to run the dialog
is definitely the form.
I tried changing the resource ID of the dialog so there is no
conflict, but now it just doesn't open. ::FindResource is returning a
null handle in CDialog::DoModal().