Computing.Net > Forums > Programming > DLL files in VC++

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

DLL files in VC++

Reply to Message Icon

Original Message
Name: raghava
Date: October 5, 2004 at 22:07:33 Pacific
Subject: DLL files in VC++
OS: win 2000
CPU/Ram: 200 mb
Comment:

Hi all,

What is th use of DLL files. How to create & use these in VC++.


Regards
Raghava Reddy
raghava.ry@gmail.com


Report Offensive Message For Removal


Response Number 1
Name: Chi Happens
Date: October 6, 2004 at 06:30:26 Pacific
Reply:

A DLL is a Dynamic Link Library.

They can be used to extend an application and componentize your final product.

They can contain all or some of the business logic for the application.

They are typically used to allow code that will be shared among several applications.

How you create one is by making a program that contains the necessary files (and headers/and libs) for creating a DLL.

typically:
stdafx.h

then you create your classes as normally you would do, but the ones you want to use outside the DLL, you export this this:

extern "C" BOOL PASCAL EXPORT ExportedFunction()

then, you create a new application and import the library of your DLL, and include the header file for your external items (functions, properties, events) and then use them in your application.

You should be able to find help for doing this in VC++'s help, as well as using the DLL wizard when you start your project.

If you do not have the help files, then you can find them here: http://msdn.microsoft.com

Good luck, hope this helped,
Chi


Report Offensive Follow Up For Removal

Response Number 2
Name: BlueRaja
Date: October 6, 2004 at 19:56:37 Pacific
Reply:

This has been answered many times in the past, please search the forums before asking.

AKhalifman@hotmail.com


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home



Results for: DLL files in VC++

how to compile a .Reg file in VC++?
    Summary: Hi all, Can anyone tell me how to compile a .Reg file in VC++? ...
www.computing.net/answers/programming/how-to-compile-a-reg-file-in-vc/10251.html

view on dll files
    Summary: Can anyone tell me how to view the source code of an compiled dll files in windows? ...
www.computing.net/answers/programming/view-on-dll-files/2629.html

Batch command to create .DLL files?
    Summary: I need a command to create a blank .DLL file in a certain folder. If there's no such command, is there a command to make a blank .TXT file? I know there is a command to change extensions of files. ...
www.computing.net/answers/programming/batch-command-to-create-dll-files/15940.html








Which MP3 player do you have?

iPod/iPhone
Zune
Something Else
None


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History






Data Recovery Software