Search:

Type: Posts; User: kargo

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    3,408

    I dont even know how to change Text of richbox...

    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 :/

    ...
  2. Replies
    2
    Views
    3,408

    Form Applications in Visual Studio and Threads

    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 >...
  3. Thread: WebBrowser

    by kargo
    Replies
    0
    Views
    924

    WebBrowser

    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...
  4. Replies
    6
    Views
    1,031

    Yes I've changed reference to pointer....

    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...
  5. Replies
    6
    Views
    1,031

    class Tcp_Object { protected: ...

    class Tcp_Object
    {
    protected:
    Tcp_Object *_parent;
    bool _hasparent;
    public:
    bool hasParent();
    Tcp_Object* parent();
    Tcp_Object();
    ...
  6. Replies
    6
    Views
    1,031

    So I made it as pointer and now trying like this...

    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()
    {
  7. Replies
    6
    Views
    1,031

    Inheritance from base class with reference

    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.
  8. Thread: Pointer to class

    by kargo
    Replies
    1
    Views
    772

    Pointer to class

    Hello, I need interaction between classes and I do it this way:


    class tcp_packet
    {
    private:

    public:
    int *from;
    .....
  9. Replies
    3
    Views
    7,796

    Long to string, string to long conversion.

    Whats the easiest way to do that?
  10. Replies
    6
    Views
    4,194

    Ok, I've done boost, but accept() isnt working...

    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?
  11. Replies
    6
    Views
    4,194

    Ok, the thing left to fix is boost thread and...

    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));

    ...
  12. Replies
    6
    Views
    4,194

    Ye I know "using namespace std;". I'm compiling...

    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?
  13. Replies
    6
    Views
    4,194

    TCP Server on Linux + boost

    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...
  14. Replies
    2
    Views
    744

    Classes + headers

    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...
  15. Thread: WebBrowser

    by kargo
    Replies
    2
    Views
    998

    Anyone ?

    Anyone ?
  16. Replies
    4
    Views
    2,526

    You shouldn't use if statement with single '='...

    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)...
  17. Thread: WebBrowser

    by kargo
    Replies
    2
    Views
    998

    WebBrowser

    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...
  18. Thread: CryptoPP RSA

    by kargo
    Replies
    3
    Views
    1,828

    Well I found that I can use this method : ...

    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?
  19. Thread: CryptoPP RSA

    by kargo
    Replies
    3
    Views
    1,828

    CryptoPP RSA

    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...
  20. Thread: Boost thread

    by kargo
    Replies
    2
    Views
    2,450

    Lol i forgot to change it in ClientHandler.h :)...

    Lol i forgot to change it in ClientHandler.h :) Thx
  21. Thread: Boost thread

    by kargo
    Replies
    2
    Views
    2,450

    Boost thread

    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 :
    ...
  22. Thread: Optimize server

    by kargo
    Replies
    11
    Views
    1,345

    You can do that with boost c++, actually I'm...

    You can do that with boost c++, actually I'm testing it on win7 64bit with codeblocks 10.05.
  23. Thread: Optimize server

    by kargo
    Replies
    11
    Views
    1,345

    Ye, I have to read some more about that. ...

    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...
  24. Thread: Optimize server

    by kargo
    Replies
    11
    Views
    1,345

    Hehe, I'm not talented graphic ...

    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...
  25. Thread: Optimize server

    by kargo
    Replies
    11
    Views
    1,345

    Optimize server

    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...
Results 1 to 25 of 70
Page 1 of 3 1 2 3