Click here to Skip to main content
15,922,533 members
Home / Discussions / COM
   

COM

 
Generalmidl problems Pin
Tristan Rhodes28-Dec-03 6:05
Tristan Rhodes28-Dec-03 6:05 
GeneralRe: midl problems Pin
Stefan Pedersen28-Dec-03 6:19
Stefan Pedersen28-Dec-03 6:19 
GeneralRe: midl problems Pin
Tristan Rhodes28-Dec-03 6:40
Tristan Rhodes28-Dec-03 6:40 
Generalvcvars.bat - Not recognised Pin
Tristan Rhodes28-Dec-03 6:46
Tristan Rhodes28-Dec-03 6:46 
GeneralNever Mind Pin
Tristan Rhodes28-Dec-03 6:52
Tristan Rhodes28-Dec-03 6:52 
GeneralRe: midl problems Pin
Heath Stewart28-Dec-03 7:02
protectorHeath Stewart28-Dec-03 7:02 
GeneralRe: midl problems Pin
Jörgen Sigvardsson29-Dec-03 11:49
Jörgen Sigvardsson29-Dec-03 11:49 
GeneralCOM returns an ADO Connection Pin
Hesham Amin27-Dec-03 10:48
Hesham Amin27-Dec-03 10:48 
Hi all..
I want to make a component (ATL) that returns an ADO Connection..
declaration of function :

STDMETHODIMP Cobj::get_Con(_ADOConnection *pVal)
{
.
.
.
return S_OK;
}

the problem is in the IDL :
// RetObj.idl : IDL source for RetObj.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (RetObj.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";

	[
		object,
		uuid(DCF77B2B-1F18-4753-B0E5-6A937407509C),
		dual,
		helpstring("Iobj Interface"),
		pointer_default(unique)
	]
	interface Iobj : IDispatch
	{
		[id(1), helpstring("method GetIt")] HRESULT GetIt();
		[propget, id(2), helpstring("property Con")] HRESULT Con([out, retval] _ADOConnection  *pVal);
	};

[
	uuid(310CB985-C3C4-4244-9D75-AB3345F8E982),
	version(1.0),
	helpstring("RetObj 1.0 Type Library")
]
library RETOBJLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");
	importlib("C:\Program Files\Common Files\system\ado\msado15.dll");

	[
		uuid(DAACB26F-1C20-455C-A1CE-2B979040A51F),
		helpstring("obj Class")
	]
	coclass obj
	{
		[default] interface Iobj;
	};
};

I get an erron neer the _ADOConnection :
error MIDL2025 : syntax error : expecting a type specification near "_ADOConnection"
any help please?
GeneralSolved Pin
Hesham Amin28-Dec-03 23:46
Hesham Amin28-Dec-03 23:46 
GeneralPassing HWND from a MDI app to a activeX control Pin
Sunil122127-Dec-03 1:39
Sunil122127-Dec-03 1:39 
GeneralRe: Passing HWND from a MDI app to a activeX control Pin
Abhishek Srivastava28-Dec-03 21:34
Abhishek Srivastava28-Dec-03 21:34 
GeneralCOM interface: EnumFormatEtc Pin
Tristan Rhodes23-Dec-03 8:46
Tristan Rhodes23-Dec-03 8:46 
GeneralRe: COM interface: EnumFormatEtc Pin
Stefan Pedersen27-Dec-03 10:59
Stefan Pedersen27-Dec-03 10:59 
GeneralRe: COM interface: EnumFormatEtc Pin
Jörgen Sigvardsson6-Jan-04 6:25
Jörgen Sigvardsson6-Jan-04 6:25 
GeneralRegister an exe COM server Pin
User 78226222-Dec-03 22:58
professionalUser 78226222-Dec-03 22:58 
GeneralRe: Register an exe COM server Pin
valikac26-Dec-03 5:39
valikac26-Dec-03 5:39 
Generalextern "C" DllExport Function crashing Pin
Kishor Morkhandikar22-Dec-03 19:56
Kishor Morkhandikar22-Dec-03 19:56 
GeneralRe: extern "C" DllExport Function crashing Pin
Sebastián Benítez23-Dec-03 0:24
Sebastián Benítez23-Dec-03 0:24 
GeneralRe: extern "C" DllExport Function crashing Pin
Lim Bio Liong26-Dec-03 20:17
Lim Bio Liong26-Dec-03 20:17 
GeneralProblems passing a DISPPARAMS structure to IDispatch::Invoke Pin
Dark Magus22-Dec-03 17:39
Dark Magus22-Dec-03 17:39 
GeneralRe: Problems passing a DISPPARAMS structure to IDispatch::Invoke Pin
Vi223-Dec-03 23:36
Vi223-Dec-03 23:36 
GeneralRe: Problems passing a DISPPARAMS structure to IDispatch::Invoke Pin
Dark Magus25-Dec-03 11:34
Dark Magus25-Dec-03 11:34 
GeneralRe: Problems passing a DISPPARAMS structure to IDispatch::Invoke Pin
Vi225-Dec-03 19:21
Vi225-Dec-03 19:21 
GeneralRe: Problems passing a DISPPARAMS structure to IDispatch::Invoke Pin
Dark Magus26-Dec-03 10:03
Dark Magus26-Dec-03 10:03 
Generalabout LocalServer COM Register Pin
yingkou22-Dec-03 15:05
yingkou22-Dec-03 15:05 

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.