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 bkrike 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 rhpingwoo

  1. rhpingwoo

    How to get all the substring in a long string?!?!

    I can perfrom the task with the follwing code, because i know the file will only have the string i wanted to count appear once in each line. Any suggestion on how i can do it if the string appear twice in 1 line?? as Salem mention above I will be expecting the count=2 If I am looking for...
  2. rhpingwoo

    How to get all the substring in a long string?!?!

    i am expecting to get 2
  3. rhpingwoo

    How to get all the substring in a long string?!?!

    am i on the right track?? As i am trying to get each line of the file one by one, then break them up into seperate string, and then do the comparsion!! Is there other better/faster way of doing this?
  4. rhpingwoo

    How to get all the substring in a long string?!?!

    Hi, I am trying to read a txt file. And make a count on how many times certain string appear in the file. But i am not sure how to break the whole line of the text into each individual string to compare it. Help. Here is what i have for now: // reading a text file #include <iostream.h>...
  5. rhpingwoo

    Hello, I have trying to open a d

    Hello, I have trying to open a database file and read the data in the file. Currently, I can get the filename of the database file, but i knew there is a different of reading file between a database file and a text file. Any existing source code available?? Thanks for advance. Raphael
  6. rhpingwoo

    Can I use .NET dll in C++??

    Hi Everyone, Just a short question, is it possible for me to call/use a .NET DLL in a Visual C++ solution?? Thanks, Raphael
  7. rhpingwoo

    How to convert from a variable in double to long??

    silly me. I forgot. Problem solve then. raphael
  8. rhpingwoo

    How to convert from a variable in double to long??

    Hi, I am trying to convert a variable from double to long. Anybody have any idea of how to do this without losing any of the number after the decimal point?? I have try to first convert it to a string using _fcvt(), and then from string convert it back to long using atol(). But it doesn't...
  9. rhpingwoo

    How to Rename and delete a file.

    found it...just use rename and remove.
  10. rhpingwoo

    How to Rename and delete a file.

    Hi, Just wondering, is there any existing library which allow me to delete and rename a file. Just say I have two file &quot;a.txt&quot; and &quot;b.txt&quot; in my directory. How can I delete a.txt and rename b.txt to a.txt??? Raphael
  11. rhpingwoo

    How to convert a char* to a LPSTR???

    what if now i want to convert a const char* to LPSTR??? It give me error message saying that cannot convert parameter 1 from 'const char *' to 'LPSTR'.
  12. rhpingwoo

    How to convert a char* to a LPSTR???

    Just make it a bit more clear. I had a parameter pass it to a fuction and its type is const char*, and that parameter contain the path and the filename of a file. Is it possible for me to change that to LPSTR?? For example int Change( const char* file) { }
  13. rhpingwoo

    How to convert a char* to a LPSTR???

    Hello, Does anybody know how to convert a varaiable with type char* to a type &quot;LPSTR&quot;??? Thanks, raph.
  14. rhpingwoo

    How do I use other .dll files's function for my current .cpp program

    how do i call the function in lib then??? Just like all the other class?? If the function is call &quot;Checking&quot;, so i just say lib::checking() ?? raph
  15. rhpingwoo

    How do I use other .dll files's function for my current .cpp program

    Hello, This may be a very silly question to some people, but I am new to visual C++ programming. Can someone tell me how I can include the function from an old .cpp program which generated a .dll file, in my current .cpp program. Just said there is a fuction call &quot;Checking&quot; in...

Part and Inventory Search

Back
Top