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 robbaggio

  1. robbaggio

    Using clock() function......

    sorry....forgot to mention.....im not using Visuall C++...im running my compiler in LINUX....and comparable function in linux?
  2. robbaggio

    Using clock() function......

    I am trying timestamp a simple insertion sort program that I am writing....but so far I have been unable to get meaningful results. The program does not take very long to run...but using the clock() function I thought that this would still output some values...but I still get zero. The machine...
  3. robbaggio

    Bad DLL Calling Convention ISSUE - PLEASE HELP!

    Hi, the program i am writing is a GUI front end for another program, and i am using the DLL to make the function calls i need from the GUI. The only 'problem' i am having is that whenever i run the program from within the Visual Basic Editor (F5), it gives me 'BAD DLL CALLING CONVENTION'...
  4. robbaggio

    How do i make a string containing only a quotation mark?

    thanks, pretty simple robbaggio
  5. robbaggio

    How do i make a string containing only a quotation mark?

    Say i want a string to contain only ". Obviously i cant say: String1 = """ so i am assuming there is some character i must put before the middle " to make it register as part of a string. Any help would be greatly appreciated robbaggio
  6. robbaggio

    How do i resize textbox when form is resized?

    this still doesnt work for me. (it resizes status, but it is as if the Main form is on top of the Status textbox on the new (right hand side) part of the Status textbox. So only the original size really shows text, and the rest is cutoff. any ideas? robbaggio
  7. robbaggio

    How do i resize textbox when form is resized?

    say i have a text box at the bottom of my main form called Status. Status has the same basic width as the main form (Main). I want it to work, so that when Main is resized, Status will automatically resize so its width equals the with of Main. This is what i have right now: Private Sub...
  8. robbaggio

    simple casting question- Please help!

    excellent, the atoi conversion worked like a charm. thanks for all your help guys robbaggio
  9. robbaggio

    simple casting question- Please help!

    i am trying to parse out a command line using argv[i] as the current 'word' of the command line. I need to convert several of the words (argv[i])s to integers. So when i get to that word, i need a casting statement, i.e. int cmd1 = (int)*argv[i]. but i am not getting correct values. When...
  10. robbaggio

    simple casting question- Please help!

    yeah, i realized that now. so i retried it doing tempinit = (int)*temp, which should convert the value of the pointer, but it still isnt working right. i.e. when temp = 25 and i did it this way it gave me tempinit = 50. so i still need some help i guess robbaggio
  11. robbaggio

    simple casting question- Please help!

    i want to cast a char * to an int, but i cant get it to work. say my char * is called temp and my int is tempint. i tried tempint = (int)temp, but that gave me really large number. I tried tempint = temp - '0', but got compile error(must use c style or reinteprert). I tried tempinit =...
  12. robbaggio

    Cancelling Dos Shell Program?

    In my VB prog, there are several buttons that will start up a dos shell and run a program in DOS, until it is complete. I would like to have a cancel button on my VB main form that when clicked, would cancel the DOS program and close the shell. However, it seems whenever the DOS program is...
  13. robbaggio

    Simultaneous Input/Output from a file?

    Is it possible to read in a line of data from a file, change the data, and then write it back to the file. Then go on to the next line and do the same, etc. Can this be done without opening up the existing file, reading from it, making the changes, and then writing it to another blank file...
  14. robbaggio

    Icons or Background Shading in ListBoxes?

    Is it possible to have background colors of certain(not all) files listed in a listbox be different from the rest(ie red)? How would i go about doing this. Also, is there anyway to add icons or small pics to the items in a list box if they need to be marked in a special way from the others...
  15. robbaggio

    How to make click on 'X' close program?

    When i click on the exit button on my main form, it closes the program correctly. However when i click on the windows X button in the upper right(the close X next to the Maximize and Minimize), it closes the form, but task manager says the program is still running. Is there someway to fix this...

Part and Inventory Search

Back
Top