 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bernd Guest
|
Posted: Wed Mar 16, 2005 1:57 am Post subject: Unresolved externals in compile with outlook_xp_srvr.h |
|
|
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
|
Posted: Wed Mar 16, 2005 8:37 am Post subject: Re: Unresolved externals in compile with outlook_xp_srvr.h |
|
|
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
|
Posted: Fri Mar 18, 2005 9:15 pm Post subject: Re: Unresolved externals in compile with outlook_xp_srvr.h |
|
|
Downgrading to Office2k an reInstall of BCB6 fixed it.
|
|
| Back to top |
|
 |
|
|
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
|
|