I'm trying to make a dll that I'm going to call from Java. The dll is supposed to fetch the outlook contacts and export them to java.
my cpp-program looks a bit like this:
#import<mso.dll> no_namespace rename("DocumentProperties", "DocumentPropertiesVM")
#import <msoutl.olb> rename("ExitWindows","ExitWindowsVM")
#include<tchar.h> //for strings
#include<jni.h> //java native interface
#include<myclass.h> //simply my class
even tried these imports in another version ...
#import "c:\Program Files\Common Files\Microsoft Shared\Office11\mso.dll" named_guids
#import "c:\Program Files\Microsoft Office\Office11\MSOUTL.OLB" \
no_namespace exclude("_IRecipientControl", "_DRecipientControl")
JNIEXPORT void JNICALL Java_myclass_relaunch (JNIEnv *env, jobject obj)
//here the implementation of the code....
now my problem is... I can't seem to make a connection with outlook..
if I use ... _ApplicationPtr pApplic ... as a declaration of outlook (something I've found on the net)
it won't work.
Does anyone know how to make this connection work? And maybe if I could use a namespace, other imports ... I thought I've read something about MAPI....