Board index » delphi » BDS 2006: Borland Office XP Servers Package
Udo Weik
![]() Delphi Developer |
Udo Weik
![]() Delphi Developer |
BDS 2006: Borland Office XP Servers Package2006-05-04 03:31:46 AM delphi30 Hello, it's not possible to use the package in both IDEs, Delphi and C++Builder. Why? Any workaround? Due to the nature of the problem I have crossposted my question. Thanks and greetings Udo |
Craig Farrell
![]() Delphi Developer |
2006-05-04 04:31:12 AM
Re:BDS 2006: Borland Office XP Servers Package
Hi,
Quoteit's not possible to use the package in both IDEs, code or C++ code. The generated code makes assumptions about the framework and the means of "doing COM" in that framework. For example: VCL in the case of pascal, and ATL+VCL+VCL Com Emulation (e.g. Variants support) in the case of C++. So this situation is quite different than when a pascal package can be compiled to generate C++ headers and OBJ's. QuoteAny workaround? the Windows Start item for BDS to create a new shortcut. Then go to the new shortcut's properties and add the parameter -r<AnyNameHere> e.g. the property for Target might look like: "C:\Program Files\Borland\BDS\4.0\Bin\bds.exe" -rCppServers Run the IDE using that shortcut and customize that IDE for your preferred packages. Then in RegEdit you can confirm that a new Registry entry has been created by the IDE: HKEY_CURRENT_USER\Software\Borland\CppServers\ --Craig |
Udo Weik
![]() Delphi Developer |
2006-05-05 05:34:06 AM
Re:BDS 2006: Borland Office XP Servers Package
Hello Craig,
first of all thank you for your answers! Quote>it's not possible to use the package in both IDEs, IDE. I selected C++Builder because I work more with C++Builder. Now I am looking for the command line parameters, so that I can compile the package for Delphi with tlibimp.exe. Any hint? Thanks in advance. Udo |
Craig Farrell
![]() Delphi Developer |
2006-05-06 09:42:09 AM
Re:BDS 2006: Borland Office XP Servers Package
Hi,
QuoteDuring installation, you will be asked whether the Borland Office They can all be found in the ..\bin and named as follows: dcloffice2k100.bpl dclofficexp100.bpl bcboffice2k100.bpl bcbofficexp100.bpl The version installed into the IDE can be configured at any time via Component | Install Packages. In this list of installed design pacakges you will see e.g. "Microsoft Office XP Sample Automation Server Wrapper Components" when the dclofficexp100.bpl package is installed. You will see "Microsoft Office 2000 Sample Automation Server Wrapper Components" when the dcloffice2k100.bpl package is installed. You can change the currently installed version at any time by removing one and adding another (by browsing to it is location in the ..\bin directory). QuoteNow I am looking for the command line parameters, so that I can version of Microsoft Office, add the type library import to a package and install that package into the IDE. Because of likely duplicate component names, it is recommended that you first remove the currently installed Microsoft Office design package first. A sample tlibimp.exe command line is: tlibimp -c- -p+ -ha+ -hs+ -Ya+ -Hr+ -HpsServers -FtWordXP -feXP "c:\program files\microsoft office\office10\msword.olb" --Craig |
Udo Weik
![]() Delphi Developer |
2006-06-03 05:25:17 AM
Re:BDS 2006: Borland Office XP Servers Package
Hello again Craig,
Quote>it's not possible to use the package in both IDEs, BTW, I am the guy who published QC Report #29661. Thanks for any comment and greetings Udo |