Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

OLE Auto Wang

Posted on 2000-03-08
8
Medium Priority
?
376 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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 900 total points
ID: 2611633
0
 

Author Comment

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

715 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