PC Review


Reply
Thread Tools Rate Thread

aximp fails on DLL with seperate TLB dispinterface reference

 
 
Aaron Heusser
Guest
Posts: n/a
 
      20th Aug 2003
I have encountered a problem using aximp (.NET 2003) and I
was wondering if anyone has any knowledge/experience with
this issue:

0) Create a simple ATL DLL (MyControl.dll) with an ActiveX
control in it (mine is a legacy ATL Composite Control).

>> aximp MyControl.dll *works*


1) Create a separate ATL DLL (MyInterface.dll) which
contains an IDispatch interface declaration in it
(IMyDISPInterface). importlib("MyInterface.tlb") and add
IMyDISPInterface support to the ActiveX object in
MyControl.dll.

>> aximp MyControl.dll *still works*


2) Add a dispinterface declaration to MyInterface.dll
(IMyEventInterface). Add IMyEventInterface as the
[default, source] interface on the ActiveX control.

>> aximp MyControl.dll *FAILS*


In this case, aximp reports the following

"AxImp Error: Object reference not set to an instance of
an object."

Additional point of interest: This problem does not occur
if the dispinterface is defined in MyControl.dll. It only
appears to be a problem when it is declared in a separate
TLB.

Any insight would be appreciated!


 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      20th Aug 2003
Aaron,

Sounds like you're seeing this bug

Tlbimp.exe Cannot Handle Coclasses That List Source Interfaces That
Are Defined in a Different Type Library
http://support.microsoft.com/?kbid=318466



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
 
Reply With Quote
 
Aaron Heusser
Guest
Posts: n/a
 
      20th Aug 2003
Thanks for sending the link. Unfortunately, this appears
to be a somewhat different issue. The KB article is
discussing a problem in Microsoft Visual Studio .NET
(2002). I am running 2003 (.NET Framework v1.1).
Additionally, the article discusses tlbimp not aximp.

However, the article did seem to be describing a somewhat
similar problem. So I verified that the DLL's mentioned
in the article are indeed newer on my machine by examining
the properties of the dll's found in
c:\winnt\Microsoft.NET\Framework\v1.1.4322.

To further satisfy my curiosity I tried just doing a

>> tlbimp MyControl.dll


As far as I was able to determine, this appeared to work
fine (at least, no error displayed and when viewed with
ildasm, the IL looked "reasonable"). So, this would seem
to indicate that, in my situation, there is some issue
with aximp ... not tlbimp.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference cells in seperate worksheet HR Gal Microsoft Excel Worksheet Functions 3 23rd Jan 2009 07:05 PM
Reference web query data in seperate worksheet AmyLRuck Microsoft Excel Worksheet Functions 1 4th Oct 2008 04:46 PM
How do I change the Row Reference from a seperate worksheet. =?Utf-8?B?QW5keQ==?= Microsoft Excel Misc 1 23rd Jul 2007 06:00 PM
Cross Reference 2 columns in seperate workbooks =?Utf-8?B?UGNha2Vz?= Microsoft Excel Worksheet Functions 2 26th Jan 2007 05:57 PM
Reference control on seperate page SDF Microsoft ASP .NET 3 28th Jan 2005 02:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:16 PM.