- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
14 Posted Topics
I had a program that ran fine with Winsock. But that only works on Windows. So I decided to switch to SDL_net. I thought I did okay, no syntax errors or anything when I compiled. But on run the program froze up. So I read about various SDL functions. When … | |
Well, I believe the answer/problem is in these few lines: [code] SDL_Surface* thing; SDL_LockSurface(thing); put_pixel32(thing,2,2,SDLred); SDL_UnlockSurface(thing); apply_surface(0,0,thing,screen); SDL_Flip(screen); [/code] The locking/unlocking dosn't seem to do much, if I delete the lines the same thing happens, and if I check if it must lock before, the program still returns 3, etc. | |
In C++ code, how would I customize an extension. I'm using C++ and my program outputs files, if/when I make an installer for it, I'd like to know how to make a program that can assoicate a file extension ex. ".iazj" with a name, icon, and program to open. | |
I'm getting inoput from a binary file, in hex. And I want it to say the first nine characters... like "0x05 0x53,0x84 " ... and so on. So how do I turn a char in hex to a string in text? | |
This is a Winsock select() server in C++ (I'm posting in this forum so of course) and I have two problems with it. (title) 1. My select olny returns above 0 when a connect request is recived, the rest of the time it returns -1. So I can olny recive … | |
I have been using just SDL for alot, but it really olny does 2d things well. So I started learning OpenGL from the tutorials at [url]http://anomtech.uuuq.com/[/url] I was fine using Dev-C++ until the textures tutoiral, where the program would immedently crash as soon as I compiled/started it. So the maker … | |
Shouldn't this code work? (select()) Well, this is basically a proxy. It takes things from a program that is running on port 15777 and the puts it out to host on port 15776, but sence I added the select() witch is needed. It hasn't been working right. Any help? [code] … | |
I have done alot of stuff with Winsock, but it's all with sockets that can olni process one at a time. Can anyone tell me how to make a non-blocking socket? [send and recive] | |
I'm getting an error where it says I'm trying to use a null pointer. Then when I click ignore another error saying I tried to read or write protected memory. Any idea how to fix? [code] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { using namespace System::Runtime::InteropServices; using namespace System; using … ![]() | |
Converting textBox1->Text into a basic string. How would I do this in Visual C++ 9? | |
No errors when compiling and I can comment out most of the main function and it still frezzes. Remove the SDL parts and it won't freeze up but then again the SDL is most of the program. CODE: [code] //Main.cpp #include <SDL.h> #include <iostream> #include "Socket.h" #include <fstream> #include <string> … | |
I've tried just about everything. Can anyone give me some help. | |
I was told olny the computer / home that the "host program" was in needed to be port forwarded, but you need port forwarding just to use the client too. Base code for client program: [code] //Main.cpp #include <iostream> #include "Socket.h" #include <fstream> #include <string> using namespace std; string getcot(char … |
The End.