Search:

Type: Posts; User: avalanche333

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Keys

    by avalanche333
    Replies
    1
    Views
    943

    Donno the exact code, just try googling "C++...

    Donno the exact code, just try googling "C++ Sending Keys"

    You will have to work with the Windows API, sending messages, getting handle to window, that kinda stuff. Might be better off posting...
  2. Replies
    6
    Views
    1,658

    ah gotcha. Well you can still take the...

    ah gotcha.

    Well you can still take the approach I suggested but instead of having a m_value, you would use the coordinates or location that you required and change the algorithym used to find if...
  3. Replies
    6
    Views
    1,658

    What is ment by overlap? I am guessing thats a...

    What is ment by overlap? I am guessing thats a triangle fits into square or circle, or square fits into a circle?

    You can have a protected variable say m_value in shape and have constructors for...
  4. Replies
    17
    Views
    2,792

    Looks like you are passing by reference ok, but...

    Looks like you are passing by reference ok, but you are assigning card=get_card(suit,val) when get_card returns void.

    By the looks of things you are passing by reference for no purpose at all...
  5. ah, thank for the heads up

    ah, thank for the heads up
  6. Yes I am in linux. I'll try it out, thanks for...

    Yes I am in linux. I'll try it out, thanks for the suggestion. I've been looking for something like this and ran into a few programs but they seemed to conly catch basic memory leaks... dumb things...
  7. What is the right way to declare it? I think...

    What is the right way to declare it?

    I think it was something like SendFile( void** pVal ), then pass SendFile by reference.

    With regards to the mutex... is is created/initalized with


    ...
  8. Replies
    9
    Views
    1,164

    Look into Design Pattern's. There are many of...

    Look into Design Pattern's. There are many of them and that should keep you busy for a while.

    If you want to buy a book or find an eBook, look into Design Patterns by Erich Gamma. Very good...
  9. Replies
    9
    Views
    1,164

    Probably shouldnt say this on a C++ board... but...

    Probably shouldnt say this on a C++ board... but if your board of it try a different language? I personally enjoy multi tier development with VB for front end, C# for business/Data layer, and any DB...
  10. Is this code memory leak free? ---> POSIX Threads

    Here is a small sample of what I am doing without much of the logic.. basically the threading part. Could someone tell me if this is memory leak free?

    If it is not, what could I do to make it...
  11. Replies
    3
    Views
    2,854

    ah thanks.

    ah thanks.
  12. Replies
    3
    Views
    2,854

    Socket Sends too fast

    I'm finding if i send many messages in a row I need to use a sleep because som of my messages are being recv conncatinated.

    Is there a way I can send and recv messages between client and server...
  13. Replies
    1
    Views
    1,508

    Is this bad programming practice?

    Is it bad programming practice to make a class that has a protected Constructor/Destructor?

    I want this class to be like an abstract class (can't create instance) but it will not have any pure...
  14. What I have done is: - I still use select but...

    What I have done is:

    - I still use select but only to make sure there is data to be sent (to be same).. and this is before the recv loop

    - To break out of the loop I send the file size...
  15. Finally I think everything is resolved. What I...

    Finally I think everything is resolved.

    What I did is I went back to old way as suggested to read data from the buffer until 0 bytes are read and its the end of file. I send that data (is not...
  16. Dang I just realized a stupid mistake in my...

    Dang I just realized a stupid mistake in my solution. The way i made it, it will overwrite what was previously in the sendBuff when it reads.... this will not work.
  17. transferFile.gcount() tells you the number of...

    transferFile.gcount() tells you the number of bytes read

    What I am thinking of doing is something like this:



    UINT bytesToSend = _FILEBUFFSIZE;
    do
    {
    bytesToSend = _FILEBUFFSIZE;
  18. That is not true. read actually returns *this. ...

    That is not true. read actually returns *this.


    If I would have listened to the 1st reply I prob wouldnt have had the problem of small files not sending. The issue was that I was using TCHAR. ...
  19. If I would have listened to the 1st reply I prob...

    If I would have listened to the 1st reply I prob wouldnt have had the problem of small files not sending. The issue was that I was using TCHAR. After changing file transfer to use plain char it...
  20. Hey I tried Putty out, works great and I'm sure...

    Hey I tried Putty out, works great and I'm sure it will help me out w/ this project. When i transfer the file Putty does display all the contents of my small text file, so it looks like the server...
  21. Thanks guys, this worked very well. However...

    Thanks guys, this worked very well.

    However the other problem of small files not sending any bytes exists.

    Any idea why this could be.
  22. Thank, I ll be sure to try everything out...

    Thank, I ll be sure to try everything out tomorrow before dinner. its a little late now and Im going to bed. One thing I wanted to point out that I may not have made clear is that when I say that...
  23. Sockets... Sending Binary Data. Please help

    I am working on a socket library in windows. I am able to send a file but there are 2 problems I am encountering.

    Issue 1:

    IF the file is small, say 120 bytes When i send the file from server...
  24. Hmmm Well I am developing in VS 2005, Windows...

    Hmmm Well I am developing in VS 2005, Windows XP.... But this will also need to work under SUSE 10.1, with the gcc compiler.

    Any Known issues with name() there?
  25. What I ened up doing is: template...

    What I ened up doing is:



    template <typename T>
    void showType()
    {
    cout << typeid(T).name() << endl;
    }
Results 1 to 25 of 40
Page 1 of 2 1 2