Hi ,
I am confuse with lite-c and Dll. I did exactly what the "Getting started with the plugin SDK" said but when I run my file appear : crash in main. My code is:
1- In teste.dll
#include "stdafx.h"
#define DLL_USE
#include "adll.h"
#include <string.h>
#include <stdio.h>
#include <windows.h>
#include <tchar.h>


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

DLLFUNC var ldexpc(var x,var n)
{
return (_VAR(_FLOAT(x)*(_FLOAT(n))));
}

2- in SED
#include <acknex.h>
#include <default.c>

var ldexpc(var x,var n);
var a;
var XMLAdvAppHandle;
void main()
{
video_mode = 7; // lite-C: start in 640x480 resolution
video_screen = 2; // lite-C: start settings for Fullscreen
level_load("VAH.wmb");
wait(2); // let level load
XMLAdvAppHandle = dll_open("XMLDllNovo.dll");
wait(2);
a = ldexpc(1,2);
}

What s wrong with my code? I need to declare the DLL file in somewhere of script?
I need help and more tutorial about SDK and Lite-c