we are not able to reproduce the issue using windebug. The debugger is not breaking.
Could you please suggest what can be the possible reason, because after attaching the process to debugger the issue is not reproducible.
From the above it's impossible to guess, but you need to look at all the parameters being passed to the WinMain() function to see if they are valid. Given the frequency of this occurring in your programs you may like to check that you are not breaking the framework rules somewhere in your program setup.
One of these days I'm going to think of a really clever signature.
Changing the function call is not enough. The Newcomer's rule "Don't touch the UI" holds here (see "Worker Threads"[^]). You have to notify (with, for instance, a custom message) to the main window that something changed (the UI needs an update), and let the main window (that is the GUI) thread make the actual update.
I found this article How To Enter Safe Mode Using the System Configuration Utility[^] which tells you how to boot into Safe Mode with networking.
You could do this yourself by editing the boot.ini file and adding /safeboot:network and then restart the machine. You would off course needs the rights to edit the boot.ini file.
Thank you for taking the time to look into this. The method you suggest has no reason not to work. The problem is that if I edit the boot.ini, it remains edited and keeps the user from starting their computer normally (i think). Of course I can add the reverse button in my application, but it requires more action from the user. I need Windows to start normally after it first restarts in Safe Mode with Networking. I think a solution is to tell my app to start with Windows, only once, so I can revert that command automatically once it starts. Now only if I can find out how to do that
There are several registry keys (http://support.microsoft.com/kb/314866[^]) where you can place your program to start after a reboot.
The article mentions that you can use the Run Once key to even start a program in Safe Mode by adding * in front.
I am trying to learn C++ and particularly MFC. This is what the project is about more than anything. This is why my question is not specifically how to start windows in SMwN, but if there is a way to do this in C++/MFC via a button, so that it does what I want it to do. I am a total newbie but with a big appetite for learning.
I'm using Windows SDK for building an applications without Visual Studio
I've tried to build boost lib using "bootstrap.bat" from installation folder but got an error:
"program can't start because mspdb100.dll is missing..."
I see that dll is from VS installation.
do you how I can build boost without VS but using WinSDK free commandline compiler tools only?
Last Visit: 31-Dec-99 18:00 Last Update: 16-Sep-14 12:51