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...
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'...
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
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
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...
...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 argv[i] = '25', cmd1 = 50, when argv[i] = 40, cmd1 = 52.
so something is messed up
robbaggio
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
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 =...
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...
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...
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...
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...
hmmm, now that i look again, the dos program didnt run correctly. it didnt give an error, but it didnt do anything.
It should work though, because that is the right server and directory info.
robbaggio
i get a :
Runtime Error '76'
Path not found
and i now this path will work, because i used the exact same path as an argument for a DOS program and it ran correctly
so i dont know whats going on
robbaggio
that is what i did:
\\something.here.domain.com\drive-m\dir
something.here.domain.com is my server
drive-m\dir is my directory
so i dont really understand why that doesnt work?
anybody know why?
robbaggio
If in my VB program one button click runs a dos program with certain arguments. This dos program spits outs some txt to the dos screen that pops up, but the screen closes immediatley. Therefore I want to save what it spits out to a txt file, so the user can see the results. How can i do this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.