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

  • Thread starter Thread starter Smith
  • Start date Start date
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?
 
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.
 
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
 
Back
Top