Re: [fpc-devel] Google APIs - Authenticate using a service account?

2020-07-10 Thread gabor via fpc-devel

W dniu 2020-07-10 o 22:31, Florian Klämpfl pisze:
It starts with simply things: how to use multiple screens with the web 
based solutions: how to undock chat window, screen cast, participants or 
videos and arrange them to different screens?


Yes, webapps. Readability and usability less important than dark theme.

Michał.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] Problem with importtl

2020-09-06 Thread gabor via fpc-devel
I try to import a type library using "importtl" but it fails - ends with 
EAccessViolation exception. I am using fpc trunk from today. I have 
tried importing different libraries but with no success. Could someone 
confirm the problem?


d:\fpcupdeluxetrunk\fpc\bin\i386-win32>importtl 
C:\Windows\SysWow64\OICFiscalPrinterLib.ocx

Reading typelib from C:\Windows\SysWow64\OICFiscalPrinterLib.ocx ...
An unhandled exception occurred at $00423718:
EAccessViolation: Access violation
  $00423718  TYPETOSTRING,  line 354 of winunits-base/src/typelib.pas
  $00423D16  TYPETOSTRING,  line 427 of winunits-base/src/typelib.pas
  $00424617  INTERFACEDECLARATION,  line 582 of 
winunits-base/src/typelib.pas

  $004292BA  CREATEINTERFACES,  line 1437 of winunits-base/src/typelib.pas
  $0042B374  DOIMPORTTYPELIB,  line 1821 of winunits-base/src/typelib.pas
  $0042BE32  EXECUTE,  line 1971 of winunits-base/src/typelib.pas
  $00422B8E  IMPORTTYPELIB,  line 188 of winunits-base/src/typelib.pas
  $00401EA8  main,  line 103 of importtl/importtl.pas

Michał.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Problem with importtl

2020-09-06 Thread gabor via fpc-devel

W dniu 2020-09-06 o 21:41, Bart via fpc-devel pisze:

I get:
C:\Windows\SysWOW64>importtl msdxm.ocx -n
Reading typelib from -n ...
An unhandled exception occurred at $00439916:
EOleSysError: Fout bij laden van type DLL-bestand.
   $00439916  OLEERROR,  line 569 of ./winunits-base/src/comobj.pp
   $00429A4F  TTYPELIBIMPORTER__DOIMPORTTYPELIB,  line 1812 of
./winunits-base/src/typelib.pas
   $0042A5B2  TTYPELIBIMPORTER__EXECUTE,  line 1971 of
./winunits-base/src/typelib.pas
   $004213AE  IMPORTTYPELIB,  line 188 of ./winunits-base/src/typelib.pas
   $00401EB8  main,  line 103 of importtl/importtl.pas

(With r45606)



Unfortunately, msdxm.ocx file does not contain type library. Try 
msdxm.tlb instead.


Michał.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] ViewVC not working

2020-11-17 Thread gabor via fpc-devel
Can't open ViewVC page from SVN repository - I'm getting 404 error. Is 
the website down or is it a temporary problem?

I use this address: https://svn.freepascal.org/cgi-bin/viewvc.cgi/

Michał.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] C library header - var vs pointer for function arguments

2022-08-03 Thread gabor via fpc-devel
I'd like to provide some fixes for packages that are headers for c 
libraries. When and should I use the "var" argument for function 
arguments that return a value, or should I always use pointers 
(excluding arguments that might accept nil)?


Eg:
function Foo(var A: Integer): Integer;
vs
function Foo(A: PInteger): Integer;

Michał.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] C library header - var vs pointer for function arguments

2022-08-04 Thread gabor via fpc-devel

W dniu 2022-08-04 o 02:18, Dmitry Boyarintsev pisze:

Consider backwards compatibility in fixes


Good point, thanks. However, I mean non-existent / incorrect / not 
up-to-date declarations.


Michał.

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] C library header - var vs pointer for function arguments

2022-08-04 Thread gabor via fpc-devel

W dniu 2022-08-04 o 07:40, Michael Van Canneyt via fpc-devel pisze:

It's best to use pointers, but you can always provide overloads with var
arguments.

And as Dmitry Boyarintsev pointed out, don't change existing signatures for
backwards compatibility.

Michael.


Thanks. I'll use pointers.

Michał.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] threadvar vs docs

2024-10-18 Thread gabor via fpc-devel

W dniu 2024-10-18 o 15:27, Nikolay Nikolov via fpc-devel pisze:


In C (with gcc) it's possible to give them initial value, other than 0:

__thread int i = 5;

But it doesn't seem to be supported by FPC for threadvars. And I don't 
know about Delphi. FPC's thread initialization does indeed include code 
for copying the initial values, when creating a thread. Maybe it's for 
compatibility with thread-aware C libraries (including e.g. glibc), 
linked with the program, or for a possible future support for 
initialized threadvars in FPC?


Nikolay


Maybe variables containing managed types, such as dynamic arrays could 
be a problem in this case?


Michał
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel