Click here to Skip to main content
15,922,407 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bad topic id? Pin
Ravi Bhavnani25-Oct-02 9:33
professionalRavi Bhavnani25-Oct-02 9:33 
GeneralWindow resizing using mouse Pin
Zakarya Shah25-Oct-02 5:58
sussZakarya Shah25-Oct-02 5:58 
GeneralRe: Window resizing using mouse Pin
Maximilien25-Oct-02 6:09
Maximilien25-Oct-02 6:09 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 8:09
mentorPaul M Watt25-Oct-02 8:09 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 8:06
mentorPaul M Watt25-Oct-02 8:06 
GeneralRe: Window resizing using mouse Pin
Maximilien25-Oct-02 8:21
Maximilien25-Oct-02 8:21 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 8:50
mentorPaul M Watt25-Oct-02 8:50 
GeneralRe: Window resizing using mouse Pin
Shog925-Oct-02 13:13
sitebuilderShog925-Oct-02 13:13 
GeneralRe: Window resizing using mouse Pin
6545645625-Oct-02 9:32
6545645625-Oct-02 9:32 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 10:11
mentorPaul M Watt25-Oct-02 10:11 
GeneralCListCtrl and SetTextColor Pin
Richard Hudson25-Oct-02 5:18
Richard Hudson25-Oct-02 5:18 
GeneralRe: CListCtrl and SetTextColor Pin
Maximilien25-Oct-02 5:32
Maximilien25-Oct-02 5:32 
GeneralRe: CListCtrl and SetTextColor Pin
Richard Hudson25-Oct-02 5:37
Richard Hudson25-Oct-02 5:37 
GeneralRe: CListCtrl and SetTextColor Pin
Michael Dunn25-Oct-02 20:34
sitebuilderMichael Dunn25-Oct-02 20:34 
QuestionPicture in a ListCtrl background ?? Pin
Cris25-Oct-02 5:04
Cris25-Oct-02 5:04 
AnswerRe: Picture in a ListCtrl background ?? Pin
Rob Caldecott25-Oct-02 6:21
Rob Caldecott25-Oct-02 6:21 
GeneralDecompression Pin
Jawache25-Oct-02 4:55
Jawache25-Oct-02 4:55 
GeneralRe: Decompression Pin
Ravi Bhavnani25-Oct-02 7:17
professionalRavi Bhavnani25-Oct-02 7:17 
GeneralArobat isn't closing Pin
pnpfriend25-Oct-02 4:10
pnpfriend25-Oct-02 4:10 
GeneralRe: Arobat isn't closing Pin
l a u r e n25-Oct-02 4:20
l a u r e n25-Oct-02 4:20 
GeneralRe: Arobat isn't closing Pin
pnpfriend25-Oct-02 4:29
pnpfriend25-Oct-02 4:29 
GeneralRe: Arobat isn't closing Pin
pba_25-Oct-02 11:40
pba_25-Oct-02 11:40 
GeneralpDlg->Create() hell in a dll Pin
Rohit  Sinha25-Oct-02 3:46
Rohit  Sinha25-Oct-02 3:46 
I am creating a dialog box like this:

CDialog *pDlg;
pDlg = new CDialog();

pDlg->Create(IDD_DIALOG, pParentWnd);

When I do this in a dll, the dll is loaded fine but I get an assert in dlgcore.cpp saying that the dialog template is not found or something to that effect. Of course the template is there in the dll resource scripts, but I don't know what is happening here.

On the other hand, the above code runs just fine in an exe, just like it should.

It's only in the dll version that the problem is there. Is it because both the dll and the calling program have their own .rc files and a dll or exe can have only one .rc? In that case, and i do suspect this is the case, how do I resolve this issue? The calling exe does not know what resources are needed by the dll and both the exe and the dll need to carry their own resources. This way I'll be free to replace the dll in future if I want, or make new "plugins", etc.

I could have the resources in a separate dll and load them from there, but that would be an overkill in my situation. Is there a simpler solution? Because this is not just about dialogs boxes. Any types of resources would cause the same problem. Otherwise I could have used InitModalIndirect() or CreatDialogIndirect() functions.

Thanks very much in advance for your help. Smile | :)


  Regards,

  Rohit Sinha

GeneralRe: pDlg->Create() hell in a dll Pin
User 665825-Oct-02 6:38
User 665825-Oct-02 6:38 
GeneralRe: pDlg->Create() hell in a dll Pin
Ravi Bhavnani25-Oct-02 7:11
professionalRavi Bhavnani25-Oct-02 7:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.