Jump to content

Recommended Posts

On 3/11/2022 at 2:06 PM, David Heffernan said:

So it's more geared towards looser coupling, a more scripting like approach. I guess if I know the external code I want to use at compile time then linking to a DLL in the classic fashion is generally preferable. 

For me the most promising feature is the ability to link C libs statically. I'd love to have self-contained Delphi EXEs with OpenSSL, for example.

Share this post


Link to post
27 minutes ago, Fr0sT.Brutal said:

For me the most promising feature is the ability to link C libs statically. I'd love to have self-contained Delphi EXEs with OpenSSL, for example.

Distributing DLLs with an exe is really very trivial. Either in the same directory as the exe or a sub directory as an assembly using manifests.

 

Linking .obj files to an exe is a tricksy business. You need to supply the C RTL and for complex libs that is often very hard to achieve. And then on x64 you have the longstanding bug that the Delphi compiler doesn't pick up pdata sections with the exception tables. So exceptions in the C code can just terminate the process. 

  • Like 1

Share this post


Link to post

CPas v1.3.stable released.

 

Big update, code refactor, win32 support and much more. Reworked all examples to support 32/64-bits and more.

 

• Reworked all examples to support 32/64-bits
• Update cpLoadLibFromResource to include an instance (THandle) parameter
• Added a runtime check to make sure CPas and CPas.Static are not used simultaneously
• FPC can now build static releases also
• Add CPas.Static unit now for static builds
• Reformated CHM help format
• Added cpCompile with project directives support
• Replaced cpLoadLibFromStream with cpLoadLibFromMemory
• Refactored codebase and added 32-bit support 😎
• Updated cpAddLibrary to support (.LIB) files
• Updated cpSetVerionInfo to validate FileVersion as SemVer format (major.minor.patch)
• Miscellaneous fixes and enhancements

  • Like 1

Share this post


Link to post
On 3/11/2022 at 7:38 PM, Mark- said:

I think it is interesting but we need 32 bit.

Wish granted! 1.3 released, 32-bit support and more. Big update! :classic_cool:

Share this post


Link to post
48 minutes ago, tinyBigGAMES said:

Wish granted! 1.3 released, 32-bit support and more. Big update! :classic_cool:

Thank you.

  • Thanks 1

Share this post


Link to post

Out of curiosity I checked the original GitHub link, the page has vanished.

Share this post


Link to post
Posted (edited)
1 hour ago, hsauro said:

Out of curiosity I checked the original GitHub link, the page has vanished.

Yeah that was the catalyst for posting here and the webpage of "tinyBigGAMES LLC" did not have it listed. I wonder if he sold his work.

Edited by Mark-

Share this post


Link to post
6 hours ago, Mark- said:

Has this endeavor (CPas) ended?

Hi, for now yes. I may revisit it in the near future. 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×