Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

dennisV

@dennisV
About
Posts
31
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to replace the system clock?
    D dennisV

    Thank you - I'll check it out. // MCP, MCSD // Software for animal shelters // http://www.smartpethealth.com

    C / C++ / MFC mcp tutorial question

  • abababab() - what to do?
    D dennisV

    Thank you for the reply - there's actually a similar code that modifies the variable in question... And that's what's causing the problem, I guess. I have been staring at it for a day now, I guess I'll do so some more ;) Perhaps it sometimes adds one extra pointer and moves it beyond the boundary...

    C / C++ / MFC debugging data-structures help tutorial question

  • abababab() - what to do?
    D dennisV

    Thank you - I'm using VC++ 2002, and I'll check out your suggestions on heap debugging. In Debug mode the program reports this error, in Release is just silently throws me out back to Windows (which is understandable).

    C / C++ / MFC debugging data-structures help tutorial question

  • abababab() - what to do?
    D dennisV

    Nope, just checked and there're no core files directly included in my workspace :confused: It's a really strange problem.

    C / C++ / MFC debugging data-structures help tutorial question

  • abababab() - what to do?
    D dennisV

    Yes, I am using MFC and I'll check if there are any core MFC files included in the project, there are included in my stdafx.h of course, but I guess you mean if it's actually included and shows up in the Solution tab? I've narrowed the problem to one function that does in-memory array manipulation, but I have no idea why it fails, it looks innocent enough. Thanks.

    C / C++ / MFC debugging data-structures help tutorial question

  • abababab() - what to do?
    D dennisV

    Mr.Prakash wrote: There may be cases where due to wrong programming logic may coz errors in the system dlls... you need to check out ur programm properly first. Well, I did spend a lot of time checking it out otherwise I wouldn't be asking for help ;) It's narrowed down to one function, but I need to trace through it to see where exactly things go wrong and I can't do that without a callstack. And if I put a breakpoint in that function just before it is supposed to return an error, if overwrites the memory and I never hit my breakpoint, things just assert.

    C / C++ / MFC debugging data-structures help tutorial question

  • abababab() - what to do?
    D dennisV

    Hello all, I need help here - there's a pointer corruption somewhere (I guess), and the debugger throws me out with the following call stack: ntdll.dll! 77f75a58() abababab() That's it! Could someone tell me how to debug this and see what's happening and where? Oh, it also says this in the output window: HEAP[my.exe]: Heap block at 0181FC40 modified at 0182051C past requested size of 8d4 TIA

    C / C++ / MFC debugging data-structures help tutorial question

  • Capturing WM_ACTIVATE in CPropertyPage
    D dennisV

    jhwurmbach wrote: They will thell you its the intended behaviour Right:-D Oh well, I guess I'll do it the old-fashioned way, until I can find a solution - I'll just add an event handler for every change in every control and save data then. At least it won't be lost then. Thanks again for your help! MCP, MCSD

    C / C++ / MFC question mcp hardware help

  • Capturing WM_ACTIVATE in CPropertyPage
    D dennisV

    Yes, without the CFormView things worked for me too. That's why I got stuck when I implemented the CFormView. Perhaps it's an MFC bug or something... I think I'll go complain to MS, although that probably won't help me ;) MCP, MCSD

    C / C++ / MFC question mcp hardware help

  • Capturing WM_ACTIVATE in CPropertyPage
    D dennisV

    Well, WM_KILLFOCUS is caught in the CFormView, but I have no way of knowing (or at least I don't know of a way) to determine which window lost the focus, so I don't know to which window to send it. I have a property sheet and a grid control on my CFormView, and I need to determine when the property sheet looses focus, but OnKillFocus() provides a pointer to the new window, not the window that lost focus. Or is there a way to find out which window lost focus? Thanks for your help! MCP, MCSD

    C / C++ / MFC question mcp hardware help

  • Capturing WM_ACTIVATE in CPropertyPage
    D dennisV

    Well, I've tried capturing WM_KILLFOCUS and it doesn't reach the CPropertySheet :confused: That's the original problem I have - normal messages are eaten up by the CMainFrame and never reach anywhere. That's why WM_ACTIVATE doesn't work as well... MCP, MCSD

    C / C++ / MFC question mcp hardware help

  • Capturing WM_ACTIVATE in CPropertyPage
    D dennisV

    No, these messages are not sent to propery pages. MCP, MCSD

    C / C++ / MFC question mcp hardware help

  • Capturing WM_ACTIVATE in CPropertyPage
    D dennisV

    Well, the form view has the property sheets and a grid control, so when a user clicks on something in the grid, data gets updated in the property sheets, but it has to be saved when changed in the property sheets and displayed in the grid. So, that's the problem I have - to find out when the user clicked away from the property page, so that I could update the grid BEFORE the click gets there and resets the data. I don't know if it's wrong UI design, but I couldn't think of any other way to accomplish this? But I was thinking about updating the data after each control change, but I wanted to stay away from that path for as long as possible, since I have 6 property pages with around 50 controls, so that would be a lot of handler functions :omg: MCP, MCSD

    C / C++ / MFC question mcp hardware help

  • Capturing WM_ACTIVATE in CPropertyPage
    D dennisV

    But aren't these two messages what the OnSetActive() and OnKillActive() MFC functions do? You see, I need the control to generate something when the user clicks away from it, not just changes to another property page. MCP, MCSD

    C / C++ / MFC question mcp hardware help

  • Capturing WM_ACTIVATE in CPropertyPage
    D dennisV

    Well, I did that, but it doesn't cover all cases I want - for example, when a user simply clicks away from my property page to another control on the form view, I want to save data he had in the pp. MCP, MCSD

    C / C++ / MFC question mcp hardware help

  • Capturing WM_ACTIVATE in CPropertyPage
    D dennisV

    Hello, I have a CPropertySheet with a few property pages embedded in a form view. I would like to capture the WM_ACTIVATE message to see when I should write/read data from/to property pages. The problems is the the form view is eating up that message. I can only monitor WM_CHILDACTIVATE and OnKillActive(), but that doesn't cover all cases. I want to save data whenever a user clicks away from the property sheet. How can I do that? Any help greatly appreciated! MCP, MCSD

    C / C++ / MFC question mcp hardware help

  • Displaying time for different time zones
    D dennisV

    David Chamberlain wrote: Is there any way you could let the users select an offset from GMT, rather than by selecting a city? :rolleyes: That would be too easy... Unfortunately, for most of my users, this will be too hard of a task - it's not a major part of my program, just a small nice addition I want to bring in. Besides, most people won't really know what time zone they're in, and even if they do know about their own time zone, they probably won't know about another zone of the world (for example to watch time in New York, Sydney and Kuwait). David Chamberlain wrote: scrolling world map that they could select their area I've searched around, but didn't find such a control... That would be really nice though. Thank you for replying, MCP, MCSD

    C / C++ / MFC mcp help tutorial learning

  • Displaying time for different time zones
    D dennisV

    Yes, I understand that approach, but what I need is to go International :omg: That's the problem - if I choose to implement it this way, then where can I get a list of all major countries/cities with their times zones? Or is there another approach? Anyway, thank you for replying, MCP, MCSD

    C / C++ / MFC mcp help tutorial learning

  • Displaying time for different time zones
    D dennisV

    Hello all, Could someone please direct me to where I can get information (or better yet, sample code) on how to apply different time zones to system time (without changing the actual system time, of course). :confused: I've looked at MSDN, but found nothing useful. I also didn't find any way to obtain the list of time zones along with countries/cities that Windows itself uses for regional settings. Any help greatly appreciated, Thank you in advance, MCP, MCSD

    C / C++ / MFC mcp help tutorial learning

  • DPI control
    D dennisV

    Hello, Is it possible to create dialogs that are *always* the same size, regardless of the user's screen DPI? I'm using subclassed dialogs in my program, as well as other control elements, but when I tried it with large Windows fonts everything just got screwed up (naturally). I tried using ->SetFont(...), but that didn't solve anything. Was anyone successful in finding a solution for this? I know its against what MS tells us is "good coding practice", but hey, I never promised to be good :-) (BTW - I'm using VC++ MFC) Thank you, Dennis MCP, MCSD ASP Developer Member

    C / C++ / MFC c++ mcp question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups