Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by btaber

  1. btaber

    Windows Service Combination

    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...
  2. btaber

    Hacking somehow?

    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...
  3. btaber

    System.IO.DirectoryInfo Path Limit

    Interesting idea, just might work... I will have to try... thanks.
  4. btaber

    System.IO.DirectoryInfo Path Limit

    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?
  5. btaber

    Dismounting Store

    Beautiful!! Thanks!
  6. btaber

    Dismounting Store

    Is there a way to dismount a store programatically or through a command line utility?
  7. btaber

    Handling error results

    Beautiful!!! that is what I was looking for... I did not realize I had to specify the handle to LoadLibrary... Thanks xwb!
  8. btaber

    Handling error results

    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...
  9. btaber

    Handling error results

    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...
  10. btaber

    Proper string comparison

    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!!!
  11. btaber

    Proper string comparison

    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...
  12. btaber

    Proper string comparison

    Sorry about the lower case... just putting a string in there... I am not much of a C programmer, how would I use std::string?
  13. btaber

    Proper string comparison

    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...
  14. btaber

    Windows service started accidently

    Yea, I figured I would not be able to start another program. Can I at least display a msgbox with better information to the user?
  15. btaber

    Windows service started accidently

    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...

Part and Inventory Search

Back
Top