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
Will Woods
Posts
-
Suspend-to-Ram and Wake-on-Alarm -
ON_MESSAGE and multiple inheritanceProblem 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
-
ON_MESSAGE and multiple inheritanceAs 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
-
ON_MESSAGE and multiple inheritanceHi, 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 themI don't know much about the D360::CController class, it was supplied with some hardware. Any suggestions would be appreciated. Will