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.Applica
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
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
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
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.
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.
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.
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
Can you mail it to me ?
pcoetzee@guardian.co.za
Thanks,
Peet
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks. !!!