Whidbey: can't find tlbimp under my 'Windows CE Tools' directory

S

Smith

I have Visual Studio .NET 2005 Beta1 installed and can successfully work
with the .NET Compact Framework 2.0.
However for some reason I can't seem to find the Tlbimp utility needed to
interop with COM components (I am already familiar with this process on the
desktop).

From what I understand it should be under 'C:\Program Files\Windows CE
Tools\wce420\POCKET PC 2003\Include\Armv4' and 'C:\Program Files\Windows CE
Tools\wce420\POCKET PC 2003\Include\Emulator', but I can't find it.

Any idea?
 
A

Alex Feinman [MVP]

There is no version of TLBIMP for Windows CE platform. The type libraries
are not platform-specific, nor are the interop libraries. Since WIndows CE
components almost never contain type libraries linked to their binaries
(unlike desktop components), it is pointless to have TLBIMP on the device.
Instead, simply import a tlb directly into your device project as a
reference.
 
A

Alex Feinman [MVP]

There is no ARM or Emulator specific interop code. TLBIMP is shipped with VS
2005 and is installed as
"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\TlbImp.exe"

The part that is new for CF v2 is support for COM Interop itself. It uses
the same interop assemblies as the desktop projects.

The reason that Steven's sample runs tlbimp in C:\Program Files\Windows CE
Tools\wce420\POCKET PC 2003\Include\Armv4
is that the tlb is generated from IDL in that directory. tlbimp is assumed
to be in the path
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top