Click here to Skip to main content
16,015,258 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Why the function istringstream.getline is not working? Pin
Tim Smith16-Apr-03 2:17
Tim Smith16-Apr-03 2:17 
GeneralRe: Why the function istringstream.getline is not working? Pin
George217-Apr-03 15:41
George217-Apr-03 15:41 
QuestionHow to use ActiveX controls in WTL? Pin
Ernesto D.14-Apr-03 14:02
Ernesto D.14-Apr-03 14:02 
AnswerRe: How to use ActiveX controls in WTL? Pin
Stephane Rodriguez.14-Apr-03 21:33
Stephane Rodriguez.14-Apr-03 21:33 
GeneralRe: How to use ActiveX controls in WTL? Pin
Ernesto D.14-Apr-03 23:00
Ernesto D.14-Apr-03 23:00 
GeneralRe: How to use ActiveX controls in WTL? Pin
Stephane Rodriguez.16-Apr-03 11:19
Stephane Rodriguez.16-Apr-03 11:19 
GeneralRe: How to use ActiveX controls in WTL? Pin
Ernesto D.16-Apr-03 15:36
Ernesto D.16-Apr-03 15:36 
GeneralInterface not showing in COM+ Pin
Le centriste14-Apr-03 5:18
Le centriste14-Apr-03 5:18 
I have an ATL project that have a simple class and interface. It contains one object. I wanted my class to implement another interface (IFunctoid from BizTalk Server 2002), so I right-click on the class (in ClassViewer) and choose Implement Interface... from the menu.

I choose the correct DLL that contains the interface definition, and the C++ code is happily added to the existing code when I choose the interface. All C++ seem fine.

The problem is that the IFunctoid interface don't show up in Oleview when I choose View Typelib (it does when I choose Create Instance). It does not show up in COM+ either (the default interface does, but not the IFunctoid interface).

I noticed that the .idl file does not contain any reference to the IFunctoid interface, and there is no such thing like functoid.idl to include in my project.

There is the code generated by the wizard when I chose Implement Interface (I didn't edit the code yet):

// SecurityFunctoid.h : Declaration of the CSecurityFunctoid

#ifndef __SECURITYFUNCTOID_H_
#define __SECURITYFUNCTOID_H_

#include "resource.h"       // main symbols
#import "C:\Program Files\Microsoft BizTalk Server\XML Tools\CannedFunctoids.dll" raw_interfaces_only, raw_native_types,\
                           no_namespace, named_guids 

/////////////////////////////////////////////////////////////////////////////
// CSecurityFunctoid
class ATL_NO_VTABLE CSecurityFunctoid : 
	public CComObjectRootEx<CComSingleThreadModel>,
	public CComCoClass<CSecurityFunctoid, &CLSID_SecurityFunctoid>,
	public IDispatchImpl<ISecurityFunctoid, &IID_ISecurityFunctoid, &LIBID_SECURITYCALCULATIONLib>,
	public IDispatchImpl<IFunctoid, &IID_IFunctoid, &LIBID_BTSCannedFunctoidsLib>
{
public:
	CSecurityFunctoid()
	{
	}

DECLARE_REGISTRY_RESOURCEID(IDR_SECURITYFUNCTOID)

DECLARE_PROTECT_FINAL_CONSTRUCT()

BEGIN_COM_MAP(CSecurityFunctoid)
	COM_INTERFACE_ENTRY(ISecurityFunctoid)
//DEL 	COM_INTERFACE_ENTRY(IDispatch)
	COM_INTERFACE_ENTRY2(IDispatch, ISecurityFunctoid)
	COM_INTERFACE_ENTRY(IFunctoid)
END_COM_MAP()

// ISecurityFunctoid
public:
// IFunctoid
	STDMETHOD(get_Version)(LONG * pVersion)
	{
		if (pVersion == NULL)
			return E_POINTER;
			
		return E_NOTIMPL;
	}
	STDMETHOD(get_FunctionsCount)(LONG * plCount)
	{
		if (plCount == NULL)
			return E_POINTER;
			
		return E_NOTIMPL;
	}
	STDMETHOD(GetFunctionDescripter)(LONG lIndex, FUNC_CATEGORY * pFuncCategory,
                                         SCRIPT_CATEGORY * pScriptCategory,
                                         FUNC_TYPE * pFuncType,
                                         BSTR * pbstrName,
                                         BSTR * pbstrTooltip,
                                         LONG * plBitmapID,
                                         LONG * plParmCount,
                                         LONG * pFuncId)
	{
		if (pFuncCategory == NULL)
			return E_POINTER;
			
		if (pScriptCategory == NULL)
			return E_POINTER;
			
		if (pFuncType == NULL)
			return E_POINTER;
			
		if (pbstrName == NULL)
			return E_POINTER;
			
		if (pbstrTooltip == NULL)
			return E_POINTER;
			
		if (plBitmapID == NULL)
			return E_POINTER;
			
		if (plParmCount == NULL)
			return E_POINTER;
			
		if (pFuncId == NULL)
			return E_POINTER;
			
		return E_NOTIMPL;
	}
	STDMETHOD(GetFunctionParameter)(LONG funcId,
                                        LONG lParameter,
                                        LONG * plConnectionType)
	{
		if (plConnectionType == NULL)
			return E_POINTER;
			
		return E_NOTIMPL;
	}
	STDMETHOD(GetScriptBuffer)(LONG cFuncId,
                                   LONG lInputParameters,
                                   BSTR * pbstrScriptBuffer)
	{
		if (pbstrScriptBuffer == NULL)
			return E_POINTER;
			
		return E_NOTIMPL;
	}
};

#endif //__SECURITYFUNCTOID_H_

GeneralRe: Interface not showing in COM+ Pin
Brian Shifrin15-Apr-03 1:54
Brian Shifrin15-Apr-03 1:54 
GeneralRe: Interface not showing in COM+ Pin
Le centriste15-Apr-03 8:25
Le centriste15-Apr-03 8:25 
GeneralConverting strings. Pin
Martin Marvinski12-Apr-03 11:14
Martin Marvinski12-Apr-03 11:14 
GeneralRe: Converting strings. Pin
ian mariano13-Apr-03 12:21
ian mariano13-Apr-03 12:21 
GeneralI can't Insert a ATL object when using New ATL Object?(It is not about tech, just for help!) Pin
white jungle11-Apr-03 16:33
white jungle11-Apr-03 16:33 
Generalostream_iterator error Pin
Kevin McFarlane11-Apr-03 5:26
Kevin McFarlane11-Apr-03 5:26 
GeneralRe: ostream_iterator error Pin
Joaquín M López Muñoz11-Apr-03 10:13
Joaquín M López Muñoz11-Apr-03 10:13 
GeneralRe: ostream_iterator error Pin
Kevin McFarlane12-Apr-03 7:56
Kevin McFarlane12-Apr-03 7:56 
GeneralRe: ostream_iterator error Pin
Joaquín M López Muñoz11-Apr-03 10:17
Joaquín M López Muñoz11-Apr-03 10:17 
GeneralMedia Player Pin
Prog Mmer10-Apr-03 22:14
Prog Mmer10-Apr-03 22:14 
GeneralATL Server Web Services arrays and size_is Pin
scatter10-Apr-03 16:16
scatter10-Apr-03 16:16 
GeneralRe: ATL Server Web Services arrays and size_is Pin
Vi210-Apr-03 16:58
Vi210-Apr-03 16:58 
GeneralWTL: Reflect notifications to a control Pin
Ernesto D.9-Apr-03 15:08
Ernesto D.9-Apr-03 15:08 
GeneralRe: WTL: Reflect notifications to a control Pin
Michael Dunn9-Apr-03 19:06
sitebuilderMichael Dunn9-Apr-03 19:06 
GeneralRe: WTL: Reflect notifications to a control Pin
Ernesto D.9-Apr-03 19:53
Ernesto D.9-Apr-03 19:53 
QuestionMicrosoft Web Browser Object into DialogBox, without MFC? Pin
Adrian Bacaianu8-Apr-03 20:18
Adrian Bacaianu8-Apr-03 20:18 
GeneralSys Tray Icon disappears after Explorer reload Pin
MrGlover8-Apr-03 15:53
MrGlover8-Apr-03 15:53 

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.