call prompt service dynamically

2016-03-07 Thread Tobias Wolf
I try to call this code dynamically: nsCOMPtr promptService = do_GetService("@mozilla.org/embedcomp/prompt-service;1")); promptService->Alert(NULL, NULL, NULL); I do the following: nsISomeInterface* mXPTCStub; nsresult rc; nsXPTCVariant params[3]; rc =

Re: call prompt service dynamically

2016-03-07 Thread Benjamin Smedberg
On 3/7/2016 11:17 AM, Tobias Wolf wrote: I try to call this code dynamically: nsCOMPtr promptService = do_GetService("@mozilla.org/embedcomp/prompt-service;1")); promptService->Alert(NULL, NULL, NULL); I do the following: nsISomeInterface* mXPTCStub; nsresult rc;

Re: call prompt service dynamically

2016-03-08 Thread Tobias Wolf
We`re develping a PKCS11 modul in c/c++ for a custom card reader to support. I just want to display a simple dialog. The code below works great until I stay on MS Visual Studio. But our project is running on eclipse/gcc. nsCOMPtr promptService = do_GetService("@mozilla.org/embedcomp/prompt-se

Re: call prompt service dynamically

2016-03-08 Thread Tobias Wolf
Am Montag, 7. März 2016 18:50:36 UTC+1 schrieb Benjamin Smedberg: > On 3/7/2016 11:17 AM, Tobias Wolf wrote: > > I try to call this code dynamically: > > > > nsCOMPtr promptService = > > do_GetService("@mozilla.org/embedcomp/prompt-service;1")); > > promptService->Alert(NULL, NULL, NULL); > >

Re: call prompt service dynamically

2016-03-08 Thread Tobias Wolf
Am Montag, 7. März 2016 18:50:36 UTC+1 schrieb Benjamin Smedberg: > On 3/7/2016 11:17 AM, Tobias Wolf wrote: > > I try to call this code dynamically: > > > > nsCOMPtr promptService = > > do_GetService("@mozilla.org/embedcomp/prompt-service;1")); > > promptService->Alert(NULL, NULL, NULL); > >

Re: call prompt service dynamically

2016-03-08 Thread Kyle Huey
You're probably just not linking to the xpcom glue library in eclipse/gcc. - Kyle On Tue, Mar 8, 2016 at 8:33 PM, Tobias Wolf wrote: > We`re develping a PKCS11 modul in c/c++ for a custom card reader to > support. I just want to display a simple dialog. The code below works great > until I stay

Re: call prompt service dynamically

2016-03-08 Thread Tobias Wolf
Am Dienstag, 8. März 2016 13:40:12 UTC+1 schrieb Kyle Huey: > You're probably just not linking to the xpcom glue library in eclipse/gcc. > > - Kyle > > On Tue, Mar 8, 2016 at 8:33 PM, Tobias Wolf wrote: > > > We`re develping a PKCS11 modul in c/c++ for a custom card reader to > > support. I just

Re: call prompt service dynamically

2016-03-08 Thread Benjamin Smedberg
On 3/8/2016 7:33 AM, Tobias Wolf wrote: We`re develping a PKCS11 modul in c/c++ for a custom card reader to support. I just want to display a simple dialog. This is not a good idea. I don't believe that PKCS11 modules run on the UI thread and so trying to do anything with XPCOM from this thre