I was wondering if someone could do me a favor. I want to try my hand at creating a DLL in Delphi. (since it will matter... I'm using version 7)
I've created a couple of them before... using FreeBasic. But I'm kind of clueless as to where to start in creating one in Delphi. 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. And within that function that the user calls... the API "MessageBoxIndirect" function gets called. (I've chosen this API, for this message post, totally at random. But by using it as an example... I'll have all the information I'll ever need when using any API function within a DLL that I create.) MessageBoxIndirect needs a type structure filled in prior to being displayed. The structure looks like this... Type MSGBOXPARAMS cbSize As Long hWndOwner As Long hInstance As Long lpszText As Long lpszCaption As Long dwStyle As Long lpszIcon As Long dwContextHelpId As Long lpfnMsgBoxCallback As Long dwLanguageId As Long End Type When MessageBoxIndirect gets called... the only parameter that needs to be passed is the structure above. If I have the basics of these 2 key ingredients... "what I need to add" and "where I need to add it/them" I can figure the rest out on my own. I'm hoping it's as simple to do in Delphi as it is FreeBasic. The other option would be... b) provide me with a "good" link that has a detailed example of the above. The ones I've seen so far are not helping me grasp the concepts of what I need to do. I'm not saying the examples are complicated... it's just... none of them have an example that "I" could make use of. As Always... Thanks In Advance for any and all help. David