Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Creating a Dialog Resource With No Controls
  
User name:
Password:
Reply:
 

UserPost
beneficii
Posts: 213/567
When I make this dialog:

IDD_TOOLBAR DIALOGEX DISCARDABLE 0, 0, 0x100, 0x100
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "Tiles"
FONT 8, "MS Sans Serif"
BEGIN
END

The thing compiles fine, but when I load the EXE it says it's corrupt. When I comment out this piece, the EXE runs fine. Is it because I have no controls in it and there is another way of doing it, or is it something else? (I do not want any controls in my dialog, btw.)

Well, I had added a control, and that same problem still comes up. So I don't know....

EDIT: Never mind, I just realized that the value of IDD_TOOLBAR should not be larger than a word (i.e larger than 0xffff).
Acmlm's Board - I2 Archive - Programming - Creating a Dialog Resource With No Controls


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.011 seconds.