Click here to Skip to main content
15,898,743 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: in socket, how to know send buffer is full? Pin
hanlei000000000926-Oct-06 1:17
hanlei000000000926-Oct-06 1:17 
Questionproblem with a control ActiveX Pin
zizzzz25-Oct-06 21:28
zizzzz25-Oct-06 21:28 
AnswerRe: problem with a control ActiveX Pin
Cedric Moonen25-Oct-06 21:37
Cedric Moonen25-Oct-06 21:37 
GeneralRe: problem with a control ActiveX Pin
zizzzz25-Oct-06 21:53
zizzzz25-Oct-06 21:53 
GeneralRe: problem with a control ActiveX Pin
Cedric Moonen25-Oct-06 22:00
Cedric Moonen25-Oct-06 22:00 
GeneralRe: problem with a control ActiveX Pin
zizzzz25-Oct-06 23:11
zizzzz25-Oct-06 23:11 
GeneralRe: problem with a control ActiveX Pin
Cedric Moonen25-Oct-06 23:20
Cedric Moonen25-Oct-06 23:20 
GeneralRe: problem with a control ActiveX Pin
zizzzz25-Oct-06 23:42
zizzzz25-Oct-06 23:42 
because if I want to add a control ActiveX I must select the FormView
right click > insert Control ActiveX
then select the control add variable > category control
so it generate two files here you are some code of itdcinterfaceCtrl.h
class CItdcinterfacectrl1 : public CWnd
{
protected:
DECLARE_DYNCREATE(CItdcinterfacectrl1)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0xFB05973A, 0x3C1E, 0x46DC, { 0x95, 0x93, 0xDC, 0xEE, 0xC4, 0x29, 0xDC, 0x88 } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID);
}

BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,
UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey);
}

// Attributs
public:


// Opérations
public:

// _DITDCInterface

// Functions
//

void DoorTimeSchedule(LPCTSTR DoorTimeSchedule1, LPCTSTR DoorTimeSchedule2, LPCTSTR DoorTimeSchedule3, LPCTSTR DoorTimeSchedule4)
{
static BYTE parms[] = VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR ;
InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms, DoorTimeSchedule1, DoorTimeSchedule2, DoorTimeSchedule3, DoorTimeSchedule4);
}
void AccessDoor(LPCTSTR DoorIndex1, LPCTSTR DoorIndex2, LPCTSTR DoorIndex3, LPCTSTR DoorIndex4)
{
static BYTE parms[] = VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR ;
InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, parms, DoorIndex1, DoorIndex2, DoorIndex3, DoorIndex4);
}

but if I create a class to this control and not a member variable I don't obtain attributs and function chown below!
GeneralRe: problem with a control ActiveX Pin
Cedric Moonen25-Oct-06 23:50
Cedric Moonen25-Oct-06 23:50 
GeneralRe: problem with a control ActiveX Pin
zizzzz26-Oct-06 5:20
zizzzz26-Oct-06 5:20 
Questionpath name Pin
radhika2825-Oct-06 21:19
radhika2825-Oct-06 21:19 
AnswerRe: path name Pin
stanlymt25-Oct-06 23:28
stanlymt25-Oct-06 23:28 
AnswerRe: path name Pin
freeman86825-Oct-06 23:33
freeman86825-Oct-06 23:33 
AnswerRe: path name Pin
ThatsAlok26-Oct-06 19:25
ThatsAlok26-Oct-06 19:25 
Questionhow to restrict access for USB device Pin
pavan_sw25-Oct-06 21:07
pavan_sw25-Oct-06 21:07 
QuestionKill DirectX Pin
Daniel Kanev25-Oct-06 20:39
Daniel Kanev25-Oct-06 20:39 
AnswerRe: Kill DirectX Pin
Hamid_RT25-Oct-06 21:05
Hamid_RT25-Oct-06 21:05 
GeneralRe: Kill DirectX Pin
Daniel Kanev25-Oct-06 21:27
Daniel Kanev25-Oct-06 21:27 
QuestionWindows related Question (VC++) Pin
Programm3r25-Oct-06 19:22
Programm3r25-Oct-06 19:22 
AnswerRe: Windows related Question (VC++) Pin
Jonathan [Darka]25-Oct-06 21:13
professionalJonathan [Darka]25-Oct-06 21:13 
Questionhow to achieve .... Pin
Anamika200525-Oct-06 19:13
Anamika200525-Oct-06 19:13 
AnswerRe: how to achieve .... Pin
Hamid_RT25-Oct-06 19:28
Hamid_RT25-Oct-06 19:28 
AnswerRe: how to achieve .... Pin
Rajesh R Subramanian25-Oct-06 19:41
professionalRajesh R Subramanian25-Oct-06 19:41 
Questionerror in code? Pin
With_problem25-Oct-06 19:07
With_problem25-Oct-06 19:07 
AnswerRe: error in code? Pin
ThatsAlok25-Oct-06 20:40
ThatsAlok25-Oct-06 20:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.