Board index » cppbuilder » CreateDialogIndirect and DLGTEMPLATE
JD
![]() CBuilder Developer |
JD
![]() CBuilder Developer |
CreateDialogIndirect and DLGTEMPLATE2007-07-07 06:41:09 AM cppbuilder74 I would appreciate a small working sample using DLGTEMPLATE and CreateDialogIndirect. The sample in the win32.hlp compiles but always returns -1. Thanks! ~ JD |
Bob Gonder
![]() CBuilder Developer |
2007-07-07 09:45:51 AM
Re:CreateDialogIndirect and DLGTEMPLATE
JD wrote:
QuoteI would appreciate a small working sample using DLGTEMPLATE and Which example would that be? The one under Creating a Modal Dialog Box or the next page: Creating a Modeless Dialog Box Or Creating a Template in Memory I can't find help example for CreateDialogIndirect |
Ed Mulroy [TeamB]
![]() CBuilder Developer |
2007-07-07 10:01:47 AM
Re:CreateDialogIndirect and DLGTEMPLATE
CreateDialogIndirect is a macro that converts to CreateDialogIndirectParam
(with A or W at the end for ascii or unicode). Look here for more info and continue on to the following entries. blogs.msdn.com/oldnewthing/archive/2005/03/29/403298.aspx It might be a convenient time to also step back and review the subject: msdn2.microsoft.com/en-us/library/ms632588.aspx . Ed QuoteJD wrote in message {smallsort} |
JD
![]() CBuilder Developer |
2007-07-08 01:52:22 AM
Re:CreateDialogIndirect and DLGTEMPLATE
Bob Gonder < XXXX@XXXXX.COM >wrote:
Quote
although I see now from MSDN that I can call GetLastError which I have not done. QuoteWhich example would that be? QuoteI can't find help example for CreateDialogIndirect ~ JD |
JD
![]() CBuilder Developer |
2007-07-08 01:53:18 AM
Re:CreateDialogIndirect and DLGTEMPLATE
"Ed Mulroy [TeamB]" < XXXX@XXXXX.COM >wrote:
Quote
keeps puking on 'DIALOG'. QuoteIt might be a convenient time to also step back and review the subject: ~ JD |
Bob Gonder
![]() CBuilder Developer |
2007-07-08 06:01:35 AM
Re:CreateDialogIndirect and DLGTEMPLATE
JD wrote:
QuoteBob Gonder wrote: DialogBoxIndirect() which is something different from the current topic of CreateDialogIndirect() msdn2.microsoft.com/en-us/library/ms645436.aspx Quote>I can't find help example for CreateDialogIndirect |
Bob Gonder
![]() CBuilder Developer |
2007-07-08 06:44:52 AM
Re:CreateDialogIndirect and DLGTEMPLATE
JD wrote:
Quote"Ed Mulroy [TeamB]" wrote: articles? And why would you run the Resource Compiler an a *.hlp file anyway? Ok, so you are probably off on another tangent, having nothing to do with the subject at hand. I just did a complete file scan, and have 0 copies of rc.hlp on my system, so really have no idea what your complaint is about. However, this is a small portion of a working rc file (Actually, I never got the abort dialog to work to my satisfaction, so I have it turned off in the code, but this still compiles, and would function as a dialog.) #include "C:\CPP\BCC55\INCLUDE\winuser.rh" // <these also get included in the application> #define IDD_FILE 3333 #define IDD_TEXT 3334 #define IDD_CANCEL 3335 #define AbortDlg 1 // </ these also get included in the application> ICON_1 ICON "256.ico" ICON_16 ICON "16.ico" ICON_32 ICON "32.ico" AbortDlg DIALOG 33, 32, 160, 70 STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_VISIBLE | WS_POPUP | WS_SYSMENU CAPTION "My Abort Dialog" BEGIN CONTROL "Now Printing: ", IDD_TEXT, "static", SS_CENTER | WS_CHILD, 0, 10, 160, 8 CONTROL "", IDD_FILE, "static", SS_CENTER | WS_CHILD, 0, 25, 160, 8 DEFPUSHBUTTON "Cancel", IDD_CANCEL, 60, 45, 45, 15 END |
JD
![]() CBuilder Developer |
2007-07-08 12:05:43 PM
Re:CreateDialogIndirect and DLGTEMPLATE
Bob Gonder < XXXX@XXXXX.COM >wrote:
Quote
~ JD |
JD
![]() CBuilder Developer |
2007-07-08 12:08:58 PM
Re:CreateDialogIndirect and DLGTEMPLATE
Bob Gonder < XXXX@XXXXX.COM >wrote:
Quote
QuoteI can't see a single DIALOG Quoteor RC.hlp, or mention of the Resource Compiler in those Resource Compiler which leads to RC.hlp (scan your hard drive) for the correct syntax. Plain and simple ... the RC pukes on 'DIALOG'. QuoteAnd why would you run the Resource Compiler an a *.hlp file QuoteOk, so you are probably off on another tangent, QuoteI just did a complete file scan, and have 0 copies of rc.hlp several years. In any event, I have it. If you want it .... QuoteHowever, this is a small portion of a working rc file [...] QuoteAbortDlg DIALOG <--- |
Ed Mulroy [TeamB]
![]() CBuilder Developer |
2007-07-08 07:24:50 PM
Re:CreateDialogIndirect and DLGTEMPLATEQuote>or RC.hlp, or mention of the Resource Compiler in those shared\mshelp". The contents of that directory are not related to resources or resource file. The resource compiler is brcc32.exe and it happily accepts the word DIALOG. . Ed QuoteJD wrote in message |
JD
![]() CBuilder Developer |
2007-07-09 04:44:48 PM
Re:CreateDialogIndirect and DLGTEMPLATE
"Ed Mulroy [TeamB]" < XXXX@XXXXX.COM >wrote:
Quote
it's clear to me to be a help file for the resource compiler. QuoteIt is in the directory "\program files\borland shared\mshelp". QuoteThe contents of that directory are not related to resources or resource QuoteThe resource compiler is brcc32.exe and it happily accepts get it over with. Thanks. ~ JD |
Ed Mulroy [TeamB]
![]() CBuilder Developer |
2007-07-09 08:06:56 PM
Re:CreateDialogIndirect and DLGTEMPLATEQuoteWhen launched, the caption reads "Help Topics: Resource which you were looking. Quote>It is in the directory "\program files\borland shared\mshelp". Quote>The resource compiler is brcc32.exe ... -------------------------- C:\Program Files\Borland\CBuilder6\Bin Quotever Quotedir brcc*.exe Directory of C:\Program Files\Borland\CBuilder6\Bin 02/01/2002 10:00 AM 168,992 brcc32.exe 1 File(s) 168,992 bytes 0 Dir(s) 11,433,058,304 bytes free C:\Program Files\Borland\CBuilder6\Bin Quote
is a shell for brcc32.exe. I don't know of any reasons to use it. . Ed QuoteJD wrote in message |
JD
![]() CBuilder Developer |
2007-07-10 01:15:55 PM
Re:CreateDialogIndirect and DLGTEMPLATE
"Ed Mulroy [TeamB]" < XXXX@XXXXX.COM >wrote in message
Quote>When launched, the caption reads "Help Topics: Resource |
Ed Mulroy [TeamB]
![]() CBuilder Developer |
2007-07-10 06:35:15 PM
Re:CreateDialogIndirect and DLGTEMPLATE
Yes, it looks as if there is an incorrect entry in that list.
In any case, the help compiler is not related to the type of resources stored in a compiled resource, *.res, file and linked into a executable or dll. . Ed QuoteJD wrote in message |
Bob Gonder
![]() CBuilder Developer |
2007-07-10 09:25:13 PM
Re:CreateDialogIndirect and DLGTEMPLATE
JD wrote:
QuotePlease see the attachment group for a screen shot. msdn.microsoft.com/library/en-us/tools/tools/resource_definition_statements.asp |