Re: convert rtl::OUString to char *

2013-09-24 Thread jg
WideCharToMultiByte() indicates that you are working on Windows. At first you need to convert to 
UTF16 (from UTF8), and then from UTF16 to the desired code page.


Have a look at 
http://code.msdn.microsoft.com/C-UTF-8-Conversion-Helpers-22c0a664 .

jg




Re: convert rtl::OUString to char *

2013-09-24 Thread jg

WideCharToMultiByte() indicates that you are working on Windows. At first you 
need to convert to UTF16 (from UTF8), and then from UTF16 to the desired code 
page.

Have a look at 
http://code.msdn.microsoft.com/C-UTF-8-Conversion-Helpers-22c0a664 .

jg



-
To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
For additional commands, e-mail: api-h...@openoffice.apache.org



Re: UNO API

2013-04-02 Thread jg
A couple of weeks ago I had a UNO project that required using Visual 
Studio/MFC. Despite the fact that there not a lot of information about 
this setup, Visual Studio (2012 in my case) works nicely with the UNO 
API. I did not read the old docs Alexandro Colorado referred to in the 
other reply.


To get started I would suggest the following steps:

(1) Download and install Java/Netbeans/OO Plugin to learn NO using Java.
(2) Then go to C++. There is a simple mapping from the Java to C++ syntax.
(3) Decide whether you want to support the current method of 
bootstrapping (you don't have to).


The old message 
http://markmail.org/message/gzzv3we42b36aavn?q=list:org%2Eapache%2Eincubator%2Eooo-api+from:%22jg%22page=1 
has some more details on what to look for.


jg

-
To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
For additional commands, e-mail: api-h...@openoffice.apache.org



Re: Regarding MSVCR80.dll

2013-01-25 Thread jg
Forget about Mac and Linux for a moment, since you already  seem to have 
problems on Windows.


It looks as if your makefile is incorrect about some dependencies. You 
might also check that the manifest of the project has been set up 
properly 
(http://msdn.microsoft.com/en-us/library/ms235542%28v=vs.110%29.aspx), 
although a manifest is not strictly required in your case. When you 
build your project from within VS you don't have to worry about this.


It is probably not a good idea to simply compile and link your project 
using a hand written makefile, because different platforms might need 
other tools as well (like the manifest tool to bind the executable code 
to the proper runtime libs) and you probably end up doing a lot of OS 
dependent dispatching inside the makefile. Consider generating your 
build environment with cmake (www.cmake.org).


jg




Re: Need help in getting the design right with Openoffice.org

2012-12-20 Thread jg

Mangesh:

I don't know in what way your application needs differ from mine in 
detail. In my case, the bulk of the work is done by my MFC application. 
Once the data are inside of OpenOffice the feedback to the MFC app is 
not very complex and essentially only a couple of database entries need 
to get written to or updated. I can do this quite comfortably with OO 
Basic, which also handles some special menus.


Depending on how your application and OO are coupled, this might not be 
a workable way.


One more thing; if your application is part of your job it could make 
sense to buy the necessary expertise. Either to get started with UNO 
C++, which also would yield a base of working code, or to help with the 
project, too (I'd say, once you are comfortable with the UNO specific 
things, this should hardly be necessary). It's just a matter of what is 
more expensive, because you potentially need to spend more time working 
out the details when you are on your own. I am sure that there are 
enough experts out there, who are able to offer professional help.


jg


Re: Help needed for building SDK samples in Visual Studio 2010

2012-12-14 Thread jg

http://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide

jg