Skip to content

C / C++ / MFC

C, Visual C++ and MFC discussions

This category can be followed from the open social web via the handle c-c-mfc@forum.codeproject.com

111.5k Topics 465.7k Posts
  • why 4 twice

    question
    7
    0 Votes
    7 Posts
    0 Views
    D
    One of the regulars on the newsgroup comp.lang.c invented a notional system - the DeathStation 9000. The C compiler for that system would interpret undefined and implementation-defined behavior in the worst possible manner, up to and including creation of nasal demons... If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill
  • Add lib by pragma

    help question learning
    3
    0 Votes
    3 Posts
    0 Views
    _
    Yes, had worked. Thanks !
  • AfxGetApp anomaly

    design
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Odd property sheet behavior

    help sales tools question career
    2
    0 Votes
    2 Posts
    0 Views
    C
    looks like the list control is sizing itself too large and is overdrawing the buttons. maybe that's related to the increased font size on the list control? try changing your Windows font size? image processing toolkits | batch image processing
  • linked list in C

    help data-structures question
    2
    0 Votes
    2 Posts
    1 Views
    C
    i'd start looking here: numStruct* deleteNode(numStruct** firstNode, numStruct* nodeToDelete) fn takes a pointer to a pointer to a numStruct. but here: numStruct* t = anchorNode; ... deleteNode(anchorNode, t); you're just passing a pointer to a numStruct. image processing toolkits | batch image processing
  • 0 Votes
    6 Posts
    0 Views
    L
    Your code above is using managed C++, not ordinary Win32. I suggest you start again and either create a proper Windows Forms application, or use standard unmanaged C++ or MFC.
  • Threading Issues

    csharp visual-studio design debugging help
    4
    0 Votes
    4 Posts
    0 Views
    F
    I contacted Joseph Flounder and He explained That CAsyncSocket notifications OnSend, OnConnect are intitally received in the context of the main thread I detach the socket do a PostThreadMessage to the Thread with the CAsynsocket derived member do a Attach and from that point on all notification are received in The UI CWinThread
  • Nenhuma outra fórmula fez meu físico magro como eu estava

    com
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • MFC,Run as administrator

    c++ tutorial
    6
    0 Votes
    6 Posts
    0 Views
    L
    Bot sure, but I think if you use the name="Microsoft.Windows.Common-Controls" version="6.0.0.0" setting then it will use themes. Try removing that from the manifest and see what happens. see https://msdn.microsoft.com/en-us/library/windows/desktop/bb773175%28v=vs.85%29.aspx[^] for further information.
  • Project / Code conversion from old VS to VS2008+

    c++ visual-studio hardware tools help
    5
    0 Votes
    5 Posts
    0 Views
    B
    Agree. Somewhen switched the "treat warnings as errors" property in C# projects on. A lot of problems showed up, and you find so much more bad code waiting for refactoring...
  • 0 Votes
    4 Posts
    1 Views
    A
    If you share which API you are using for file I/O then you'd get answer more accurately. Did you used std::fstream or some other API?
  • c++ in visual express 2010

    help c++ question
    12
    0 Votes
    12 Posts
    1 Views
    D
    Did you include the windows.h and iostream header files? Did you remember to use the std namespace? "One man's wage rise is another man's price increase." - Harold Wilson "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
  • Simple newbie Tab Control question

    question csharp c++
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Setting Background Color of a CRichEdit

    help
    4
    0 Votes
    4 Posts
    1 Views
    L
    Like I said before, you cannot just paint into a control as and when you like. You must only do it in its OnPaint member function.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    7 Posts
    0 Views
    M
    I know. When I originally looked at OnDraw, I did not want to use it because I expected to have to redraw everything (inner, outer, fill, text and theme support) But it ended up to look something like: OnDrawn(...) { if (condition) pDC->FillRect(...); else pDC->FillRect(...); __super::OnDraw(...) } I'd rather be phishing!
  • CString with non display characters

    help
    10
    0 Votes
    10 Posts
    0 Views
    A
    Well, most data comes down to being bytes... strings just are some set of bytes that are expected to mean something (whether according to ASCII or some other wide character standard)... if you need a generic container, you can't just use something that expects what we'd refer to as a "string".
  • The selection of real women was pretty good

    com sales
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • tool-tip

    csharp css asp-net question
    2
    0 Votes
    2 Posts
    1 Views
    _
    "i have grid view in asp.net" Are you sure that are you on the right forum ? :)
  • code niblack c++

    c++ tutorial
    3
    0 Votes
    3 Posts
    0 Views
    D
    Member 11643731 wrote: i search a code for thrshold niblack step by step Okay, and? :confused: "One man's wage rise is another man's price increase." - Harold Wilson "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles