Pb avec des jetons et des symboles externes non résolus
3xodiuS
Messages postés5Date d'inscriptionsamedi 25 mai 2002StatutMembreDernière intervention18 novembre 2007
-
15 nov. 2007 à 23:08
3xodiuS
Messages postés5Date d'inscriptionsamedi 25 mai 2002StatutMembreDernière intervention18 novembre 2007
-
15 nov. 2007 à 23:28
Bonjour à tous,
J'essaie de réaliser un processus qui me permettrait de cacher la barre des tâches de XP pro, n'ayant pas trouvé de méthode propres et sans utilisé une tonnes de logiciel et en conservant explorer.exe.
J'ai appeler ce processus: TaskbarHidder. et VS 2005 s'est chargé de créer tous les fichiers dont j'aurais besoin
voici le code que j'ai rentré dans le fichier TaskbarHidderWinService.h dans la partie on start
virtual void OnStart(array<String^>^ args) override
{
int nombre;
nombre = 0;
HWND hTaskbar;
HANDLE m_hThread;
m_hThread = GetCurrentThread();
//si le thread a été déclaré
if(m_hThread)
//changer la priorité
SetThreadPriority(m_hThread,THREAD_PRIORITY_LOWEST);
while(nombre != 10)
{
Sleep(2000);
hTaskbar = FindWindow(TEXT("Shell_TrayWnd"), NULL);
ShowWindow(hTaskbar, SW_HIDE);
}
}
voici le code que j'ai rentré dans le fichier stdafx.h
#include <windows.h>
Donc voici je que j'obtiens quand j'essaie de le compiler :
------ Début de la génération : Projet : TaskbarHidder, Configuration : Debug Win32 ------
Compilation en cours...
TaskbarHidderWinService.cpp
Édition des liens en cours...
TaskbarHidderWinService.obj : error LNK2028: jeton non résolu (0A00001F) "extern "C" int __stdcall ShowWindow(struct HWND__ *,int)" (?ShowWindow@@$$J18YGHPAUHWND__@@H@Z) référencé dans la fonction "protected: virtual void __clrcall TaskbarHidder::TaskbarHidderWinService::OnStart(cli::array<class System::String ^ >^)" (?OnStart@TaskbarHidderWinService@TaskbarHidder@@$$FM$AAMXP$01AP$AAVString@System@@@Z)
TaskbarHidderWinService.obj : error LNK2028: jeton non résolu (0A000020) "extern "C" struct HWND__ * __stdcall FindWindowW(wchar_t const *,wchar_t const *)" (?FindWindowW@@$$J18YGPAUHWND__@@PB_W0@Z) référencé dans la fonction "protected: virtual void __clrcall TaskbarHidder::TaskbarHidderWinService::OnStart(cli::array<class System::String ^ >^)" (?OnStart@TaskbarHidderWinService@TaskbarHidder@@$$FM$AAMXP$01AP$AAVString@System@@@Z)
TaskbarHidderWinService.obj : error LNK2019: symbole externe non résolu "extern "C" int __stdcall ShowWindow(struct HWND__ *,int)" (?ShowWindow@@$$J18YGHPAUHWND__@@H@Z) référencé dans la fonction "protected: virtual void __clrcall TaskbarHidder::TaskbarHidderWinService::OnStart(cli::array<class System::String ^ >^)" (?OnStart@TaskbarHidderWinService@TaskbarHidder@@$$FM$AAMXP$01AP$AAVString@System@@@Z)
TaskbarHidderWinService.obj : error LNK2019: symbole externe non résolu "extern "C" struct HWND__ * __stdcall FindWindowW(wchar_t const *,wchar_t const *)" (?FindWindowW@@$$J18YGPAUHWND__@@PB_W0@Z) référencé dans la fonction "protected: virtual void __clrcall TaskbarHidder::TaskbarHidderWinService::OnStart(cli::array<class System::String ^ >^)" (?OnStart@TaskbarHidderWinService@TaskbarHidder@@$$FM$AAMXP$01AP$AAVString@System@@@Z)
C:\Documents and Settings\moi\Bureau\TaskbarHidder\TaskbarHidder\Debug\TaskbarHidder.exe : fatal error LNK1120: 4 externes non résolus
Le journal de génération a été enregistré à l'emplacement "file://c:\Documents and Settings\moi\Bureau\TaskbarHidder\TaskbarHidder\TaskbarHidder\Debug\BuildLog.htm"
TaskbarHidder - 5 erreur(s), 0 avertissement(s)
======== Génération : 0 a réussi, 1 a échoué, 0 mis à jour, 0 a été ignoré ==========
Ah oui aussi, je suis en gros débutant, j'ai que quelques bases. car je suis sûr que ce sont des erreurs de débutants...
3xodiuS
Messages postés5Date d'inscriptionsamedi 25 mai 2002StatutMembreDernière intervention18 novembre 2007 15 nov. 2007 à 23:28
En fait j'ai réussi à trouver la solution, fallait juste cocher la case, hérites des propriété des ... dans les propriété du projet.
Par contre, j'ai un soucis, il éxécute pas le code dans le Onstart, et en fait il est pas installé, malgré le TaskbarHidder.exe -Install réalisé dans la cmd... je comprends pas.