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
W

Will Woods

@Will Woods
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Suspend-to-Ram and Wake-on-Alarm
    W Will Woods

    Hi, I want to be able to initiate a suspend, and also set the time for wake-up, from software under windows XP (preferably using C). Can anyone point me in the right direction?? Thanks, Will

    System Admin question

  • ON_MESSAGE and multiple inheritance
    W Will Woods

    Problem solved - I had declared the callback functions to return bool (as 'required' by some other hardware drivers) - changing the return type to LRESULT fixed the problem. I wonder why this compiled ok (I just checked it, it does) before I added the second inheritance?? Thanks for your help. Will

    C / C++ / MFC hardware oop help

  • ON_MESSAGE and multiple inheritance
    W Will Woods

    As far as I can tell, yes I do have to derive from D360::CController - it is doing something I don't understand with ATL to interface with the hardware. The only example code the company sent me used multiple inheritance. Is this a general problem with ON_MESSAGE and multiple inheritance, or just a strange quirk of the classes I am trying to inherit from? Will

    C / C++ / MFC hardware oop help

  • ON_MESSAGE and multiple inheritance
    W Will Woods

    Hi, I have a class

    class CTestDlg : public CDialog , public D360::CController
    {

    which I want to respond to messages like

    BEGIN_MESSAGE_MAP(CTestDlg, CDialog)
    //{{AFX_MSG_MAP(CTestDlg)
    ON_MESSAGE(OLDA_WM_BUFFER_DONE, OnBufferDone)
    //}}AFX_MSG_MAP
    END_MESSAGE_MAP()

    This worked when the CTestDlg class only inherited from CDialog, but now I get the following compilation error

    error C2440: 'type cast' : cannot convert from 'int (__thiscall CTestDlg::*)(unsigned int,long)' to 'long (__thiscall CWnd::*)(unsigned int,long)'
    Pointers to members have different representations; cannot cast between them

    I don't know much about the D360::CController class, it was supplied with some hardware. Any suggestions would be appreciated. Will

    C / C++ / MFC hardware oop help
  • Login

  • Don't have an account? Register

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