Hello: Automation Server Sample

Click to open or copy the Hello project files.

The Hello sample is a simple Automation server. This is a good sample to use to learn to create your first Automation server. This sample has a Hello object that supports the HelloMessage property and the SayHello method.

This sample implements the following features:

Building SDK Samples

This sample uses the following keywords:

_fstrstr; addref; chello; chellocf; codisconnectobject; colockobjectexternal; converttoansi; converttounicode; coregisterclassobject; corevokeclassobject; create; createdialog; createerrorinfo; createinstance; csupporterrorinfo; defdlgproc; destroywindow; dispatchmessage; dispgetidsofnames; dispinvoke; failed; from_ole_string; get_application; get_fullname; get_hellomessage; get_name; get_parent; get_visible; get_wm_command_cmd; get_wm_command_hwnd; get_wm_command_id; getdlgitemtext; getidsofnames; getmessage; getmodulefilename; gettypeinfo; gettypeinfocount; gettypeinfoofguid; initapplication; initinstance; interfacesupportserrorinfo; invoke; iswindow; loadcursor; loadicon; loadregtypelib; loadstring; loadtypeinfo; loadtypelib; lockserver; make_scode; makeintresource; messagebox; multibytetowidechar; oleinitialize; olestr; oleuninitialize; outputdebugstring; postmessage; postquitmessage; processcmdline; put_hellomessage; put_visible; queryinterface; quit; raiseexception; registeractiveobject; registerclass; release; resultfromscode; revokeactiveobject; sayhello; setdescription; setdlgitemtext; seterrorinfo; setguid; setmessagequeue; setsource; showwindow; stdmethod; stdmethod_; stdmethodimp_; succeeded; switch; sysallocstring; sysfreestring; sysreallocstring; text; to_ole_string; translatemessage; uninitialize; widechartomultibyte; wsprintf