Solved

OLE Auto Wang

Posted on 2000-03-08
8
309 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
 
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now