#5
Hi all,

I have written a simple dll using VC++ 6.0 as follows and loded in to intellicad.
At the time of loading it is saying entry point not found.
Can any one help me how to solve this.

ESS.CPP

Code: Select all

#include "stdafx.h"
#define EXPORTING_DLL
#include "ESS.H"

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    return TRUE;
}

void HH()
{
   MessageBox( NULL, TEXT("Hello World"), TEXT("In a DLL"), MB_OK);
}

ESS.H

Code: Select all

#ifndef INDLL_H
#define INDLL_H

#ifdef EXPORTING_DLL
extern __declspec(dllexport) void HH() ;
#else
extern __declspec(dllimport) void HH() ;
#endif

#endif
Thanks,
Kumar
cron