Article ID: 137343
Article Last Modified on 11/21/2006
OBJ1.OBJ2.PropertyThis article demonstrates the creation of a simple OLE Automation server with Visual C++, accessible from Visual Basic, that exposes such an object.
Class Name: nested Class Type: CCmdTarget Check: OLE Automation
External Name: Value Type: long
External Name: Nested Return Type: LPDISPATCH
#include "nested.h"
LPDISPATCH CAutoServDoc::Nested()
{
//TODO: Add your dispatch handler code here
return m_nested.GetIDispatch(TRUE);
}
Dim Server As object
Sub Form_Load ()
Set Server = CreateObject("autoserv.document")
Server.Nested.Value = 10
x = Server.Nested.Value
End Sub
Additional query words: 1.50 1.51 1.52 2.00 2.10 2.20 2.50 2.51 2.52 3.00 3.10 3.20 4.00 4.10 vc vb client controller
Keywords: kbautomation kbcode kbinfo KB137343