Bonjorus,

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
#include <iostream>
#include <windows.h>
#include <stdio.h>
int main(int argc, char * argv[])
{
     HWND hMediaplayer = FindWindow("Sans - Titre - Bloc-notes",NULL);
     printf("le handle de la fenêtre de media player 2 est : 0x%X",hMediaplayer);
     system("pause");
	 return 0;
}
Ce code m'envoie ces erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
'test2.exe'*: Chargé 'C:\Users\airrivals\Documents\Visual Studio 2010\Projects\test2\Debug\test2.exe', Les symboles ont été chargés.
'test2.exe'*: Chargé 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\mscoree.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\msvcp100d.dll', Les symboles ont été chargés.
'test2.exe'*: Chargé 'C:\Windows\System32\msvcr100d.dll', Les symboles ont été chargés.
'test2.exe'*: Chargé 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\msvcr100_clr0400.dll', Cannot find or open the PDB file
Exception de première chance à 0x753b9673 dans test2.exe*: 0x04242420: 0x4242420.
'test2.exe'*: Chargé 'C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\74353039393f68f4c068cc37f759e5be\mscorlib.ni.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\nlssorting.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System\5a8bf6ab1a6ba60e7355fa4cc61fd0c5\System.ni.dll', Cannot find or open the PDB file
'test2.exe'*: Chargé 'C:\Windows\System32\apphelp.dll', Cannot find or open the PDB file
Le thread 'Thread Win32' (0xd84) s'est arrêté avec le code -1073741510 (0xc000013a).
Le thread 'Thread Win32' (0x1a70) s'est arrêté avec le code -1073741510 (0xc000013a).
Le thread 'Thread Win32' (0x1f58) s'est arrêté avec le code -1073741510 (0xc000013a).
Le thread 'Thread Win32' (0x25c8) s'est arrêté avec le code -1073741510 (0xc000013a).
Le programme '[8140] test2.exe: Natif' s'est arrêté avec le code -1073741510 (0xc000013a).
Et mon application me retourne sa :
le handle de la fenetre de media player 2 est : 0x0Appuyez sur une touche pour continuer...
Je pense pas que sa doit donner sa si ?