Code: Select all
// DllTest.h
#pragma once
__declspec(dllexport) int __stdcall add(int a, int b);
Code: Select all
// DllTest.cpp
#include "stdafx.h"
#include "DllTest.h"
int __stdcall add(int a, int b)
{
return a+b;
}
Code: Select all
// indicator (power language)
external: "C:\Users\xxx\Desktop\DllTest\Debug\DllTest.dll", int, "add", int, int;
messagelog(add(1,2));
Error in study "DllTest"::Can't find function "add" in dll.
what's wrong?
I can view the "add" function through the application called "DLL EXPORT VIEWER"