Yay, got it working now :)
This is my function:
/**
* Checks if the socket is ready for reading
*/
bool Socket::can_read()
{
Type: Posts; User: MrLucky
Yay, got it working now :)
This is my function:
/**
* Checks if the socket is ready for reading
*/
bool Socket::can_read()
{
Hi,
I'm making a sort of 'query' tool for game servers, to get some information etc. It works pretty well, except when you fill in an hostname which doesn't exists, it keeps hanging at the...
Ok, thanks :) I think I understand it, and when I de-reference them, I've got the short value isn't it?
Yep, that's true. C# has a nice BitConverter class, which allows you to convert some specific bytes at a specific offset to an other data type.
You must not see this as a string, but as a byte...
Well, this will be the response of a Doom 3/Enemy territory: Quake Wars server:
http://www.int64.org/docs/gamestat-protocols/doom3.html
The player's ping and rate are int16, and because I receive...
Hi, I'm trying to create a game query program, which sends a query to the server through UDP, and the server sends a response back, with some info about the server.
The response of the server is...
Ok, I think I'll use the ps command then :)
Trying to create a memory viewer/editor for Linux. :)
woot thanks a lot!
Btw, is there any function to ge a list of running processes with their pid's?
Hi,
The Win32 Api has the functions ReadProcessMemory and WriteProcessMemory, to read/write the memopry of a certain process.
But I'm a Linux user, and after a lot of searching I can't find...
Well, I have viewed the application with a hex viewer, before the patch and after the patch.
Short description on how the patching works:
To patch an application, you need a patch file. The data...
fopen mode is "rb+"
I've found this table on the inet:
// Table 92 File Open modes
//+------------------------------------------------------------+
//| ios_base Flag combination ...
I'm modiefing the source of an application which was originally written in C, to a more C++ (object oriented) code.
The application uses a FILE struct, and I want to use an ofstream object. But I...
Well, I finally managed to get it to work :)
I've found after some long searching this tutorial, and complete rewrote my streambuf. :)
This is my final code:
textviewbuffer.h
/**
* DLDI...
I've tried to cout something else than files[i] (just plain text), but the same happened. I also completely rebuild my project, but with the same result.
I've also redirected my cout to a...
Lol, that's me xD
Still strange, it only adds the first two cout's to the log :/
Hi,
I'm redirecting cout output to a TextView, but I've a strange problem.
I'm setting up the cout redirection in my constructor of my Window object (I'm using GTKmm as UI lib, in combination...
Hi,
I'm trying to create an IRC Bot in C++, and it's going well. :) But an IRC Bot has to be extendable, an Irc Bot is no Irc bot if it can't be extended.
So, I would like to embed a scripting...
Does anybody has a good tutorial on how to create multi language applications?
I've searched a lot, but I think i'm not using the right keywords, because I can't find a good tutorial.
I already...
Another very nice one: http://www.relisoft.com/win32/
Focussed on C++, and uses a real OOP way of using the Win32 API.
Ah Great!
It works now :)
thanks!
Well, reading this tutorial, I'm trying to create a dialog.
The dialog code in resource
// About dialog
IDD_ABOUT DIALOG DISCARDABLE 0, 0, 150, 100
STYLE DS_MODALFRAME | WS_POPUP |...
Ok, thnx :)
I tried to debug it and I got this as a result:
A COM error..
Does anyone have a possible fix for this?
Hmm, I changed it, but still got the error:
http://www.aoe3capitol.nl/images/requester_error2.png
I get a very strange error, when I try to run my program:
Does anyone know what this means? And does anyone know how to fix this?
My program code:
request.h
Nobody? :(