ok, removed this.
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
when i compile i get a box questing me in what application i want to use the dll in.
i just click cancel.
then i go to folder/release
and in that folder there are:
-buildlog
-dllmain(object fille)
-FLibrary(object Fille)
-Flibrary(precompiled header fille)
-Flibrary.dll.intermediate.manifest(MANIFEST file)
-stdafx(object fille)
-vc90(vc++ minimum rebuild depn...)
-vc90(Program Debug Database)
what file is dll. i notice that in the gdk there are.
and how can i use it in my game?
(i need to create a headher or something i think)
object fille library filles.
here is the code now:
// FLibrary.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "DarkGDK.h"
/*
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
*/
#define MYCOMMAND __declspec ( dllexport )
MYCOMMAND float f_GetDistance( float x1 , float y1 , float z1 , float x2 , float y2 , float z2)
{
float dist;
float dx;
float dy;
float dz;
dx = x2 - x1;
dy = y2 - y1;
dz = z2 - z1;
dist = sqrt ( ( dx * dx ) + ( dy * dy ) + ( dz * dz ) );
return dist;
}
Game.Love