msoeapi typelib? - DOTNET
This is a discussion on msoeapi typelib? - DOTNET ; Hello folks,
After 1 evening of trying and reading a lot of (web)pages I have not
succeeded in creating a .tlb file (to use in a C# program) from my
msoeapi.idl file. Also I'm a bit
confused because some sources ...
-
msoeapi typelib?
Hello folks,
After 1 evening of trying and reading a lot of (web)pages I have not
succeeded in creating a .tlb file (to use in a C# program) from my
msoeapi.idl file. Also I'm a bit
confused because some sources say MIDL.exe makes the type library and some
say TlbImp.exe creates it.
I tried using MIDL but it will only generate 4 new files and none of them is
a .tlb file:
D:\tmp\msoeapi>midl msoeapi.idl /tlb msoeapi.tlb
Microsoft (R) 32b/64b MIDL Compiler Version 6.00.0366
Copyright (c) Microsoft Corporation 1991-2002. All rights reserved.
Processing .\msoeapi.idl
msoeapi.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\ocidl.idl
ocidl.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\oleidl.idl
oleidl.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.idl
objidl.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\unknwn.idl
unknwn.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\wtypes.idl
wtypes.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\basetsd.h
basetsd.h
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\guiddef.h
guiddef.h
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\oaidl.idl
oaidl.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\servprov.idl
servprov.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\urlmon.idl
urlmon.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\msxml.idl
msxml.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\mimeole.idl
mimeole.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\propidl.idl
propidl.idl
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\oaidl.acf
oaidl.acf
Processing C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\ocidl.acf
ocidl.acf
D:\tmp\msoeapi>dir
Volume in drive D has no label.
Volume Serial Number is 2C13-D630
Directory of D:\tmp\msoeapi
01/11/2007 10:34 PM <DIR> .
01/11/2007 10:34 PM <DIR> ..
01/11/2007 11:32 PM 809 dlldata.c
01/11/2007 11:32 PM 54,273 msoeapi.h
04/14/2005 05:54 PM 36,458 msoeapi.idl
01/11/2007 11:32 PM 1,937 msoeapi_i.c
01/11/2007 11:32 PM 72,527 msoeapi_p.c
5 File(s) 166,004 bytes
2 Dir(s) 32,107,794,432 bytes free
Does anybody have an idea what's going wrong here?
Thanks for reading sofar,
Vinz.
-
Re: msoeapi typelib?
>Also I'm a bit
>confused because some sources say MIDL.exe makes the type library and some
>say TlbImp.exe creates it.
MIDL produces typelibs (among other things) from IDL files. TlbImp
produces interop assemblies from typelibs.
>I tried using MIDL but it will only generate 4 new files and none of them is
>a .tlb file:
The IDL will have to contain a library {} block for a tyeplib to be
generated. There are plenty of IDL files that aren't meant to be
compiled into typelibs.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
-
Re: msoeapi typelib?
I see. Well, I have 2 options I think now:
1) The long and painful road to create a typelib by hand
or
2) Wrapping the .h file into a managed class lib.
Am I correct in thinking that option 2 is easier? And are these the steps
(globally) to do it:
- create a managed class lib
- include the unmanaged .h file
- define a custom object
- give custom object properties and methods that do "things" with the
unmanaged code
Surely I'm not the first person to hack into Outlook Express from C# btw?
Thanks for the reads/replies sofar.
Vinz.
"Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message
news:e6DVLPvNHHA.1248@TK2MSFTNGP03.phx.gbl...
>
>>Also I'm a bit
>>confused because some sources say MIDL.exe makes the type library and some
>>say TlbImp.exe creates it.
>
> MIDL produces typelibs (among other things) from IDL files. TlbImp
> produces interop assemblies from typelibs.
>
>
>>I tried using MIDL but it will only generate 4 new files and none of them
>>is
>>a .tlb file:
>
> The IDL will have to contain a library {} block for a tyeplib to be
> generated. There are plenty of IDL files that aren't meant to be
> compiled into typelibs.
>
>
> Mattias
>
> --
> Mattias Sjögren [C# MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
Similar Threads
-
By Application Development in forum CSharp
Replies: 2
Last Post: 10-08-2007, 03:55 AM
-
By Application Development in forum DOTNET
Replies: 4
Last Post: 05-27-2006, 01:26 AM
-
By Application Development in forum Inetserver
Replies: 0
Last Post: 01-20-2006, 11:33 AM
-
By Application Development in forum Microsoft Exchange
Replies: 0
Last Post: 04-01-2004, 07:20 PM
-
By Application Development in forum Inetserver
Replies: 1
Last Post: 02-09-2004, 08:56 AM