CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    CT
    Posts
    75

    General COM question

    As a VC++ developer, I've created COM components that are used by clients developed using VC++. But now I'm developing a COM component, in VC++, that will be accessed by a VB client. I've got interfaces whose parameters are of basic data types such as unsigned char, unsigned short, char (string), int, double, etc... Is it better to use a VARIANT data type instead of the basic data types? Is there an equivilant to the unsigned (type) data type in VB? Currently a VB client will use this component but in the future, who knows, it could be Java, VBScript, JScript, C#, etc...? Thanks for any help you can give.

    Please rate my post if you think it was helpful. Or you can send money!

  2. #2
    Join Date
    Feb 2000
    Posts
    137

    Re: General COM question

    If you use the automation data types, your code will be accessable by any language that supports them (VC++, VB, VBScript, JScript, JavaScript, Java, WSH COM objects, etc.).

    Hope this helps.
    Spectre


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured