Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Dear all,

I have develop a win32 c++ project in vs2010, win7 OS, for short call it 'Hello world'.

In debug mode of vs2010, the project work fine; Also, double click 'Hello world.exe' which was generated by debuging, still work fine.

Here's the problem context:
Using task scheduler or similar tools to auto run 'Hello world.exe'.

'Hello world.exe' was launch, no error msg , but:
1. All log files was not generated.
2. From output of the GUI, variables, such as g_counter should be larger than 0, but still <=0;
...

for short, function OpenLog() and g_counter++ was go through, but take no effect.

Tutorial like:
http://www.sevenforums.com/tutorials/67503-task-create-run-program-startup-log.html[^]

http://www.sevenforums.com/tutorials/12444-task-scheduler-create-new-task.html[^]

http://www.sevenforums.com/tutorials/193743-elevated-program-shortcut-create-standard-user.html[^]

can't help with the problem.

Sincerely,

Menson.
Posted
Comments
Richard MacCutchan 27-Nov-14 2:56am    
Please post the actual parts of the code that are not working, any associated error messages, and a full explanation of the problem. Since this is a problem with some code posted at another website then that is probably the best place to get help.
Richard MacCutchan 27-Nov-14 5:15am    
I have no idea what that is supposed to tell us. You need to do some more debugging to find out where the problem lies. And please use the Improve question tag to update with information about your code.

1 solution

you will have some rights issue, depending on what you do. Use complete pathes and non-admin API. Run your prog under a guest account.

Which API doenst work?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900