|
-
Jan 17th, 2003, 10:53 AM
#1
OLE 2.0 APIs
In making the leap from VB to C++, I'm slightly puzzled as to how to call APIs. All the tutorials for C++ I've found seem to assume you know how to do this.
What I need to do is use the OLE 2.0 APIs to open docfiles - specifically Word files. Any help (general tutorials on accessing APIs, documents on the OLE 2.0 APIs, etc.) would be greatly appreciated.
-
Jan 18th, 2003, 09:58 AM
#2
You include the correct header (only <windows.h> in 99% of the cases) and simply call them. There's no need to explicitly declare them like in VB.
You might have to look them up in the reference to find out exactly what parameters they expect. The reference also tells you what include file you need.
As for OLE storage, this is the address of the reference page for VC++7 (.Net).
ms-help://MS.VSCC/MS.MSDNVS/com/structuredstoragestartpage_19d1.htm
If you have 6, search for the functions StgCreateStorageEx and StgOpenStorageEx, they should be a good starting point.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|