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

Search:

Type: Posts; User: MikeAThon

Page 1 of 80 1 2 3 4

Search: Search took 0.26 seconds.

  1. Replies
    6
    Views
    1,499

    Re: Coloring thumbs on CScrollBar

    It's my understanding that the CScrollBar control supports neither the owner-draw (WM_DRAWITEM) nor the custom-draw (NM_CUSTOMDRAW) specifications.

    If the control does not support owner-draw, then...
  2. Replies
    1
    Views
    3,602

    Re: How load an rtf file into RichEdit

    You are correct about implementation of IRichEditOleCallback::GetNewStorage. This is a common inquiry, and one representative thread is "Images dont show up in RichEditCtrl" at...
  3. Replies
    20
    Views
    12,694

    Re: SIGSEGVs, missing parts of input

    You must be corrupting memory somewhere (as I think VictorN is suggesting) since even your literal strings are not being outputted correctly.

    Example: Your code:

    cout<<"This is the message to...
  4. Replies
    6
    Views
    1,808

    Re: break up large TCP/IP packets

    No. TCP does a terrific job on packetizing, and the algorithms have been fine-tuned for years based on years of research. You would not be able to do as good a job as TCP.

    In fact, if you are...
  5. Replies
    1
    Views
    4,379

    Re: A simple proxy server in C#

    Please refrain from double-posting. See my response at http://forums.codeguru.com/showthread.php?526585-Simple-proxy-server-in-C-Need-help-with-relay-logic&p=2080983#post2080983

    Mike
  6. Re: Simple proxy server in C# - Need help with relay logic

    In your thread, you check for the URL of the target webserver only once, at the beginning of receipt of data from the client. This corresponds to your observation that the inital URL (like google)...
  7. Replies
    279
    Views
    82,692

    Re: New Forum Update

    Two major issues, noticed immediately after the update, still have not been resolved:

    1. The site is slow as molassas. Replies to threads and new threads take 60 seconds or more, resulting in...
  8. Re: Interpreting return code of recv() socket api

    Both are graceful closures, so by use of socket functions alone, you will not be able to determine whether the socket was closed "normally" by the server or by you yourself, in another thread,...
  9. Replies
    5
    Views
    952

    Re: VeryLong Fractions

    The GMP page explicitly states that it provides for rational numbers of arbitray precision. See http://gmplib.org/


    Here is the link to the GMP manual for describing the functions available for...
  10. Re: My send() socket call iis taking its own sweet time

    Your code suggests that your architecture uses blocking sockets.

    If so, well, blocking sockets by their very nature will block. The block can be frustrating, but it allows you to write code with...
  11. Re: How can I get two threads to run simultaneously in a single process?

    It's my understanding that the TTS SDK includes a sample program that does exactly what you are attempting, using a "talking microphone" with different mouth shapes for each different viseme. Look...
  12. Replies
    4
    Views
    1,316

    Re: Originate TCP messages from either end?

    I don't fully follow your question. Regardless of which endpoint initiates a TCP connection, the conversation after connection is always two-directional. For example, even if endpoint 1 is the one...
  13. Re: creating multiple ports at server and client

    If you are using UDP and Windows, your poor throughput with jumbo packets might be because of a known issue regarding the registry entries respectively called FastSendDatagramThreshold and...
  14. Re: How can I get two threads to run simultaneously in a single process?

    You can get your result in a single thread, by enabling the eventing model in the TTS api.

    See "Using Events with TTS (SAPI 5.3)" at http://msdn.microsoft.com/en-us/library/ms720165(v=vs.85)
    ...
  15. Replies
    4
    Views
    3,874

    Broken Stick Problem: Many Answers?

    This post is inspired by a comment from Nuzzle in “Glass Rod Problem”, http://forums.codeguru.com/showthread.php?524949-Glass-Rod-Problem&p=2073747#post2073747. Internet searches show that the...
  16. Replies
    279
    Views
    82,692

    Re: New Forum Update

    Is someone still looking at the "Search" issue? I just did an "Advanced Search" on my own user name, and only one result came up: a thread from back in 2003.

    Here's a screenshot:
    29989

    Please...
  17. Replies
    3
    Views
    1,285

    Re: Getting a bitmap to redraw

    Good gracious, what are you doing!?!?

    To set the bitmap for a static, simply send it a STM_SETIMAGE message, with the bitmap handle cast to an LPARAM.

    IIRC, you are responsible for ownership of...
  18. Replies
    11
    Views
    2,927

    Re: Glass Rod Problem

    Paul's advice is exactly correct.

    Nevertheless, you might have "lucked out" with your program because of one of the design goals of IEEE-753/754 on the format of floating point numbers. According...
  19. Replies
    11
    Views
    2,927

    Re: Glass Rod Problem

    You can also think in terms of building a rod from three pieces. Pick a first length randomly between 0 and 1. In half the population, the first length will be greater than 1/2, so no triangles can...
  20. Replies
    6
    Views
    1,072

    Re: How to slow the program down?

    Give us an idea of the time intervals involved.

    If the time intervals are modest (eg, around 1/4 to 1 or 2 seconds) then one approach might be to set up a timer (call SetTimer) and monitor...
  21. Replies
    6
    Views
    1,072

    Re: How to slow the program down?

    The problem isn't that your program is running too quickly; in fact it's running too slow. You're drawing 10,000,000 line segments and outputting 10,000,000 lines of text. Why do you think that...
  22. Re: Vadim Segal Need Your Help To Make The Web URL Static

    This is strictly a function of the browser, not under the control of the website, which is fortunate for all of us who are forced to tolerate miscreants like you and your phishing expeditions.

    Mike
  23. Re: Retrieving Bit stream from the server through the Socket

    It's not possible to get the characters codes for "space and Ò" in just 16 bits. The "Ò", for example, is a Unicode character, and for that character alone, at least 16 bits are required.

    As...
  24. Re: video processing - languages and libraries?

    Openvc (written by Intel and now supported by Willow Garage) has proved popular, but it is primarily written for C/C++. See http://opencv.willowgarage.com/wiki/

    According to the Wikipedia page on...
  25. Re: Multiple-readers, single-writer synchronization lock between processes

    You replaced Sleep(1) with WFSO(..., 1). In the circumstances you show here, WFSO with a timeout is no better than Sleep. Both are bad. In fact, anything with (1) or (10) or...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured