|
led mike wrote: CreateProcess functions correctly
Define "correctly"...
|
|
|
|
|
|
|
Isn't that an endless loop?
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Obviously, CreateProcess is an impecably written API function. I was not going to quarrel on this issue at all
Thank you for the advice. Unfortunately, where I am right now, it is not possible to do the test. I remember that I did it earlyer today with little success but I will double-check it on Monday, just in case.
|
|
|
|
|
Bogdan Rechi wrote: Obviously, CreateProcess is an impecably written API function
I hope so....I rely on it.
No argument here, just trying to provide a possible solution to something I can't reproduce
here
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Bogdan Rechi wrote: ERROR_FILE_NOT_FOUND, which is not the case
Are you absolutely sure the pathname is specified correctly?
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Positive. I can copy-paste it and run it from the console.
It's the Pascal-FC compiler (http://www-users.cs.york.ac.uk/~burns/pf.html[^]) for Windows 2000 (and newer). A small tool for solving theoretical multithreading problems I am trying to build a GUI for...
|
|
|
|
|
Then you need to do this:
BOOL b = CreateProcess(NULL, _T("d:\\path\\app.exe"), NULL, NULL,FALSE, 0 /*CREATE_SEPARATE_WOW_VDM*/, NULL, NULL,&si, &pix);
"If the executable module is a 16-bit application, lpApplicationName should be NULL, and the
string pointed to by lpCommandLine should specify the executable module as well as its arguments."
Make sure you quote the pathname if there's any spaces in it.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Bogdan Rechi wrote: BOOL b = CreateProcess(_T("d:\\path\\app.exe"),
Is the path correct?
Bogdan Rechi wrote: Do you know the workaround?
There's nothing wrong with the code snippet you've provided.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I've just run the same code on an old Win' 98 system and, indeed, it works perfectly.
It seems that it only fails under the Win' XP...
|
|
|
|
|
Using CreateProcess as documented[^] for 16-bit applications didn't help any?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
From the documentation on the lpApplicationName parameter (the first one):If the executable module is a 16-bit application, lpApplicationName should be NULL, and the string pointed to by lpCommandLine should specify the executable module as well as its arguments.
|
|
|
|
|
Ok, thank you. I will change the code as it is required.
|
|
|
|
|
my precedure would like to open a file which in another computer, but the computer has password, how to deal with that?
|
|
|
|
|
Knowing the login and password?
Is usual that net-resources have password, if not...
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?
|
|
|
|
|
I made a simple program which when you press the up key shows up, left key shows left etc.
But how can i make it work with two keys at once? Like up and right (which would then display up and right..)
Is there some not too hard way to do this?
thanks all!
(MS Visual studio 6, program is a windows console application with mfc)
//Johannes
|
|
|
|
|
AFAIK, you will get one event when a key is pressed and another event when the key is released.
Get those events and keep track of what key(s) are currently pressed.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
with what function do i get that?
ive tried _getch, but it only catches one of the keys as some keys some dominant over others.
thanks
//Johannes
|
|
|
|
|
WM_KEYDOWN or WM_KEYUP isnt helpfuls?
|
|
|
|
|
You may poll what keys are pressed by calling ::GetAsyncKeyState( <virtual key code> ) .
For virtual key codes you can use VK_LEFT , VK_RIGHT , VK_UP and VK_DOWN for the arrow keys.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
GetAsyncKeyState(); seems to work perfectly so far!
thanks all of you!!!
Just a quick question:
i can do int data = 0xF; but how do i do the same thing with binary?
//Johannes
|
|
|
|
|
Johpoke wrote: i can do int data = 0xF; but how do i do the same thing with binary?
In short: you can't.
You may write integer values in your source code using decimal, octal or hexadecimal notation.
For decimal notation you have no prefix and use digits from 0 to 9, e.g. 255 .
For octal notation you prefix the number with '0' and use digits from 0 to 7, e.g. 0377 .
For hexadecimal notation you prefix the number with '0x' and use digits from 0 to F, e.g. 0xFF .
Each example represents the same value but with different notations.
Regarding how to read and interpret the hexadecimal notation...
Each digit represents four bits, a nibble, which can hold values between 0 and 15. You simply have to get it into your spinal cord how to represent a nibble using the different notations, e.g. that 1100 in binary equals 0xC in hex which equals 12 in decimal.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Hi,
I am trying to notify the user about events of my application by placing an item in his outlook inbox. Unfortunately, up to now this is just a nice plan.
Is there a direct way to create pseudo-E-Mails in the Inbox? I cannot send a real e-mail, as notifcations have to be instantaneous.
It would be great if you could get me started somehow. I haven't programmed anything that accesses Outlook so far.
Thanks a lot.
Dominik
|
|
|
|
|
I have several Edit boxes in my dialog application..
Can any one tell me how to create tool tips for each of the edit boxes...
Proud To Be an Indian
|
|
|
|