Hello,

You would need to use:
LoadLibrary
http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx

GetProcAddress
http://msdn.microsoft.com/en-us/library/ms683212(VS.85).aspx

Windows API functions

typedef void (HRESULT *PFNDECOM)(int Lag, BOOL Centr, double Prec, int CoMatr, int SVMethod);

  HMODULE hDLL = LoadLibary("The_DLL_you_want_to_load.dll");

  if( hDLL )
 {
   PFNDECOM pfnDecom;

   pfnDecom= (PFNDECOM ) GetProcAddress(
      hDLL,  "Decom");
   if(NULL != pfnDecom)
      HRESULT res = pfnDecom( 1, 1, 1, 1 );
   }



.....

 FreeLibrary( hDLL );

Best regards,
Tomasz Janeczko
amibroker.com

On 2010-05-31 07:21, elizabeth19852002 wrote:


Hello All,

I have this 3rd party DLL and I would like to call it from a Amibroker DLL plugin.

They do not give the source code but give  **some**  method info like

HRESULT Decom (int Lag, BOOL Centr, double Prec, int CoMatr, int SVMethod);

for accessing it from custom programs (and I know what these variables are).

I thought I could make use of the *JRSample* code that comes with *ADK* as an example to call this DLL. But unfortunately I donot have any corresponding lib file that is listed in JRSample code (it does not come with the DLL).

Can someone please point me in the right direction for this call.

Thanks in advance

Liz




Reply via email to