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 Wanet Telecoms Ltd 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 ahoodin

  1. ahoodin

    access violation in this function?

    Per, I applaud you for doing your best. >promoting the writing of clear and unobfuscated code on >several levels Noted.
  2. ahoodin

    access violation in this function?

    Well, If you are learning C and you are typing: char* foo, bar; You are makeing a fundamental mistake, because bar is now type char and foo is type pointer to char. However if you look at this line: parse(char *cSrc, char *cRet, int nSubstr, char* cDelimeter) You see that the first two...
  3. ahoodin

    access violation in this function?

    PerFnurt, I looked in K & R Vol2, and it did not cover this subject. Thank you for clearing that up. I ran some tests, and found no functional differences.
  4. ahoodin

    access violation in this function?

    >No man am not talking about two spaces ! >You wrote in your function declaration: >char* cDelimeter while semantically you may be right and this may mean pointer to char. >Try the following: char *cDelimeter and this may be pointer to an array of characters if I increment *cDelimeter++ in...
  5. ahoodin

    access violation in this function?

    >No you can't - if p is NULL, there is no strlen(p) Sorry I meant if ep==NULL then but p!=NULL then that could be the last field. >size_t strspn(const char *s, const char *accept); >size_t strcspn(const char *s, const char *reject); I will look at those now. >But watch out - they return...
  6. ahoodin

    access violation in this function?

    >Seems OK, except I would use strncpy instead of a while >loop Ok, I understand, but I like the while loop. Cant think of a reason not to do it. >This needs to be guarded against p being NULL as well I think if p == NULL but ep != NULL then ep could be set to p+strlen(p). That way the last...
  7. ahoodin

    access violation in this function?

    ty very much salem, good points. here is a new function based on a previous post of yours i believe. I added a little that I think works great. ahoodin void find_field ( char *line, char* cRet, char delim, int count ) { char *p = line; char *ep; int i,imax; for ( i = 0 ...
  8. ahoodin

    access violation in this function?

    I dont think that is the access violation. equivalently: This should be: char *cDelimeter this should really be: This should be: char *cDelimeter Two spaces after any colon, Thanks. Seriously lets not fight over it, it's pointless and borin. ahoodin
  9. ahoodin

    access violation in this function?

    I use this function to parse delimeted data. When it is used in a loop sometimes I wonder about it. Normally solid dialogs will blink a bit when using data returned from it. Can anyone see anything? TIA, ahoodin int parse(char *cSrc, char *cRet, int nSubstr, char* cDelimeter){//can use...
  10. ahoodin

    Script Controllable Host Mode program

    Anybody know of a good communications program that also happens to be freeware? Haven't had to use serial communications for a while and probably should have saved some software. I will be doing direct communications to COM1, with both Windows 98 and Windows 2000 and maybe XP in the near...
  11. ahoodin

    remote debugger debug info for explicitly linked dll

    The working dirctory is unimportant as the dll is explicitly linked in...this means no .lib required nor working directory. With the remote debugger I just dont get source on stepping in. ahoodin
  12. ahoodin

    remote debugger debug info for explicitly linked dll

    I am trying to remote debug my app, I can't get debugging information on a DLL that I have explicitly linked to the application. I need to step into that code! I get these errors: Loaded symbols for 'my.dll' Preloaded symbols may not match 'h:\GetBlock\Debug\GetBlock.exe'. LDR: Automatic...
  13. ahoodin

    Bitmap

    Well, you could just do an FTP. Look up FTP in the help files in MSDN, before you ask how. Do you want to rewrite the code to send a binary file with your own proprietary method? ahoodin
  14. ahoodin

    memory mapped files

    I have an NT4 Box that is running an application suite that communicates over a bunch of memory mapped files. These files however have special permissions set: Administrators (Special Access DPOQM) System (Special Access DPOQM) The writers of this application suite took special note...
  15. ahoodin

    registry editing software missing?

    I really am looking for REGDMP.EXE AND REGINI.EXE. Jocosta, thank you very much. ahoodin

Part and Inventory Search

Back
Top