I have been trying to load up 2 dll files under the following names.
#include "gamedll/gamedll.h"
#include "gamefunc/gamefunc.h"
But for some reason the files are conflicting with each other I don't know why.
gamedll.h by it self loads up fine. that if gamefunc is loaded after now if its loaded before,
its the other way around gamefunc.h loads up fine but then I have gamedll.h problems.
Here are their contents.
gamedll.h:
Code:
#ifndef _DLL_H_
#define _DLL_H_
#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */
bool ReadINI( char const * pFile, char const * pSection, char const * pKey, char* pBuffer, unsigned int bufferLength, char const * pDefaultValue =0 );
void WriteINI(char* sFile, char* AppName, char* Key, char* sString);
#endif /* _DLL_H_ */
gamefunc.h
Code:
#ifndef _DLL_H_
#define _DLL_H_
#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */
void s_onmain(SOCKET USocket,char*buffer,int Index);
void s_ondisconnect(int Index);
void s_onconnect(SOCKET NSocket);
void s_onload();
#endif /* _DLL_H_ */
Thanks for your time