Link to home
Start Free TrialLog in
Avatar of peet
peet

asked on

OLE Auto Wang


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

Avatar of Wyn
Wyn


 
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
Avatar of peet

ASKER

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.
peet: you need to reject the given answer so that someone else can have a go.
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.
Avatar of peet

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Andrei Rodionov
Andrei Rodionov
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of peet

ASKER

Thanks. !!!