Skip to content
Code Project
CODE PROJECT For Those Who Code

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
  • CDHtmlDialog not working with CSS Media Queries

    csharp html css database visual-studio
    4
    0 Votes
    4 Posts
    0 Views
    S
    Great! "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
  • Can I get to submenu of a submenu? ( MFC VC 6.0)

    c++ question
    5
    0 Votes
    5 Posts
    0 Views
    V
    Here is what works, still not sure why I could not use m_hMenu similar way. Basically a copy of MFC code. HMENU hMenu = pSubMenu->GetSafeHmenu(); pSubSubMenu = pSubMenu->FromHandle(hMenu)->GetSubMenu(2); ASSERT(pSubSubMenu); Thanks for all the help I got, you guys are great! Cheers Vaclav
  • CDC HDC question [Solved]

    question c++ announcement
    2
    0 Votes
    2 Posts
    2 Views
    A
    Nope, shouldn't have to do that. That should already be handled when you release the object.
  • v[f(x)]+=j;

    algorithms data-structures performance question
    8
    0 Votes
    8 Posts
    0 Views
    J
    No that isn't what that means. E1 appears on both side of the equals. It is referring to whether E1 is evaluated once for the lvalue side and once for the rvalue side. And it says no.
  • Structure Fraction With Switch

    performance
    4
    0 Votes
    4 Posts
    3 Views
    M
    To get any kind of help, please post what are all things you've tried or where you stuck with code/logic. [Delegates]      [Virtual Desktop]      [Tray Me !] -Malli...! :rose:****
  • i/o registers that control cash drawer

    question help tutorial
    11
    0 Votes
    11 Posts
    0 Views
    enhzflepE
    You're welcome. Driver development isn't exactly an easy topic to broach, though you're bound to find some examples around the net of "Hello World" type examples. There may even be some here at CP, I haven't looked. You wouldn't need terribly much functionality in the driver, so you may well find it considerably easier than it seems daunting. You could probably start with just two functions above the basic house-keeping stuff. One to read the value of the register(port) and another to write a value to it. You could then provide finer functionality in a user-mode DLL for specifics like opening the drawer etc - i.e use the ability to write a register from the DLL, setting the appropriate bit. Best of luck, hope it works out well for you. :)
  • Problem to open ppt file using automation.

    help ios com testing tools
    9
    0 Votes
    9 Posts
    0 Views
    L
    ok sir.
  • MFC display data question

    question c++ lounge
    4
    0 Votes
    4 Posts
    0 Views
    A
    It depends on what your control actually is (the one that you want to display some data on)... a dialog isn't a control, it's a window. A control would be, for example, an edit box.
  • ON_COMMAND macro in MFC - opinions / explanations please.

    c++ discussion
    14
    0 Votes
    14 Posts
    1 Views
    L
    Vaclav_Sal wrote: It was dissapointing that majority of replies managed to stay off the subject. It was disappointing that your original question was so confusing.
  • Add drop shadow to a child dialog

    help
    5
    0 Votes
    5 Posts
    0 Views
    B
    I used this in my dialog, After that try to hide the dialog, Dialog is hiding but the shadow is not hiding. I am using ShowWindow(SW_HIDE).
  • Touch down event with hook(WH_MOUSE_LL) and WM_LBUTTON

    question help
    6
    0 Votes
    6 Posts
    0 Views
    C
    Dear Randor: I think you are right. It is different between touch and mouse. when left mouse button down, it will play sound. when I touch the panel, and leave fast, it will play or touch the panel, and then move my finger on panel, it will play sound, too. Thank for your help, Victor.
  • 0 Votes
    2 Posts
    0 Views
    N
    Driver development is too much different of what you are used to do in C/C++ development user mode, you don't have right the vocabulary to understand even if I reply. Buy and read Windows Internals by Mark Russinovich 1[^] and 2[^]. (These books are one of the best investment I ever made) It will not show you the code, but is the necessary bridge before starting to read book and resources about driver development. In a very high lever yes, Windows API you are using in user land call functions in the driver, but the mapping is not as simple as a "override" in C++.
  • MFC efficiency question

    c++ tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    CPalliniC
    Don't worry about performance: since you are using the serial port for communicating with the microcontroller then your application execution time is, in any case, dominated by the I/O operations. In any case MFC, at this level (that is simple GUI stuff), is about as efficient as the raw C WINAPI code. Veni, vidi, vici.
  • MSBuild Project Files

    visual-studio question csharp debugging tutorial
    7
    0 Votes
    7 Posts
    0 Views
    A
    Happens...
  • 0 Votes
    2 Posts
    0 Views
    V
    OK, for some unknown reason , AKA MS naming convention - these fiters builds are not using dll extension , but ax. And apparently they are "self registering " too.
  • global touch event with sound using mfc

    question c++ help
    2
    0 Votes
    2 Posts
    1 Views
    S
    Try this link [Quickstart: Touch input (Windows Store apps using C#/VB/C++ and XAML)] []
  • TFS on/in the cloud

    tutorial question csharp visual-studio com
    3
    0 Votes
    3 Posts
    0 Views
    B
    Understand, you are correct. Thank you. Thanks for your time If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig\_106/
  • When clicked a button on any application, play sound

    question c++
    6
    0 Votes
    6 Posts
    1 Views
    M
    Please verify that the Hook got installed properly. Once the hook is installed, you should be able to get the messages. When the mouse event is received, you can check the window handle. Using that window handle, identify the class type of the window. [Delegates]      [Virtual Desktop]      [Tray Me !] -Malli...! :rose:****
  • C program help

    com help question
    20
    0 Votes
    20 Posts
    0 Views
    D
    And those desired results are what? :confused: Have you stepped through it using the debugger? "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
  • redirecting output of CMD with administrator privileges

    help question
    3
    0 Votes
    3 Posts
    1 Views
    D
    camillo87 wrote: Could you please help, how can I solve this problem? You might also try this forum. "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