Re: Resources in a static library




"Torsten Hensel" <TorstenHensel@xxxxxxxxxxxxxxxxxxxxxxxxx> ha scritto nel
messaggio news:060AA7FD-85CF-4525-9D15-50792AF2BD6A@xxxxxxxxxxxxxxxx

I've created a static library that contains a dialog class. The dialog is
created using the dialog editor, so it's described in a resource file.
However, static libraries cannot contain resources.

It's possible to "manually" define a dialog resource with C/C++, starting
from DLGTEMPLATE structure:

http://msdn2.microsoft.com/en-us/library/ms645394.aspx

I don't know if there are tools that can parse a resource file and output
the C++ source code to create the dialog (however, these tools could be
developed... it's not very hard).

Giovanni


.



Relevant Pages

  • Re: Good C Compiler for Windows..
    ... There's a resource file editor, ... The greatest lack I've felt using Dev-C++ is that of a dialog editor. ... I can compile any file, or any project, no matter where. ...
    (comp.lang.c)
  • Help! rc cannot open again
    ... in my project I cannot open the resource file any more. ... MSVC 7 says, the ... If I open the rc file in a normal editor, ... How can I fix it? ...
    (microsoft.public.vc.mfc)
  • Delphi editor for other than .PAS files
    ... I am using D7 and found a strange behavior with the editor. ... I have added a resource file to my project: ... File/New/Other/File and save it with a .RC extension ...
    (borland.public.delphi.ide)
  • Dialog window auto resizing
    ... I create a dialog window using the VS 2005 dialog editor, ... dimensions 240 x 320 (manually editing in the resource file) and add ... emulator the placement and the sizes of the controls go ...
    (microsoft.public.windowsce.app.development)
  • Re: Resources in a static library
    ... The dialog is created using the dialog editor, so it's described in a resource file. ... static libraries cannot contain resources. ... Perhaps there is a way to create C++ code from the resource file so that the dialog is created "manually" instead of using resources... ...
    (microsoft.public.vc.mfc)