Re: CDialog in static library
- From: "Michael David Pedersen" <mdp at cs dot aau dot dk>
- Date: Tue, 26 Jul 2005 15:27:03 +0100
Jeff,
> If you really mean a static library, then the problem is probably that the
> DIALOG resource is not being added to the *.exe. Static libraries do not
> contain resources.
Thank you very much for your clarification on this matter -- and yes, I
really mean a static library.
What is the best way to use a resource, then? I have the resource file,
"staticlib.rc" say, available in my static library project, and I would like
to somehow include it in the client project.
According to the MSDN article TN035 I can do this by including the
staticlib.rc file in the client project under "Compile-Time Directives in
the Set Includes dialog box". I cannot find this dialog box in Visual Studio
7. However, I assume that this corresponds to the "Resource Includes" dialog
box available by right-clicking on an entry in resource view. Alas, I have
tried this without luck: both client and library projects compile, but I get
the same debug assertion error as before.
Am I going about this the right way? How should I include the staticlib.rc
file such that it can be used during execution of static library code?
Thanks for your help once again.
.
- References:
- CDialog in static library
- From: Michael D Pedersen
- Re: CDialog in static library
- From: Jeff Partch [MVP]
- CDialog in static library
- Prev by Date: Re: ini or registry?
- Next by Date: Re: stream limitation 512?
- Previous by thread: Re: CDialog in static library
- Next by thread: Terminating User-Interface Thread
- Index(es):
Relevant Pages
|