Hi,

I have created an ActiveX project and I want to insert it into a MFC application. I tried to do this using the standard Add Class -> From an ActiveX Control (I am using VS.NET). A wrapper class was created properly, but there are no get/set functions for the properties defined in the IDL for the ActiveX - only for the defined methods.

Here's an abstract from the control's IDL:

Code:
library ReportControlLib
{
	importlib(STDOLE_TLB);

	//  Primary dispatch interface for CReportCtrl

	[ uuid(CD57B889-3BB9-4228-8B9F-691B27D368CF),
	  helpstring("Dispatch interface for Report Control")]
	dispinterface _DReportControl
	{
		properties:
			[id(1)] IDispatch* ReportEngine;
			[id(2)] SHORT PageFrame;
			[id(3)] SHORT PageShadow;
			[id(4)] SHORT ExactPreview;
			[id(5)] LONG ShadowWidth;
			[id(6)] LONG FrameWidth;
			[id(7)] OLE_COLOR WindowColor;
			[id(8)] OLE_COLOR PaperColor;
			[id(9)] OLE_COLOR ShadowColor;
			[id(10)] OLE_COLOR FrameColor;
			[id(11)] LONG ZoomMode;
			[id(12)] LONG CurrentPage;

		methods:
			[id(DISPID_ABOUTBOX)] void AboutBox();
	};
... and the only function which is generated in the wrapper class is

Code:
// Operations
public:

	void AboutBox()
	{
		InvokeHelper(DISPID_ABOUTBOX, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
	}
Am I missing something? What should I do to get the "helper" functions for the properties generated? Thanx in advance.