Forum

× CodeTyphon MS Windows (XP, Vista, Win7, Win8.x and Win10) OS Development, discussions and problems

Question Problem porting neobook plugin from delphi to CT

  • Hans-Peter Wickern
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 years 3 weeks ago - 5 years 3 weeks ago #3736 by Hans-Peter Wickern
Problem porting neobook plugin from delphi to CT was created by Hans-Peter Wickern
Hello,

I am new to CT and Freepascal/Lazarus and a longtime delphi 7 user.

I am trying to get a sample from the neobook plugin SDK compiled undet CT.

I get various errors like DLLProc is unknown.

DLLProc := @DLLHandler;

I used the converter funtions in CT.
I added what I have so far incuding the converter backup delphi files.
Maybe a experienced CT-user can get it to run?


File Attachment:

File Name: SpinEditExample.zip
File Size:202 KB


I outcomment the DLLProc line but get hard crashes when called from neobook host-app.


Regards

Hans-Peter
Attachments:
Last edit: 5 years 3 weeks ago by Hans-Peter Wickern.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
5 years 3 weeks ago - 5 years 3 weeks ago #3737 by Sternas Stefanos
Replied by Sternas Stefanos on topic Problem porting neobook plugin from delphi to CT
Sir
to register a DLL main function Delphi has
DLLProc and DLLProcEx

Now in CT and FreePascal
look at system.pp line 112
const
  Dll_Process_Detach_Hook : TDLL_Entry_Hook = nil;
  Dll_Thread_Attach_Hook : TDLL_Entry_Hook = nil;
  Dll_Thread_Detach_Hook : TDLL_Entry_Hook = nil;

Use these in your library, to register the main function.

CodeTyphon Architect and Programmer
Last edit: 5 years 3 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Hans-Peter Wickern
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 years 3 weeks ago #3738 by Hans-Peter Wickern
Replied by Hans-Peter Wickern on topic Problem porting neobook plugin from delphi to CT
Hello,

Thanks for the answer.
Since I have no access to the calling host (neobook authoring system)
I am out of luck then to use CT as a plugin toolkit.
Sad but here is freepascal not compatibel with delphi.

Regards

Hans-Peter

Please Log in or Create an account to join the conversation.