#include <iostream>
#include <windows.h>
#include "g.h"
typedef unsigned long (*AsmFunc)(AS_INBUF *, AS_OUTBUF *, T_REG_INF *, T_MPCNT *, ICE_ID *);
int main()
{
AsmFunc _AsmFunc;
HINSTANCE hInstLibrary = LoadLibrary((LPCWSTR)L"C:\Documents and Settings\karthikdatt\Desktop");
if (hInstLibrary)
{
_AsmFunc = (AsmFunc)GetProcAddress(hInstLibrary, "Assembler");
if (_AsmFunc)
{
std::cout << "ASSEMBLER FUNCTION" << _AsmFunc(ptr1,ptr2,ptr3,ptr4,ptr5) << std::endl;
}
}
else
{
std::cout << "DLL Failed To Load!" << std::endl;
}
FreeLibrary(hInstLibrary);
}
iam not able to load that dll file... its printing DLL Failed To Load!... so plaz anyone help me in rectifying this problem.....