PC Review


Reply
Thread Tools Rate Thread

Calling COM objects

 
 
Todd
Guest
Posts: n/a
 
      23rd Dec 2003
I've got a regular COM DLL that I wrote in VB6 that I'm
trying to use in VB.Net. It's giving me a "Type Mismatch"
error when I try to assign a .Net string value to the COM
property, which is also defined as a string. Any ideas?

Todd
 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      24th Dec 2003
..NET uses Unicode strings, while I believe VB was ASCII. I would try coding
the string as ASCII, but I am not sure how this is accomplished. If I can
get any time (not real sure about this), I will try to write a simple COM
DLL and try from .NET.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
"Todd" <(E-Mail Removed)> wrote in message
news:022801c3c9a4$bc852dd0$(E-Mail Removed)...
> I've got a regular COM DLL that I wrote in VB6 that I'm
> trying to use in VB.Net. It's giving me a "Type Mismatch"
> error when I try to assign a .Net string value to the COM
> property, which is also defined as a string. Any ideas?
>
> Todd



 
Reply With Quote
 
Todd
Guest
Posts: n/a
 
      24th Dec 2003
My own stupid mistake. It works fine. I was calling the
wrong COM class.

>-----Original Message-----
>..NET uses Unicode strings, while I believe VB was ASCII.

I would try coding
>the string as ASCII, but I am not sure how this is

accomplished. If I can
>get any time (not real sure about this), I will try to

write a simple COM
>DLL and try from .NET.
>
>--
>Gregory A. Beamer
>MVP; MCP: +I, SE, SD, DBA
>
>**********************************************************

************
>Think Outside the Box!
>**********************************************************

************
>"Todd" <(E-Mail Removed)> wrote in message
>news:022801c3c9a4$bc852dd0$(E-Mail Removed)...
>> I've got a regular COM DLL that I wrote in VB6 that I'm
>> trying to use in VB.Net. It's giving me a "Type

Mismatch"
>> error when I try to assign a .Net string value to the

COM
>> property, which is also defined as a string. Any ideas?
>>
>> Todd

>
>
>.
>

 
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
calling objects method rocco Microsoft Access VBA Modules 4 5th Apr 2010 03:19 PM
calling COM objects ramaseshan.k@gmail.com Microsoft C# .NET 2 20th Apr 2006 08:54 AM
Calling objects Stewart Microsoft Excel Programming 1 26th Nov 2003 10:10 AM
Calling .Net Objects from normal ASP Elrond Bishop Microsoft Dot NET 0 10th Sep 2003 01:59 PM
Calling COM Objects From C# Arthur Microsoft Dot NET 1 4th Jul 2003 12:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:13 PM.