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

Search:

Type: Posts; User: ReorX

Page 1 of 7 1 2 3 4

Search: Search took 0.15 seconds.

  1. Re: how does a receiver know when sendto() is done?

    Why are you using UDP instead of TCP? TCP does pretty much what you need without too much overhead.
    With UDP, you might even have funny problems in larger networks when a datagram may overtake...
  2. Thread: FFT related

    by ReorX
    Replies
    7
    Views
    1,203

    Re: FFT related

    Actually, both look the same to me - can anyone else see a problem (except perhaps scaling, but that's a minor issue)?
  3. Thread: embedding dlls

    by ReorX
    Replies
    2
    Views
    663

    Re: embedding dlls

    You have to link the library of the exporting DLL (secondll) to the objects and libraries in your importing DLL (dlltest).
    See project settings/link/input/object+library modules!
  4. See Q176420, which describes, why timeouts cannot...

    See Q176420, which describes, why timeouts cannot be set with InternetSetOption (Bug with Microsoft)
  5. Thread: Huffman code

    by ReorX
    Replies
    2
    Views
    960

    Huffman's alogorithm looks like this: A) Start...

    Huffman's alogorithm looks like this:

    A) Start with as many trees as there are symbols.
    B) While there is more than one tree:

    1. Find the two trees with the smallest total weight.
    2....
  6. Thread: Socket

    by ReorX
    Replies
    3
    Views
    563

    Indeed, I misunderstood your intention of using...

    Indeed, I misunderstood your intention of using UDP to find out something about the local interface adapter.
    I always use "GetIfTable" where you get all interfaces and their operational state!
    But...
  7. Thread: Socket

    by ReorX
    Replies
    3
    Views
    563

    Use TCP

    Usually when using UDP, you do not care - packets can get lost whenver they "want".

    If you do care for the other side still being present, use either TCP or set up a protocol yourself on top of...
  8. Thread: new and delete

    by ReorX
    Replies
    22
    Views
    2,432

    Not completely correct!

    Not everything that is new'd by a User is allowed to be deleted by the User.
    Frameworks like Qt for example take over the ownership for Widgets with a non-NULL-parent.
    So you must not delete...
  9. Replies
    3
    Views
    7,779

    NMAKE is very limited in its features and I...

    NMAKE is very limited in its features and I haven't found a way to do SUBST in NMAKE.
    I would recommend porting to gmake instead, which is usually acceptable, as gmake can be invoked from DevStudio...
  10. Replies
    15
    Views
    1,778

    There are two things you can try: (1) Pass a...

    There are two things you can try:
    (1) Pass a Ctring& into the DLL instead of returning a CString.
    The problem will NOT disappear, but debugging is easier!
    (2) Instead of returning a CString,...
  11. Replies
    6
    Views
    4,059

    Your commandline requires quoted strings!...

    Your commandline requires quoted strings!
    Currently, CreateProcess tries to start C:\Program.exe because that's where the first blank separates program and parameters.
    The rest of your commandline...
  12. http://www.codeguru.com/Cpp/W-P/help/

    http://www.codeguru.com/Cpp/W-P/help/
  13. Replies
    5
    Views
    835

    What are the functions supposed to do? From the...

    What are the functions supposed to do? From the code, it's impossible to tell, as it does not make any sense to me.
    E.g., in
    usResult = (usOutputBit | 0x8000) | usResult2;
    usResult = usResult <<...
  14. Replies
    5
    Views
    1,223

    Actually, I think you will have further DLLs on...

    Actually, I think you will have further DLLs on your customers computers which will cause trouble, not only OPENGL32.dll. PGP Plugins for example love to pop into your applications address space by...
  15. I can't belive this code is working in debug...

    I can't belive this code is working in debug mode. Add &fileException as third parameter to the Open call and see what's happening.
  16. Replies
    6
    Views
    1,107

    Hi Mustafa, the first thing you need is a...

    Hi Mustafa,

    the first thing you need is a common timebase.
    So if somebody enters a value in China lets say at 8:00 and somebody does the same at the very same moment in London (lets say local...
  17. Replies
    6
    Views
    1,107

    Easy, the difference is 8 hours expressed in...

    Easy, the difference is 8 hours expressed in seconds.
    The Constructor you chose is a special constructor, as it makes a conversion to UTC. As GMT + 8 is 8 hours ahead of UTC, at least now in the...
  18. Thread: parsing XML

    by ReorX
    Replies
    3
    Views
    682

    See the XML SDK around MSXML Api. It contains an...

    See the XML SDK around MSXML Api. It contains an excellent access to XML. It can be downloaded from MS Homepage (SDK and separate Runtime Distribution).
  19. Replies
    13
    Views
    2,929

    I'd assume. in step 1 they use the IMAGEHLP...

    I'd assume. in step 1 they use the IMAGEHLP Library to find out implicit linkage information and then in step 2 hook LoadLibrary[AW] to recursively apply step (1) on the newly loaded library....
  20. Replies
    2
    Views
    3,786

    To get real protection, you'd need a processor on...

    To get real protection, you'd need a processor on the memory stick.
    Otherwise, you'll have the problem of getting the (secret) key out of the stick for processing on the host computer and in this...
  21. Replies
    2
    Views
    1,920

    I think, Digital Fountain has a patent on all...

    I think, Digital Fountain has a patent on all this. You could probably look up what they write in their patent.
    But I think, you will run into a legal problem anyway ... :-(
  22. See http://www.codeguru.com/help/HTMLHelp.html

    See http://www.codeguru.com/help/HTMLHelp.html
  23. Replies
    2
    Views
    673

    I have used Frontpage 2000 for a large HTML Help...

    I have used Frontpage 2000 for a large HTML Help project and actually - I would not do it again.
    This has two reasons:
    - Frontpage adds "nasty" code to the HTML-Code which lateron had to be...
  24. Have you enabled IP forwarding on your computer?...

    Have you enabled IP forwarding on your computer?
    This might cause your symptoms.
    See IPEnableRouter in MSDN and your registry.
    Beware: Disabling it might cripple your computer if it is used for...
  25. Replies
    2
    Views
    826

    The second if must must read --pThis->m_dwRef...

    The second if must must read --pThis->m_dwRef
    (two minus signs) thus decrementing the ref-counter!
    Once the references are down to zero, the object is deleted!
Results 1 to 25 of 161
Page 1 of 7 1 2 3 4





Click Here to Expand Forum to Full Width

Featured