Click here to Skip to main content
15,913,610 members
Home / Discussions / COM
   

COM

 
GeneralCatching COM Events without using ATL Pin
jerry0davis20-Apr-04 5:09
jerry0davis20-Apr-04 5:09 
GeneralRe: Catching COM Events without using ATL Pin
Mike Dimmick20-Apr-04 5:54
Mike Dimmick20-Apr-04 5:54 
GeneralError MIDL1001 : cannot open input file oaidl.idl Pin
M Ashok Kumar20-Apr-04 2:26
M Ashok Kumar20-Apr-04 2:26 
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
Steve S20-Apr-04 2:31
Steve S20-Apr-04 2:31 
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
M Ashok Kumar20-Apr-04 2:38
M Ashok Kumar20-Apr-04 2:38 
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
Anonymous20-Apr-04 4:28
Anonymous20-Apr-04 4:28 
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
Mike Dimmick20-Apr-04 6:32
Mike Dimmick20-Apr-04 6:32 
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
M Ashok Kumar20-Apr-04 20:19
M Ashok Kumar20-Apr-04 20:19 
I have done tht too. but still the problem exists.

I am giving everything in details, I have done here. please let me know, if you can find out, where I have gone wrong.

1. in VC++6.0, I have created a text file and saved it as FirstSrv.idl. content of the file is:

import "oaidl.idl";<br />
	[<br />
		object,<br />
		uuid(1E2F24ED-0317-4990-A29D-55FB73908C68)<br />
	]<br />
	interface IFirstInterface : IUnknown<br />
	{<br />
		HRESULT DoSomething();<br />
	};<br />
<br />
	[<br />
		uuid(4619C849-67DC-4f24-B5D2-0E215B1DBD6A),<br />
		version(1.0)<br />
	]<br />
	library FirstTypeLib<br />
	{<br />
		importlib("stdole32.tlb");<br />
		[<br />
			uuid(C69DA526-39B4-4810-803B-43A9F9AC5376)<br />
		]<br />
		coclass FirstComponent<br />
		{<br />
			[default] interface IFirstInterface;<br />
		};<br />
	};

2. in Tools->Options->Directories
i. under include files
C:\PROGRAM FILES\DXSDK\INCLUDE
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\PRERELEASE
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MFC\INCLUDE
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\ATL\INCLUDE
C:\WIN32

ii. under library files
C:\PROGRAM FILES\DXSDK\LIB
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\LIB
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MFC\LIB
C:\WIN32
C:\PROGRAM FILES\MICROSOFT SDK\LIB
C:\PROGRAM FILES\MICROSOFT SDK\LIB\PRERELEASE
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE

3. I have 3 copies of oaidl.idl in my system. they are under the following directories:

i. C:\Program Files\Microsoft Visual Studio\VC98\Include
ii. C:\Program Files\Microsoft SDK\Include\prerelease
iii.C:\Program Files\Microsoft SDK\Include

Hope, I have made everything clear on whtz goin on this side. and when I try the following:

MIDL FirstSrv.idl

result comes as:

Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
Processing .\FirstSrv.idl
FirstSrv.idl
midl : command line error MIDL1001 : cannot open input file oaidl.idl

Hope u r clear now on whtz goin this side.
Expecting ur kind response.

regards,
Ashok
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
Steve S20-Apr-04 21:52
Steve S20-Apr-04 21:52 
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
M Ashok Kumar20-Apr-04 22:02
M Ashok Kumar20-Apr-04 22:02 
GeneralWindows Xp2 Firewall Pin
Member 1697720-Apr-04 1:57
Member 1697720-Apr-04 1:57 
QuestionHow to support file versioning related issues Pin
Anonymous19-Apr-04 21:17
Anonymous19-Apr-04 21:17 
GeneralCOM and C# question Pin
User 96257819-Apr-04 10:29
User 96257819-Apr-04 10:29 
QuestionHow to minimize the size of ATLCOM Pin
Anonymous19-Apr-04 8:09
Anonymous19-Apr-04 8:09 
AnswerRe: How to minimize the size of ATLCOM Pin
Mike Dimmick19-Apr-04 8:51
Mike Dimmick19-Apr-04 8:51 
GeneralFull control difference Pin
Abhi Lahare18-Apr-04 20:16
Abhi Lahare18-Apr-04 20:16 
GeneralDetecting client path Pin
sumudu18-Apr-04 20:03
sumudu18-Apr-04 20:03 
GeneralGetting Started with Com+ Pin
Hemant Mane18-Apr-04 19:34
Hemant Mane18-Apr-04 19:34 
GeneralHelp getting started with MAPI Pin
PJ Arends18-Apr-04 8:56
professionalPJ Arends18-Apr-04 8:56 
GeneralRe: Help getting started with MAPI Pin
Prakash Nadar18-Apr-04 15:26
Prakash Nadar18-Apr-04 15:26 
GeneralRe: Help getting started with MAPI Pin
PJ Arends18-Apr-04 19:00
professionalPJ Arends18-Apr-04 19:00 
GeneralRe: Help getting started with MAPI Pin
Prakash Nadar18-Apr-04 21:04
Prakash Nadar18-Apr-04 21:04 
GeneralRe: Help getting started with MAPI Pin
Milton Karimbekallil19-Apr-04 20:59
Milton Karimbekallil19-Apr-04 20:59 
GeneralRe: Help getting started with MAPI Pin
PJ Arends19-Apr-04 21:34
professionalPJ Arends19-Apr-04 21:34 
GeneralCOM Pin
Poorniselva17-Apr-04 3:00
Poorniselva17-Apr-04 3:00 

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.