Question

I have a win32 program, when run manually, it display a message in WinMain, but when I put the same program under registry (Run) so that when the PC reboots, it will run automatically, the message will never appear (but the program run normally).

Anyone knows why there is a difference between starting the program manually (by clicking the exe file) and automatically (via Windows Registry)?

Thanks

Clement

Was it helpful?

Solution

It's probably too soon to display a message at the top of WinMain because you don't have a window yet. Can you wait until you receive your first WM_CREATE message?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top