Exploiter DirectX grace au C++

foulechat Messages postés 12 Date d'inscription samedi 26 mars 2005 Statut Membre Dernière intervention 9 octobre 2007 - 8 oct. 2007 à 13:57
foulechat Messages postés 12 Date d'inscription samedi 26 mars 2005 Statut Membre Dernière intervention 9 octobre 2007 - 9 oct. 2007 à 10:00
Bonjour tout le monde !

Alors voila mon probléme :
J'ai acheté le livre "DIRECTX 9 Programmation de jeux 3d"
Je ne compte pas réelement créer un jeu vidéo mais comprendre et savoir utiliser DirectX ayant déja qelques bases de programmations.

Aprés avoir suivi les premières directives (installation de Visual C++ Express Edition, Plateform SDK et enfin le DirectX SDK)
me voici bloqué !

En effet, j'ouvre un exemple du DirectX Sample Browser sous Visual C++ et alors je ne peux le compiler !
Un exemple devrais, il me semble, être opérationel dès son ouverture...

D'aprés mon livre et les indications trouvés sur internet, il faudrait alors donner a Visual C++ les vers les librairies DirectX ou bien du SDK je n'ai pas trop compris.
Tous se que j'ai trouvé (y compris se qu'il y a dans mon livre) n'est qu'incroyable charabia !!!
Impossible de comprendre la manipulation a suivre !

Quelqu'un peut t-il m'aider s'il vous plait ?
Existe-t-il un environement de programmation plus simple ?
J'y ai mis beaucoup de sueur depui plusieur jours !

Pitié ! Aidez-moi !

25 réponses

foulechat Messages postés 12 Date d'inscription samedi 26 mars 2005 Statut Membre Dernière intervention 9 octobre 2007
8 oct. 2007 à 20:52
Ok d'accord merci beaucoup pour cette aide et ces indiquations !
0
cs_sam20 Messages postés 184 Date d'inscription lundi 31 juillet 2006 Statut Membre Dernière intervention 26 mai 2016 3
8 oct. 2007 à 20:52
Tu nous dois un pot au cafe du coin lol.
0
foulechat Messages postés 12 Date d'inscription samedi 26 mars 2005 Statut Membre Dernière intervention 9 octobre 2007
8 oct. 2007 à 21:03
Pardonnez mon ignorance mais comment fait on pour "rechercher" une fonction dans le Platform SDK ?
Quel est la fonction a tirer dans ce fourbi  car il reste 16 erreurs ? (Nouvel exemple)

1>configdatabase.obj : error LNK2019: symbole externe non résolu __imp__RegCloseKey@4 référencé dans la fonction "long __cdecl InitSoundInformation(struct _GUID const &,struct SOUND_DEVICE *)" (?InitSoundInformation@@YAJABU_GUID@@PAUSOUND_DEVICE@@@Z)
1>configdatabase.obj : error LNK2019: symbole externe non résolu __imp__RegQueryValueExW@24 référencé dans la fonction "long __cdecl InitSoundInformation(struct _GUID const &,struct SOUND_DEVICE *)" (?InitSoundInformation@@YAJABU_GUID@@PAUSOUND_DEVICE@@@Z)
1>configdatabase.obj : error LNK2019: symbole externe non résolu __imp__RegEnumKeyW@16 référencé dans la fonction "long __cdecl InitSoundInformation(struct _GUID const &,struct SOUND_DEVICE *)" (?InitSoundInformation@@YAJABU_GUID@@PAUSOUND_DEVICE@@@Z)
1>configdatabase.obj : error LNK2019: symbole externe non résolu __imp__RegOpenKeyExW@20 référencé dans la fonction "long __cdecl InitSoundInformation(struct _GUID const &,struct SOUND_DEVICE *)" (?InitSoundInformation@@YAJABU_GUID@@PAUSOUND_DEVICE@@@Z)
1>configmanager.obj : error LNK2019: symbole externe non résolu __imp__CoUninitialize@0 référencé dans la fonction "public: void __thiscall CConfigManager::InitConfigInformation(struct _D3DCAPS9 &)" (?InitConfigInformation@CConfigManager@@QAEXAAU_D3DCAPS9@@@Z)
1>GetDXVer.obj : error LNK2001: symbole externe non résolu __imp__CoUninitialize@0
1>configmanager.obj : error LNK2019: symbole externe non résolu __imp__SysFreeString@4 référencé dans la fonction "public: void __thiscall CConfigManager::InitConfigInformation(struct _D3DCAPS9 &)" (?InitConfigInformation@CConfigManager@@QAEXAAU_D3DCAPS9@@@Z)
1>configmanager.obj : error LNK2019: symbole externe non résolu __imp__SysAllocString@4 référencé dans la fonction "public: void __thiscall CConfigManager::InitConfigInformation(struct _D3DCAPS9 &)" (?InitConfigInformation@CConfigManager@@QAEXAAU_D3DCAPS9@@@Z)
1>configmanager.obj : error LNK2019: symbole externe non résolu __imp__CoCreateInstance@20 référencé dans la fonction "public: void __thiscall CConfigManager::InitConfigInformation(struct _D3DCAPS9 &)" (?InitConfigInformation@CConfigManager@@QAEXAAU_D3DCAPS9@@@Z)
1>GetDXVer.obj : error LNK2001: symbole externe non résolu __imp__CoCreateInstance@20
1>configmanager.obj : error LNK2019: symbole externe non résolu __imp__CoInitialize@4 référencé dans la fonction "public: void __thiscall CConfigManager::InitConfigInformation(struct _D3DCAPS9 &)" (?InitConfigInformation@CConfigManager@@QAEXAAU_D3DCAPS9@@@Z)
1>GetDXVer.obj : error LNK2001: symbole externe non résolu __imp__CoInitialize@4
1>GetDXVer.obj : error LNK2019: symbole externe non résolu __imp__SysStringLen@4 référencé dans la fonction "long __cdecl GetDirectXVersionViaDxDiag(unsigned long *,unsigned long *,wchar_t *)" (?GetDirectXVersionViaDxDiag@@YAJPAK0PA_W@Z)
1>GetDXVer.obj : error LNK2019: symbole externe non résolu __imp__VariantClear@4 référencé dans la fonction "long __cdecl GetDirectXVersionViaDxDiag(unsigned long *,unsigned long *,wchar_t *)" (?GetDirectXVersionViaDxDiag@@YAJPAK0PA_W@Z)
1>GetDXVer.obj : error LNK2019: symbole externe non résolu __imp__VariantInit@4 référencé dans la fonction "long __cdecl GetDirectXVersionViaDxDiag(unsigned long *,unsigned long *,wchar_t *)" (?GetDirectXVersionViaDxDiag@@YAJPAK0PA_W@Z)
1>Debug\ConfigSystem.exe : fatal error LNK1120: 12 externes non résolus
0
cs_juju12 Messages postés 966 Date d'inscription samedi 3 avril 2004 Statut Membre Dernière intervention 4 mars 2010 4
8 oct. 2007 à 21:42
Je prends la première : __imp__RegCloseKey@4 la fonction est RegCloseKey (faut juste virer la décoration); ensuite tu ouvres la doc du Platform SDK (par ex. démarrer->Prog.->Microsoft Platform SDK->Platform SDK Doc.) , tu affiches l'index (ctrl+alt+F2), tu tapes ta fonction (RegCloseKey en l'occurence). Tu es dirigé vers la page de doc de cette fonction. Tout en bas de la page il y a un tableau Requirements, tu regardes à Library : Advapi32.lib. Tu la références (dans les propriétés ou avec #pragma comment(lib,"advapi32.lib"))Tu fais ca jusqu'à plus d'erreurs.

A vu de nez tu dois avoir besoin de advapi32.lib, ole32.lib, oleaut32.lib...
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
foulechat Messages postés 12 Date d'inscription samedi 26 mars 2005 Statut Membre Dernière intervention 9 octobre 2007
9 oct. 2007 à 10:00
Merci mille fois !

Je vous dois vraiment le café !

Encore merci !
0
Rejoignez-nous