I dont even know how to change Text of richbox within the method of my class. This class is in another file and I have to call somehow to my form object. Tried this way but didnt work :/
...
Type: Posts; User: kargo
I dont even know how to change Text of richbox within the method of my class. This class is in another file and I have to call somehow to my form object. Tried this way but didnt work :/
...
Hi,
I'm writting messenger in c++, but this VS10 is ........ing me off. I have a class which has function I run as thread :
cResult = recv(this->_sock, Packet.buff, 1024, 0);
if (cResult >...
Hello, I'm trying to inject some javascript to page loaded by WebBrowser, but I'm not able to run this script :/ Any help ?
this->browser->Document->Body->InnerHtml += "<script...
Yes I've changed reference to pointer. Constructor without arguments is for situation when object does not have parent.
Let's say I want to use method Server::getCapacity() within Server_Client...
class Tcp_Object
{
protected:
Tcp_Object *_parent;
bool _hasparent;
public:
bool hasParent();
Tcp_Object* parent();
Tcp_Object();
...
So I made it as pointer and now trying like this :
Tcp_Object::Tcp_Object(): _parent(this)
{
cout << "construct" << endl;
}
Server::Server(int port): Tcp_Object()
{
Hello,
I have 3 classes :
Tcp_Object
Server : public Tcp_Object
Server_Client : public Tcp_Object
What I want is to be able for calling parent's methods. For ex.
Hello, I need interaction between classes and I do it this way:
class tcp_packet
{
private:
public:
int *from;
.....
Whats the easiest way to do that?
Ok, I've done boost, but accept() isnt working yet. What I found is :
Do I miss some headers which has declaration of socklen_t? Or how to make it working?
Ok, the thing left to fix is boost thread and this :
struct sockaddr_in cinfo;
int cilen = sizeof(cinfo);
tmp.SetSock(accept(NHandler.ListenSocket, (struct sockaddr *) &cinfo, &cilen));
...
Ye I know "using namespace std;". I'm compiling it on linux, isnt ExitThread windows function? Does boost have their own function to exit thread or linux one?
Hey, Im writing small TCP server on Linux (first time). I'm using boost lib. And the code which was working on Windows isnt on Linux. I'm compiling using g++. Here is the source (btw any advices...
Hi I have a problem, Im trying to compile application on unix. Im using g++.
Do I have to set some special options or what? Because whenever Im trying to put class functions in *.cpp It doesnt see...
Anyone ?
You shouldn't use if statement with single '=' because its makes prime false every time then break. It should be if (prime == false).
And if you want to print if its prime or not use : if(prime)...
Hi, I'm creating program that will be used as movie player (youtube) and I have just one question. I want to know when film end loading and when its end playing. How to do that?
I was looking into...
Well I found that I can use this method :
publicKey.Save( StringSink(sPublicKey).Ref() );
But it's encoded public key after save (160B), is there way to save decoded as normal?
Hey I want to implement RSA crypt in my server, but I have question, how can I write/load public key?
Like I want to send public key from server to client and then read those 128 bytes and set as...
Lol i forgot to change it in ClientHandler.h :) Thx
Hello I have a problem. I wrote some code which I include in my application, it was wroking in CodeBlocks, but I changed enviroment to VS2010, now I have errors.
This is ClientHandler.h :
...
You can do that with boost c++, actually I'm testing it on win7 64bit with codeblocks 10.05.
Ye, I have to read some more about that.
However, I've made a tester application which is running new threads for connect to server. When I reach number of about 900 connections I got this error...
Hehe, I'm not talented graphic
http://img844.imageshack.us/img844/3894/workc.png
So the first class which is created is NetworkHandler. It starts sockets, listening etc.
Whenever new...
Hi there again :)
Well i have written some code already for my own server, but I want to get it working all as it should work from beginning. So I have couple questions :)
Is that good idea to...