[fpc-pascal] keyboard shortcut issues under Linux and FP IDE

2010-03-23 Thread Graeme Geldenhuys
Hi,

Anybody know how one can temporarily (for the duration of running the FP
IDE) disable the virtual console keyboard shortcuts under Linux?

Example of the problem: If I want to close a Window, the standard shortcut
is Alt+F3 in the FP IDE, but that is intercepted by Linux and rather
switches me to the 3rd virtual console login. :-/

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] XPCOM and freepascal

2010-03-23 Thread Johannes Nohl
Dear list,

I wonder if it's possible to develop extensions (aka Add-Ons) for
Firefox (or in my case Thunderbird). I'm totaly unfamiliar to the
stuff right now. But the advantage I could think of is 1) I don't know
C++ and 2) it is easy to cross compile code for different platforms.

Writing extensions without javascript needs XPCOM bindings. I saw that
there're some for using the gecko rendering engine in Firefox. Is
there a more general thing to access XPCOM? Anybody has experience
with this? I'm a total C++ noob.

Any help would be appreciated.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] XPCOM and freepascal

2010-03-23 Thread Michael Van Canneyt



On Tue, 23 Mar 2010, Johannes Nohl wrote:


Dear list,

I wonder if it's possible to develop extensions (aka Add-Ons) for
Firefox (or in my case Thunderbird). I'm totaly unfamiliar to the
stuff right now. But the advantage I could think of is 1) I don't know
C++ and 2) it is easy to cross compile code for different platforms.

Writing extensions without javascript needs XPCOM bindings. I saw that
there're some for using the gecko rendering engine in Firefox. Is
there a more general thing to access XPCOM? Anybody has experience
with this? I'm a total C++ noob.

Any help would be appreciated.


Try looking at the gecko integration package. It is meant to do 
the opposite (integrating gecko in your app) but it also uses

xpcom, and you should get ideas from that.

Michael.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] XPCOM and freepascal

2010-03-23 Thread Johannes Nohl
>> I wonder if it's possible to develop extensions (aka Add-Ons) for
>> Firefox (or in my case Thunderbird). I'm totaly unfamiliar to the
>> stuff right now. But the advantage I could think of is 1) I don't know
>> C++ and 2) it is easy to cross compile code for different platforms.
>>
>> Writing extensions without javascript needs XPCOM bindings. I saw that
>> there're some for using the gecko rendering engine in Firefox. Is
>> there a more general thing to access XPCOM? Anybody has experience
>> with this? I'm a total C++ noob.
>>
>
> Try looking at the gecko integration package. It is meant to do the opposite
> (integrating gecko in your app) but it also uses
> xpcom, and you should get ideas from that.

Thanks Michael, I already found that. You may find there the
relationship between XPCOM C++ bindings for Gecko and how to use them
in fpc app. In my case i'm interested to access the adressbook in
Thunderbird. Even if I would get along to find the right functions I
have no idea how to process returned data. I guess you have to be a
very good C++ developer for that as well. But that's ways over my
skills, I think.

Thanks for your help.

Johannes
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] XPCOM and freepascal

2010-03-23 Thread Michael Van Canneyt



On Tue, 23 Mar 2010, Johannes Nohl wrote:


I wonder if it's possible to develop extensions (aka Add-Ons) for
Firefox (or in my case Thunderbird). I'm totaly unfamiliar to the
stuff right now. But the advantage I could think of is 1) I don't know
C++ and 2) it is easy to cross compile code for different platforms.

Writing extensions without javascript needs XPCOM bindings. I saw that
there're some for using the gecko rendering engine in Firefox. Is
there a more general thing to access XPCOM? Anybody has experience
with this? I'm a total C++ noob.



Try looking at the gecko integration package. It is meant to do the opposite
(integrating gecko in your app) but it also uses
xpcom, and you should get ideas from that.


Thanks Michael, I already found that. You may find there the
relationship between XPCOM C++ bindings for Gecko and how to use them
in fpc app. In my case i'm interested to access the adressbook in
Thunderbird. Even if I would get along to find the right functions I
have no idea how to process returned data. I guess you have to be a
very good C++ developer for that as well. But that's ways over my
skills, I think.


I don't think so: everything is done using interfaces, and as soon as
you have the definition of an interface, the rest should not be a problem.
The main problem is to get the interface definitions.

I think they provide an IDL file, and you'd have to produce a pascal file
from it. As I remember, there should be an idl-pascal on the net somewhere.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] implicitly linking FPC-generated .dll from Visual Studio

2010-03-23 Thread Seth Grover
First, let me declare my ignorance of MS development and Visual Studio
in general.

I've got a FPC-generated .dll file I want to implicitly link with in a
Visual Studio (Visual C++) project. If I understand what I'm reading,
I have to have a "import library" .lib file which corresponds to my
.dll. I don't see an obvious way to create this file using FPC
directly.

Can anyone with experience using FPC-generated .dll's in VS help me
out? So far my googling has turned up some MS tools (dumpbin.exe and
imp.exe) which I can use to generate a .lib file from a .dll file
(although in kind of a roundabout way), and I've also come up with
ImpLib (http://implib.sourceforge.net) which has some tools (dll2def
and fasm) which will generate a .def file and then a .lib file. Do I
have to turn to third party tools to do this, or is there an easier
way to generate what I need with FPC? What about the next step
(actually using the .dll in Visual Studio)?

I realize this message is more about VS than FPC, so I apologize if
it's offtopic.

Thanks,

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover
sethdgrover[at]gmail[dot]com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: source code UTF8 with BOM problems ?

2010-03-23 Thread Luis Fernando Del Aguila Mejía

what platform do you develop, what are your target platforms?

English:
Most commonly, Linux and Windows, both 32 bits.
I want to use Unicode-UTF8 with linux and want to use Win-1252 with Windows.
My question is: Is my decision right?

Spanish :
Lo más común, linux y windows, ambos 32 bits.
Deseo usar Unicode-UTF8 con linux y deseo usar Win-1252 con Windows.
Mi pregunta es : ¿Es adecuada mi decisión?




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal