|
I have a Reg.exe file in my projet folder .
Could you tell me what is wrong with it to run exe file.
CreateProcess(NULL , // No module name (use command line).
_T("Reg"), // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
FALSE, // Set handle inheritance to FALSE.
0, // No creation flags.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
NULL, // Pointer to STARTUPINFO structure.
NULL );
|
|
|
|
|
Try with this code
PROCESS_INFORMATION l_ProcessInfo;
STARTUPINFO l_StartupInfo;
ZeroMemory(&l_StartupInfo, sizeof(STARTUPINFO));
l_StartupInfo.cb = sizeof(STARTUPINFO);
l_StartupInfo.dwFlags = STARTF_USESHOWWINDOW;
l_StartupInfo.wShowWindow = SW_SHOWMAXIMIZED;
CreateProcess(NULL,
_T("e:\\123.exe"),
NULL,
NULL,
FALSE,
DETACHED_PROCESS,
NULL,
NULL,
&l_StartupInfo,
&l_ProcessInfo);
|
|
|
|
|
this code giving exception.
|
|
|
|
|
I dont have any compiler to test this code.
|
|
|
|
|
exception from getlasterror is:
"The requested lookup key was not found ini active activation context"
|
|
|
|
|
|
pther wrote: how to run a exe thorugh code.
By reading here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I have 2 Edit controls on a page which uses a same class/implementaion. If any value is changed in any one these Edit boxes, a Button gets enabled.
Now the problem is if i double click on the text to select the whole text and then press delete for the first control, the button is enabled. But for the second case, it is not enabled sometimes.
I defined a method OnChangedCtrlData() which handles this event. If the operation is performed for first control, this method is called but when it is done dor second time, the method is not called. This happens sometimes(not all the times)
Please help me in solving this issue.
|
|
|
|
|
can you post a sample code here?
|
|
|
|
|
Actually, i'm using Client specific SDK in which they defined their custom classes to implement the functionality.
So, even though i post a sample code u cant understand. If you please reply keeping in view MFC, i can corelate.
Thanks
|
|
|
|
|
Which notification message are you using?
- NS -
|
|
|
|
|
I m working on a project in which I need to load the dicom file, I want the file format (sturcture) of a dicom file.
syed
|
|
|
|
|
Will this[^] helpful ?
Regards,
Paresh.
|
|
|
|
|
can i have a sample code of loading a .dcm or .dicm file plz
|
|
|
|
|
I do not have the sample code for reading the DICOM files. However, there are third party tools available for reading the DICOM files. You can try out those libraries.
Regards,
Paresh.
|
|
|
|
|
Use dcmtk toolkit from OFFIS
|
|
|
|
|
Hello everyone,
I remembered delete[] is implemented through operator overloading, but I am not quite clear.
Could anyone recommend some links about how delete[] is implemented so that I can learn and refresh my memory?
thanks in advance,
George
|
|
|
|
|
Hi,
I have 2 controls out of which one control's enable/disable state changes.
If this control is disabled and then if its accelerator key is pressed, the focus goes to the next enabled control. Could any one help me to figure it out...
|
|
|
|
|
I don't understand the problem, if a control is disabled and you press TAB it has not he focus.
I find logical what is happening to you. Where is the problem?
A disabled control can not have focus, so the next available possibility in the TAB order (press CTRL+D in your resource editor to see it) will get the focus that your control may not have, and if no control is available... then the focus will be at parent window.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Hi,
the problem is not with tab order. I have a Edit control whose Accelerator key is Alt + I. Now if the control is disabled and on pressing ALT + I, the focus should be on the window but should not go to any other control.
But in this case, it is going to the next enabled control.
|
|
|
|
|
That's how windows works - you cannot set focus to a disabled control.
Judy
|
|
|
|
|
Here in this case, i dont want the focus to set to any other control.
|
|
|
|
|
Then you've got a problem that I don't know how to resolve because the focus has to be set to some control when a window receives focus. It's the nature of the beast - it has to be somewhere.
Judy
|
|
|
|
|
Then when you press your hot key ALT+I, check if your control is enabled. If not... Set the focus manually to the parent window/dialog/frame, so you won't have the focus in any other control
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Hey Ppl,
I have 6 classes derived from CASyncSocket namely CMySocket1,2...6
Each of these MySocket class has its own OnReceive() function.
Sockets are used for TCP/IP connection and there are 6 'Connect' buttons on the front-end. Application is an SDI app. using CRecordview class.
Now what if more than one OnReceive() events get triggered at the same time?
There would be a case of data gone missing, isnt it? Alternatively how can i put these sockets in different threads so that they become independent of each other??
|
|
|
|