Displaying 1 result from an estimated 1 matches for "hxloperarray".
2003 Oct 27
3
(PR#4806)
...iven by
Douglas Bates.
dyn.load("TestDll.dll")
test<-function(x,y) .Call("out",x,y)
x<-1:10
y<-2:10
test(x,y)
The C++ code is below
#include <windows.h>
#include <R.h>
#include <Rinternals.h>
HWND hWndMain;
HINSTANCE hInst;
HGLOBAL hXloperArray;
//32 bit Entry point
#define CLASS_NAME_BUFFER 50
BOOL WINAPI DllMain(HINSTANCE hDLL, DWORD dwReason, LPVOID lpReserved)
{
extern HWND hWndMain;
extern HINSTANCE hInst;
hInst = hDLL;
return TRUE;
}
extern "C" int FAR PASCAL WEP (int nArgumen...