Solved

using CDO NTS from C++

Posted on 2000-04-12
1
230 Views
Last Modified: 2012-06-21
How can i use the CDONTS object from C++?
all the examples i found are in VB or JScript, which aren't good enoough for me.
10x,
   msiman
0
Comment
Question by:msiman
1 Comment
 

Accepted Solution

by:
teerawatw earned 100 total points
Comment Utility
if you use vc++ you can use
#import  header which will generate *.tlh, *.tli file for you and you will access that object like those vb guys

you can see how to use import at msdn

if you do not use vc++
you have to use CoCreateInstance function
and access it via interface pointer (which harder to use than import)

you can view both method detail in msdn documentation
find index
#import
and
CoCreateInstance
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

728 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

9 Experts available now in Live!

Get 1:1 Help Now