Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: axr0284

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: broadcasting

    by axr0284
    Replies
    5
    Views
    836

    Re: broadcasting

    Well I created an MANET emulator for a thesis. But it requires multiple computers with 1 real wireless transceiver connected to each computer. Since students might have to use this software, I would...
  2. Thread: broadcasting

    by axr0284
    Replies
    5
    Views
    836

    Re: broadcasting

    What if I want multiple programs on the same computer to communicate via localhost ip address. Is that possible using UDP or TCP.
    Amish
  3. Thread: broadcasting

    by axr0284
    Replies
    5
    Views
    836

    broadcasting

    Hi,
    I was wondering how to broadcast packets onto a private network using winsock. I have used winsock before to set up a server/client connection but I do not understand how to have 1 machine...
  4. Replies
    6
    Views
    738

    Re: reinterpret_cast question

    Thanks for the reply. Exterminator could you explain more about what you mean by "You lose the type information and for some other casting operators, you get an overhead."

    Also any idea how to...
  5. Replies
    6
    Views
    738

    reinterpret_cast question

    Hi,
    I have been reading in a lot of places that using reinterpret_cast is bad but they never explain the reason for it. I use it a lot in my code to convert int to char * since I need to send the...
  6. Replies
    9
    Views
    753

    Re: kill a process cleanly

    Obviously I created application B for testing purposes but the program will have to work with other peoples's code also so mitsukai use your head before insulting people. I don't know how to use pipe...
  7. Replies
    9
    Views
    753

    Re: kill a process cleanly

    I cannot be sure application B will be a gui or not. Yes it would be a third party program. That's the main problem Therefore the process A that will kill application B has to be able to emulate...
  8. Replies
    9
    Views
    753

    kill a process cleanly

    Hi I have a console program A that launches another application B I created. Application B uses a lot of threads that uses while loops to wait for certain events or to know when to exit when a...
  9. Thread: error LNK2001

    by axr0284
    Replies
    5
    Views
    442

    Re: error LNK2001

    I see. Thanks for taking the time to help me out.
    Amish
  10. Thread: error LNK2001

    by axr0284
    Replies
    5
    Views
    442

    Re: error LNK2001

    wildfrog was right on the money. After I added ws2_32.lib as an additional library to link in, it worked fine. I was wondering how'd you figure it out and how it is related to stdafx.cpp. Thanks a...
  11. Thread: error LNK2001

    by axr0284
    Replies
    5
    Views
    442

    error LNK2001

    Hi,
    I am a little puzzled about something. I am using msvs 2005 and I tried compiling a program that is a server client program so it uses winsock2.h. Since the program is a win32 console...
  12. Replies
    6
    Views
    704

    Re: critical section question

    I think marten range was right on the money there. It must be that one of my threads is calling EnterCriticial section multiple times without calling LeaveCriticalSection. Alas posting some simple...
  13. Replies
    6
    Views
    704

    Re: critical section question

    I do call EnterCriticalSection and LeaveCritical section but the problem described above still happens
    Amish
  14. Replies
    6
    Views
    704

    critical section question

    Hi I am using critical section and I have a question. I thought that if a thread locks a critical section, another thread will wait until the first thread unlocks the critical section. It seems that...
  15. Replies
    11
    Views
    788

    Re: vectors of structures

    my bad. I'll be more careful next time when posting code. Thanks
    Amish
  16. Replies
    11
    Views
    788

    Re: vectors of structures

    I located the error. It was not the vectors after all. I am using callback functions in this class and I tries to do the following:



    int main(int argc, char* argv[])
    {
    aodv_rit *aodv = NULL;...
  17. Replies
    11
    Views
    788

    Re: vectors of structures

    Isn't that what I did here:


    class aodv_rit
    {
    public:
    std::vector<int> intest;
    int recvPacket(unsigned char *packet, int size);
    }
  18. Replies
    11
    Views
    788

    Re: vectors of structures

    I tried it with an int too just to be sure:


    class aodv_rit
    {
    public:
    std::vector<int> intest;
    int recvPacket(unsigned char *packet, int size);
    }
  19. Replies
    11
    Views
    788

    vectors of structures

    Hi,
    I have been trying to get this to work for sometime now but without success. I am trying to use a vector of structures in the following class:


    class aodv_rit {

    public:

    /*This...
  20. Replies
    2
    Views
    568

    Re: callback functions

    Sweet thanks for the help.
    Amish
  21. Replies
    2
    Views
    568

    callback functions

    Hi,
    I have been trying to use callback functions without any success. I tried to follow the example B on this webpage:
    http://www.newty.de/fpt/callback.html#member

    Here is the code:


    class...
  22. Replies
    2
    Views
    641

    Re: reinterpret cast

    Ok i am offially brain dead :) Thanks for noticing that though. You're right, I was looking at it wrong. I guess I got wrapped up into which is a pointer and which is actual data in the debugger...
  23. Replies
    2
    Views
    641

    reinterpret cast

    Hi,
    Since I need to send a long variable through a network. I need to convert it to a char * first. I tried to use reinterpret_cast without success.


    long numBytes = 0;
    char *test;
    char...
  24. Replies
    3
    Views
    2,654

    Re: recv returning WSAEOPNOTSUPP error

    Here is the whole code. I never call WSAAsyncSelect(), WSAEventSelect() on it or used ioctlsocket() so it has to be in blocking mode. Yet I still get the error. As for using 0 instead of MSG_WAITALL,...
  25. Replies
    4
    Views
    514

    Re: socket problem with broadcasting

    Thanks for the reply. Lemme see if I get this right
    So if I am creating a SOCK_DGRAM, I cannot use connect function. So can I just remove the connect part and use the sendto without connecting to...
Results 1 to 25 of 63
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center