Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


On 09/29/2014 02:26 PM, nicholas ferguson wrote:
Can anyone send me a sample.  sample can be for a linux or windows
platform.

Stephan replied:
ProfUNO/SimpleBootstrap_cpp/


For this example to qualify as a sample for an external C++ console
application, I have to build this code into an executable.
SimpleBootStrap_cpp.exe

I replaced
line 52:  SAL_IMPLEMENT_MAIN_WITH_ARGS(argc,argv) 
with
int main(int argc, char* argv[])

then it builds but it crashes at  ( it also crashes there...even if I keep
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc,argv)
Line 75:  Reference< XDesktop2> xComponentLoader =
Desktop::create(xContext);

error msg is that abort() was called.  
And assertion failed value.is(). file binaryurp/source/marshall.cxx  line
133.

How to make this work?  Do I need a putenv(token=value) or is it a
preprocessor? 

Can you send me a Visual Studio Project where this works? 



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.