List Info

Thread: Re: COM bridge from ooBasic to C++ dll with typelibrary




Re: COM bridge from ooBasic to C++ dll with typelibrary
user name
2007-10-04 04:08:30
jjaegerxlstat.com wrote:
> Hello,
> 
> I am porting a C++ COM application that is called from
Excel via VBA to 
> application that is called from Calc via ooBasic.
> 
> I am new to the OpenOffice environment and have some
basic questions to 
> learn the way ooBasic uses the OLE/COM Uno bridge.

This is all Greek to me (I have no idea what .odl and .tlb
files are). 
Joachim Lingner is the COM UNO bridge expert, but he is
currently on 
vacation...

-Stephan

> Here is my C++ example:
> 
> MYSHAREDLIB_API double __stdcall fplus (double
invalue)
> {
>         return invalue + 1.0;
> }
> 
> And here the type library file .odl:
> 
> import "oaidl.idl";
> import "ocidl.idl";
>       [
>          uuid(7D4B1C8E-69AF-4082-90CF-E07FD904A4DA),
>          helpstring("MySharedLib"),
>          lcid(0x0409),
>          version(1.5)
>       ]
>       library MySharedLib
>       {
>       [
>          helpstring("Functions exported by
MySharedLib.dll"),
>          version(1.5),
>          dllname("MySharedLib.dll")
>       ]
>       module MSL
>               {
>                  [      helpstring("fplus"), 
  entry("fplus") ]   double 
> fplus(  [in]  double invalue  );
> }
> }
> 
> I can call this .dll in Calc using the VBA equivalent
of  Declare Function
> 
> Declare Function fplus Lib ?MySharedLib.dll? (ByVal 
invalue as Double) as 
> Double
> 
> With a call example like this in the ooBasic code 
> 
> Outval = fplus( inval)
> 
> How can I import the information about fplus using the
type library .tlb ? 
> In Excel I can use the Tools -> References? Menu to
add the typelibrary 
> information to my Excel vba code as a reference.
> 
> 
> 
> 
> Regards 
> 
> JJ

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeudk.openoffice.org
For additional commands, e-mail: dev-helpudk.openoffice.org


WSO2 Web Services Framework (WSF)/C 1.1.0 Released
user name
2007-10-04 02:49:58
WSO2 Web Services Framework (WSF)/C 1.1.0 Released
===================================================

WSO2 WSF/C team is pleased to announce the release of WSO2 WSF/C ; 1.1.0.

You can download this release from: http://dist.wso2.org/products/wsf/c/1.1.0

WSO2 Web Services Framework/C (WSO2 WSF/C) is a standards compliant, enterprise
grade, open source, C library for providing and consuming Web services in C.

For more information, please visit out project home page:
      http://wso2.org/projects/wsf/c

-------------
Key Features
=============
 ;   1. Attachments with MTOM
        * Binary optimized
        * Non-optimized (Base64 binary)
  ;  2. WS-Addressing
 ;       * Version 1.0
        * Submission
    3. WS-Policy
    4. WS-Security
     ;   * UsernameToken
 ;       * Signing
  ;      * Encryption
    5. WS-ReliableMessaging
    6. WS-Eventing
    7. SSL enabled Transport layer
    8. XMPPtransport layer
    9. TCP transport layer
   10. wsclient command line tool to consume Web services

--------------
Major Changes Since Last Release
================================
   1. Memory leak fixes
   2. Many bug fixes

--------------
Known Issues
==============
   1. There can be memory leaks when using WS-ReliableMessaging. Please refer
 ;     to the Apache Sandesha2/C README file located in the sandesha2 folder.
  ; 2. WS-ReliableMessaging and WS-Security does not work with the Guththila
      parser.

-------------------
Reporting Problems
===================
Issues can be reported using the public JIRA available at:
        https://wso2.org/jira/browse/WSFC

------------
Contact Us
============

Please subscribe to our user or developer mailing lists. For details on how
to subscribe please visit: http://wso2.org/projects/wsf/c#mail

We welcome your early feedback on this implementation.
Thank you for your interest in WSO2 WSF/C.

-- WSO2 WSF/C Team --

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )