Advertisement

Can´t create Dialog on a Compaq

Started by July 05, 2000 05:54 AM
5 comments, last by Gandalf 24 years, 5 months ago
Hi! I have seen a strange problem. I have a directx program that run fine on every computer beside one: A compaque 550 mhz with double operate system, NT4.0 and Win98. I have tracked the error to one spot. I know that it failes just before the creation of the option dialog.
        

g_OptionDlg = CreateDialog( GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_OPTIONS), m_hWndMain, OptionProc);
        
Why? I presuate every ide. Thanks, Edited by - Gandalf on 7/5/00 5:55:08 AM
Gandalf the Black
Now it works on that computer. I have build the project in debug mode and becuase of that the computer can now find my dialog resoureces.

But I want to build the project in release mode...

Gandalf the White

You'll find a golden ring...


Edited by - Gandalf on July 5, 2000 7:24:25 AM
Gandalf the Black
Advertisement
Why can´t that computer find my dialog resource file?

Gandalf the White

You'll find a golden ring...
Gandalf the Black
Well, what is CreateDialog returning?

It has nothing to do with the fact that it''s a compaq...
Is it just that dialog?

1. could be a 3rd party control?.
2. mis-handling messages in the Dialog proc
3. do fairies live at the bottom of your garden.
4. try praying to the moon.
5. Chalk in a pentagram around the compaq and burn black candles. (We used to sacrafice virgins when our Unix servers started acting up, maybe a little extreme in this case, but hey, whatever works ).


--------------------------
Carpe Diem
D.V.Carpe Diem
I manage to create another dialog box before the message pump starts (with the same function call). The call to CreateDialog() that crash on the compaq is done in runtime. I don´t know if that is the problem. I'm thinking of resource link problems, becuase it works in debug mode on the compaq computer.

quote:

Well, what is CreateDialog returning?



It returns NULL.

Thanks.

Gandalf the White

You'll find a golden ring...


Edited by - Gandalf on July 6, 2000 3:24:54 AM
Gandalf the Black
Advertisement
get the last error,
        DWORD GetLastError(void)DWORD FormatMessage(  DWORD dwFlags,      // source and processing options  LPCVOID lpSource,   // message source  DWORD dwMessageId,  // message identifier  DWORD dwLanguageId, // language identifier  LPTSTR lpBuffer,    // message buffer  DWORD nSize,        // maximum size of message buffer  va_list *Arguments  // array of message inserts);        


a .dll is corrupt?
Or you maybe your trying to create a dialog that exist in the Shell extentions bundled with IE4, which were declared illegal some court somewhere, and hence not available on new versions of IE5 and do not come with NT4, NT5 or most versions of 9x. Sucks too, Microsoft really wasn't lying then they said the browser was part of the OS. I think I got burned try to use something like SHGetWindowsFolder. It's part of the illegal browser/OS thing.

Maybe the dialog has components that are part of the extention?

-Magmai Kai Holmlor

I am brazen and fear no flames.
(So long as I don't lose this Ring of Fire Protection +5)


Edited by - Magmai Kai Holmlor on July 11, 2000 2:48:05 AM
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement