- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
15 Posted Topics
You can't have function definitions in headers if they're not inline, the correct way of doing this is to put the function declaration in a header file that you include and the function definition in a .cpp file in your project.
If you don't want to have the using directive in the header file you can just use [ICODE]class n1::c1;[/ICODE] that's the preferred solution as far as I know.
[URL="http://lmgtfy.com/?q=How+to+automatically+run+programs+at+startup+windows"]If you're using windows.[/URL]
Maybe [URL="http://msdn.microsoft.com/en-us/library/e85wte0k(v=VS.100).aspx"]custom build events[/URL] is what you're looking for?
[URL="http://msdn.microsoft.com/en-us/library/dd162611(v=VS.85).aspx"]This[/URL] is probably what you're looking for.
To update the green portion of a progress bar you need to send the message [URL="http://msdn.microsoft.com/en-us/library/bb760824(v=vs.85).aspx"]PBM_DELTAPOS [/URL] to it. I also noticed that you are sending the message PBM_SETRANGE to the progress bar before you create it when you handle the WM_INITDIALOG message. That's probably something you want to change.
You could use a for loop instead of a while loop since you know how many iterations you will perform.
Hi During the last 6 months or so I've worked on and off on a couple of a classes to send data over network using winsock and asynchronous sockets on windows. Basically my system works like this. The server will send packets on a connection until WSAGetLastError() returns WSAEWOULDBLOCK the …
Hi, I've ran into a problem with pointers which I can't seem to get my head around. Here's some code that illustrates my problem. [CODE]void Reallocate(char* Source) { int NumberTest = 0; char* Buffer = new char[4]; memcpy(Buffer, Source, 4); delete[] Source; Source = Buffer; memcpy(&NumberTest, Source, 4);//This puts the …
Hi everybody, this text turned out to be rather long and maybe not so clear, please excuse me. I'm currently using the winsock library to send and receive data in an application made with WinAPI, I'm not using MFC. I'm using asynchronous sockets (I think that's what it's called) which …
Yes, you should probably read this: [url]http://www.cplusplus.com/doc/tutorial/arrays/[/url]
Hi I'm currently writing an Othello game using the Windows API. I have 3 classes in my program, the first class is simply called "Othello" and it handles almost everything. I also have a class called Field that's used to control which fields are black which are white etc. My …
You could just do it like this: [CODE]int number = atoi(map.c_str());[/CODE]
I made my program to do top-down and got 7048, at least i tried :)
Hi! I've recently started to make some programs with the windows API using C++. The problem I'm having right now is that I've created an application, and now I want to share it with the world (or at least some selected few). I've coded the program on my laptop win …
The End.
kerp