|
Dear Mike,
I am trying to do the same, but using CREATE_NEW_PROCESS_GROUP will not make the launched process be a direct descendent of "explorer.exe". Is it because the calling process that calls CreateProcess() is not a parent?
What I mean is, imaganing the following process tree from top to bottom.
explore.exe-->A.exe->B.exe
The calling process is "B.exe", which calls CreateProcess()with CREATE_NEW_PROCESS_GROUP to create "C.exe". And I found "C.exe" becomes a child process of A.exe, instead of "explorer.exe"
Is it normal? Is it possible to move "C.exe" the be at least the level as "A.exe"?
Thanks in advance,
Johnny
|
|
|
|
|
Thanks for your patience....
I was looking at the call stack to my very resiliant problem and I noticed that the dll causing the problem is uxtheme.dll. I've heard in my travels that this is a dll for themes and third party theme apps use an edited copy of this dll to get their themes to use the API for themes. Now, I recently stopped using WindowBlinds (a themeing program) around when this problem began. However possible, this could be giving me the problems. I just now started up WindowBlinds and ran my program and guess what, no crash.
My first feeling is anger and extreme confusion as to how a dll for themeing can throw a wrench in the gears. My next feeling is that I don't care a lot why because I've had this on my mind for too long. How can I get my app to work without WindowBlinds installed, i.e. with the default uxtheme.dll?
|
|
|
|
|
Hello,
I am trying to use a DLL file which is compatible with C and C++.
When i run my program i get the following error:
"The specified module could not be found."
I used the software "Dependency Walker" to check the DLL and i got the following error for the file MPR.dll which i think it's a system file:
"Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module."
Can someone tell me what am i doing wrong?
I have no idea how to solve this.
Thank You Very Much,
Miguel
|
|
|
|
|
It's Show your dll is itself depenedent on some other dll for proper functioning. i.e. let us nderstand by that by this diagram
your APP----calling DLL-> MY.dll -----Which is dependent on---> Dependent .dll
now there is no Dependent.dll in your computer, so your my.dll can't get required function from dependent.dll to function properly.
For solving this problem , open the dll in the DEPENDS , check for missing dll for your dll.
"I Think this Will Help"
[Vote One Here,.....]
<h5
alok="" gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
I want to be able to write to multiple files all at once.. this is going to lead me into writing to multiple USB devices at the same time..
Any idea on how to go about implementing simultaneously file output?
Thanks
|
|
|
|
|
Read up on 'IO Completion Ports'.
About as simultaneous as you can get (at elast your thread is not blocked waiting for the IO to complete).
|
|
|
|
|
Dear Sir
I wounder to know the mfc that used to open files (or to run exe files) within the VC++ project.
Thanks for Assistant
|
|
|
|
|
Hi all,
I am working with ADSP BF533 who's software is very much similar to VC++.
Let me explain the out line of my code and then tell my problem
----------------------------------------------------------
void main(void)
{
all the innitializations.....all other functions are called here
while(1)
{
for (i =0;i<100;i++)
-----
-----
if( a cetrain condition is met)
{
fp = freopen("", "a+", stdout);
printf("\n\r================\n\r");
printf("%f\n\r",azm);
fclose( fp);
}
}
}
-----------------------------------------------------------------------------------------------------------------------
so I don't think I can open and close the file outside the loop(as all my code is there inside "while(1)" loop.(do let me know if there is a possibility to open and close a file only once even in this situation,If i can do this then my problem is solved)
also I have noticed that I am able to print as many times as I want before closing the file once.
but after I open and close the file for the 1st time,i am able to open the file for the second time but I am not able to close the file for the second time....
here i am trying to send the data out from the processor's memory back to the "terminal screen"....through the UART
so tried to debug the code then i realised that for some reason the UART_LSR registers is not being reset to 0x0060 as it should be done after each transfer is complete.....this situation araises only when i try to close the file for the second time (obvisouly after i open the file for the 2nd time)...
SO NEED HELP FROM THE EXPERTEIS ...
thanking you all in advance and hope to hear from u all soon
with best regards,
shwetha
|
|
|
|
|
why the COM can not be deleted even it has been unregistered?
windows shows message "it is used by system", how to delete the COM without reboot system?
includeh10
|
|
|
|
|
|
|
we can run an app invisiblely by
WinExec(app, SW_HIDE)
but how to run the app from register invisiblely?
i.e. double click a file extension to load the app invisiblely?
thx
includeh10
|
|
|
|
|
Hi i have one CString which has text in it, i wish to scan thsi text and replace all the "\" with another charature.
However every time i try to search the string looking for the "\" using strchr etc all i get is an error message saying
error C2001: newline in constant
any help on how to slove this?
|
|
|
|
|
it is "\"", not "\"
use strchr(p, '\"') is better
or CString.Replace() function
do you mean "\\" or '\\'?
|
|
|
|
|
i'vew tried both Replace() and strchr and they dont find the \ in the string, i tried str.Replace('\"', 'A') and it did nothing, if i change the '/"' to another letter in the string it replaces them perfectly.
any idea whats up?
thanks
|
|
|
|
|
the \ is '\\' in code.
includeh10
|
|
|
|
|
Because "\" is an escape character prefix you have to write "\\" if you mean the "\".
You can also escape other characters with the single \, e.g. \n \r \"
Regards Konrad
|
|
|
|
|
i have a bat file which runs when system starts (i add it in register of "...\Microsoft\...\Run").
it runs properly.
my Qrestion:
I hope dos window launched by the bat file is invisible (hidden or similar), so users will not see the dos window when system starts.
how to do that?
thanks
includeh10
|
|
|
|
|
mkae a shortcut to the batch file. go the property of the short cut and tell it to run minimised. then tell windows to run that shortcut in startup. that should slove your problem
|
|
|
|
|
I need a map where I can find the value to a key and also a key to a value. Since I can't find any article on Codeproject regarding this issue, I ask this question here: Is there a simple solution to this? My idea was to simply use two CMaps: CMap<KEY, KEY&, VALUE, VALUE&> and CMap<VALUE, VALUE&, KEY, KEY&>. Is there a simpler approach? Thanks for any help.
Konrad
|
|
|
|
|
|
Isn't there a simple MFC class somewhere out there as extension to CMap, because I don't want to use the huge boost library?
Konrad
|
|
|
|
|
I've not come across one and yes I too am put of by the huge Boost library. I vaguely recall coming across a simpler solution somewhere but I can't think where. Maybe on CodeGuru?
Kevin
|
|
|
|
|
Nearly all of Boost is in headers and it does not add lots of code to your app. The fact that it is large is irrelevant IMO. MFC and STL are also large.
I would definitely recommend using STL and Boost wherever possible instead of the MFC Containers (which I used to use heavilly).
Boost.MultiIndex will do what you want and it looks quite elegant. Of course you can use two CMap's or two STL map's but why would you want to.
Make the move to STL and Boost and you'll never regret it.;)
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
Neville Franks wrote:
The fact that it is large is irrelevant IMO.
Well, I've only comparatively recently moved from dial-up to broadband. With dial-up it just wasn't worth it. Now I've got broadband it's more psychological.
Neville Franks wrote:
I would definitely recommend using STL and Boost wherever possible instead of the MFC Containers (which I used to use heavilly).
Recently I've been more focused on .NET,so I've not had much incentive to look into Boost. When I do get to do C++ it's invariably maintenance work on code that's barely heard of STL, yet alone Boost! (For that nmatter it's often barely heard of MFC's data structures!) I just don't think it would go down too well if I downloaded Boost just to do maintenance work.
However, for new work or new extensions to MFC apps. I tend to go for STL containers nowadays. Still, I do intend to give Boost a try at some point.
Kevin
|
|
|
|