Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Can't get simple DLL to work

dll

Best Answer BlackRabbit, 03 March 2015 - 06:44 PM

I think this step by step tutorial is simpler and could be of help to you.

Go to the full post


This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1 mikalthor

mikalthor

    CC Lurker

  • New Member
  • Pip
  • 9 posts

Posted 03 March 2015 - 05:20 PM

Hello all,

I am trying to write and call a simple DLL using Zarko Gajic's article, "Creating and Using DLLs from Delphi". I followed Zarko's directions and at first could not compile due to the VARIANTS in the USES clause. I removed it and the program compiled, both the host program and the DLL; however, it did nothing when I clicked the button (in the example program). I am just now getting into creating DLLs and welcome any help that I can get. Maybe try to use the code that Zarko provides as starters. I've attached my code for your review..

 

Thanks!

Mike
 

 

 

Attached Files



#2 mikalthor

mikalthor

    CC Lurker

  • New Member
  • Pip
  • 9 posts

Posted 03 March 2015 - 05:40 PM

also, I am using Delphi 4 and have both the host executable and DLL in the same directory...



#3 BlackRabbit

BlackRabbit

    CodeCall Legend

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3871 posts

Posted 03 March 2015 - 06:44 PM   Best Answer

I think this step by step tutorial is simpler and could be of help to you.



#4 mikalthor

mikalthor

    CC Lurker

  • New Member
  • Pip
  • 9 posts

Posted 04 March 2015 - 08:20 AM

thanks a lot BlackRabbit... a great tutorial...



#5 mikalthor

mikalthor

    CC Lurker

  • New Member
  • Pip
  • 9 posts

Posted 04 March 2015 - 11:49 AM

Another question that I have is... can Delphi controls (such as TEdit & TCheckbox) be manipulated from inside a DLL?



#6 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts

Posted 05 March 2015 - 05:14 AM

It depends a LOT on how you've set up your controls.


Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/