Hello,
I don't know if this is the right place.
But I will ask.
I have tried to compile a DLL with this source: It should only read the documents path.
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <shlobj.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <math.h.>
// engine specific header file
#define DLL_USE
#include "adll.h"
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved )
{
// make sure the library is linked
engine_bind();
return TRUE;
}
char path[MAX_PATH];
DLLFUNC char* getDocumentsPath(){
SHGetSpecialFolderPathA(NULL,path,CSIDL_MYDOCUMENTS,0);
return path;
}
I have tried to compile this with the codeblocks 3dgs plugin wizard and the Codeblocks Version 10.05 GNU CC Compiler
But I get always error messages.
Like:
SHGetSpecialFolderPathA(NULL,path,CSIDL_MYDOCUMENTS,0); was not declared in the scope
and also CSIDL_MYDOCUMENTS
was not declared in the scope.
Is there anyone that can compile this short script to a dll with A7? Or what is wrong?
Maybe you can help me.
Beside: I know the folderpath.dll but I only need the mydocuments folder and I use C-Script. So I would need this short dll.