Solved

OLE Auto Wang

Posted on 2000-03-08
8
334 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dll Dynamic way c/c++ 9 145
SQL Statment to match two tables in c# 6 78
chcp 65001 File encoding 66 246
List out all word 7 291
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
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.

776 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