Yeah!!! I was missing wsock32.lib. To think I wrote a C++ VNC three years ago... And of course, I used WinSock. I can't rememember anything though
Type: Posts; User: manugarciac
Yeah!!! I was missing wsock32.lib. To think I wrote a C++ VNC three years ago... And of course, I used WinSock. I can't rememember anything though
I keep finding that I have to set the linker to use user32.lib, but that is done already. I can't figure this out.
I'm looking for it. I can't find the solution. I don't understand many of the solutions either...
Great! Now I'm just stuck with the linking error, :P. Any help there?
Yes, but I don't know how... I need to create a project on Visual Studio, right? I created an Empty Windows project, added the cpp to the source folder. The tried building it. I got some errors on...
I have this .cpp file
GigaSize.com: Host and Share your Files
Which I downloaded from a site and edited on line (just added an if). I want to build it a generate a .exe, but I don't know...
Yes, I was using void pointers because those were function pointers I couldn't touch, but I did it like this:
MyClass** myObject = (MyClass**) param;
*myObject = new MyClass();
And...
I have this in my main:
int main(){
MyClass* myObject = NULL;
function1(myObject);
function2(myObject);
I just need the application that calls send() to stop until the recv() receives all the data, for different reasons...
No, that won't work. I said notepad.exe as an example, but truly I can have the name of any process. And I MUST get its HWND.
Suppose I want to get the HWND of the notepad from its process name (notepad.exe). How can I do that?
Nono, I WANT to block... I want blocking sockets... But the recv() is the only one that is actualling blocking, send() is not.
I need that when I call send(), my application does not reach the next line until that send is completed. I've been doing it by calling select(), but is there any other way to do it?
I have two applications:
-A server, which is the one that calls listen().
-A client, which is the one that calls connect().
Ok, I've got them running on a LAN and they are constantly sending...
This is what I'm doing
HANDLE handleMouse;
handleMouse = (HANDLE) _beginthread(threadMouse, 0, &exit);
And this is threadMouse:
I had forgotten I asked this, lol. I figured it out soon after I posted. There is a funcion called select() that does the job wonderfully.
How can I check if all the data has been already received after I use send? I mean, I want to know when the send buffer "empties"...
Lol. Minimize.
I want the console to dissapear as soon as my application begins. How can I do that?
It's between " "! I'll take them out, manually. Any easy way to do it?
I'm writing a video player. When you open it you can browse for the video file to open via an open file dialog. The string I get with that I send it to the function that has the fopen. It works.
...
Please, I'm desperate here, you gotta help me. I need to speed up the call to SDL_BlitSurface. Give me a hand.
http://img338.imageshack.us/my.php?image=dibujovf9.jpg
That's what I'm getting. It should be a fullscreen screen capture.
I heard that with memcpy it should be faster, and it seems to be, but the result is not good. This is what I'm doing:
memcpy (screen->pixels, image->pixels, resWidth*resHeight*colorDepth/8);...
int d = 0 ;
for(int i = 0; i<=5; i++)
for (int j = 0; j<=5; j++)
for (int k = 0; k<=5; k++){
colors[d].r=i*51;
colors[d].g=j*51;
colors[d].b=k*51;
d++;
}