-
type mismatch error in debug of compiled dll
i have a compiled dll i am calling from another project, and all works fine.
if i run the dll for debugging i get a type mismatch error when i try to
CreateObject("dll.class").
also, this only happens if i dim the object with
dim myObj as dll.class
if i use
dim myOjb as object
it works fine.
any help?
thank you
-
Re: type mismatch error in debug of compiled dll
Your dll was not compiled with binary compatibility. You probably compiled
your dll, then your exe and then once again the dll. If the dll isn't
binary compatible with the previous version, the EXE will fail with a type
mismatch. I've tried to explain this at :
http://users.skynet.be/wvdd2/Compili...nary_compatibi
lity.html
--
For a work in progress :
http://users.skynet.be/wvdd2/
"christopher morgan" <cmorgan@mavricc.com> schreef in bericht
news:3e2309c8$1@tnews.web.devx.com...
>
> i have a compiled dll i am calling from another project, and all works
fine.
> if i run the dll for debugging i get a type mismatch error when i try to
> CreateObject("dll.class").
> also, this only happens if i dim the object with
> dim myObj as dll.class
> if i use
> dim myOjb as object
> it works fine.
>
> any help?
> thank you
>
-
Re: type mismatch error in debug of compiled dll
actually it turns out the original dll's were compiled under win2000, my machine
is xpPro. the binary compatibility was pointing to a 2000 file. by pointing
it to a file compiled under xp, the problem was solved.
"Willy Van den Driessche" <wvddwebcomments@skynet.be> wrote:
>Your dll was not compiled with binary compatibility. You probably compiled
>your dll, then your exe and then once again the dll. If the dll isn't
>binary compatible with the previous version, the EXE will fail with a type
>mismatch. I've tried to explain this at :
>http://users.skynet.be/wvdd2/Compili...nary_compatibi
>lity.html
>
>--
>For a work in progress :
>http://users.skynet.be/wvdd2/
>"christopher morgan" <cmorgan@mavricc.com> schreef in bericht
>news:3e2309c8$1@tnews.web.devx.com...
>>
>> i have a compiled dll i am calling from another project, and all works
>fine.
>> if i run the dll for debugging i get a type mismatch error when i try
to
>> CreateObject("dll.class").
>> also, this only happens if i dim the object with
>> dim myObj as dll.class
>> if i use
>> dim myOjb as object
>> it works fine.
>>
>> any help?
>> thank you
>>
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks