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
  • Hans-Peter Wickern's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 6 months ago - 4 years 6 months ago #3736 by Hans-Peter Wickern
Hans-Peter Wickern created the topic: Problem porting neobook plugin from delphi to CT
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: 4 years 6 months 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
4 years 6 months ago - 4 years 6 months ago #3737 by Sternas Stefanos
Sternas Stefanos replied the 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: 4 years 6 months ago by Sternas Stefanos.

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

  • Hans-Peter Wickern
  • Hans-Peter Wickern's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 6 months ago #3738 by Hans-Peter Wickern
Hans-Peter Wickern replied the 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.