Because i want to read a configuration file, which is the same path as in the .exe ..
Type: Posts; User: cppnewbie81
Because i want to read a configuration file, which is the same path as in the .exe ..
Ok for now let's forget about the Linux part (Linux is for future consideration) ..
Im using Microsoft Visual Studio .Net ... If there's no standard function for me to get the application directory...
Hi, sorry if it's been unclear ,,
what i mean is is there any function for me to Get the current .exe directory path ? For example if my .exe store in C:\Program Files\MyProgram, call this function...
Does anyone here know how to get the Application Directory (regardless windows / linux environment) ?
Mind to elaborate ?
Can anyone tell me what's the difference between Thread and Process ? IN what circumstance i should use Thread ? and in what circumstance i should use Thread ?
Yep. That's exactly what i want.
See, I have a console application which is running perfectly before, therefore I put in what is already running inside "ServiceMain" function. And it seems to me...
Hi, according to the article :
bRunning = true;
while (bRunning)
{
// Put what you want the service to process here
}
Hi,
Thanks for your suggestion.
I comment out the code so it looks something like this :
while (bRunning)
{
// The problem occur here, if i comment out all the...
I create a win32 service according to the instruction as in following URL:
http://www.codeproject.com/system/windows_nt_service.asp
I am able to install and start the service perfectly without...