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...
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...
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...
//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 <<...
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...
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...
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...
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 <<...
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...
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 =/
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...
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...
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.