Is it possble to have a windows service project combined into a windows application? I currently have 2 executables for 1 program, the main application program and a second exe that is installed as a windows service. I was hoping to combine them into a single executable...
I have seen in my error logs attempts to execute programs:
sh: /usr/local/bin/which: No such file or directory
sh: /usr/local/bin/echo: No such file or directory
sh: /usr/local/bin/uname: No such file or directory
sh: /usr/local/bin/echo: No such file or directory
sh: /usr/local/bin/id: No such...
I am hitting a wall with System.IO.DirectoryInfo. I have folders that run beyone 248 characters and the limit for it is 248. Is there another function I can use to read my folders?
The API for the dll says that I can use the standard FormatMessage API to get the error text. The result codes are custom codes, not windows codes. The codes are all defined in a .h file, but I am not sure how to use them. FormatMessage has an option of FORMAT_MESSAGE_FROM_HMODULE, and I have...
First of all, I am not much of a C programmer..
How can I do a lookup of error text based on a hex result? I need to modify an existing prog to get some better information from errors returned. Errors from a dll are returned in hex, and I have a header file that containes all the error...
I can't believe how simple that was... I didn't realize _strupr_s changed the original value, I thought it returned the uppercase value.... as they say, RTFM!
THANKS!!!
It is written in C (I think), trying to check command line params:
char szListStores[12];
strcpy_s(szListStores,12,"/LISTSTORES");
if(argc==2)
{
if(0!=strcmp(_strupr(argv[1]),szListStores))
return -1;
ListStores();
printf("\n");
}
I get warnings that it is unsafe to use _strupr and I...
I am current using strcmp(_strupr(argv[1]),"test"), but is considered unsafe, and is suggested I use _strupr_s. What would be the proper code to use _strupr_s, because strcmp expects char, and _strupr_s returns errno_t...
I have a windows service that I was wondering if it is possible to display a custom error dialog if a user attemts to start the service exe from the command line by accident. As of now is shows "cannot start service from the command line or a debugger bla bla bla". Can this be avoided, maybe...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.