Help me please
Firstly i would say that naming a .Dll, Dll is not very good practice. However, you just need to add a reference to it in your project. Click 'AddReference' navigate to where the DLL is located and select it.
my dll file is created by my project partner. now i need to call their dll file come into my program.
this is the my project partner dll file coding:
// dll.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#include "dos.h"
#include "conio.h"
#pragma intrinsic (_outp)
////////////////////////////////////////////////////////
extern "C" __declspec(dllexport)void wp(int port, int pin);
extern "C" __declspec(dllexport)void rp();
////////////////////////////////////////////////////////
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
///////////////////////////////////////////////////////////
void wp(int port, int pin)
{
_outp(port, pin);
}
void rp(void)
{
_outp(0x378, 0);
}
he create the filename as dll.dll. i need to call the wp and rp function come
into my program. please help me. thank you very much