Solved

OLE Auto Wang

Posted on 2000-03-08
8
348 Views
Last Modified: 2010-04-02

I need to Automate Wang Imaging from a C++ program, I use Borland C++ V5.02,
therefore I can't use the high level stuff like CreateObject("Wang.Application").

   So, I assume that the only way is:

      CLSIDFromProgID
      CoCreateInstance

      theFunc = "Open"
      GetIDsOfNames(...&theFunc,.. )
      Invoke->etc etc....

But what are the names of the Properties and Methods
and the parameters to each Method ???

Is there not a Type Library for Wang Imaging ? ( ?.TLB )


Thanks
Peet

0
Comment
Question by:peet
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 5

Expert Comment

by:Wyn
ID: 2601907

 
0
 
LVL 5

Expert Comment

by:Wyn
ID: 2601910
what c++ compiler you use?
If you use vc and MFC then you can use classwizard to generate the wrap class for that component.All you need is to specify the control.
If you only use VC without MFC,you can use #import directive to import all definition and ,better,use ATL to assist you.

Otherwise,you'v got to examine the registry by tools or manually.

->Is there not a Type Library for Wang Imaging ? ( ?.TLB )
============================
It should have.try to specify the .dll as the #import object.

Free to ask
Regards
0
 

Author Comment

by:peet
ID: 2603567
The compiler is Borland C++ V5.02,
but I don't use OWL, MFC or any framework. All GUI elements are created via the Win API.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 27

Expert Comment

by:BigRat
ID: 2606088
peet: you need to reject the given answer so that someone else can have a go.
0
 
LVL 27

Expert Comment

by:BigRat
ID: 2606114
This object has been used as an example in the book "Learning DCOM" by Thuan L. Thai published by O'Reilly. You can get the source code for the book at ftp://ftp.oreilly.com/published/oreilly/nutshell/dcom/DCOMcode.zip

If you can't get access to the book, or the code is not clear (Chapter 8 uses the object most), I'll try and help you out.
0
 

Author Comment

by:peet
ID: 2611128
I can't get access to ftp://ftp.oreilly.com/published/oreilly/nutshell/dcom/DCOMcode.zip .
Can you mail it to me ?

pcoetzee@guardian.co.za

Thanks,
Peet
0
 
LVL 2

Accepted Solution

by:
AndrewRodionov earned 300 total points
ID: 2611633
0
 

Author Comment

by:peet
ID: 2622317
Thanks. !!!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Test against App 49 138
chcp 65001 File encoding 66 298
C++ finding a sting in a char* string from a text file 3 130
Socket Programming (Unix) 8 153
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question