BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unresolved externals in compile with outlook_xp_srvr.h

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX)
View previous topic :: View next topic  
Author Message
Bernd
Guest





PostPosted: Wed Mar 16, 2005 1:57 am    Post subject: Unresolved externals in compile with outlook_xp_srvr.h Reply with quote



I trying to get a simple piece of code running testing Outlook 2002
automation from within BCB6 under WinXP. The typelib was imported
successfully, the related unit also is part of the project. Compiling
works well, but linking gives some unresolved externals (See below).
My outlook related code is:

#include <outlook_xp_srvr.h>
....
TOutlookApplication *Outlook;
....
Outlook = new TOutlookApplication(this);
....
Outlook->Connect();
NameSpacePtr pNameSpace = Outlook->GetNamespace(WideString("MAPI"));
....

The unresolved symbols are methods defined in the TOutlookApplication
class. It seems that these are wrappers for COM-Code, but I have no
idea where these have to be linked from.

Any hints fot this?

Thanks,

Bernd

-----------------------------------------

Unresolved external '__fastcall
Outlook_xp::TOutlookApplication::BeforeDestruction()' referenced from
C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE DATEIENCMAPIXUNIT1.OBJ
Unresolved external '__fastcall
Outlook_xp::TOutlookApplication::InitServerData()' referenced from
C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE DATEIENCMAPIXUNIT1.OBJ
Unresolved external '__fastcall
Outlook_xp::TOutlookApplication::InvokeEvent(int,
System::DynamicArray<System::OleVariant>&)' referenced from
C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE DATEIENCMAPIXUNIT1.OBJ
Unresolved external '__fastcall
Outlook_xp::TOutlookApplication::Connect()' referenced from
C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE DATEIENCMAPIXUNIT1.OBJ
Unresolved external '__fastcall
Outlook_xp::TOutlookApplication::Disconnect()' referenced from
C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE DATEIENCMAPIXUNIT1.OBJ
Unresolved external 'Outlook_xp::TOutlookApplication::GetDefaultInterface()'
referenced from C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE
DATEIENCMAPIXUNIT1.OBJ
Back to top
Bernd
Guest





PostPosted: Wed Mar 16, 2005 8:37 am    Post subject: Re: Unresolved externals in compile with outlook_xp_srvr.h Reply with quote



Ok, the thing runs on another machine (BCB6,Win2K), there it works
easy and simple. All Office2k components are available in the
component palatte and work as far as I tested it for now. The problem
seems to be that on the first system I have installed BCB6 and after
that upgraded from Office2k to OfficeXP. Any other idea?

[email]bernd (AT) schmidt-pro (DOT) de[/email] (Bernd) wrote in message news:<fc24126.0503151757.7d998590 (AT) posting (DOT) google.com>...
Quote:
I trying to get a simple piece of code running testing Outlook 2002
automation from within BCB6 under WinXP. The typelib was imported
successfully, the related unit also is part of the project. Compiling
works well, but linking gives some unresolved externals (See below).
My outlook related code is:

#include <outlook_xp_srvr.h
...
TOutlookApplication *Outlook;
...
Outlook = new TOutlookApplication(this);
...
Outlook->Connect();
NameSpacePtr pNameSpace = Outlook->GetNamespace(WideString("MAPI"));
...

The unresolved symbols are methods defined in the TOutlookApplication
class. It seems that these are wrappers for COM-Code, but I have no
idea where these have to be linked from.

Any hints fot this?

Thanks,

Bernd

-----------------------------------------

Unresolved external '__fastcall
Outlook_xp::TOutlookApplication::BeforeDestruction()' referenced from
C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE DATEIENCMAPIXUNIT1.OBJ
Unresolved external '__fastcall
Outlook_xp::TOutlookApplication::InitServerData()' referenced from
C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE DATEIENCMAPIXUNIT1.OBJ
Unresolved external '__fastcall
Outlook_xp::TOutlookApplication::InvokeEvent(int,
System::DynamicArray<System::OleVariant>&)' referenced from
C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE DATEIENCMAPIXUNIT1.OBJ
Unresolved external '__fastcall
Outlook_xp::TOutlookApplication::Connect()' referenced from
C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE DATEIENCMAPIXUNIT1.OBJ
Unresolved external '__fastcall
Outlook_xp::TOutlookApplication::Disconnect()' referenced from
C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE DATEIENCMAPIXUNIT1.OBJ
Unresolved external 'Outlook_xp::TOutlookApplication::GetDefaultInterface()'
referenced from C:DOKUMENTE UND EINSTELLUNGENBERNDEIGENE
DATEIENCMAPIXUNIT1.OBJ

Back to top
Bernd
Guest





PostPosted: Fri Mar 18, 2005 9:15 pm    Post subject: Re: Unresolved externals in compile with outlook_xp_srvr.h Reply with quote



Downgrading to Office2k an reInstall of BCB6 fixed it.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.