Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create DLL

Status
Not open for further replies.

curbelo

Programmer
Joined
Oct 28, 2001
Messages
1
Location
US

How i can create a dll in Visual c++ and after use it in Delphi
 
creation of DLL:
create a project with MFC AppWizard (dll)
in the .def file you name your entry's without arguments:

FUNCTION1
FUNCTION2
etc.

in the .cpp file write the functions:

int FUNCTION1( char* a , etc )
{

}

or if this does not work, try:

int __stdcall FUNCTION1( )
{

}

to minimize problems:
Use only capitals in your fuction names.
Link MFC staticly.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top