I set up a table with 5 columns (the number doesn't matter so much), the first one I have set to autoincrement. I have tested the table with INSERT and DELETE queries and have been successful with the tests. I've noticed, however, as the rest of you probably know, that even though I've deleted...
I have a problem. If you'll look at the following code you'll see that what I have now is pretty good right now (in my eyes anyway). However, in those rightkey(), downkey(), upkey() and downkey() functions you'll notice I'm trying to keep the sprite within the boundaries of an imaginary box...
I'm looking for a function or something that will empty a char array. I have one in a while loop and unless I am able to empty out the array, the while loop will continue going until something else pauses it. I know that once the array's data is removed, the program will see nothing to work with...
I'm looking for a way to pause my program without using that system("PAUSE") thing. I was once told that I can use getchar(), but that doesn't always work. Is there a better way? All I want is for the program to pause so that the user can view the displayed results and then to be able...
I'm writing this little program in C++ where I have a cin.getline within a while loop. The first time I input something into the getline statement, the program will pick it up. The problem is that once it has picked it up, then everytime it goes through the while loop again it still has my input...
I'm dealing with larger numbers here (like, doubles) and I'm trying to take off the decimals (convert to true integers) of a number that's based off the larger number (e.g. 317602 / 3). The number length can get up to 8 places and it's irritating me. What's the procedure to hack off the decimals?
I've been trying to make it so that when the user clicks on the "X" on the upper right hand corner of the frame the program closes completely (as in, during development when the program running for testing it automatically goes back to the design window, like clicking on a...
I saw this before but I don't remember which post it's in. I'm trying to find out how to know whether the user put in any character that's not a number inside a text field.
K, I'm writing a program that utilizes 3 vertical scroll bars and each of them has its own set of values, but are each supposed to change each other through certain algorithms. My problem is that I want each value to be changed as a scroll bar is moved, not just when I unclick on it. How do you...
I recently finished my program, packaged it up and suddenly realized that the program does not show up on the Taskbar, making it difficult to choose among other programs. Anyone know why?
I just now finished my program and just as I was about to package it, I remembered that I wanted a customized graphical representation made for it. All the programs I've tried to find for it are shareware. Are there any programs out there that are completely free? Maybe just a bmp to ico converter?
I'm having the worst time trying to sort the items in a listbox of variable length with each item being variable lengths themselves. I thought I would just do a simple bubble sort with it, but every time I set it up, there's always something that the compiler doesn't like. I dunno if it's...
Ok, I'm writing a program that consists of a listbox and adding strings to it. At some point I want to be able to delete one of those items and highlight the item that falls in its place. Here's the actual coding I've been using:
Private Sub delCmd_Click()
Dim count
Dim c As Integer
c = -1...
Whoa, something to challenge the brain. How do you obtain variables from one Visual C++ program and apply it to the main one you're working with? (i.e. you have a main program going which opens another program and the main program needs that program's variables.
I've been trying to make a certain kind of program with Visual C++ 6.0 and I'm wondering if I can take data from a Java application and apply it to the C++ program.
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.