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
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...
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...
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...
Ok, VB will read the path name \\something\drive-m\dir ok, but i need to have the full name so people on another network can run prog. When i try to use its full name, i.e. \\something.here.domain.com\drive-m\dir I get an invalid path error.
Is there something i am doing wrong? How can i fix...
From my VB prog i am calling another program that runs from Dos-prompt and then spits out some info in dos. However, once the program finishes running, the dos popup window closes immediatley and it is impossible to read the info.
Is there some command to keep the dos window active after the...
Ok, here is the situation. I parse from a file a list of UNC directory names for various locations. I add these directories to a combobox. This all works fine. Then when i select one of the directories from the combobox i want the UNC path name to be displayed in a Textbox, which works fine...
Say i have a string that is "/directory".
Is there anyway i can manipulate the string so i can create a new string that is "directory". So basically is it possible to remove a character from a string?
Thanks for the help
robbaggio
Say I have a DirListBox SubDir1 that lists the directories in the path given in a TextBox txtPath1. The thing is I only want to have SubDir list some of the directories in that path, i.e. i want to filter the directories. Is there any way to do this? (like something kind of similar to the...
I have a filelistbox File1 and a listbox List1. When i run prog I selected multiple files from File1 and then hit a command button which is supposed ot list the selected files in List1. This is the code i have right now:
Dim i As Integer
For i = 0 To File1.ListCount - 1
If...
Lets say i have a combobox called cmbPath that has options of paths of different directorys, and I want to display(dir command) the contents of the selected directory in a FileListBox called dirFiles.
How do I do that, so that whenever a different path choice is made in the combobox, the...
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.