Click here to Skip to main content
15,898,588 members
Home / Discussions / COM
   

COM

 
Questiondundas chart in asp.net Pin
gvpr3-Aug-07 1:31
gvpr3-Aug-07 1:31 
QuestionUnable to receive notifications from DFileSystemImageEvents interface Pin
opb2-Aug-07 20:46
opb2-Aug-07 20:46 
AnswerRe: Unable to receive notifications from DFileSystemImageEvents interface Pin
User 2155973-Aug-07 3:49
User 2155973-Aug-07 3:49 
QuestionCalling a VB.NET COM+ Remotely Pin
Andez20041-Aug-07 0:06
Andez20041-Aug-07 0:06 
AnswerRe: Calling a VB.NET COM+ Remotely Pin
sunil20046-Aug-07 21:10
sunil20046-Aug-07 21:10 
QuestionDeclaration problem Pin
Karismatic31-Jul-07 20:15
Karismatic31-Jul-07 20:15 
QuestionRe: Declaration problem Pin
prasad_som31-Jul-07 20:56
prasad_som31-Jul-07 20:56 
AnswerRe: Declaration problem Pin
Karismatic31-Jul-07 21:11
Karismatic31-Jul-07 21:11 
actually it is a seperate class and i want to use it's object as the argument,
but it is not declared in IDL file before this statement.

This is actuall IDL file that is created in default

// dbcs07.idl : IDL source for dbcs07.dll<br />
//<br />
<br />
// This file will be processed by the MIDL tool to<br />
// produce the type library (dbcs07.tlb) and marshalling code.<br />
<br />
import "oaidl.idl";<br />
import "ocidl.idl";<br />
<br />
typedef enum<br />
{<br />
	connOracle		=	1,<br />
	connSQLServer	=	2,<br />
	connAccess		=	3<br />
} dbFlag;<br />
<br />
	[<br />
		object,<br />
		uuid(6DD75115-9828-4BA0-9006-D85B1DFDA2A8),<br />
		dual,<br />
		helpstring("IADO_DB Interface"),<br />
		pointer_default(unique)<br />
	]<br />
	interface IADO_DB : IDispatch<br />
	{<br />
		[id(1), helpstring("method ConnectDatabase")] HRESULT ConnectDatabase(BSTR sDatabase,BSTR sUserID,BSTR sPassword,BSTR sServer,dbFlag connDB);<br />
		[id(2), helpstring("method DisconnectDatabase")] HRESULT DisconnectDatabase();<br />
		[id(3), helpstring("method ExecuteSQL")] HRESULT ExecuteSQL(BSTR sQuery);<br />
		[propget, id(4), helpstring("property DatabaseName")] HRESULT DatabaseName([out, retval] BSTR *pVal);<br />
		[propget, id(5), helpstring("property SQL")] HRESULT SQL([out, retval] BSTR *pVal);<br />
		[propput, id(5), helpstring("property SQL")] HRESULT SQL([in] BSTR newVal);<br />
		[propget, id(6), helpstring("property RowSet")] HRESULT RowSet([out, retval] ADO_ROWSET *pVal);<br />
	};<br />
	<br />
	[<br />
		object,<br />
		uuid(DEAD417C-B1EA-401D-8F8B-55A2207BDB52),<br />
		dual,<br />
		helpstring("IADO_ROWSET Interface"),<br />
		pointer_default(unique)<br />
	]<br />
	interface IADO_ROWSET : IDispatch<br />
	{<br />
	};<br />
<br />
[<br />
	uuid(440FC80A-7700-4291-B683-7B4B2BE7D9E2),<br />
	version(1.0),<br />
	helpstring("dbcs07 1.0 Type Library")<br />
]<br />
library DBCS07Lib<br />
{<br />
	importlib("stdole32.tlb");<br />
	importlib("stdole2.tlb");<br />
<br />
	<br />
	[<br />
		uuid(2A6DE5C6-9BEC-49FE-8626-23D4C9656C93),<br />
		helpstring("ADO_DB Class")<br />
	]<br />
	coclass ADO_DB<br />
	{<br />
		[default] interface IADO_DB;<br />
	};<br />
	<br />
	[<br />
		uuid(74FCF560-93D9-4F15-B477-5A62E529C567),<br />
		helpstring("ADO_ROWSET Class")<br />
	]<br />
	coclass ADO_ROWSET<br />
	{<br />
		[default] interface IADO_ROWSET;<br />
	};<br />
};


if it has any problem pls let me know
Thank you


Regards,
Pankaj Sachdeva

GeneralRe: Declaration problem Pin
prasad_som31-Jul-07 21:18
prasad_som31-Jul-07 21:18 
GeneralRe: Declaration problem Pin
Karismatic31-Jul-07 21:22
Karismatic31-Jul-07 21:22 
QuestionQueryInterface + RPC_E_SYS_CALL_FAILED Pin
Gupta Suraj30-Jul-07 20:49
Gupta Suraj30-Jul-07 20:49 
Questionvaleur HRESULT Pin
Nath999929-Jul-07 20:56
Nath999929-Jul-07 20:56 
AnswerRe: valeur HRESULT Pin
CPallini29-Jul-07 21:31
mveCPallini29-Jul-07 21:31 
GeneralRe: valeur HRESULT Pin
Nath999929-Jul-07 23:16
Nath999929-Jul-07 23:16 
AnswerRe: valeur HRESULT Pin
User 716709-Aug-07 4:49
User 716709-Aug-07 4:49 
QuestionDocumentcompleted load event handler problem with AJAX Pin
_tasleem28-Jul-07 6:11
_tasleem28-Jul-07 6:11 
QuestionCasting error when using com-objects as parameters Pin
Erling Hagen27-Jul-07 6:12
Erling Hagen27-Jul-07 6:12 
Questionerror C2065 for CoInitializeEx Pin
koumodaki27-Jul-07 4:14
koumodaki27-Jul-07 4:14 
AnswerRe: error C2065 for CoInitializeEx Pin
CPallini27-Jul-07 4:41
mveCPallini27-Jul-07 4:41 
GeneralRe: error C2065 for CoInitializeEx Pin
koumodaki27-Jul-07 4:53
koumodaki27-Jul-07 4:53 
AnswerRe: error C2065 for CoInitializeEx Pin
Michael Dunn27-Jul-07 10:29
sitebuilderMichael Dunn27-Jul-07 10:29 
QuestionDCOM Connection Points Pin
Nath999927-Jul-07 2:19
Nath999927-Jul-07 2:19 
AnswerRe: DCOM Connection Points Pin
QuickDeveloper30-Jul-07 18:43
QuickDeveloper30-Jul-07 18:43 
QuestionRuntime error when calling COM object Pin
MAW3025-Jul-07 14:49
MAW3025-Jul-07 14:49 
AnswerRe: Runtime error when calling COM object Pin
User 21559725-Jul-07 20:44
User 21559725-Jul-07 20:44 

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.