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 strongm 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: *

  • Users: A1METALHEAD
  • Order by date
  1. A1METALHEAD

    clearing the console

    WoW, thanks :D you solved a TON of progbs i was having!!! thanks again!
  2. A1METALHEAD

    clearing the console

    uh... can someone please replay? im looking for the same thing...
  3. A1METALHEAD

    .net "cant open file because it is being used by another process."prob

    ok, i found out what happend... it dosent like having two filestreams at on the same file at a time.. so, i just made an ArrayList() of all the filestreams that i ever opend, and when i need that file, i just take them outta my ArrayList()... thanks anyway!
  4. A1METALHEAD

    .net "cant open file because it is being used by another process."prob

    hello! i just have a quick question: why would it come up with a "cant onpen file because it is being used by another process" exeption? i have some code (much to0 big to post here) that makes one filestream (set to 'index.dat'), then one binaryreader from that stream. the reader reads...
  5. A1METALHEAD

    cstring to char*

    hello agin... it turns out it dosent work... and i think it has to do with my member vars not working rihgt... im using MFC with VC++2003.net, and i added the var by right-clicking the controll, selecting value on a drop-down list, then typing in the var name... but, no-matter what i do, the...
  6. A1METALHEAD

    cstring to char*

    'k... thanks agin!
  7. A1METALHEAD

    cstring to char*

    ok... i got it... sorry for my stupidity... i forgot to initilize the ip string in the constructor... sorry! and thanks for all yourt help!
  8. A1METALHEAD

    cstring to char*

    oh! sorry, here is my decleration: class winChatApp { public: winChatApp(int,char*); ~winChatApp(); bool isSetup; char* rev(); bool send(char*); private: int itsSocket; int portNum; int bytes; char* ip; char* lastSnd; char* lastRcv; int startupClient(); void shutdownClient(); }...
  9. A1METALHEAD

    cstring to char*

    well... thanks both of you, but i get "Unhandled exception at 0x004a3520 in chat client.exe: 0xC0000005: Access violation writing location 0xcdcdcdcd."... here are my locals: - this 0x00a731d0 {isSetup=true itsSocket=-842150451 portNum=-842150451 ...} winChatApp * const isSetup true bool...
  10. A1METALHEAD

    DLL files from VC 6.0 to VC++.NET 2003

    your asking if you can still use MFC in 2003.net? if so yes you can. it dosent have the class wizard tho....
  11. A1METALHEAD

    How can I get a list of my installed programs?

    im just corios, how do you get info from a key in your regetry in a c++ app?
  12. A1METALHEAD

    cstring to char*

    thanks, but i still get an accses violation with this code: void chatAboutDlg::OnBnClickedSend() { int iSize; char* p; iSize = ipAddress.GetLength(); //get size of string p = (char*)malloc(iSize); //initialize char* to size of string strcpy(p,ipAddress); free(p); winChat = new...
  13. A1METALHEAD

    cstring to char*

    are there any convertions between CString and char*? i hate CString... and i need a way to get a char*... thanks, ~metalhead
  14. A1METALHEAD

    detect when mouse clicks on "x" (close option)

    i am shure there is an eventhandeler for close. if your using .net, i would try OnExit, or OnClose or somthing along those lines. im sorry i cant look into it further becuse i dont have any compiler handy right now...
  15. A1METALHEAD

    help with streamreader!

    oh. i got it... sorry. i guess cout dosent work with Strings very well.
  16. A1METALHEAD

    help with streamreader!

    oh, sorry, this is the code: FileStream* fs = new FileStream("c:\\database.txt",FileMode::Open); IO::StreamReader* sw = new StreamReader(fs); String* fileIo = sw->ReadLine(); bool end = false; while(end == false) { String* line = sw->ReadLine(); cout<<line; if(...
  17. A1METALHEAD

    help with streamreader!

    ok, i have VC++ .net 2002 and i am trying to parse a text file. so far i cant use the way i used when i wrote this in C# with the streamreader. this is my code: FileStream* fs = new FileStream("c:\\database.txt",FileMode::Open); IO::StreamReader* sw = new StreamReader(fs); String*...
  18. A1METALHEAD

    New at this - Looping through a String

    to get the ADCII avlue, just assing the cahr to an inmt: char* str = "HELLO WORLD!"; int ele5 = str[4; ele5 will be the ASCII value of the 5th element. or, im shure you could cast it like: (int)str[4]; hope this helps, ~metalhead
  19. A1METALHEAD

    abstract data type

    what he said, lol :)
  20. A1METALHEAD

    char*

    look in your book's index for pointers, or google it :)

Part and Inventory Search

Back
Top