You can get the handle of the primary thread of the newly created process from the LPPROCESS_INFORMATION.
By using the handle of the Window, you can enumerate all the child windows by using the FindWindowEx() API.
[ It is possible to represent everything in this universe by using 0 and 1 ]
i have created an exe and a dll.. the dll will be loaded initially.. it's an MDi application.. i would like to update the main menu whenever a window is opened... let me know how o handle this situation..
The menu's displayed in the MDI are kept in the CDocTemplate::m_hMenuShared member var of the CDocTemplate objects you registered in the InitInstance of your application. If you want to modify these, you need to pass the HMENU in that variable to a function in the DLL which will modify the menu and add/remove the required menu options.
I am developing with Visual C++.NET on XP, and want to build a version to run on Win98. The software crashes on startup in 98.
Does anyone know where I can look for information on this?
I am using the Setup utility and am not sure if I need to include different versions of the C Run Time libraries for the Win 98 install. At the moment I am installing MSCVR70D.dll and VC_CRT.msm because these are the detected dependencies.
MSCVR70D.dll is a debug-build library, is this the intent? Do you install debug version of your application? You may send me the EXE and/or the installation package if you want me to resolve this problem.
I want to rename a directory which is not empty.But I met a very strange problem.The function run well sometime and failed sometimes?
Whe it is failed,there will be a shared error.how can I resolved it?I am eager to do this job.Thank you very much.
am a newby to c++ and need to write a program with a 1-D array that generates random numbers. the users must be able to specify the number of random number (is this possible?) and the program must then generate "x" random numbers (negative numbers included). any help would be truly appreciated.
I'm working on a project that has an About box with a System Info tab. The current code to retrieve Windows version is a few years out of date, and only covers 3.1, 95, 98, and NT; my XP shows up as NT. How can I update this to also correctly show Me, 2000, and XP?
at the release of VS.NET 2003 they demo'd how you could use the IDE form editor with C++ projects now, including all that cool anchoring stuff. My understanding is that this is only available for managed C++ projects, not for MFC. Is this right?
Hello...I have a form with some edit controls boxes and buttons. There are two modes (1 and 2). In mode 1 some edits controls should be available for editing, and a button visible and available; and other controls should be unavailable for editing and another button not visible.
Changing to mode 2 invert the availability.
My problem is that I do not know if this is possible to do it at runtime. If this is possible, how do I do it?
I know where to put the code to enable and unenable the controls, but I would like to know what are the visual c++ statements to do this.
Can anyone give me a hand?
What I meant is how can I change the edit control styles and button control styles, specifically WS_TABSTOP and WM_ENABLE? This at run time
Eric Manuel Rosales Pena Alfaro
Unversity of Essex
Colchester, CO4 3SQ
I'm having a problem with the WSAAccept()command on MSVC 6.0, using ws2_32.dll. Using the code below (before calling listen) it goes something like:
int setsockopt(mySock,SOL_SOCKET,SO_CONDITIONAL_ACCEPT, (const char*) val, sizeof (val));
The problem is that it just won't compile, I've tried changing the version, using winsock1 etc. The compiler just doesn't recognise the function call, like it isn't in winsock2, but I know from a Microsoft book ("Writing Secure Code") that it is. I'm very confused!?!
Once again thankyou in adv.
Last Visit: 31-Dec-99 19:00 Last Update: 3-Dec-23 7:03