T
TBass
Hi,
I've dabbled in C++, but use ANSI C for most of my work. We have a
product written in ANSI C that operates on Windows, and we have a
request from a customer to add system-wide drag and drop.
Unfortunately, it seems that OLE doesn't allow me to use C, and I have
to use C++. My goal, then, is to write a C++ library to handle the OLE
functions, and be able to call it from the C program.
I wrote a product in C++ that used a C library, and accessed the
functions like so:
extern "C" {
#include "c_inc1.h"
#include "c_inc2.h"
}
That worked fine, but I've never written a "wrapper" for a C++ library
before. Is it as simple as adding extern "C" before the declaration.
What's involved?
Thanks!
Tom
I've dabbled in C++, but use ANSI C for most of my work. We have a
product written in ANSI C that operates on Windows, and we have a
request from a customer to add system-wide drag and drop.
Unfortunately, it seems that OLE doesn't allow me to use C, and I have
to use C++. My goal, then, is to write a C++ library to handle the OLE
functions, and be able to call it from the C program.
I wrote a product in C++ that used a C library, and accessed the
functions like so:
extern "C" {
#include "c_inc1.h"
#include "c_inc2.h"
}
That worked fine, but I've never written a "wrapper" for a C++ library
before. Is it as simple as adding extern "C" before the declaration.
What's involved?
Thanks!
Tom