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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mactonio

    calculate crc

    Does anyone have a simple efficient way to calculate the CRC(32 bits) of an ethernet packet. I just dont want to re-invent the wheel. thanks, mactonio
  2. mactonio

    read file on another server

    thanks ArkM, thats what i used.
  3. mactonio

    get computer name

    Hi, does anyone know what function i can use in my program to get the computer name that the program is running on. i was thinking of using getenv but there are no environment set for computer name so trying to find am alternative. thanks
  4. mactonio

    read file on another server

    Hi, Can anyone shed some light on how to open a file that is located on another server. The server that my program will be running on is on the same network as the server that i want to read the file from. thanks, Chris
  5. mactonio

    search file

    F.Y.I. - i found a much easier way using split function. this is what i used in my .NET application; using namespace System::Text::RegularExpressions; ... String* input = _T("DATASOURCE = ot4 7001 pfr"); Regex* regex = new Regex(S" "); // will be splitting on white spaces String* tokens[] =...
  6. mactonio

    search file

    can someone please give me a brief example on how to do the above with some code. This is a side task for me and I am really a novice in c++ and just havent had the chance to research what STL string is and how to use the find() and substr() functions as what cpjust suggested above. I know this...
  7. mactonio

    search file

    ok....so if i read in line by line, when i get to the line i want, eg 'DATASOURCE = ot2 7001' how do i check that the line contains DATASOURCE and if it does save the first variable that comes after the = sign, for example in the above i would want to store ot2....i know how to do this in...
  8. mactonio

    search file

    hi guys, what is the easiest and most efficient way to search a text file for a keyword. eg. I have a text file with contents like so mytext.txt: stuff stuff { more stuff .... } and again more stuff ... ... DATASOURCE = ot2 ... .... even more stuff ... .. and so on. What i want to do...
  9. mactonio

    Undefined Reference Error

    did you #include readopt.h in your file with the main program and also did you add readopt.o to your makefile
  10. mactonio

    Removing multiple blank lines from file array

    yon can just create another array like so: my @html_new foreach my $ln(@html) { unless($ln eq "\n" ) { push @html_new, $ln; } } now @html_new will have all the lines except blank lines
  11. mactonio

    red hat or fedora

    yeah, that was a mistake, didnt know they had a linux forum, so after posting in here I thought the appropriate place for the question is in Linux and didnt know how to delete this thread
  12. mactonio

    linux or fedora

    thanks guys
  13. mactonio

    linux or fedora

    hi guys, is there a call that i can make that tells me what os i'm using...for example 'redhat or fedora core' thanks, Chris
  14. mactonio

    red hat or fedora

    hi guys, is there a call that i can make that tells me what os i'm using...for example 'redhat or fedora core' thanks, Chris
  15. mactonio

    initialization error

    thanks cpjust, that worked.
  16. mactonio

    initialization error

    hey guys, i'm getting this error from my .h file: in-class initialization of static data member of non-integral type 'static const string' here is a part of the code: #include <string> .. .. class Class{ static const string mystring = " xox "; .. .. } thanks in advance
  17. mactonio

    action events

    thanks for all your ideas......Dian that is what i was looking for.
  18. mactonio

    action events

    whichever one would be fine I guess, I just want to trigger the action listener. thanks for the fast reply
  19. mactonio

    action events

    Hi guys, I have a GUI with some buttons and combo boxes, they are all tied to an action listener and thats working fine, what i want to know is, is there a function that I can use to trigger an action, for eg. a function call that makes the program thinks a button was pressed, even though it...
  20. mactonio

    How to grab every 5th row of an array?

    need to declare it with my before using it, eg my $trip;

Part and Inventory Search

Back
Top