Recent

Recent Posts

Pages: [1] 2 3 ... 10
1
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by KodeZwerg on Today at 03:24:20 pm »
[sarcasm]
...blame FPC that it doesn't work...
dont we all do this from time to time when something seems to be unlogic and work not as excepted, ofc its fpc's fault since I am purrfect  ;D
[/sarcasm]

Anyway, congratulations paule32 to find out that your way is a dead end  :-[
At least you learned something about binary executable file structures even when I think it's from time to time misunderstood, wrong interpreted or wrong expressed.

As mentioned very early by me, if filesize is your only concern, Pascal is the wrong horse to ride with.
2
General / Re: Parameter passing oddities
« Last post by Nitorami on Today at 03:22:01 pm »
Just for fun, I asked Microsoft's Copilot for its opinion. Here is the response.

Certainly! Let’s analyze the provided Pascal code:

Code: Pascal  [Select][+][-]
  1. procedure add(const a, b: integer; var c: integer);
  2. begin
  3.   c := a + b;
  4. end;
  5.  
  6. var
  7.   C1, C2, C3: integer;
  8. begin
  9.   add(C1, 8, C1);
  10. end.

The code defines a procedure called add that takes two constant parameters (a and b) and one variable parameter (c). The procedure adds a and b and assigns the result to c.

However, there is an issue with the code. In Pascal, a constant parameter cannot be modified within the procedure. The line add(C1, 8, C1); attempts to modify the constant parameter C1, which is not allowed.

To fix this, you should either change the parameter c to be a variable parameter or avoid modifying C1 within the procedure.
3
General / Web Applications with Pascal
« Last post by Nate897 on Today at 03:17:43 pm »
Hey guys  8) 

I recently considered using FPC for web services.

I found this interesting video on the Internet, and found it amusing, and I think it raises good points.

There ideas are expressed better than words. Basically it says that it sounds absurd to convert a lower-level, statically typed, etc. language to a higher level one, and that important strengths of Pascal are lost, and that some comparisons are nonsensical, among other things.

I think nobody got to answer my other topic and it was erased ? I don't understand. If it's really necessary I will remove the link. It is really harmless, not SPAM, any type of promotion or things like that. It speaks better than words, and is just about 5 minutes long.

What do you guys think about the subject? Please discuss.
4
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by paule32 on Today at 02:41:34 pm »
I will revert the misunderstanding comment, and I will apologies me.
I was on first step with study the internals of FPC.
I was new to 64-Bit Microsoft Windows programming in assembly.

This depends in different ABI call's and API function's for
the different kind of CPU's and Operating System.
5
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by rvk on Today at 02:37:13 pm »
But I think, this is a thing that the TVmt struct grounded.
Because I write earlier: I use my own RTL.
So with the standard RTL it works correctly...
and you blame FPC that it doesn't work with your custom RTL %)
6
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by paule32 on Today at 02:29:58 pm »
@rvk:
nono, ...
I can import C functions from external DLL files.
I can NOT import PAS functions from FPC created DLL files.

But I think, this is a thing that the TVmt struct grounded.
Because I write earlier: I use my own RTL.

As such, I completely remove RTTI, and Debug stuff using the SED tool.
Did you don't look to the build.bat ?
7
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by rvk on Today at 02:25:31 pm »
So, you came to the conclusion that FPC your RTL really doesn't support DLL import's at current time  ::)

That's something completely different  ;)
8
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by paule32 on Today at 02:17:19 pm »
@Thaddy:
this does NOT depend on the original FPC, and RTL !!!   ;D
9
FV/Textmode IDE / Surf Units in Text Mode Ide
« Last post by mosquito on Today at 01:58:21 pm »

Using fp ("Text Mode Ide"), when there is a compilation error, I can navigate from the 'Compiler Messages' window to the affected unit.


So, is there a keyboard shortcut to be able to do this from the code editor? . It would be Lazarus-like behavior when doing Ctrl + LM on the name of a unit, procedure, etc
10
Third party / Re: Ho Ho Ho IntraWeb in Lazarus!!!
« Last post by Thaddy on Today at 01:55:52 pm »
Yes, I was a bit to harsh. It is still very suitable for Intra!-web appcications, but it is not very suitable for internet applications because of its inherent vulnerabilities that nobody has fixed yet.
So: it is a welcome port, but don't use it outside of a local network.

The latter can of course be mitigated by using a more modern front-end.
I also used it a lot in the past, but I also hacked it - legally, CEH - a lot in the past..
CVE-2017-17527
CVE-2007-0533

to name a few.
It is also very easy to force access violations at runtime in its codebase.
Which is basically also a means of getting control.
I won't get into much further detail, but a web application using Intraweb can be hacked in minutes, not months or years, and it is quite easy to detect if a web application has been written with Intraweb.
Pages: [1] 2 3 ... 10

TinyPortal © 2005-2018