Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
I am trying to call the DisableProcessWindowsGhosting() method defined in user32.lib. But, it is giving linker error: [exec] dobjedit.obj : error LNK2001: unresolved external symbol __imp__DisableProcessWindowsGhosting@0. The library is included and linked in the project. Can anyone please suggest the solution.
I have a win32 application in that on EditMolecule Dialog there are three tab controls.First tab control opens atom dialog. On atom dialog, there is a custom combobox control, while user clicks on the dropdownlist of this control and waits for more than 5 seconds(in Windows7),the EditMolecule window becomes nonresponsive. The same application works well in windows xp. Can anyone please suggest the solution to this problem. Thanks in advance.
Your program has a platform specific bug somewhere and you have to debug it. The info you provided is far less than what needed to find the bug. This bug can be anywhere in your program maybe it isn't gui related at all.
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.
Hello, 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?
As a note there is a boost forum at the boost site.
But possible solutions 1. You do have the library. So find it and then set the lib path. 2. You do not have the library but there is a MS source for it. Find it, download it, set the lib path. 3. It only exists in Visual Studio. a. So buy Visual Studio b. Find the code that uses that library, and use a macro to remove it. Remove the lib dependency.
Has anyone written or seen any code to produce a surface plot or isometric (xyz) bar graph, preferably for 10000+ points, in a view? I've got a few ideas, but if the work's already been done, clearly it'd save a lot of pain, and I'm lacking ideas at the moment on the best way to make the plotting of 10000+ points efficient, given that only a fraction of them will effectively turn into pixels on the screen.
Any help would be hugely appreciated.
He is no fool, who gives what he cannot keep, to gain that which he cannot lose.
I've seen a openGL tute that makes a mesh then sticks a texture-map on it before displacing the flag with a sine wave along it's length.
It seems to be about the same thing, just that rather than using the sin function combined with a points distance from the flag origin to calculate the displacement, you apply your data-set to the dispalacement of each point.
You could just use Gouraud shading to interpolate the colour (instead of texture mapping, that is) between each point in the mesh, setting the colour of each vertex in the mesh based on it's height.
Hope you enjoy the series as much as so many of the rest of us already have. One day you're playing with a triangle, the next with particles the day after you're trying to remember what you were supposed to be doing away from the computer.
strstr() finds a substring in a string. use it to search inside string elements.
char mainString="string to search";
if ( strstr(mainString, strstr_sub_string_to_search)) puts("strstr() found Substring in main string\n");
else puts("strstr() did not find Substring in main string\n");
You are passing a string using the VARIANTpcVal member. Strings are usually passed using the bstrVal member with type VT_BSTR. When using MFC, you may use the COleVariant type which creates a VT_BSTR when passing a string:
Another error may be the name of the used function oBookmarks.Item(). Please check if this functions exists. If you have imported a typelib, see the generated header file. With C++ OLE automation, many item access function are named GetItem() and SetItem().