#include "iostream"
#include "DarkGDK.h"
using namespace std;
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbSetDisplayMode ( 1024,768,32 );
dbLoadImage ( "backdrop.png",56 );
dbLoadImage ( "carddeck23cv.png",57 );
dbPasteImage ( 57,0,0 );
int a=1;
for ( int y; y<384; y=y+96 )
{
for ( int x; x<680; x=x+68 )
{
dbGetImage ( a,x,y,x+68,y+96 );
a++;
}
}
dbCLS ( );
dbSprite ( 1,0,0,56 );
while ( a<1000 )
{
dbSync ( );
a++;
}
cin.get( );
}
that's my code
------ Build started: Project: Solitaire, Configuration: Debug Win32 ------
Linking...
LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMT.lib(stricmp.obj) : error LNK2005: __stricmp already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMT.lib(atox.obj) : error LNK2005: _atoi already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMT.lib(strnicmp.obj) : error LNK2005: __strnicmp already defined in MSVCRTD.lib(MSVCR90D.dll)
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function "void __cdecl CoreReadStringFromRegistry(char *,char *,char *)" (?CoreReadStringFromRegistry@@YAXPAD00@Z)
music.lib(CMusicC.obj) : error LNK2019: unresolved external symbol __imp__CoCreateInstance@20 referenced in function "void __cdecl LoadMusicCore(char *,int)" (?LoadMusicCore@@YAXPADH@Z)
animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
multiplayer.lib(CNetwork.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
animation.lib(renbase.obj) : error LNK2019: unresolved external symbol __imp__CoTaskMemAlloc@4 referenced in function "public: virtual long __stdcall CRendererInputPin::QueryId(unsigned short * *)" (?QueryId@CRendererInputPin@@UAGJPAPAG@Z)
animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
animation.lib(mtype.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
animation.lib(amfilter.obj) : error LNK2019: unresolved external symbol __imp__CoUninitialize@0 referenced in function "public: virtual long __stdcall CBaseFilter::Register(void)" (?Register@CBaseFilter@@UAGJXZ)
animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
core.lib(DBDLLCore.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
animation.lib(amfilter.obj) : error LNK2019: unresolved external symbol __imp__CoFreeUnusedLibraries@0 referenced in function "public: virtual long __stdcall CBaseFilter::Register(void)" (?Register@CBaseFilter@@UAGJXZ)
animation.lib(amfilter.obj) : error LNK2019: unresolved external symbol __imp__CoInitialize@4 referenced in function "public: virtual long __stdcall CBaseFilter::Register(void)" (?Register@CBaseFilter@@UAGJXZ)
animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
core.lib(DBDLLCore.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
animation.lib(wxutil.obj) : error LNK2019: unresolved external symbol __imp__SysAllocString@4 referenced in function _WriteBSTR@8
animation.lib(wxutil.obj) : error LNK2019: unresolved external symbol __imp__SysFreeString@4 referenced in function _FreeBSTR@4
animation.lib(mtype.obj) : error LNK2019: unresolved external symbol __imp__CoTaskMemFree@4 referenced in function "public: void __thiscall CMediaType::ResetFormatBuffer(void)" (?ResetFormatBuffer@CMediaType@@QAEXXZ)
system.lib(dxdiaginfo.obj) : error LNK2019: unresolved external symbol __imp__VariantClear@4 referenced in function "public: long __thiscall CDxDiagInfo::GetStringValue(struct IDxDiagContainer *,wchar_t *,char *,int)" (?GetStringValue@CDxDiagInfo@@QAEJPAUIDxDiagContainer@@PA_WPADH@Z)
system.lib(dxdiaginfo.obj) : error LNK2019: unresolved external symbol __imp__VariantInit@4 referenced in function "public: long __thiscall CDxDiagInfo::GetStringValue(struct IDxDiagContainer *,wchar_t *,char *,int)" (?GetStringValue@CDxDiagInfo@@QAEJPAUIDxDiagContainer@@PA_WPADH@Z)
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
C:~MarcusProgrammingProjectsSolitaireDebugSolitaire.exe : fatal error LNK1120: 16 unresolved externals
Build log was saved at "file://c:~MarcusProgrammingProjectsSolitaireSolitaireDebugBuildLog.htm"
Solitaire - 37 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
that's the error... I couldn't read any of the error, forgive me im new to darkgdk and C++ altogether.
EDIT: For those of you not willing to read the entire thread, I got the above solved, but however ran into a new error:
Quote: "cl : Command line error D8016 : '/MT' and '/clr' command-line options are incompatible"
Any Help?
RuneScape name: Dbproguy