OK i cant get this to work here is my code:
Code:
#include "stdafx.h"
#include "AlazarApi.h"
#include "AlazarCmd.h"
#include "windows.h"
#include "stdio.h"
#include "conio.h"
int __declspec(dllexport) __stdcall TestDLL(const char FileNameA[1024],
const char FileNameB[1024]){
oldmain();
return 1;
}
Code:
int oldmain()
{
***
}
Here are my errors:
Code:
Compiling...
TestDLL.cpp
C:\AlazarTech\ATS-SDK\V5_2_0\ATS460-SDK\Development\Beta\Acq2DiskDLL\TestDLL\TestDLL.cpp(13) : error C2065: 'oldmain' : undeclared identifier
C:\AlazarTech\ATS-SDK\V5_2_0\ATS460-SDK\Development\Beta\Acq2DiskDLL\TestDLL\TestDLL.cpp(115) : error C2373: 'oldmain' : redefinition; different type modifiers
C:\AlazarTech\ATS-SDK\V5_2_0\ATS460-SDK\Development\Beta\Acq2DiskDLL\TestDLL\TestDLL.cpp(189) : error C2065: 'malloc' : undeclared identifier
C:\AlazarTech\ATS-SDK\V5_2_0\ATS460-SDK\Development\Beta\Acq2DiskDLL\TestDLL\TestDLL.cpp(192) : error C2065: 'free' : undeclared identifier
Error executing cl.exe.
TestDLL.obj - 4 error(s), 0 warning(s)
this looks like it is probably a simple answer. Any help is much appreciated.
Where can I learn how to do this .dll stuff properly? the website didnt really explain anything.