DLL files

Started by
2 comments, last by Cecil 23 years, 10 months ago
Anyone know of any tutorials or books that can teach me how to create .dll files to use in my window programs? What program would I use to create them? Would a standard text editor work just as well? -Cecil
Advertisement
You can use Visual Studio to make DLLs, just start a new project of type Dynamic Link Library (DLL)

Basically, you write functions, without a main() or WinMain() (although there is a DllMain() for advanced features) and then export the functions...

You can then link to the library with the .lib file created by the compiler or using LoadLibrary() and GetProcAddress().

I havn't got a proper tutorial or anything, but I learnt from the Win32 API help, its all in there.

If you have any problems post again or mail me, I'll be glad to give you some source or just some advice.

Hope It Helps

Edited by - vallis on June 16, 2000 1:11:02 PM
Just found these on flipcode too:

Creating And Using DLLs
http://www.flipcode.com/tutorials/tut_dll01.shtml

Using Interfaces With DLLs
http://www.thepeel.com/void/tutorials/tut4-dll.htm

Havn''t read them myself, so I can''t comment on the quality of the articles...

I use assembler for my DLL''s although most people want to use some version of C or C++. But if your interested in assembler check out win32asm.cjb.net


It has many nice tutorials on assembler including creating a DLL. (Which I''ve done, works well!)

Hope that helped!
See ya,
Ben
__________________________Mencken's Law:"For every human problem, there is a neat, simple solution; and it's always wrong."
"Computers in the future may weigh no more than 1.5 tons."- Popular Mechanics, forecasting the relentless march of science in 1949

This topic is closed to new replies.

Advertisement