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

  1. BungoMan

    Quick Launch

    Is there a way to make the Quick Launch links appear on every page? I would like to have a consistent navigation panel on the side and the Quick Launch thing on the top level page is pretty close to what I had in mind. The only problem is it isn't there on every other page. I realize this is...
  2. BungoMan

    Problem with CFileDialog (access violation).

    I'm having some nasty problems with the MFC class CFileDialog. I'm simply trying to use it to get the name of a selected file and put it in a text edit box. I have done this many times before and have never had this sort of problem. Here is the code that is producing the error: void...
  3. BungoMan

    reading/writing a single bool value to the registry

    ive dont a little research on this but havent found anything that really tells just how to do this one thing, and that is when my program loads check the registry to see if there is a bool value set to 1 at a certain key, if not execute a segement of code, if everything goes ok there create the...
  4. BungoMan

    FileExists function

    //i think a string would work just a well right? //if it doesnt then just use an array of chars #include <fstream.h> #include <iostream.h> #include <string> bool fileexists(string filename); void main() { string filename; getline(cin,filename); if (fileexists(filename)) cout <<...
  5. BungoMan

    reading and writing to the registry...

    essentialy i am trying to store a program setting in the registry that is a bool, 1 if certain things have been done before and 0 if they have not. ive read up some on readign and writing to the registry and it makes sense, but the little i have read did not go into enough detail for me to...
  6. BungoMan

    problem with strings not wanting to work =(

    changed using namespace string; to using namespace std; and i got the following errors... -------------------Configuration: TicTacToe - Win32 Debug-------------------- Compiling... TicTacToe.cpp C:\Program Files\Microsoft Visual Studio\My Projects\TicTacToe\TicTacToe.cpp(35) : error C2872...
  7. BungoMan

    problem with strings not wanting to work =(

    ok i know this is really dumb but im trying to make a tic tac toe game (using matrices, which work, so thats not the problem) and i need to use a string or two here and there, and it doesnt wanna let me use em =/, here is the code for the game itself (even though i prolly dont need to include it...
  8. BungoMan

    srand((unsigned)time( NULL )); wont work =/

    i swear ive used this before, and its worked and now it doesnt and i cant figure out why it wont work... here is all i have, just to test it... #include <iostream> #include <stdilb.h> #include <time.h> void main() { srand((unsigned)time( NULL )); cout << rand() << endl << rand() << endl <<...
  9. BungoMan

    doubles and modulus division

    bah! it isnt letting me use the % for modulus division with doubles, is there a way around this? i need to return random doubles, here is how im doing it right now... double randdouble(double minnum,double maxnum) { setprecision(4); double randomdouble; if(minnum>maxnum) { double...
  10. BungoMan

    finding a random file

    no no viruses here, just curiosity (spelling?), i oftern find myself wondering about the weird stuff i can do and when i get stumped it annoys me to no end =/
  11. BungoMan

    finding a random file

    for a program i am making i need to find a completely random file on the HD, basicly i want it to determine a random directory, then find a random file within that directory, i have NO clue where to begin on this one, i have read some stuff about getting directory lists im thinking itll have to...
  12. BungoMan

    at wits end with getline...

    grr! i dont understand why its doing this, but for someone it refuses to let the getline statement to work, everytime i compile it says i have the wrong number of arguments, at first it said i had 3 and it needs 2, then i took out the delimeter argument (which according to the msdn thing is...

Part and Inventory Search

Back
Top