Ok, your right in that turning it into a reference is bad, I was hoping for some kind of modification to the operator overload part of the class...I assumed I was doing it wrong. But nah, I will...
Type: Posts; User: esaptonor
Ok, your right in that turning it into a reference is bad, I was hoping for some kind of modification to the operator overload part of the class...I assumed I was doing it wrong. But nah, I will...
codeplug, I know, that was the only way it worked, but I wanted to just use o=5.
And brewbuck, that works, so I will use that. Thanks, its not 100% what I wanted, but what I wanted obviously...
I have made a simple class which overloads an equals operator. So far, it does nothing important, becuase its just a test.
The class just looks like this:
class myoverloadAttempt
{
public:...
Ok, thanks a lot. Ill check it out.
I did search this forum for windows service related threads, but I did not see any that related.
I also look through MSDN, but I was looking for c++ related pages, not .NET, which you have found.
I...
I need to make a program run as a windows service, but I only have visual c++ 6.0, and I don't think it has a template for this.
How can I create a windows service from scratch?
thanks a lot,...
I have previously used a windows open file dialog box, which I am guessing changes the directory to whatever I selected there.
So when I call ifstream f1("file.txt") it only looks for the file in...
hey thanks a lot man, I must have missed that when I was looking. Thats exactly what I am after :)
I have a text field, where the user can type in the location of the text file they want to open, but I also want the user to be able to click a browse button and have one of them dialog boxes open up...
yes it all works great now, thanks a lot!
For the record, Visual Foxpro databases require DNS=, SourceType=, Description=, and DB= in that string. That was half the problem right there!
Its something to do with the database location... When I just have
rc=SQLConfigDataSource(hwnd,ODBC_ADD_DSN,(LPSTR)"Microsoft FoxPro VFP Driver (*.dbf)",
(LPSTR)"DSN=cadatatest\0\0");
...
hmm...its returning error 11. No idea what that is, I shall investigate further.
Its worth noting that your code works fine, its just this visual fox pro thing that doesn't work.
thanks, I will look into this
hmm...well for starters I found it was a .dbc not .dbf :|
But that didn't solve the problem. I continued to search around and try different things, but I just can not seem to get it working.
Can...
Thanks, its working now :)
well I have a date format like so: 2006-07-07 (its a std::string)
and I would like to convert this to a unix timestamp, does anyone know how this is done?
and I am not using unix, so if its only a...
Hmm...doesn't work. It causes the program to 'abnormally terminate' or something.
I have realised that the socket is not just listening, it is running the accept function, which I presume waits...
To outline the problem: I have a socket server listening in a seperate thread to the main program. The socket accepts new connections and deals with them, then listens again. It is in a while loop....
I am trying to connect directly to my visual FoxPro database without using a datasource.
With a datasource it worked fine, but I can not get it to work without one. Can someone check my connection...
thanks guys, i was using iostream.h, or nothing that defined it in, so once i included iostream or string it worked....i had only tried string.h, which doesn't work.
thanks again,
esaptonor
I am unsure if this is a common problem, but i use VC++ 6.0, i am still learning, but i cant seem to use anything from the std namespace.
If i type std:: then the IDE gives me a list of everything...
thanks.
I am wanting to make a highscore board, and i want the highscores to go in a seperate folder in windows...but i want it to be run in DOS, not with winMain or any of that.
Is there a function or...