From what I recall about the last time I created one, you use Delphi code in 
the dll just like you do in the exe. You only have to export the funtion that's 
used to load the dll at run-time (if you're doing "late binding") but that's 
the only place where you have to use windows API. If you're loading the dll at 
exe load, youi don't even have to do that.... I used the book "Mastering Delphi 
6" by Mario Cantu which was quite detailed.

   What you're looking for is under "Windows API usage" and you should join 
that forum at the Embardadero user groups for help on that. Embarcadero "Team 
B" monitors it (volunteer former Borland employees).

Dave

--- On Sun, 4/26/09, burkleyd <burkl...@yahoo.com> wrote:

From: burkleyd <burkl...@yahoo.com>
Subject: [advanced_delphi] Re: Creating a DLL
To: advanced_delphi@yahoogroups.com
Date: Sunday, April 26, 2009, 3:54 AM











    
            
            


      
      Thanks Dave but... that's one of the links I've already looked at.



What I was hoping for was either sample code or a link that goes

into the details of the what/where/how to use something like the

API MessageBoxIndirect function "within" a function that I create

within a DLL. The form handle that's passed to my function will be

used for the hWndOwner and the string parameter that's passed will

be used for the lpszText. That way an appropriate lpszIcon could be

selected and displayed based upon the string parameter that's passed.



If it'll help someone (to help me)... I could post sample code of

how I would do it in a BASIC programming language that I use. The

whole point of asking how to do it in Delphi is that... I want to

ensure I do it "correctly" (since I'm still in the learning process

when it comes to Delphi).



David



--- In advanced_delphi@ yahoogroups. com, David Smith <djsmith_1998@ ...> wrote:

>

> the first link in Google:

> 

> http://delphi. about.com/ od/windowsshella pi/a/dll_ basics.htm

> 

> Dave

> 

> --- On Sat, 4/25/09, burkleyd <burkl...@.. .> wrote:

> 

> From: burkleyd <burkl...@.. .>

> Subject: [advanced_delphi] Creating a DLL

> To: advanced_delphi@ yahoogroups. com

> Date: Saturday, April 25, 2009, 1:33 PM

> What I would need to get me started is either...

> 

> 

> 

> a) someone to post some sample code. Maybe some code that does

> 

> something extremely simple within the DLL like... the user

> 

> calls a function within the DLL passing both a "string" and a

> 

> "form handle" as parameters.      




 

      

    
    
        
         
        
        








        


        
        


      

Reply via email to