From pouchintv-svn at baysse.fr Thu Aug 16 18:12:06 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Thu, 16 Aug 2007 18:12:06 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] gingko | r19 - trunk Message-ID: <20070816161206.1823A5F239@mail.baysse.fr> Author: gingko Date: 2007-08-16 15:40:17 +0200 (jeu, 16 aoû 2007) New Revision: 19 Modified: trunk/graph.cpp Log: Mise à jour mineure (espaces en fin de ligne et un attribut du Log DirectShow changé dans "graph.cpp"). C'est un peu aussi pour tester la livraison SVN ... :-) Modifié: trunk/graph.cpp =================================================================== --- trunk/graph.cpp 2007-08-15 13:45:58 UTC (rev 18) +++ trunk/graph.cpp 2007-08-16 13:40:17 UTC (rev 19) @@ -1,23 +1,23 @@ -/* - * graph.cpp - * Copyright (C) 2006 Pouchin - * - * This file is part of Pouchin TV, a free DVB-T viewer. - * See http://pouchinteve.free.fr/ for updates. - * - * Pouchin TV is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Pouchin TV is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +/* + * graph.cpp + * Copyright (C) 2006 Pouchin + * + * This file is part of Pouchin TV, a free DVB-T viewer. + * See http://pouchinteve.free.fr/ for updates. + * + * Pouchin TV is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Pouchin TV is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "network.h" @@ -71,7 +71,7 @@ static DWORD pdwRegister; -static HRESULT AddToRot() +static HRESULT AddToRot() { IMoniker * pMoniker; IRunningObjectTable *pROT; @@ -231,7 +231,7 @@ if (hr == S_OK) { bool found = false; - + for (ULONG j = 0; j < Interfaces; j++) { if (Interface[j] == IID_IBDA_FrequencyFilter) { found = true; @@ -277,7 +277,7 @@ if (hr == S_OK) { bool found = false; - + for (ULONG j = 0; j < Interfaces; j++) { if (Interface[j] == IID_IBDA_SignalStatistics ) { found = true; @@ -457,7 +457,7 @@ pMixControl->SetMixingPrefs(MyMixingPrefs); - pMixControl->Release(); + pMixControl->Release(); MyIVMRDeinterlaceControl * pDeint; hr = pVMR->QueryInterface(&pDeint); @@ -974,7 +974,7 @@ // on logge #if LOG_DSHOW - logFile = CreateFile(L"log_file.txt", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + logFile = CreateFile(L"log_file.txt", GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (logFile != INVALID_HANDLE_VALUE) { pGraph->SetLogFile((DWORD_PTR)logFile); } From pouchintv-dev at baysse.fr Thu Aug 16 22:25:39 2007 From: pouchintv-dev at baysse.fr (=?iso-8859-1?q?Liste_utilis=E9e_par_les_d=E9veloppeurs?=) Date: Thu, 16 Aug 2007 22:25:39 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk Message-ID: <20070816202539.881435F23B@mail.baysse.fr> Author: lolo_32 Date: 2007-08-16 22:25:39 +0200 (Thu, 16 Aug 2007) New Revision: 20 Modified: trunk/ini.cpp trunk/main.cpp trunk/main.h trunk/res.rc trunk/resource.h Log: Port de radius: affiche un message de confirmation si un enregistrement est en cours, et que l'on quitte PouchinTVMod. Modification des menus, en rajoutant les "..." ?\195?\160 toutes les entr?\195?\169es ouvrant une nouvelle fen?\195?\170tre (comme le veut la norme), et changement de quelques lettres d'acc?\195?\168s rapide dans les menus. Ajout de quelques commentaires dans les fichiers sources. Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-16 13:40:17 UTC (rev 19) +++ trunk/ini.cpp 2007-08-16 20:25:39 UTC (rev 20) @@ -350,6 +350,7 @@ static wchar_t ini_always_on_top[] = L"Fenêtre toujours devant"; static wchar_t ini_ac3_defaut[] = L"Utilise AC3 quand dispo"; static wchar_t ini_suspend_minimized[] = L"Suspendre si minimisé"; +static wchar_t ini_close_confirm[] = L"Confirmation de fermeture si enregistrement"; static wchar_t ini_minimize_system_tray[] = L"Minimiser dans le system tray"; static wchar_t ini_use_all_width[] = L"Utilise toute la largeur"; @@ -428,6 +429,8 @@ WritePrivateProfileString(ini_config, ini_suspend_minimized, suspend_minimized ? L"Vrai" : L"Faux", fileName); + WritePrivateProfileString(ini_config, ini_close_confirm, close_confirm ? L"Vrai" : L"Faux", fileName); + WritePrivateProfileString(ini_config, ini_minimize_system_tray, minimize_system_tray ? L"Vrai" : L"Faux", fileName); WritePrivateProfileString(ini_config, ini_use_all_width, use_all_width ? L"Vrai" : L"Faux", fileName); @@ -541,6 +544,13 @@ suspend_minimized = true; } + GetPrivateProfileString(ini_config, ini_close_confirm, NULL, prio, _countof(prio), fileName); + + if (lstrcmp(prio, L"Vrai") == 0) + { + close_confirm = true; + } + GetPrivateProfileString(ini_config, ini_minimize_system_tray, NULL, prio, _countof(prio), fileName); if (lstrcmp(prio, L"Vrai") == 0) Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-16 13:40:17 UTC (rev 19) +++ trunk/main.cpp 2007-08-16 20:25:39 UTC (rev 20) @@ -91,6 +91,7 @@ bool on_top = false; bool use_ac3 = false; bool suspend_minimized = false; +bool close_confirm = false; bool minimize_system_tray = false; bool minimize = false; bool full_screen = false; @@ -496,7 +497,23 @@ info.fState = suspend_minimized ? MFS_CHECKED : MFS_UNCHECKED; SetMenuItemInfo(hMenu, IDM_SUSPEND, FALSE, &info); + + } + DrawMenuBar(h); +} +static void update_close_confirm_menu(HWND h) +{ + HMENU hMenu = GetMenu(h); + + if (hMenu != NULL) { + MENUITEMINFO info; + info.cbSize = sizeof(MENUITEMINFO); + info.fMask = MIIM_STATE; + info.fState = close_confirm ? MFS_CHECKED : MFS_UNCHECKED; + + SetMenuItemInfo(hMenu, IDM_CLOSE_CONFIRM, FALSE, &info); + } DrawMenuBar(h); } @@ -562,6 +579,7 @@ update_all_width_and_ar_menu(h); update_ac3_menu(h); update_suspend_menu(h); + update_close_confirm_menu(h); update_system_tray_menu(h); menu_recording(h, recording); set_priority(); @@ -1676,7 +1694,44 @@ } } +/** + * Fonction de gestion de la fenêtre de confirmation d'arrêt + **/ +static INT_PTR CALLBACK ConfirmCloseProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { + switch (uMsg) { + case WM_INITDIALOG: + // Initialisation de la fenêtre + // Renvoie True car la fenêtre a été initialisée + return TRUE; + + case WM_COMMAND: + // Commande reçue (clic, etc...) + switch(LOWORD(wParam)) { + + case IDOK: + // Clic sur le bouton OK + if (recording) { + pSample->SetCallback(NULL, 0); + menu_recording(hWnd, false); + } + EndDialog(hwndDlg, 1); + return TRUE; + + case IDCANCEL: + // Clic sur le bouton Annuler + EndDialog(hwndDlg, 0); + return TRUE; + } + // Autre commandes, traitées par Windows + return FALSE; + + default: + // Autre message, traité par Windows + return FALSE; + } +} + static void update_signal_dialog(HWND hwndDlg) { BOOLEAN boo; @@ -2086,7 +2141,9 @@ } } -// Fonction sélectionnant le répertoire initial lors de la demande d'un dossier +/** + * Fonction sélectionnant le répertoire initial lors de la demande d'un dossier + **/ int CALLBACK BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData) { if(uMsg == BFFM_INITIALIZED) @@ -2096,7 +2153,9 @@ static POINT coord_down; -// main window procedure +/** + * main window procedure + **/ static LRESULT WINAPI MainWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { LRESULT lRet = 0; @@ -2287,11 +2346,22 @@ break; case WM_CLOSE: - if (minimize) ShowWindow(hwnd, SW_RESTORE); + if (minimize) + ShowWindow(hwnd, SW_RESTORE); if (full_screen) { switch_fullscreen(); full_screen = true; } + if (recording && close_confirm) { + // Si on enregistre et que l'on souhaite une confirmation, + // affiche la fenêtre de confirmation + if (DialogBox(hInst, MAKEINTRESOURCE(IDD_CLOSE_CONFIRM), hwnd, ConfirmCloseProc) == 1) { + // Vide, car on quitte + } + else + // On a appuyé sur Annuler, donc, on ne quitte pas + break; + } DestroyWindow(hwnd); break; @@ -2708,6 +2778,12 @@ update_suspend_menu(hWnd); break; + case IDM_CLOSE_CONFIRM: + // Option du menu demandant confirmation lorsque l'on quitte + close_confirm = !close_confirm; + update_close_confirm_menu(hWnd); + break; + case IDM_SYSTEM_TRAY: minimize_system_tray = !minimize_system_tray; update_system_tray_menu(hWnd); Modified: trunk/main.h =================================================================== --- trunk/main.h 2007-08-16 13:40:17 UTC (rev 19) +++ trunk/main.h 2007-08-16 20:25:39 UTC (rev 20) @@ -30,6 +30,7 @@ extern wchar_t video_dir[512]; extern bool suspend_minimized; +extern bool close_confirm; extern bool minimize_system_tray; extern bool use_msn; extern bool on_top; Modified: trunk/res.rc =================================================================== --- trunk/res.rc 2007-08-16 13:40:17 UTC (rev 19) +++ trunk/res.rc 2007-08-16 20:25:39 UTC (rev 20) @@ -65,29 +65,29 @@ BEGIN POPUP "&Fichier" BEGIN - MENUITEM "&Configuration", IDM_CONFIG + MENUITEM "&Configuration...", IDM_CONFIG MENUITEM SEPARATOR - MENUITEM "Répertoire &vidéo", IDM_MPEG2_DIR - MENUITEM "Répertoire &screenshots", IDM_SCREENSHOTS_DIR + MENUITEM "Répertoire &vidéo...", IDM_MPEG2_DIR + MENUITEM "Répertoire &screenshots...", IDM_SCREENSHOTS_DIR MENUITEM SEPARATOR MENUITEM "&Quitter", IDM_QUIT END POPUP "Fi<res" BEGIN - MENUITEM "Codec &MPEG2", IDM_MPEG2 - MENUITEM "Codec a&udio", IDM_AUDIO - MENUITEM "Codec &AC3", IDM_AC3 + MENUITEM "Codec &MPEG2...", IDM_MPEG2 + MENUITEM "Codec a&udio...", IDM_AUDIO + MENUITEM "Codec &AC3...", IDM_AC3 MENUITEM SEPARATOR - MENUITEM "&VMR", IDM_VMR - MENUITEM "&DSound", IDM_DSOUND - MENUITEM "DSound A&C3", IDM_DSOUNDAC3 + MENUITEM "&VMR...", IDM_VMR + MENUITEM "&DSound...", IDM_DSOUND + MENUITEM "DSound A&C3...", IDM_DSOUNDAC3 MENUITEM SEPARATOR - MENUITEM "D&emux", IDM_DEMUX + MENUITEM "D&emux...", IDM_DEMUX END - POPUP "&Commandes" + POPUP "C&ommandes" BEGIN - MENUITEM "&Zoomer\tMaj+Z", IDM_ZOOM - MENUITEM "D&ezoomer\tZ", IDM_DEZOOM + MENUITEM "Z&oomer\tMaj+Z", IDM_ZOOM + MENUITEM "De&zoomer\tZ", IDM_DEZOOM MENUITEM "&Utiliser toute la largeur\tW", IDM_STRETCH MENUITEM "Étirer la &vidéo\tE", IDM_NOAR MENUITEM SEPARATOR @@ -95,13 +95,13 @@ MENUITEM SEPARATOR MENUITEM "Touche &Mute\tM", IDM_MUTE MENUITEM "&Augmenter le volume\t+", IDM_VOL_AUG - MENUITEM "Dim&inuer le volume\t-", IDM_VOL_DIM + MENUITEM "&Diminuer le volume\t-", IDM_VOL_DIM END MENUITEM "C&haînes", IDM_CHAINES MENUITEM "&Pistes", IDM_PISTES POPUP "&Captures" BEGIN - MENUITEM "Enregistrements p&rogrammés", IDM_DELAYED_RECORD + MENUITEM "Enregistrements p&rogrammés...", IDM_DELAYED_RECORD MENUITEM "Enregistrer la chaine en &PS\tCtrl+Espace", IDM_RECORD_CHANNEL_PS MENUITEM "Enregistrer la chaine en &TS\tCtrl+T", IDM_RECORD_CHANNEL_TS MENUITEM "Enregistrer le &multiplex\tCtrl+M",IDM_RECORD_STREAM @@ -124,17 +124,18 @@ MENUITEM "&Inférieure à la normale", IDM_BELOW_NORMAL_PRIORITY END MENUITEM SEPARATOR - MENUITEM "&Guide des programmes\tG", IDM_EPG + MENUITEM "&Guide des programmes...\tG", IDM_EPG MENUITEM "Afficher le &nom de l'émission sous MSN", IDM_MSN MENUITEM "Utiliser l'&AC3 par défaut", IDM_AC3_DEF MENUITEM "&Suspendre si minimisé", IDM_SUSPEND - MENUITEM "&Minimiser dans le system tray", IDM_SYSTEM_TRAY + MENUITEM "&Minimiser dans le system tray", IDM_SYSTEM_TRAY + MENUITEM "Confirmation de &fermeture si enregistrement", IDM_CLOSE_CONFIRM MENUITEM SEPARATOR - MENUITEM "&Qualité du signal", IDM_SIGNAL + MENUITEM "&Qualité du signal...", IDM_SIGNAL END POPUP "&Aide" BEGIN - MENUITEM "À &propos\tCtrl+F1", IDM_ABOUT + MENUITEM "À &propos...\tCtrl+F1", IDM_ABOUT END END @@ -270,6 +271,15 @@ CTEXT "hh:mm:ss",IDC_STATIC,51,32,48,10 END +IDD_CLOSE_CONFIRM DIALOGEX 100, 100, 150, 75 +STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Confirmation" +FONT 8, "MS Shell Dlg", 400, 0, 0x1 +BEGIN + DEFPUSHBUTTON "Fermer",IDOK,22,54,50,14 + CTEXT "Un enregistrement est en cours",IDC_STATIC,21,25,107,10 + DEFPUSHBUTTON "Annuler",IDCANCEL,79,54,50,14 +END ///////////////////////////////////////////////////////////////////////////// // @@ -285,7 +295,7 @@ RIGHTMARGIN, 283 VERTGUIDE, 276 TOPMARGIN, 7 - BOTTOMMARGIN, 167 + BOTTOMMARGIN, 167 END IDD_ABOUT, DIALOG @@ -342,6 +352,14 @@ TOPMARGIN, 7 BOTTOMMARGIN, 68 END + + IDD_CLOSE_CONFIRM, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 143 + TOPMARGIN, 7 + BOTTOMMARGIN, 68 + END END #endif // APSTUDIO_INVOKED Modified: trunk/resource.h =================================================================== --- trunk/resource.h 2007-08-16 13:40:17 UTC (rev 19) +++ trunk/resource.h 2007-08-16 20:25:39 UTC (rev 20) @@ -2,6 +2,7 @@ // Microsoft Visual C++ generated include file. // Used by res.rc // +#define IDOK2 2 #define IDI_ICON1 101 #define IDR_MENU1 102 #define IDD_CONFIG 103 @@ -13,6 +14,7 @@ #define IDD_DELAYED_RECORD 110 #define IDD_PASWD 111 #define IDD_DELAYED_STOP 112 +#define IDD_CLOSE_CONFIRM 113 #define IDC_COMBO_VILLE 1001 #define IDC_COMBO_MPEG2 1002 #define IDC_COMBO_AUDIO 1003 @@ -29,6 +31,7 @@ #define IDC_SIGNAL_QUALITY 1017 #define IDC_SIGNAL_STRENGTH 1018 #define IDC_BUTTON1 1019 +#define IDC_SIGNAL_STRENGTH2 1020 #define IDC_ADD 1025 #define IDC_REMOVE 1026 #define IDC_DATE_START 1027 @@ -96,15 +99,16 @@ #define IDM_SYSTEM_TRAY 40102 #define IDM_DELAYED_RECORD 40104 #define IDM_DELAYED_STOP 40105 -#define IDM_NOAR 40106 +#define IDM_NOAR 40106 #define IDM_SUSPEND 40202 +#define IDM_CLOSE_CONFIRM 40203 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 122 -#define _APS_NEXT_COMMAND_VALUE 40203 +#define _APS_NEXT_COMMAND_VALUE 40204 #define _APS_NEXT_CONTROL_VALUE 1102 #define _APS_NEXT_SYMED_VALUE 121 #endif From pouchintv-dev at baysse.fr Thu Aug 16 23:06:05 2007 From: pouchintv-dev at baysse.fr (=?iso-8859-1?q?Liste_utilis=E9e_par_les_d=E9veloppeurs?=) Date: Thu, 16 Aug 2007 23:06:05 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r21 - trunk Message-ID: <20070816210605.25EAA5F23B@mail.baysse.fr> Author: lolo_32 Date: 2007-08-16 23:06:04 +0200 (Thu, 16 Aug 2007) New Revision: 21 Modified: trunk/epg.cpp trunk/epgfilter.cpp trunk/grabber.cpp trunk/graph.cpp trunk/ini.cpp trunk/main.cpp trunk/parse.cpp trunk/pmtfilter.cpp Log: Ajout d'un message en t?\195?\170te des fichiers CPP indiquant avec pr?\195?\169cision que les fichiers ont ?\195?\169t?\195?\169 modifi?\195?\169s, et ne correspondent plus ?\195?\160 la version originale (n?\195?\169cessit?\195?\169 de la GNU/GPL). Modified: trunk/epg.cpp =================================================================== --- trunk/epg.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/epg.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "base.h" Modified: trunk/epgfilter.cpp =================================================================== --- trunk/epgfilter.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/epgfilter.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "epgfilter.h" Modified: trunk/grabber.cpp =================================================================== --- trunk/grabber.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/grabber.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include Modified: trunk/graph.cpp =================================================================== --- trunk/graph.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/graph.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "network.h" Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/ini.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "base.h" Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/main.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include Modified: trunk/parse.cpp =================================================================== --- trunk/parse.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/parse.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "base.h" #include "main.h" Modified: trunk/pmtfilter.cpp =================================================================== --- trunk/pmtfilter.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/pmtfilter.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "pmtfilter.h" From pouchintv-dev at baysse.fr Thu Aug 16 23:39:28 2007 From: pouchintv-dev at baysse.fr (=?iso-8859-1?q?Liste_utilis=E9e_par_les_d=E9veloppeurs?=) Date: Thu, 16 Aug 2007 23:39:28 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk References: <20070816202539.881435F23B@mail.baysse.fr> Message-ID: <002901c7e04d$ecbd48c0$0a00a8c0@gilles> ----- Original Message ----- From: "Liste utilisée par les développeurs" To: Sent: Thursday, August 16, 2007 10:25 PM Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk > Author: lolo_32 > Date: 2007-08-16 22:25:39 +0200 (Thu, 16 Aug 2007) > New Revision: 20 > > Modified: > trunk/ini.cpp > trunk/main.cpp > trunk/main.h > trunk/res.rc > trunk/resource.h > Log: > Port de radius: affiche un message de confirmation si un enregistrement > est en cours, et que l'on quitte PouchinTVMod. > > Modification des menus, en rajoutant les "..." ?\195?\160 toutes les > entr?\195?\169es ouvrant une nouvelle fen?\195?\170tre (comme le veut la > norme), et changement de quelques lettres d'acc?\195?\168s rapide dans les > menus. > > Ajout de quelques commentaires dans les fichiers sources. Bonjour, J'ai vu la modif de message de confirmation. Très bonne idée .... mais en revanche, je pense que ça ne devrait pas être optionnel, mais au contraire toujours actif. Avoir ça comme option implique encore le risque qu'on oublie de sélectionner l'option. Or je vois ça comme aussi important que, par exemple dans un traitement de texte, avoir un dialogue de confirmation pour avertir qu'on n'a pas sauvegardé ses modifications. ... et dans un traitement de texte, il n'y a pas d'option pour demander si on veut avoir ce dialogue de confirmation : il y est toujours, quoi qu'on fasse ! Et là aussi, je pense que ce dialogue devrait être toujours présent. (sauf cas de "force majeure", comme par exemple extinction de l'ordinateur) Gingko P.S.: au fait, je viens de m'inscrire à cette liste, et aussi d'obtenir un accès SVN en écriture. En revanche, je ne pourrai pas en tirer pleinement parti immédiatement puisque je pars demain pour une semaine de villégiature ... :-) Ce qui ne m'empêchera pas de suivre ce qui se passe ici, mais bien sûr de façon un peu plus distante. From laurent at baysse.fr Fri Aug 17 09:30:35 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Fri, 17 Aug 2007 09:30:35 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk In-Reply-To: <002901c7e04d$ecbd48c0$0a00a8c0@gilles> References: <20070816202539.881435F23B@mail.baysse.fr> <002901c7e04d$ecbd48c0$0a00a8c0@gilles> Message-ID: <17271.193.252.107.84.1187335835.squirrel@mail.baysse.fr> > ----- Original Message ----- > From: "Liste utilisée par les développeurs" > To: > Sent: Thursday, August 16, 2007 10:25 PM > Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk > > >> Author: lolo_32 >> Date: 2007-08-16 22:25:39 +0200 (Thu, 16 Aug 2007) >> New Revision: 20 >> >> Modified: >> trunk/ini.cpp >> trunk/main.cpp >> trunk/main.h >> trunk/res.rc >> trunk/resource.h >> Log: >> Port de radius: affiche un message de confirmation si un enregistrement >> est en cours, et que l'on quitte PouchinTVMod. >> >> Modification des menus, en rajoutant les "..." ?\195?\160 toutes les >> entr?\195?\169es ouvrant une nouvelle fen?\195?\170tre (comme le veut la >> norme), et changement de quelques lettres d'acc?\195?\168s rapide dans >> les >> menus. >> >> Ajout de quelques commentaires dans les fichiers sources. > > Bonjour, > > J'ai vu la modif de message de confirmation. > > Très bonne idée .... mais en revanche, je pense que ça ne devrait pas être > optionnel, mais au contraire toujours actif. > > Avoir ça comme option implique encore le risque qu'on oublie de > sélectionner > l'option. > > Or je vois ça comme aussi important que, par exemple dans un traitement de > texte, avoir un dialogue de confirmation pour avertir qu'on n'a pas > sauvegardé ses modifications. > ... et dans un traitement de texte, il n'y a pas d'option pour demander si > on veut avoir ce dialogue de confirmation : il y est toujours, quoi qu'on > fasse ! > > Et là aussi, je pense que ce dialogue devrait être toujours présent. > (sauf cas de "force majeure", comme par exemple extinction de > l'ordinateur) > > Gingko Et si j'activais l'option par défaut (comme ça, il ne risque pas d'oublier de l'activer), et si l'utilisateur ne souhaite pas l'option, il la désactive ? -- Laurent ....ooo...(°_°)...ooo.... From gingko at gingko.homeip.net Fri Aug 17 12:19:01 2007 From: gingko at gingko.homeip.net (Gingko) Date: Fri, 17 Aug 2007 12:19:01 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk References: <20070816202539.881435F23B@mail.baysse.fr><002901c7e04d$ecbd48c0$0a00a8c0@gilles> <17271.193.252.107.84.1187335835.squirrel@mail.baysse.fr> Message-ID: <001401c7e0b8$084e1e10$0a00a8c0@gilles> ----- Original Message ----- From: "Laurent Baysse" To: Sent: Friday, August 17, 2007 9:30 AM Subject: Re: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk > Et si j'activais l'option par défaut (comme ça, il ne risque pas d'oublier > de l'activer), et si l'utilisateur ne souhaite pas l'option, il la > désactive ? > > -- > Laurent Bonjour Laurent, Selon moi, cette option ne devrait tout simplement pas exister. Que dirais-tu d'une application dans laquelle tu aurais travaillé sur un fichier quelconque pendant longtemps, et qui te laisserait quitter par simple clic sur la case de fermeture, sans t'avertir que tu vas perdre toutes tes données ce faisant ? Je ne conçois par ailleurs pas tellement de situations dans lesquelles quelqu'un pourrait souhaiter ne pas avoir cet avertissement, ou bien en tout cas vraiment voir un inconvénient à l'avoir ... Gilles (Gingko) From pouchintv-svn at baysse.fr Fri Aug 17 12:25:52 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Fri, 17 Aug 2007 12:25:52 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r22 - trunk Message-ID: <20070817102552.149825F23A@mail.baysse.fr> Author: lolo_32 Date: 2007-08-17 12:25:51 +0200 (Fri, 17 Aug 2007) New Revision: 22 Modified: trunk/ini.cpp trunk/main.cpp Log: Maintenant, PouchinTVMod demande une confirmation en quittant par d?\195?\169faut. Cependant, option est d?\195?\169sactivable (comportement inverse ?\195?\160 la version pr?\195?\169c?\195?\169dente). Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-16 21:06:04 UTC (rev 21) +++ trunk/ini.cpp 2007-08-17 10:25:51 UTC (rev 22) @@ -551,9 +551,9 @@ GetPrivateProfileString(ini_config, ini_close_confirm, NULL, prio, _countof(prio), fileName); - if (lstrcmp(prio, L"Vrai") == 0) + if (lstrcmp(prio, L"Faux") == 0) { - close_confirm = true; + close_confirm = false; } GetPrivateProfileString(ini_config, ini_minimize_system_tray, NULL, prio, _countof(prio), fileName); Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-16 21:06:04 UTC (rev 21) +++ trunk/main.cpp 2007-08-17 10:25:51 UTC (rev 22) @@ -96,7 +96,7 @@ bool on_top = false; bool use_ac3 = false; bool suspend_minimized = false; -bool close_confirm = false; +bool close_confirm = true; bool minimize_system_tray = false; bool minimize = false; bool full_screen = false; From laurent at baysse.fr Fri Aug 17 12:39:41 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Fri, 17 Aug 2007 12:39:41 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk In-Reply-To: <001401c7e0b8$084e1e10$0a00a8c0@gilles> References: <20070816202539.881435F23B@mail.baysse.fr><002901c7e04d$ecbd48c0$0a00a8c0@gilles> <17271.193.252.107.84.1187335835.squirrel@mail.baysse.fr> <001401c7e0b8$084e1e10$0a00a8c0@gilles> Message-ID: <11086.193.252.107.84.1187347181.squirrel@mail.baysse.fr> > > ----- Original Message ----- > From: "Laurent Baysse" > To: > Sent: Friday, August 17, 2007 9:30 AM > Subject: Re: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk > > > >> Et si j'activais l'option par défaut (comme ça, il ne risque pas >> d'oublier >> de l'activer), et si l'utilisateur ne souhaite pas l'option, il la >> désactive ? >> >> -- >> Laurent > > Bonjour Laurent, > > Selon moi, cette option ne devrait tout simplement pas exister. > > Que dirais-tu d'une application dans laquelle tu aurais travaillé sur un > fichier quelconque pendant longtemps, et qui te laisserait quitter par > simple clic sur la case de fermeture, sans t'avertir que tu vas perdre > toutes tes données ce faisant ? > > Je ne conçois par ailleurs pas tellement de situations dans lesquelles > quelqu'un pourrait souhaiter ne pas avoir cet avertissement, ou bien en > tout > cas vraiment voir un inconvénient à l'avoir ... > > Gilles (Gingko) > Ok, je viens donc de supprimer l'option dans les menus. Désolé, j'avais pas vu ta réponse avant de faire le commit :P -- Laurent ....ooo...(°_°)...ooo.... From pouchintv-svn at baysse.fr Fri Aug 17 12:43:46 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Fri, 17 Aug 2007 12:43:46 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r23 - trunk Message-ID: <20070817104347.11CF85F268@mail.baysse.fr> Author: lolo_32 Date: 2007-08-17 12:43:46 +0200 (Fri, 17 Aug 2007) New Revision: 23 Modified: trunk/ini.cpp trunk/main.cpp trunk/main.h trunk/res.rc trunk/resource.h Log: Suppression de l'entr?\195?\169e du menu permettant de d?\195?\169sactiver la demande de confirmation en quittant en cas d'enregistrement. Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-17 10:25:51 UTC (rev 22) +++ trunk/ini.cpp 2007-08-17 10:43:46 UTC (rev 23) @@ -355,7 +355,6 @@ static wchar_t ini_always_on_top[] = L"Fenêtre toujours devant"; static wchar_t ini_ac3_defaut[] = L"Utilise AC3 quand dispo"; static wchar_t ini_suspend_minimized[] = L"Suspendre si minimisé"; -static wchar_t ini_close_confirm[] = L"Confirmation de fermeture si enregistrement"; static wchar_t ini_minimize_system_tray[] = L"Minimiser dans le system tray"; static wchar_t ini_use_all_width[] = L"Utilise toute la largeur"; @@ -434,8 +433,6 @@ WritePrivateProfileString(ini_config, ini_suspend_minimized, suspend_minimized ? L"Vrai" : L"Faux", fileName); - WritePrivateProfileString(ini_config, ini_close_confirm, close_confirm ? L"Vrai" : L"Faux", fileName); - WritePrivateProfileString(ini_config, ini_minimize_system_tray, minimize_system_tray ? L"Vrai" : L"Faux", fileName); WritePrivateProfileString(ini_config, ini_use_all_width, use_all_width ? L"Vrai" : L"Faux", fileName); @@ -549,13 +546,6 @@ suspend_minimized = true; } - GetPrivateProfileString(ini_config, ini_close_confirm, NULL, prio, _countof(prio), fileName); - - if (lstrcmp(prio, L"Faux") == 0) - { - close_confirm = false; - } - GetPrivateProfileString(ini_config, ini_minimize_system_tray, NULL, prio, _countof(prio), fileName); if (lstrcmp(prio, L"Vrai") == 0) Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-17 10:25:51 UTC (rev 22) +++ trunk/main.cpp 2007-08-17 10:43:46 UTC (rev 23) @@ -96,7 +96,6 @@ bool on_top = false; bool use_ac3 = false; bool suspend_minimized = false; -bool close_confirm = true; bool minimize_system_tray = false; bool minimize = false; bool full_screen = false; @@ -507,22 +506,6 @@ DrawMenuBar(h); } -static void update_close_confirm_menu(HWND h) -{ - HMENU hMenu = GetMenu(h); - - if (hMenu != NULL) { - MENUITEMINFO info; - info.cbSize = sizeof(MENUITEMINFO); - info.fMask = MIIM_STATE; - info.fState = close_confirm ? MFS_CHECKED : MFS_UNCHECKED; - - SetMenuItemInfo(hMenu, IDM_CLOSE_CONFIRM, FALSE, &info); - - } - DrawMenuBar(h); -} - static void update_all_width_and_ar_menu(HWND h) { HMENU hMenu = GetMenu(h); @@ -584,7 +567,6 @@ update_all_width_and_ar_menu(h); update_ac3_menu(h); update_suspend_menu(h); - update_close_confirm_menu(h); update_system_tray_menu(h); menu_recording(h, recording); set_priority(); @@ -2357,9 +2339,8 @@ switch_fullscreen(); full_screen = true; } - if (recording && close_confirm) { - // Si on enregistre et que l'on souhaite une confirmation, - // affiche la fenêtre de confirmation + if (recording) { + // Si on enregistre affiche la fenêtre de confirmation if (DialogBox(hInst, MAKEINTRESOURCE(IDD_CLOSE_CONFIRM), hwnd, ConfirmCloseProc) == 1) { // Vide, car on quitte } @@ -2783,12 +2764,6 @@ update_suspend_menu(hWnd); break; - case IDM_CLOSE_CONFIRM: - // Option du menu demandant confirmation lorsque l'on quitte - close_confirm = !close_confirm; - update_close_confirm_menu(hWnd); - break; - case IDM_SYSTEM_TRAY: minimize_system_tray = !minimize_system_tray; update_system_tray_menu(hWnd); Modified: trunk/main.h =================================================================== --- trunk/main.h 2007-08-17 10:25:51 UTC (rev 22) +++ trunk/main.h 2007-08-17 10:43:46 UTC (rev 23) @@ -30,7 +30,6 @@ extern wchar_t video_dir[512]; extern bool suspend_minimized; -extern bool close_confirm; extern bool minimize_system_tray; extern bool use_msn; extern bool on_top; Modified: trunk/res.rc =================================================================== --- trunk/res.rc 2007-08-17 10:25:51 UTC (rev 22) +++ trunk/res.rc 2007-08-17 10:43:46 UTC (rev 23) @@ -129,7 +129,6 @@ MENUITEM "Utiliser l'&AC3 par défaut", IDM_AC3_DEF MENUITEM "&Suspendre si minimisé", IDM_SUSPEND MENUITEM "&Minimiser dans le system tray", IDM_SYSTEM_TRAY - MENUITEM "Confirmation de &fermeture si enregistrement", IDM_CLOSE_CONFIRM MENUITEM SEPARATOR MENUITEM "&Qualité du signal...", IDM_SIGNAL END Modified: trunk/resource.h =================================================================== --- trunk/resource.h 2007-08-17 10:25:51 UTC (rev 22) +++ trunk/resource.h 2007-08-17 10:43:46 UTC (rev 23) @@ -101,14 +101,13 @@ #define IDM_DELAYED_STOP 40105 #define IDM_NOAR 40106 #define IDM_SUSPEND 40202 -#define IDM_CLOSE_CONFIRM 40203 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 122 -#define _APS_NEXT_COMMAND_VALUE 40204 +#define _APS_NEXT_COMMAND_VALUE 40203 #define _APS_NEXT_CONTROL_VALUE 1102 #define _APS_NEXT_SYMED_VALUE 121 #endif From pouchintv-svn at baysse.fr Fri Aug 17 17:19:16 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Fri, 17 Aug 2007 17:19:16 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk Message-ID: <20070817151916.D335A5F268@mail.baysse.fr> Author: radius Date: 2007-08-17 17:19:16 +0200 (Fri, 17 Aug 2007) New Revision: 24 Modified: trunk/main.cpp Log: Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-17 10:43:46 UTC (rev 23) +++ trunk/main.cpp 2007-08-17 15:19:16 UTC (rev 24) @@ -2004,7 +2004,7 @@ { muted = !muted; - long vol = muted ? -8000 : volumeCourant; + long vol = muted ? -8000 : (volumeCourant ? volumeCourant : 0) ; IBasicAudio * pBas; From laurent at baysse.fr Fri Aug 17 17:47:50 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Fri, 17 Aug 2007 17:47:50 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk In-Reply-To: <20070817151916.D335A5F268@mail.baysse.fr> References: <20070817151916.D335A5F268@mail.baysse.fr> Message-ID: <16557.193.252.107.84.1187365670.squirrel@mail.baysse.fr> > Author: radius > Date: 2007-08-17 17:19:16 +0200 (Fri, 17 Aug 2007) > New Revision: 24 > > Modified: > trunk/main.cpp > Log: > > > Modified: trunk/main.cpp > =================================================================== > --- trunk/main.cpp 2007-08-17 10:43:46 UTC (rev 23) > +++ trunk/main.cpp 2007-08-17 15:19:16 UTC (rev 24) > @@ -2004,7 +2004,7 @@ > { > muted = !muted; > > - long vol = muted ? -8000 : volumeCourant; > + long vol = muted ? -8000 : (volumeCourant ? volumeCourant : 0) ; > > IBasicAudio * pBas; > > Radius, par contre, n'oublie pas d'indiquer un log pour les modifs (ça permet de savoir ce qui a été modifié plus rapidement...) expliquant grossièrement ce que tu as fait... Au fait, j'ai mis en place un système pour les commit sur ssh, donc, j'aurais besoin de vos clés ssh publiques (donc, plus de mot de passe), merci... -- Laurent ....ooo...(°_°)...ooo.... From gingko at gingko.homeip.net Fri Aug 17 23:33:48 2007 From: gingko at gingko.homeip.net (Gingko) Date: Fri, 17 Aug 2007 23:33:48 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk References: <20070817151916.D335A5F268@mail.baysse.fr> <16557.193.252.107.84.1187365670.squirrel@mail.baysse.fr> Message-ID: <001201c7e116$4c8e1ae0$1201a8c0@gillesvaio> ----- Original Message ----- From: "Laurent Baysse" To: "Liste utilisée par les développeurs" Sent: Friday, August 17, 2007 5:47 PM Subject: Re: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk > Au fait, j'ai mis en place un système pour les commit sur ssh, donc, > j'aurais besoin de vos clés ssh publiques (donc, plus de mot de passe), > merci... Heu ... Ca marche comment, ça ? Je suppose qu'il faut que j'en crée une ? Ca ne va pas être commode, vu que je ne suis pas chez moi jusqu'à la semaine prochaine et que je n'ai que mon ordinateur portable comme accès en attendant ... Gingko From gingko at gingko.homeip.net Sat Aug 18 00:22:10 2007 From: gingko at gingko.homeip.net (Gingko) Date: Sat, 18 Aug 2007 00:22:10 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk References: <20070816202539.881435F23B@mail.baysse.fr><002901c7e04d$ecbd48c0$0a00a8c0@gilles> <17271.193.252.107.84.1187335835.squirrel@mail.baysse.fr> <001401c7e0b8$084e1e10$0a00a8c0@gilles> <11086.193.252.107.84.1187347181.squirrel@mail.baysse.fr> Message-ID: <002d01c7e11d$0e8ef6e0$1201a8c0@gillesvaio> ----- Original Message ----- From: "Laurent Baysse" To: "Gingko" ; "Liste utilisée par les développeurs" Sent: Friday, August 17, 2007 12:39 PM Subject: Re: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk >> Bonjour Laurent, >> >> Selon moi, cette option ne devrait tout simplement pas exister. >> >> Que dirais-tu d'une application dans laquelle tu aurais travaillé sur un >> fichier quelconque pendant longtemps, et qui te laisserait quitter par >> simple clic sur la case de fermeture, sans t'avertir que tu vas perdre >> toutes tes données ce faisant ? >> >> Je ne conçois par ailleurs pas tellement de situations dans lesquelles >> quelqu'un pourrait souhaiter ne pas avoir cet avertissement, ou bien en >> tout >> cas vraiment voir un inconvénient à l'avoir ... >> >> Gilles (Gingko) >> > > Ok, je viens donc de supprimer l'option dans les menus. Désolé, j'avais > pas vu ta réponse avant de faire le commit :P Super. :-) Surtout qu'en plus c'était un peu trop visible dans les menus. Encore, si ça avait été planqué profondément dans une hiérarchie de pages de configuration avancées ... Je crois qu'il faudra éventuellement faire ça, aussi : Créer un dialogue plus ou moins paginé capable de regrouper les éléments de configuration qui sont actuellement dans les menus, plus d'autres qu'on pourrait y ajouter, afin de simplifier l'interface utilisateur immédiatement apparente. Gingko From laurent at baysse.fr Sat Aug 18 09:30:44 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Sat, 18 Aug 2007 09:30:44 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk In-Reply-To: <001201c7e116$4c8e1ae0$1201a8c0@gillesvaio> References: <20070817151916.D335A5F268@mail.baysse.fr> <16557.193.252.107.84.1187365670.squirrel@mail.baysse.fr> <001201c7e116$4c8e1ae0$1201a8c0@gillesvaio> Message-ID: <46C6A024.70605@baysse.fr> Gingko a écrit : > ----- Original Message ----- > From: "Laurent Baysse" > To: "Liste utilisée par les développeurs" > Sent: Friday, August 17, 2007 5:47 PM > Subject: Re: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk > >> Au fait, j'ai mis en place un système pour les commit sur ssh, donc, >> j'aurais besoin de vos clés ssh publiques (donc, plus de mot de passe), >> merci... >> > Heu ... Ca marche comment, ça ? > Je suppose qu'il faut que j'en crée une ? > > Ca ne va pas être commode, vu que je ne suis pas chez moi jusqu'à la semaine > prochaine et que je n'ai que mon ordinateur portable comme accès en > attendant ... > > Gingko Ça permet d'éviter que les mots de passes ne transitent pas en clair sur internet. Les deux méthodes resteront néanmoins valides, au moins durant un moment... Pour le faire: * sous windows: il faut télécharger putty (http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.60-installer.exe), et l'installer. puis lancer PuTTYgen et générer une clé ssh2 (rsa ou dsa) et me faire parvenir la clé indiquée dans le premier champ (ex: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEA0HU9GOCJGLvZsZQ+1ZsFdU29+jWis487GoY8ThSHr36kH/BtXNvGLjUTgZhyydXstC8OCXujQBv8HNdJn5L+V6klnX1iYdrZL98v8KY69IbSQgAm8cClQwPYEaVl82yUx2yoVzb4z9zsbLnoEzzbVfReOKRk22Qzm9cty6CXk6k= rsa-key-20070818) Ensuite, n'oublier pas de sauvegarder la clé privée générée :P Dorénavant, il suffira d'ouvrir la clé ainsi générée. * sous linux: dans une fenêtre shell, avec openssh installé, lancer "ssh-keygen" et me faire parvenir la clée contenu dans le fichier ayant un nom se terminant par ".pub" (clé publique) Ensuite, il faut changer la source du repository (svn switch) de "svn://svn.baysse.fr/svn/pouchintv/trunk" vers "svn+ssh://pouchintv at svn.baysse.fr/trunk" Voila pour le petit cours -- Laurent Baysse From laurent at baysse.fr Sat Aug 18 09:43:27 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Sat, 18 Aug 2007 09:43:27 +0200 Subject: [Pouchintv-dev] Nouvelle fonction Message-ID: <46C6A31F.6080901@baysse.fr> Salut, je vais essayer de rajouter une fonction pour lire les fichier xmltv pour avoir un programme TV plus conséquent que les 2 émissions à l'heure actuelle. -- Laurent From pouchintv-svn at baysse.fr Sat Aug 18 19:45:52 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Sat, 18 Aug 2007 19:45:52 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r25 - trunk Message-ID: <20070818174552.8A1155F22F@mail.baysse.fr> Author: lolo_32 Date: 2007-08-18 19:45:51 +0200 (Sat, 18 Aug 2007) New Revision: 25 Modified: trunk/graph.cpp trunk/main.cpp trunk/main.h Log: D?\195?\169tection de la version de Windows utilis?\195?\169e au lancement (devrait fonctionner sous 2000/XP et sous Vista comme pr?\195?\169c?\195?\169demment). A tester sous Vista (j'ai pas ?\195?\167a), mais ?\195?\167a devrai ?\195?\170tre bon. Ajout de 2 variables globales: is_vista et windows_version(structure OSVERSIONINFOEX remplie) Modified: trunk/graph.cpp =================================================================== --- trunk/graph.cpp 2007-08-17 15:19:16 UTC (rev 24) +++ trunk/graph.cpp 2007-08-18 17:45:51 UTC (rev 25) @@ -432,11 +432,11 @@ IVMRImagePresenterConfig * pPresConf; hr = pSurfAlloc->QueryInterface(&pPresConf); myprintf(L"IVMRImagePresenterConfig %08x\n", hr); -#if VISTA - hr = pPresConf->SetRenderingPrefs(RenderPrefs_AllowOffscreen); -#else - hr = pPresConf->SetRenderingPrefs(RenderPrefs_ForceOverlays | RenderPrefs_DoNotRenderColorKeyAndBorder); -#endif + if (is_vista) { + hr = pPresConf->SetRenderingPrefs(RenderPrefs_AllowOffscreen); + } else { + hr = pPresConf->SetRenderingPrefs(RenderPrefs_ForceOverlays | RenderPrefs_DoNotRenderColorKeyAndBorder); + } if (FAILED(hr)) { erreur(L"VMR ImagePresenterConfig non dispo"); return 1; Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-17 15:19:16 UTC (rev 24) +++ trunk/main.cpp 2007-08-18 17:45:51 UTC (rev 25) @@ -99,7 +99,10 @@ bool minimize_system_tray = false; bool minimize = false; bool full_screen = false; +bool is_vista = false; +OSVERSIONINFOEX windows_version; + bool use_all_width = false; bool etirer_video = false; int zoom_ratio = 100; @@ -198,11 +201,10 @@ static void set_timer_osd() { - #if VISTA - #else + if (!is_vista) { RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif - // laise affiché 3 secondes + } + // laisse affiché 3 secondes SetTimer(hWnd, TIMER_OSD, DUREE_OSD, NULL); } @@ -806,16 +808,20 @@ // 100 60 140 60 140 INT vol = width - 100; - #if VISTA - INT n = 6; - INT tab[6]={100, 160, 300, 360, vol, -1}; - INT minwidth = 600; - #else - INT n = 5; - INT tab[5]={100, 160, 300, 360, -1}; - INT minwidth = 500; - #endif + INT n; + INT tab[6]={100, 160, 300, 360, vol, -1}; + INT minwidth; + + if (is_vista) { + n = 6; + minwidth = 600; + } else { + n = 5; + minwidth = 500; + tab[5] = -1; // tab[6] est inutilisé + } + // on a de la place en plus if (width > minwidth) { @@ -831,10 +837,9 @@ static void update_status_bar(void) { - #if VISTA - #else + if (!is_vista) { RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif + } if (hStatus != NULL) { @@ -848,13 +853,13 @@ SendMessageA(hStatus, SB_SETTEXTA, 4, (LPARAM)Canaux[chaineCourante].prog2.nom); - #if VISTA + if (is_vista) { if (!muted) sprintf(statusvol, "Volume %i", (volumeCourant+8000)/80); else sprintf(statusvol, "Sourdine %i", (volumeCourant+8000)/80); SendMessageA(hStatus, SB_SETTEXTA, 5, (LPARAM)statusvol); - #endif + } } if (use_msn && Canaux[chaineCourante].prog1.debut.QuadPart != 0) @@ -2012,10 +2017,9 @@ pBas->put_Volume(vol); pBas->Release(); - #if VISTA - #else + if (!is_vista) { RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif + } } static void update_volume(bool augmente) @@ -2161,11 +2165,8 @@ break; -#if VISTA -#else case WM_PAINT: - { - + if (!is_vista) { PAINTSTRUCT ps; HDC hdc = BeginPaint(hwnd, &ps); @@ -2306,9 +2307,8 @@ } EndPaint(hwnd, &ps); - } + } // if(!is_vista) break; -#endif case WM_DISPLAYCHANGE: if (pVMRControl != NULL) pVMRControl->DisplayModeChanged(); @@ -2322,10 +2322,9 @@ } if (pVMRControl != NULL) update_coords(); - #if VISTA - #else + if (is_vista) { RedrawWindow(hwnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif + } break; case WM_MOVE: @@ -2467,9 +2466,9 @@ if (zoom_ratio <= 0) zoom_ratio = 1; update_coords(); last_zoom = GetTickCount(); - #if VISTA + if (is_vista) { RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif + } set_timer_osd(); break; @@ -2654,9 +2653,9 @@ case IDM_MUTE: mute(); - #if VISTA + if (is_vista) { update_status_bar(); - #endif + } break; case IDM_MPEG2_DIR: @@ -2781,16 +2780,16 @@ case IDM_VOL_AUG: update_volume(true); - #if VISTA + if (is_vista) { update_status_bar(); - #endif + } break; case IDM_VOL_DIM: update_volume(false); - #if VISTA + if (is_vista) { update_status_bar(); - #endif + } break; case IDM_REALTIME_PRIORITY: @@ -2890,10 +2889,9 @@ switch_bordure(); } else if (wParam == TIMER_OSD) { KillTimer(hWnd, TIMER_OSD); - #if VISTA - #else + if (!is_vista) { RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif + } } else if (wParam == TIMER_CURSOR) { KillTimer(hWnd, TIMER_CURSOR); showing_cursor_in_full_screen = false; @@ -3277,18 +3275,26 @@ return 0; } + // Si on minimise dans la zone système, n'afficha pas la fenêtre dans la barre des tâches if (!minimize_system_tray) { SetWindowLong(hwnd, GWL_EXSTYLE, WS_EX_APPWINDOW); } + // Comme marqué, on crée la barre de status de la fenêtre create_status_bar(); + + // Charge la liste des programmes lit_programmes(); + SYSTEMTIME time; GetLocalTime(&time); for(UINT i = 0; i < Programmes.size(); i++) { if (DiffTime(Programmes[i].debut, time) < 0) Programmes.erase(Programmes.begin()+i); } + + // Sauvegarde à nouveau la liste des programmes sauve_programmes(); + set_timer_record(); // show and update main window @@ -3310,6 +3316,7 @@ return -1; } + // On a lancé avec le paramètre demandant de masquer la fenêtre if (!strcmp(lpCmdLine, "-minimize")) { myprintf(L"minimize\n"); if(suspend_minimized) { @@ -3328,6 +3335,19 @@ } } + // Récupère la version de windows + ZeroMemory(&windows_version, sizeof(OSVERSIONINFOEX)); + windows_version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEXW); + if (GetVersionEx((OSVERSIONINFO *)&windows_version)) { + if (windows_version.dwMajorVersion >= 6) { + is_vista = true; + myprintf(L"Fonctionne sous Vista ou 2008 Serveur ou plus récent\n"); + } else { + myprintf(L"Fonctionne sous 2000 ou XP\n"); + } + } else { + myprintf(L"Erreur lors de la récupération de la version de Windows\n"); + } mainMenu = GetMenu(hwnd); @@ -3339,11 +3359,9 @@ } // Load the accelerator table. - HACCEL hAccel = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDR_ACCELERATOR1)); // boucle qui traite les messages clavier - while(GetMessage(&msg, NULL, 0, 0) ) { if (!TranslateAccelerator(hWnd, hAccel, &msg)) { Modified: trunk/main.h =================================================================== --- trunk/main.h 2007-08-17 15:19:16 UTC (rev 24) +++ trunk/main.h 2007-08-18 17:45:51 UTC (rev 25) @@ -41,3 +41,7 @@ extern bool use_all_width; extern bool etirer_video; extern int zoom_ratio; + +extern bool is_vista; +// diverses informations sur la version de windows (utile plus tard ?) +extern OSVERSIONINFOEX windows_version; \ No newline at end of file From arupqfjm at yahoo.fr Sun Aug 19 14:37:15 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Sun, 19 Aug 2007 14:37:15 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?=28sans_objet=29?= Message-ID: <000001c7e25d$acba87d0$0200a8c0@blot> J'ai installé tortoiseSVN et recupéré les sources mais il y avait une erreur à la compilation. Le problème vient du fait qu'une certaine librairie était dans la liste des librairies à ignorer alors qu'elle est nécessaire. J'ai donc modifié Pouchin TV.vcproj, voici le patch. Index: Pouchin TV.vcproj =================================================================== --- Pouchin TV.vcproj (revision 25) +++ Pouchin TV.vcproj (working copy) @@ -66,7 +66,6 @@ AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" OutputFile="$(OutDir)\PouchinTVMod_debug.exe" LinkIncremental="2" - IgnoreDefaultLibraryNames="libcmtd.lib" GenerateDebugInformation="true" SubSystem="2" TargetMachine="1" @@ -151,7 +150,6 @@ AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib" OutputFile="$(OutDir)\PouchinTVMod.exe" LinkIncremental="1" - IgnoreDefaultLibraryNames="LIBCMT.lib" GenerateDebugInformation="false" SubSystem="2" OptimizeReferences="2" @@ -239,7 +237,6 @@ AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib " OutputFile="$(OutDir)\PouchinTVMod_Vista.exe" LinkIncremental="1" - IgnoreDefaultLibraryNames="LIBCMT.lib" GenerateDebugInformation="false" SubSystem="2" OptimizeReferences="2" From radius at r4dius.net Sun Aug 19 16:19:59 2007 From: radius at r4dius.net (radius) Date: Sun, 19 Aug 2007 16:19:59 +0200 Subject: [Pouchintv-dev] (sans objet) In-Reply-To: <000001c7e25d$acba87d0$0200a8c0@blot> References: <000001c7e25d$acba87d0$0200a8c0@blot> Message-ID: <46C8518F.4010303@r4dius.net> arupqfjm wrote: > J'ai installé tortoiseSVN et recupéré les sources mais il y avait une erreur > à la compilation. Le problème vient du fait qu'une certaine librairie était > dans la liste des librairies à ignorer alors qu'elle est nécessaire. J'ai > donc modifié Pouchin TV.vcproj, voici le patch. > > Index: Pouchin TV.vcproj > =================================================================== > --- Pouchin TV.vcproj (revision 25) > +++ Pouchin TV.vcproj (working copy) > @@ -66,7 +66,6 @@ > AdditionalDependencies="Strmiids.lib > comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" > > OutputFile="$(OutDir)\PouchinTVMod_debug.exe" > LinkIncremental="2" > - IgnoreDefaultLibraryNames="libcmtd.lib" > GenerateDebugInformation="true" > SubSystem="2" > TargetMachine="1" > @@ -151,7 +150,6 @@ > AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib" > OutputFile="$(OutDir)\PouchinTVMod.exe" > LinkIncremental="1" > - IgnoreDefaultLibraryNames="LIBCMT.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > @@ -239,7 +237,6 @@ > AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > > OutputFile="$(OutDir)\PouchinTVMod_Vista.exe" > LinkIncremental="1" > - IgnoreDefaultLibraryNames="LIBCMT.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > > Salut, moi j'ai une erreur a cause de libcmt (j'utilise pas vc express) MSVCRT.lib(MSVCR80.dll) : error LNK2005: __wtoi already defined in LIBCMT.lib(wtox.obj) MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE at ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0 at ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library j'ai trouvé ca http://www.codecomments.com/archive292-2005-2-388613.html, en passant c/c++ - code generation - runtime library en /MD ca recompile normalement From radius at r4dius.net Sun Aug 19 17:07:06 2007 From: radius at r4dius.net (radius) Date: Sun, 19 Aug 2007 17:07:06 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <46C8518F.4010303@r4dius.net> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> Message-ID: <46C85C9A.6030205@r4dius.net> Salut, pour le problème de selection dans la taskbar, c'est dût au hidden_hwnd creé pour l'option "minimiser dans le system tray" en modifiant hidden_hwnd par NULL dans hwnd = CreateWindowEx(0, szAppName, L"Pouchin TV Mod", WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, win_x, win_y, win_w, win_h, hidden_hwnd, NULL, hInstance, NULL); il n'y a plus de probleme mais le prog reste dans la taskbar jusqu'a ce qu'on le minimize, pour moi ca reste logique qu'il soit dans la taskbar tant qu'on l'utise (comme la plupart des progs qui se minimise dans le systray), mais a prioris c'etait pas l'idée de départ pour celui qui a fait la modif, vous en pensez quoi ? A+ From radius at r4dius.net Sun Aug 19 17:09:24 2007 From: radius at r4dius.net (radius) Date: Sun, 19 Aug 2007 17:09:24 +0200 Subject: [Pouchintv-dev] taskbar Message-ID: <46C85D24.3040102@r4dius.net> Salut, j'ai remarqué que si on passe d'un programme qui est par dessus pouchin (comme msn ou winamp) a pouchin il n'est pas consideré comme selectionné dans la barre des taches, je vais enqueter voir si je trouve pourquoi :) A+ From matmaul at gmail.com Sun Aug 19 17:16:25 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Sun, 19 Aug 2007 17:16:25 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <46C85C9A.6030205@r4dius.net> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> <46C85C9A.6030205@r4dius.net> Message-ID: <20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com> bin en fait je regarde la télé sur un deuxième écran et ca prenait de la place dans la taskbar, donc pour moi c'était plus pratique. après on peut en faire une option (va falloir faire une boite de dialogue pour ce genre d'option avancé je pense...) Le 19/08/07, radius a écrit : > Salut, > pour le problème de selection dans la taskbar, c'est dût au hidden_hwnd > creé pour l'option "minimiser dans le system tray" > en modifiant hidden_hwnd par NULL dans > hwnd = CreateWindowEx(0, > szAppName, > L"Pouchin TV Mod", > WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, > win_x, > win_y, > win_w, > win_h, > hidden_hwnd, > NULL, > hInstance, > NULL); > > il n'y a plus de probleme mais le prog reste dans la taskbar jusqu'a ce > qu'on le minimize, > pour moi ca reste logique qu'il soit dans la taskbar tant qu'on l'utise > (comme la plupart des progs qui se minimise dans le systray), > mais a prioris c'etait pas l'idée de départ pour celui qui a fait la modif, > vous en pensez quoi ? > A+ > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From radius at r4dius.net Sun Aug 19 17:28:51 2007 From: radius at r4dius.net (radius) Date: Sun, 19 Aug 2007 17:28:51 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> <46C85C9A.6030205@r4dius.net> <20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com> Message-ID: <46C861B3.1000607@r4dius.net> Mathieu Velten wrote: > bin en fait je regarde la télé sur un deuxième écran et ca prenait de > la place dans la taskbar, donc pour moi c'était plus pratique. après > on peut en faire une option (va falloir faire une boite de dialogue > pour ce genre d'option avancé je pense...) > > Le 19/08/07, radius a écrit : > >> Salut, >> pour le problème de selection dans la taskbar, c'est dût au hidden_hwnd >> creé pour l'option "minimiser dans le system tray" >> en modifiant hidden_hwnd par NULL dans >> hwnd = CreateWindowEx(0, >> szAppName, >> L"Pouchin TV Mod", >> WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, >> win_x, >> win_y, >> win_w, >> win_h, >> hidden_hwnd, >> NULL, >> hInstance, >> NULL); >> >> il n'y a plus de probleme mais le prog reste dans la taskbar jusqu'a ce >> qu'on le minimize, >> pour moi ca reste logique qu'il soit dans la taskbar tant qu'on l'utise >> (comme la plupart des progs qui se minimise dans le systray), >> mais a prioris c'etait pas l'idée de départ pour celui qui a fait la modif, >> vous en pensez quoi ? >> A+ >> >> _______________________________________________ >> Pouchintv-dev mailing list >> Pouchintv-dev at baysse.fr >> https://listes.baysse.fr/listinfo/pouchintv-dev >> >> > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > > Ben faire en sorte que le bouton dans la taskbar se selectionne en mode non minisé dans le systray suffirait ^^ et je viens de vori qu'avec ma modif ca créait 2 icones au lieu d'une dans la systray a l'ouverture du prog From matmaul at gmail.com Sun Aug 19 17:56:42 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Sun, 19 Aug 2007 17:56:42 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <46C861B3.1000607@r4dius.net> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> <46C85C9A.6030205@r4dius.net> <20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com> <46C861B3.1000607@r4dius.net> Message-ID: <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com> j'ai pas compris :P en fait je regarde la télé sur le deuxième écran (donc en mode non minimisé) mais je veux pas du programme dans la taskbar, je le préfère dans le systray (même en fonctionnement). en fait pour pouvoir "cacher" le programme (cad qu'il n'apparaisse pas dans la taskbar) il faut créer 2 fenètres la 1ère est caché et la deuxième descend de la première (bref regarde le code ;) ), t'as du passer l'attribut qui dit d'afficher une icone systray pour les 2 fenètres => t'as 2 icones. Le 19/08/07, radius a écrit : > Ben faire en sorte que le bouton dans la taskbar se selectionne en mode > non minisé dans le systray suffirait ^^ > et je viens de vori qu'avec ma modif ca créait 2 icones au lieu d'une > dans la systray a l'ouverture du prog > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From radius at r4dius.net Sun Aug 19 18:07:18 2007 From: radius at r4dius.net (radius) Date: Sun, 19 Aug 2007 18:07:18 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> <46C85C9A.6030205@r4dius.net> <20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com> <46C861B3.1000607@r4dius.net> <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com> Message-ID: <46C86AB6.601@r4dius.net> Mathieu Velten wrote: > j'ai pas compris :P > en fait je regarde la télé sur le deuxième écran (donc en mode non > minimisé) mais je veux pas du programme dans la taskbar, je le préfère > dans le systray (même en fonctionnement). > en fait pour pouvoir "cacher" le programme (cad qu'il n'apparaisse pas > dans la taskbar) il faut créer 2 fenètres la 1ère est caché et la > deuxième descend de la première (bref regarde le code ;) ), t'as du > passer l'attribut qui dit d'afficher une icone systray pour les 2 > fenètres => t'as 2 icones. > > Le 19/08/07, radius a écrit : > >> Ben faire en sorte que le bouton dans la taskbar se selectionne en mode >> non minisé dans le systray suffirait ^^ >> et je viens de vori qu'avec ma modif ca créait 2 icones au lieu d'une >> dans la systray a l'ouverture du prog >> >> _______________________________________________ >> Pouchintv-dev mailing list >> Pouchintv-dev at baysse.fr >> https://listes.baysse.fr/listinfo/pouchintv-dev >> >> > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev En fait actuellement en mode normal (sans le systray) le bouton dans la taskbar est pas selectionné quand on ouvre pouchin ou qu'on passe d'un programme devant pouchin vers pouchin, par exemple j'ai winamp par dessus pouchin, je clique sur pouchin qui est derriere mais le bouton dans la taskbar ne s'active pas, je suppose que ca doit activer la version caché qui est crée par hidden_hwnd From arupqfjm at yahoo.fr Sun Aug 19 21:01:27 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Sun, 19 Aug 2007 21:01:27 +0200 Subject: [Pouchintv-dev] (sans objet) In-Reply-To: <46C8518F.4010303@r4dius.net> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> Message-ID: <000601c7e293$58d40bb0$0200a8c0@blot> Effectivement, chez moi aussi ca compile avec le /MD et même avec la librairie ignorée. J'ai donc refait un patch : Index: Pouchin TV.vcproj =================================================================== --- Pouchin TV.vcproj (revision 25) +++ Pouchin TV.vcproj (working copy) @@ -46,7 +46,7 @@ PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S ECURE_NO_DEPRECATE;USE_CONSOLE=1" MinimalRebuild="true" BasicRuntimeChecks="3" - RuntimeLibrary="1" + RuntimeLibrary="3" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="true" @@ -97,6 +97,84 @@ /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + arupqfjm wrote: >> J'ai installé tortoiseSVN et recupéré les sources mais il y avait une erreur >> à la compilation. Le problème vient du fait qu'une certaine librairie était >> dans la liste des librairies à ignorer alors qu'elle est nécessaire. J'ai >> donc modifié Pouchin TV.vcproj, voici le patch. >> >> Index: Pouchin TV.vcproj >> =================================================================== >> --- Pouchin TV.vcproj (revision 25) >> +++ Pouchin TV.vcproj (working copy) >> @@ -66,7 +66,6 @@ >> AdditionalDependencies="Strmiids.lib >> comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" >> >> OutputFile="$(OutDir)\PouchinTVMod_debug.exe" >> LinkIncremental="2" >> - IgnoreDefaultLibraryNames="libcmtd.lib" >> GenerateDebugInformation="true" >> SubSystem="2" >> TargetMachine="1" >> @@ -151,7 +150,6 @@ >> AdditionalDependencies="Strmiids.lib >> comctl32.lib strmbase.lib Winmm.lib msxml2.lib" >> OutputFile="$(OutDir)\PouchinTVMod.exe" >> LinkIncremental="1" >> - IgnoreDefaultLibraryNames="LIBCMT.lib" >> GenerateDebugInformation="false" >> SubSystem="2" >> OptimizeReferences="2" >> @@ -239,7 +237,6 @@ >> AdditionalDependencies="Strmiids.lib >> comctl32.lib strmbase.lib Winmm.lib msxml2.lib " >> >> OutputFile="$(OutDir)\PouchinTVMod_Vista.exe" >> LinkIncremental="1" >> - IgnoreDefaultLibraryNames="LIBCMT.lib" >> GenerateDebugInformation="false" >> SubSystem="2" >> OptimizeReferences="2" >> >Salut, moi j'ai une erreur a cause de libcmt (j'utilise pas vc express) > >MSVCRT.lib(MSVCR80.dll) : error LNK2005: __wtoi already defined in >LIBCMT.lib(wtox.obj) >MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall >type_info::type_info(class type_info const &)" >(??0type_info@@AAE at ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) >MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & >__thiscall type_info::operator=(class type_info const &)" >(??4type_info@@AAEAAV0 at ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) >LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other >libs; use /NODEFAULTLIB:library > >j'ai trouvé ca http://www.codecomments.com/archive292-2005-2-388613.html, >en passant c/c++ - code generation - runtime library en /MD ca recompile >normalement From gingko at gingko.homeip.net Sun Aug 19 22:33:21 2007 From: gingko at gingko.homeip.net (Gingko) Date: Sun, 19 Aug 2007 22:33:21 +0200 Subject: [Pouchintv-dev] taskbar References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net><46C85C9A.6030205@r4dius.net><20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com><46C861B3.1000607@r4dius.net> <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com> Message-ID: <005e01c7e2a0$2fe74980$0f00a8c0@gillesvaio> ----- Original Message ----- From: "Mathieu Velten" To: "Liste utilisée par les développeurs" Sent: Sunday, August 19, 2007 5:56 PM Subject: Re: [Pouchintv-dev] taskbar > j'ai pas compris :P > en fait je regarde la télé sur le deuxième écran (donc en mode non > minimisé) mais je veux pas du programme dans la taskbar, je le préfère > dans le systray (même en fonctionnement). > en fait pour pouvoir "cacher" le programme (cad qu'il n'apparaisse pas > dans la taskbar) il faut créer 2 fenètres la 1ère est caché et la > deuxième descend de la première (bref regarde le code ;) ), t'as du > passer l'attribut qui dit d'afficher une icone systray pour les 2 > fenètres => t'as 2 icones. Bonjour, Est-ce que vous savez que les termes "tray", "systray" et "system tray" sont incorrects et n'auraient jamais dû avoir été utilisés par quiconque ? Je vous invite, à ce sujet, à lire l'article suivant (en anglais), dans lequel on apprend que ce terme est vraisemblablement issu d'un oubli de renommage d'un fichier ("systray.exe") par les développeurs de Microsoft après un changement de choix concernant l'apparence de l'interface utilisateur de Windows, au cours de la genèse de Windows 95. http://blogs.msdn.com/oldnewthing/archive/2003/09/10/54831.aspx Le terme correct serait plutôt "Zone de notification de la barre des tâches", ou bien en raccourci "Zone de notification" (tout court). Gingko From radius at r4dius.net Mon Aug 20 00:21:26 2007 From: radius at r4dius.net (radius) Date: Mon, 20 Aug 2007 00:21:26 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <005e01c7e2a0$2fe74980$0f00a8c0@gillesvaio> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net><46C85C9A.6030205@r4dius.net><20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com><46C861B3.1000607@r4dius.net> <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com> <005e01c7e2a0$2fe74980$0f00a8c0@gillesvaio> Message-ID: <46C8C266.8020503@r4dius.net> Gingko wrote: > ----- Original Message ----- > From: "Mathieu Velten" > To: "Liste utilisée par les développeurs" > Sent: Sunday, August 19, 2007 5:56 PM > Subject: Re: [Pouchintv-dev] taskbar > > > >> j'ai pas compris :P >> en fait je regarde la télé sur le deuxième écran (donc en mode non >> minimisé) mais je veux pas du programme dans la taskbar, je le préfère >> dans le systray (même en fonctionnement). >> en fait pour pouvoir "cacher" le programme (cad qu'il n'apparaisse pas >> dans la taskbar) il faut créer 2 fenètres la 1ère est caché et la >> deuxième descend de la première (bref regarde le code ;) ), t'as du >> passer l'attribut qui dit d'afficher une icone systray pour les 2 >> fenètres => t'as 2 icones. >> > > Bonjour, > > Est-ce que vous savez que les termes "tray", "systray" et "system tray" sont > incorrects et n'auraient jamais dû avoir été utilisés par quiconque ? > > Je vous invite, à ce sujet, à lire l'article suivant (en anglais), dans > lequel on apprend que ce terme est vraisemblablement issu d'un oubli de > renommage d'un fichier ("systray.exe") par les développeurs de Microsoft > après un changement de choix concernant l'apparence de l'interface > utilisateur de Windows, au cours de la genèse de Windows 95. > > http://blogs.msdn.com/oldnewthing/archive/2003/09/10/54831.aspx > > Le terme correct serait plutôt "Zone de notification de la barre des > tâches", ou bien en raccourci "Zone de notification" (tout court). > > Gingko > > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > > Ahah, c'est peut etre pas son nom mais comme tout le monde l'appel comme ca, ca continuera jusqu'a sa mort :) From gingko at gingko.homeip.net Mon Aug 20 08:17:59 2007 From: gingko at gingko.homeip.net (Gingko) Date: Mon, 20 Aug 2007 08:17:59 +0200 Subject: [Pouchintv-dev] taskbar References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net><46C85C9A.6030205@r4dius.net><20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com><46C861B3.1000607@r4dius.net> <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com><005e01c7e2a0$2fe74980$0f00a8c0@gillesvaio> <46C8C266.8020503@r4dius.net> Message-ID: <000401c7e2f1$dbece680$0f00a8c0@gillesvaio> ----- Original Message ----- From: "radius" To: "Liste utilisée par les développeurs" Sent: Monday, August 20, 2007 12:21 AM Subject: Re: [Pouchintv-dev] taskbar > Ahah, c'est peut etre pas son nom mais comme tout le monde l'appel comme > ca, ca continuera jusqu'a sa mort :) Certes. Mais accessoirement, c'est pas très francophone non plus ... :-) Gingko From laurent at baysse.fr Mon Aug 20 15:07:59 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Mon, 20 Aug 2007 15:07:59 +0200 (CEST) Subject: [Pouchintv-dev] taskbar In-Reply-To: <46C85C9A.6030205@r4dius.net> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> <46C85C9A.6030205@r4dius.net> Message-ID: <28334.193.252.107.84.1187615279.squirrel@mail.baysse.fr> > Salut, > pour le problème de selection dans la taskbar, c'est dût au hidden_hwnd > creé pour l'option "minimiser dans le system tray" > en modifiant hidden_hwnd par NULL dans > hwnd = CreateWindowEx(0, > szAppName, > L"Pouchin TV Mod", > WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, > win_x, > win_y, > win_w, > win_h, > hidden_hwnd, > NULL, > hInstance, > NULL); > > il n'y a plus de probleme mais le prog reste dans la taskbar jusqu'a ce > qu'on le minimize, > pour moi ca reste logique qu'il soit dans la taskbar tant qu'on l'utise > (comme la plupart des progs qui se minimise dans le systray), > mais a prioris c'etait pas l'idée de départ pour celui qui a fait la > modif, > vous en pensez quoi ? > A+ > Je trouve que cette proposition est la bonne :P Il manque plus que d'autres avis... -- Laurent ....ooo...(°_°)...ooo.... From pouchintv-svn at baysse.fr Mon Aug 20 22:06:32 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Mon, 20 Aug 2007 22:06:32 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r26 - trunk Message-ID: <20070820200632.CA8865F23B@mail.baysse.fr> Author: lolo_32 Date: 2007-08-20 22:06:32 +0200 (Mon, 20 Aug 2007) New Revision: 26 Added: trunk/AUTHORS Modified: trunk/main.h trunk/res.rc Log: Suppression aux r?\195?\169f?\195?\169rences de modifications par LoL, et ajout d'une liste de contributeurs (?\195?\160 compl?\195?\169ter) aux sources Added: trunk/AUTHORS =================================================================== --- trunk/AUTHORS (rev 0) +++ trunk/AUTHORS 2007-08-20 20:06:32 UTC (rev 26) @@ -0,0 +1,27 @@ +Project mailing list +Liste de diffusion du projet + + +Users mailing list +Liste de diffusion des utilisateurs + + + +Original author: Pouchin +Auteur du logiciel original: Pouchin + Pouchin http://pouchinteve.free.fr/ + + +Mod's creator +Créateur du Mod + MatMaul http://www.etud.insa-toulouse.fr/~mvelten/pouchintvmod/ + + +Contributers sorted alphabetically by last name +Contributeurs classés alphabétiquement par nom de famille + +Name/Nom Identifiant +Laurent Baysse lolo_32 + matmaul + gingko + radius Modified: trunk/main.h =================================================================== --- trunk/main.h 2007-08-18 17:45:51 UTC (rev 25) +++ trunk/main.h 2007-08-20 20:06:32 UTC (rev 26) @@ -44,4 +44,4 @@ extern bool is_vista; // diverses informations sur la version de windows (utile plus tard ?) -extern OSVERSIONINFOEX windows_version; \ No newline at end of file +extern OSVERSIONINFOEX windows_version; Modified: trunk/res.rc =================================================================== --- trunk/res.rc 2007-08-18 17:45:51 UTC (rev 25) +++ trunk/res.rc 2007-08-20 20:06:32 UTC (rev 26) @@ -173,10 +173,10 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN DEFPUSHBUTTON "OK",IDOK,50,54,50,14 - CTEXT "Pouchin TV Mod 0.4 RC2 by LoL",IDC_STATIC,21,7,107,10 + CTEXT "Pouchin TV Mod 0.4~svn",IDC_STATIC,21,7,107,10 CTEXT "Site de Pouchin TV",IDC_POUCHINTV_URL,21,23,107,10 - CTEXT "Site de Pouchin TV Mod",IDC_POUCHINTVMOD_URL,21,33,107,10 - CTEXT "Site de cette version modifiée", IDC_POUCHINTVMOD_LOL_URL,21,43,107,10 + CTEXT "Pouchin TV Mod (1ère version)",IDC_POUCHINTVMOD_URL,21,33,107,10 + CTEXT "Site de Pouchin TV Mod", IDC_POUCHINTVMOD_LOL_URL,21,43,107,10 END IDD_SCAN DIALOGEX 100, 100, 290, 198 From arupqfjm at yahoo.fr Tue Aug 21 04:04:41 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Tue, 21 Aug 2007 04:04:41 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Probl=E8me_de_compilation?= Message-ID: <000001c7e397$a3353ad0$0200a8c0@blot> Je poste à nouveau à ce sujet, car n'ayant pas l'accès en écriture sur le repository, ce serait bien que l'un de ceux qui l'a puisse mettre à jour le fichier vcproj avec le patch suivant ou bien me donner un accès en écriture. Merci d'avance. arupqfjm Index: Pouchin TV.vcproj =================================================================== --- Pouchin TV.vcproj (revision 25) +++ Pouchin TV.vcproj (working copy) @@ -46,7 +46,7 @@ PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S ECURE_NO_DEPRECATE;USE_CONSOLE=1" MinimalRebuild="true" BasicRuntimeChecks="3" - RuntimeLibrary="1" + RuntimeLibrary="3" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="true" @@ -97,6 +97,84 @@ /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + References: <000001c7e397$a3353ad0$0200a8c0@blot> Message-ID: <17289.193.252.107.84.1187702286.squirrel@mail.baysse.fr> > Je poste à nouveau à ce sujet, car n'ayant pas l'accès en écriture sur le > repository, ce serait bien que l'un de ceux qui l'a puisse mettre à jour > le > fichier vcproj avec le patch suivant ou bien me donner un accès en > écriture. > Merci d'avance. > > arupqfjm > > Index: Pouchin TV.vcproj > =================================================================== > --- Pouchin TV.vcproj (revision 25) > +++ Pouchin TV.vcproj (working copy) > @@ -46,7 +46,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=1" > MinimalRebuild="true" > BasicRuntimeChecks="3" > - RuntimeLibrary="1" > + RuntimeLibrary="3" > UsePrecompiledHeader="0" > WarningLevel="3" > Detect64BitPortabilityProblems="true" > @@ -97,6 +97,84 @@ > /> > > + Name="Debug|x64" > + > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > + > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + ConfigurationType="1" > + CharacterSet="1" > + > > + + Name="VCPreBuildEventTool" > + /> > + + Name="VCCustomBuildTool" > + /> > + + Name="VCXMLDataGeneratorTool" > + /> > + + Name="VCWebServiceProxyGeneratorTool" > + /> > + + Name="VCMIDLTool" > + TargetEnvironment="3" > + /> > + + Name="VCCLCompilerTool" > + Optimization="0" > + > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > + MinimalRebuild="true" > + BasicRuntimeChecks="3" > + RuntimeLibrary="3" > + UsePrecompiledHeader="0" > + WarningLevel="3" > + Detect64BitPortabilityProblems="true" > + DebugInformationFormat="3" > + /> > + + Name="VCManagedResourceCompilerTool" > + /> > + + Name="VCResourceCompilerTool" > + /> > + + Name="VCPreLinkEventTool" > + /> > + + Name="VCLinkerTool" > + AdditionalDependencies="Strmiids.lib > comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > + OutputFile="$(OutDir)\PouchinTV.exe" > + LinkIncremental="2" > + GenerateDebugInformation="true" > + SubSystem="2" > + TargetMachine="17" > + /> > + + Name="VCALinkTool" > + /> > + + Name="VCManifestTool" > + /> > + + Name="VCXDCMakeTool" > + /> > + + Name="VCBscMakeTool" > + /> > + + Name="VCFxCopTool" > + /> > + + Name="VCAppVerifierTool" > + /> > + + Name="VCWebDeploymentTool" > + /> > + + Name="VCPostBuildEventTool" > + /> > + > + Name="Release|Win32" > OutputDirectory="Release" > IntermediateDirectory="Release" > @@ -129,7 +207,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=0" > StringPooling="true" > ExceptionHandling="1" > - RuntimeLibrary="0" > + RuntimeLibrary="2" > BufferSecurityCheck="false" > UsePrecompiledHeader="0" > AssemblerOutput="4" > @@ -185,6 +263,93 @@ > /> > > + Name="Release|x64" > + > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > + > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + ConfigurationType="1" > + CharacterSet="1" > + > > + + Name="VCPreBuildEventTool" > + /> > + + Name="VCCustomBuildTool" > + /> > + + Name="VCXMLDataGeneratorTool" > + /> > + + Name="VCWebServiceProxyGeneratorTool" > + /> > + + Name="VCMIDLTool" > + TargetEnvironment="3" > + /> > + + Name="VCCLCompilerTool" > + Optimization="3" > + InlineFunctionExpansion="2" > + EnableIntrinsicFunctions="true" > + FavorSizeOrSpeed="2" > + OmitFramePointers="true" > + > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > + StringPooling="true" > + ExceptionHandling="1" > + RuntimeLibrary="2" > + BufferSecurityCheck="false" > + UsePrecompiledHeader="0" > + AssemblerOutput="4" > + WarningLevel="3" > + Detect64BitPortabilityProblems="true" > + DebugInformationFormat="3" > + /> > + + Name="VCManagedResourceCompilerTool" > + /> > + + Name="VCResourceCompilerTool" > + /> > + + Name="VCPreLinkEventTool" > + /> > + + Name="VCLinkerTool" > + AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > + OutputFile="$(OutDir)\PouchinTV.exe" > + LinkIncremental="1" > + GenerateDebugInformation="true" > + SubSystem="2" > + OptimizeReferences="2" > + EnableCOMDATFolding="2" > + OptimizeForWindows98="1" > + TargetMachine="17" > + /> > + + Name="VCALinkTool" > + /> > + + Name="VCManifestTool" > + /> > + + Name="VCXDCMakeTool" > + /> > + + Name="VCBscMakeTool" > + /> > + + Name="VCFxCopTool" > + /> > + + Name="VCAppVerifierTool" > + /> > + + Name="VCWebDeploymentTool" > + /> > + + Name="VCPostBuildEventTool" > + /> > + > + Name="Vista Release|Win32" > OutputDirectory="$(ConfigurationName)" > IntermediateDirectory="$(ConfigurationName)" > @@ -217,7 +382,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=0;VISTA=1" > StringPooling="true" > ExceptionHandling="1" > - RuntimeLibrary="0" > + RuntimeLibrary="2" > BufferSecurityCheck="false" > UsePrecompiledHeader="0" > AssemblerOutput="4" > @@ -273,9 +438,7 @@ > /> > > - Name="Vista Debug|Win32" > - OutputDirectory="$(SolutionDir)$(ConfigurationName)" > - IntermediateDirectory="$(ConfigurationName)" > + Name="Vista Release|x64" > ConfigurationType="1" > > > @@ -295,6 +458,7 @@ > /> > Name="VCCLCompilerTool" > + RuntimeLibrary="2" > /> > Name="VCManagedResourceCompilerTool" > @@ -307,7 +471,6 @@ > /> > Name="VCLinkerTool" > - IgnoreDefaultLibraryNames="libcmtd.lib" > /> > Name="VCALinkTool" > @@ -335,11 +498,10 @@ > /> > > - Name="Debug|x64" > - > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > - > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + Name="Vista Debug|Win32" > + OutputDirectory="$(SolutionDir)$(ConfigurationName)" > + IntermediateDirectory="$(ConfigurationName)" > ConfigurationType="1" > - CharacterSet="1" > > > Name="VCPreBuildEventTool" > @@ -355,19 +517,10 @@ > /> > Name="VCMIDLTool" > - TargetEnvironment="3" > /> > Name="VCCLCompilerTool" > - Optimization="0" > - > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > - MinimalRebuild="true" > - BasicRuntimeChecks="3" > - RuntimeLibrary="1" > - UsePrecompiledHeader="0" > - WarningLevel="3" > - Detect64BitPortabilityProblems="true" > - DebugInformationFormat="3" > + RuntimeLibrary="3" > /> > Name="VCManagedResourceCompilerTool" > @@ -380,12 +533,7 @@ > /> > Name="VCLinkerTool" > - AdditionalDependencies="Strmiids.lib > comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > - OutputFile="$(OutDir)\PouchinTV.exe" > - LinkIncremental="2" > - GenerateDebugInformation="true" > - SubSystem="2" > - TargetMachine="17" > + IgnoreDefaultLibraryNames="libcmtd.lib" > /> > Name="VCALinkTool" > @@ -413,11 +561,8 @@ > /> > > - Name="Release|x64" > - > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > - > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + Name="Vista Debug|x64" > ConfigurationType="1" > - CharacterSet="1" > > > Name="VCPreBuildEventTool" > @@ -433,25 +578,10 @@ > /> > Name="VCMIDLTool" > - TargetEnvironment="3" > /> > Name="VCCLCompilerTool" > - Optimization="3" > - InlineFunctionExpansion="2" > - EnableIntrinsicFunctions="true" > - FavorSizeOrSpeed="2" > - OmitFramePointers="true" > - > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > - StringPooling="true" > - ExceptionHandling="1" > - RuntimeLibrary="0" > - BufferSecurityCheck="false" > - UsePrecompiledHeader="0" > - AssemblerOutput="4" > - WarningLevel="3" > - Detect64BitPortabilityProblems="true" > - DebugInformationFormat="3" > + RuntimeLibrary="3" > /> > Name="VCManagedResourceCompilerTool" > @@ -464,15 +594,6 @@ > /> > Name="VCLinkerTool" > - AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > - OutputFile="$(OutDir)\PouchinTV.exe" > - LinkIncremental="1" > - GenerateDebugInformation="true" > - SubSystem="2" > - OptimizeReferences="2" > - EnableCOMDATFolding="2" > - OptimizeForWindows98="1" > - TargetMachine="17" > /> > Name="VCALinkTool" > Je suis en train de modifier le fichier de projet (certains ne sont pas bon comme vista 64 bits en release :( ) Je le commit d'après des modifs de ce diff dès qu'il est prêt... -- Laurent ....ooo...(°_°)...ooo.... From arupqfjm at yahoo.fr Tue Aug 21 16:02:18 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Tue, 21 Aug 2007 16:02:18 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Probl=E8me_de_compilation?= In-Reply-To: <17289.193.252.107.84.1187702286.squirrel@mail.baysse.fr> References: <000001c7e397$a3353ad0$0200a8c0@blot> <17289.193.252.107.84.1187702286.squirrel@mail.baysse.fr> Message-ID: <000001c7e3fb$e36e6db0$0200a8c0@blot> Parfait, merci bien. En fait les modifs que j'ai faites correspondent juste au changement dans : Propriétés de configuration > C/C++ > Génération de code > Bibliothèque runtime des bibliothèques standard (/MT ou /MTd) en DLL (/MD ou /MDd), et ce pour toutes les configurations/plateformes. -----Message d'origine----- De : pouchintv-dev-bounces at baysse.fr [mailto:pouchintv-dev-bounces at baysse.fr] De la part de Laurent Baysse Envoyé : mardi 21 août 2007 15:18 À : Liste utilisée par les développeurs Objet : Re: [Pouchintv-dev] Problème de compilation > Je poste à nouveau à ce sujet, car n'ayant pas l'accès en écriture sur le > repository, ce serait bien que l'un de ceux qui l'a puisse mettre à jour > le > fichier vcproj avec le patch suivant ou bien me donner un accès en > écriture. > Merci d'avance. > > arupqfjm > > Index: Pouchin TV.vcproj > =================================================================== > --- Pouchin TV.vcproj (revision 25) > +++ Pouchin TV.vcproj (working copy) > @@ -46,7 +46,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=1" > MinimalRebuild="true" > BasicRuntimeChecks="3" > - RuntimeLibrary="1" > + RuntimeLibrary="3" > UsePrecompiledHeader="0" > WarningLevel="3" > Detect64BitPortabilityProblems="true" > @@ -97,6 +97,84 @@ > /> > > + Name="Debug|x64" > + > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > + > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + ConfigurationType="1" > + CharacterSet="1" > + > > + + Name="VCPreBuildEventTool" > + /> > + + Name="VCCustomBuildTool" > + /> > + + Name="VCXMLDataGeneratorTool" > + /> > + + Name="VCWebServiceProxyGeneratorTool" > + /> > + + Name="VCMIDLTool" > + TargetEnvironment="3" > + /> > + + Name="VCCLCompilerTool" > + Optimization="0" > + > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > + MinimalRebuild="true" > + BasicRuntimeChecks="3" > + RuntimeLibrary="3" > + UsePrecompiledHeader="0" > + WarningLevel="3" > + Detect64BitPortabilityProblems="true" > + DebugInformationFormat="3" > + /> > + + Name="VCManagedResourceCompilerTool" > + /> > + + Name="VCResourceCompilerTool" > + /> > + + Name="VCPreLinkEventTool" > + /> > + + Name="VCLinkerTool" > + AdditionalDependencies="Strmiids.lib > comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > + OutputFile="$(OutDir)\PouchinTV.exe" > + LinkIncremental="2" > + GenerateDebugInformation="true" > + SubSystem="2" > + TargetMachine="17" > + /> > + + Name="VCALinkTool" > + /> > + + Name="VCManifestTool" > + /> > + + Name="VCXDCMakeTool" > + /> > + + Name="VCBscMakeTool" > + /> > + + Name="VCFxCopTool" > + /> > + + Name="VCAppVerifierTool" > + /> > + + Name="VCWebDeploymentTool" > + /> > + + Name="VCPostBuildEventTool" > + /> > + > + Name="Release|Win32" > OutputDirectory="Release" > IntermediateDirectory="Release" > @@ -129,7 +207,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=0" > StringPooling="true" > ExceptionHandling="1" > - RuntimeLibrary="0" > + RuntimeLibrary="2" > BufferSecurityCheck="false" > UsePrecompiledHeader="0" > AssemblerOutput="4" > @@ -185,6 +263,93 @@ > /> > > + Name="Release|x64" > + > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > + > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + ConfigurationType="1" > + CharacterSet="1" > + > > + + Name="VCPreBuildEventTool" > + /> > + + Name="VCCustomBuildTool" > + /> > + + Name="VCXMLDataGeneratorTool" > + /> > + + Name="VCWebServiceProxyGeneratorTool" > + /> > + + Name="VCMIDLTool" > + TargetEnvironment="3" > + /> > + + Name="VCCLCompilerTool" > + Optimization="3" > + InlineFunctionExpansion="2" > + EnableIntrinsicFunctions="true" > + FavorSizeOrSpeed="2" > + OmitFramePointers="true" > + > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > + StringPooling="true" > + ExceptionHandling="1" > + RuntimeLibrary="2" > + BufferSecurityCheck="false" > + UsePrecompiledHeader="0" > + AssemblerOutput="4" > + WarningLevel="3" > + Detect64BitPortabilityProblems="true" > + DebugInformationFormat="3" > + /> > + + Name="VCManagedResourceCompilerTool" > + /> > + + Name="VCResourceCompilerTool" > + /> > + + Name="VCPreLinkEventTool" > + /> > + + Name="VCLinkerTool" > + AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > + OutputFile="$(OutDir)\PouchinTV.exe" > + LinkIncremental="1" > + GenerateDebugInformation="true" > + SubSystem="2" > + OptimizeReferences="2" > + EnableCOMDATFolding="2" > + OptimizeForWindows98="1" > + TargetMachine="17" > + /> > + + Name="VCALinkTool" > + /> > + + Name="VCManifestTool" > + /> > + + Name="VCXDCMakeTool" > + /> > + + Name="VCBscMakeTool" > + /> > + + Name="VCFxCopTool" > + /> > + + Name="VCAppVerifierTool" > + /> > + + Name="VCWebDeploymentTool" > + /> > + + Name="VCPostBuildEventTool" > + /> > + > + Name="Vista Release|Win32" > OutputDirectory="$(ConfigurationName)" > IntermediateDirectory="$(ConfigurationName)" > @@ -217,7 +382,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=0;VISTA=1" > StringPooling="true" > ExceptionHandling="1" > - RuntimeLibrary="0" > + RuntimeLibrary="2" > BufferSecurityCheck="false" > UsePrecompiledHeader="0" > AssemblerOutput="4" > @@ -273,9 +438,7 @@ > /> > > - Name="Vista Debug|Win32" > - OutputDirectory="$(SolutionDir)$(ConfigurationName)" > - IntermediateDirectory="$(ConfigurationName)" > + Name="Vista Release|x64" > ConfigurationType="1" > > > @@ -295,6 +458,7 @@ > /> > Name="VCCLCompilerTool" > + RuntimeLibrary="2" > /> > Name="VCManagedResourceCompilerTool" > @@ -307,7 +471,6 @@ > /> > Name="VCLinkerTool" > - IgnoreDefaultLibraryNames="libcmtd.lib" > /> > Name="VCALinkTool" > @@ -335,11 +498,10 @@ > /> > > - Name="Debug|x64" > - > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > - > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + Name="Vista Debug|Win32" > + OutputDirectory="$(SolutionDir)$(ConfigurationName)" > + IntermediateDirectory="$(ConfigurationName)" > ConfigurationType="1" > - CharacterSet="1" > > > Name="VCPreBuildEventTool" > @@ -355,19 +517,10 @@ > /> > Name="VCMIDLTool" > - TargetEnvironment="3" > /> > Name="VCCLCompilerTool" > - Optimization="0" > - > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > - MinimalRebuild="true" > - BasicRuntimeChecks="3" > - RuntimeLibrary="1" > - UsePrecompiledHeader="0" > - WarningLevel="3" > - Detect64BitPortabilityProblems="true" > - DebugInformationFormat="3" > + RuntimeLibrary="3" > /> > Name="VCManagedResourceCompilerTool" > @@ -380,12 +533,7 @@ > /> > Name="VCLinkerTool" > - AdditionalDependencies="Strmiids.lib > comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > - OutputFile="$(OutDir)\PouchinTV.exe" > - LinkIncremental="2" > - GenerateDebugInformation="true" > - SubSystem="2" > - TargetMachine="17" > + IgnoreDefaultLibraryNames="libcmtd.lib" > /> > Name="VCALinkTool" > @@ -413,11 +561,8 @@ > /> > > - Name="Release|x64" > - > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > - > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + Name="Vista Debug|x64" > ConfigurationType="1" > - CharacterSet="1" > > > Name="VCPreBuildEventTool" > @@ -433,25 +578,10 @@ > /> > Name="VCMIDLTool" > - TargetEnvironment="3" > /> > Name="VCCLCompilerTool" > - Optimization="3" > - InlineFunctionExpansion="2" > - EnableIntrinsicFunctions="true" > - FavorSizeOrSpeed="2" > - OmitFramePointers="true" > - > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > - StringPooling="true" > - ExceptionHandling="1" > - RuntimeLibrary="0" > - BufferSecurityCheck="false" > - UsePrecompiledHeader="0" > - AssemblerOutput="4" > - WarningLevel="3" > - Detect64BitPortabilityProblems="true" > - DebugInformationFormat="3" > + RuntimeLibrary="3" > /> > Name="VCManagedResourceCompilerTool" > @@ -464,15 +594,6 @@ > /> > Name="VCLinkerTool" > - AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > - OutputFile="$(OutDir)\PouchinTV.exe" > - LinkIncremental="1" > - GenerateDebugInformation="true" > - SubSystem="2" > - OptimizeReferences="2" > - EnableCOMDATFolding="2" > - OptimizeForWindows98="1" > - TargetMachine="17" > /> > Name="VCALinkTool" > Je suis en train de modifier le fichier de projet (certains ne sont pas bon comme vista 64 bits en release :( ) Je le commit d'après des modifs de ce diff dès qu'il est prêt... -- Laurent ....ooo...(°_°)...ooo.... From pouchintv-svn at baysse.fr Tue Aug 21 16:55:38 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Tue, 21 Aug 2007 16:55:38 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r27 - trunk Message-ID: <20070821145538.29CBD5F266@mail.baysse.fr> Author: lolo_32 Date: 2007-08-21 16:55:37 +0200 (Tue, 21 Aug 2007) New Revision: 27 Modified: trunk/Pouchin TV.vcproj Log: Modification du fichier de projet: * suppression des optimisations pour Windows 98 (ne fonctionne pas de toute fa?\195?\167on dessus) * ajout des lignes pour la compilation sous architectures 64 bits * suppression des biblioth?\195?\168ques ignor?\195?\169es * modif des noms/r?\195?\169pertoires de sortie des diff?\195?\169rentes cibles Modified: trunk/Pouchin TV.vcproj =================================================================== --- trunk/Pouchin TV.vcproj 2007-08-20 20:06:32 UTC (rev 26) +++ trunk/Pouchin TV.vcproj 2007-08-21 14:55:37 UTC (rev 27) @@ -20,8 +20,8 @@ @@ -66,7 +66,6 @@ AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" OutputFile="$(OutDir)\PouchinTVMod_debug.exe" LinkIncremental="2" - IgnoreDefaultLibraryNames="libcmtd.lib" GenerateDebugInformation="true" SubSystem="2" TargetMachine="1" @@ -97,12 +96,88 @@ /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From pouchintv-svn at baysse.fr Tue Aug 21 21:38:38 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Tue, 21 Aug 2007 21:38:38 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r28 - trunk Message-ID: <20070821193839.11C665F267@mail.baysse.fr> Author: matmaul Date: 2007-08-21 21:38:38 +0200 (Tue, 21 Aug 2007) New Revision: 28 Modified: trunk/AUTHORS trunk/res.rc Log: suppression des noms dans les ressources, rajout de mon vrai nom dans AUTHORS et test du svn aussi ;) Modified: trunk/AUTHORS =================================================================== --- trunk/AUTHORS 2007-08-21 14:55:37 UTC (rev 27) +++ trunk/AUTHORS 2007-08-21 19:38:38 UTC (rev 28) @@ -14,7 +14,7 @@ Mod's creator Créateur du Mod - MatMaul http://www.etud.insa-toulouse.fr/~mvelten/pouchintvmod/ + MatMaul (Mathieu Velten) http://www.etud.insa-toulouse.fr/~mvelten/pouchintvmod/ Contributers sorted alphabetically by last name @@ -22,6 +22,6 @@ Name/Nom Identifiant Laurent Baysse lolo_32 - matmaul +Mathieu Velten matmaul gingko radius Modified: trunk/res.rc =================================================================== --- trunk/res.rc 2007-08-21 14:55:37 UTC (rev 27) +++ trunk/res.rc 2007-08-21 19:38:38 UTC (rev 28) @@ -415,8 +415,7 @@ BEGIN BLOCK "040c04b0" BEGIN - VALUE "Comments", "http://pouchintv.baysse.fr, http://www.etud.insa-toulouse.fr/~mvelten/pouchintvmod/, http://pouchinteve.free.fr/" - VALUE "CompanyName", "Pouchin, MatMaul, LoL" + VALUE "Comments", "http://pouchintv.baysse.fr/, http://www.etud.insa-toulouse.fr/~mvelten/pouchintvmod/, http://pouchinteve.free.fr/" VALUE "FileDescription", "Pouchin TV Mod" VALUE "FileVersion", "0, 4, 0, 0" VALUE "InternalName", "Pouchin TV Mod" From pouchintv-svn at baysse.fr Tue Aug 21 23:19:06 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Tue, 21 Aug 2007 23:19:06 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r29 - trunk Message-ID: <20070821211906.1CE445F268@mail.baysse.fr> Author: lolo_32 Date: 2007-08-21 23:19:05 +0200 (Tue, 21 Aug 2007) New Revision: 29 Removed: trunk/lib_x64/ trunk/lib_x86/ Modified: trunk/ trunk/Pouchin TV.sln trunk/Pouchin TV.vcproj trunk/grabber.cpp trunk/main.cpp Log: * rectifications permettant de compiler la cible "Vista Debug", et de compiler en x64. * restauration des "librairies ignor?\195?\169e" supprim?\195?\169e lors du pr?\195?\169c?\195?\169dent commit * suppression des r?\195?\169pertoires lib_x64 et lib_x86 contenant les libs pr?\195?\169compil?\195?\169es impliquant la compilation des sources dans le r?\195?\169pertoire "BaseClasses" du SDK de "Microsoft SDKs", car les fichiers pr?\195?\169compil?\195?\169s ne correspondent pas ?\195?\160 la version utilis?\195?\169e actuellement des sources disponibles * ajout des r?\195?\169pertoires "Vista Debug" et "x64" ?\195?\160 la liste des ignor?\195?\169s pour le r?\195?\169pertoire initial Property changes on: trunk ___________________________________________________________________ Name: svn:ignore - Debug Release Vista Release chaines.xml config.ini pouchin.log Pouchin TV.suo Pouchin TV.ncb Pouchin TV.vcproj.* programmes.xml .*.swp + Debug Release Vista Debug Vista Release x64 chaines.xml config.ini pouchin.log Pouchin TV.suo Pouchin TV.ncb Pouchin TV.vcproj.* programmes.xml .*.swp Modified: trunk/Pouchin TV.sln =================================================================== --- trunk/Pouchin TV.sln 2007-08-21 19:38:38 UTC (rev 28) +++ trunk/Pouchin TV.sln 2007-08-21 21:19:05 UTC (rev 29) @@ -9,19 +9,28 @@ Debug|x64 = Debug|x64 Release|Win32 = Release|Win32 Release|x64 = Release|x64 + Vista Debug|Win32 = Vista Debug|Win32 + Vista Debug|x64 = Vista Debug|x64 Vista Release|Win32 = Vista Release|Win32 Vista Release|x64 = Vista Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|Win32.ActiveCfg = Debug|Win32 {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|Win32.Build.0 = Debug|Win32 - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.ActiveCfg = Debug|Win32 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.ActiveCfg = Debug|x64 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.Build.0 = Debug|x64 {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|Win32.ActiveCfg = Release|Win32 {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|Win32.Build.0 = Release|Win32 - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.ActiveCfg = Release|Win32 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.ActiveCfg = Debug|x64 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.Build.0 = Debug|x64 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|Win32.ActiveCfg = Vista Debug|Win32 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|Win32.Build.0 = Vista Debug|Win32 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|x64.ActiveCfg = Vista Release|x64 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|x64.Build.0 = Vista Release|x64 {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|Win32.ActiveCfg = Vista Release|Win32 {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|Win32.Build.0 = Vista Release|Win32 - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.ActiveCfg = Vista Release|Win32 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.ActiveCfg = Vista Release|x64 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.Build.0 = Vista Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE Modified: trunk/Pouchin TV.vcproj =================================================================== --- trunk/Pouchin TV.vcproj 2007-08-21 19:38:38 UTC (rev 28) +++ trunk/Pouchin TV.vcproj 2007-08-21 21:19:05 UTC (rev 29) @@ -43,7 +43,7 @@ References: <20070821211906.1CE445F268@mail.baysse.fr> Message-ID: <46CB5C03.6020307@baysse.fr> pouchintv-svn at baysse.fr a écrit : > Author: lolo_32 > Date: 2007-08-21 23:19:05 +0200 (Tue, 21 Aug 2007) > New Revision: 29 > > Removed: > trunk/lib_x64/ > trunk/lib_x86/ > Modified: > trunk/ > trunk/Pouchin TV.sln > trunk/Pouchin TV.vcproj > trunk/grabber.cpp > trunk/main.cpp > Log: > * rectifications permettant de compiler la cible "Vista Debug", et de compiler en x64. > * restauration des "librairies ignor?\195?\169e" supprim?\195?\169e lors du pr?\195?\169c?\195?\169dent commit > * suppression des r?\195?\169pertoires lib_x64 et lib_x86 contenant les libs pr?\195?\169compil?\195?\169es impliquant la compilation des sources dans le r?\195?\169pertoire "BaseClasses" du SDK de "Microsoft SDKs", car les fichiers pr?\195?\169compil?\195?\169s ne correspondent pas ?\195?\160 la version utilis?\195?\169e actuellement des sources disponibles > * ajout des r?\195?\169pertoires "Vista Debug" et "x64" ?\195?\160 la liste des ignor?\195?\169s pour le r?\195?\169pertoire initial > > > Property changes on: trunk > ___________________________________________________________________ > Name: svn:ignore > - Debug > Release > Vista Release > chaines.xml > config.ini > pouchin.log > Pouchin TV.suo > Pouchin TV.ncb > Pouchin TV.vcproj.* > programmes.xml > .*.swp > > + Debug > Release > Vista Debug > Vista Release > x64 > chaines.xml > config.ini > pouchin.log > Pouchin TV.suo > Pouchin TV.ncb > Pouchin TV.vcproj.* > programmes.xml > .*.swp > > > Modified: trunk/Pouchin TV.sln > =================================================================== > --- trunk/Pouchin TV.sln 2007-08-21 19:38:38 UTC (rev 28) > +++ trunk/Pouchin TV.sln 2007-08-21 21:19:05 UTC (rev 29) > @@ -9,19 +9,28 @@ > Debug|x64 = Debug|x64 > Release|Win32 = Release|Win32 > Release|x64 = Release|x64 > + Vista Debug|Win32 = Vista Debug|Win32 > + Vista Debug|x64 = Vista Debug|x64 > Vista Release|Win32 = Vista Release|Win32 > Vista Release|x64 = Vista Release|x64 > EndGlobalSection > GlobalSection(ProjectConfigurationPlatforms) = postSolution > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|Win32.ActiveCfg = Debug|Win32 > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|Win32.Build.0 = Debug|Win32 > - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.ActiveCfg = Debug|Win32 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.ActiveCfg = Debug|x64 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.Build.0 = Debug|x64 > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|Win32.ActiveCfg = Release|Win32 > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|Win32.Build.0 = Release|Win32 > - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.ActiveCfg = Release|Win32 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.ActiveCfg = Debug|x64 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.Build.0 = Debug|x64 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|Win32.ActiveCfg = Vista Debug|Win32 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|Win32.Build.0 = Vista Debug|Win32 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|x64.ActiveCfg = Vista Release|x64 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|x64.Build.0 = Vista Release|x64 > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|Win32.ActiveCfg = Vista Release|Win32 > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|Win32.Build.0 = Vista Release|Win32 > - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.ActiveCfg = Vista Release|Win32 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.ActiveCfg = Vista Release|x64 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.Build.0 = Vista Release|x64 > EndGlobalSection > GlobalSection(SolutionProperties) = preSolution > HideSolutionNode = FALSE > > Modified: trunk/Pouchin TV.vcproj > =================================================================== > --- trunk/Pouchin TV.vcproj 2007-08-21 19:38:38 UTC (rev 28) > +++ trunk/Pouchin TV.vcproj 2007-08-21 21:19:05 UTC (rev 29) > @@ -43,7 +43,7 @@ > Name="VCCLCompilerTool" > Optimization="0" > - PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=1" > + PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=1;VISTA=0" > MinimalRebuild="true" > BasicRuntimeChecks="3" > RuntimeLibrary="1" > @@ -66,6 +66,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" > OutputFile="$(OutDir)\PouchinTVMod_debug.exe" > LinkIncremental="2" > + IgnoreDefaultLibraryNames="libcmtd.lib" > GenerateDebugInformation="true" > SubSystem="2" > TargetMachine="1" > @@ -143,6 +144,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" > OutputFile="$(OutDir)\PouchinTVMod_vista_debug.exe" > LinkIncremental="2" > + IgnoreDefaultLibraryNames="libcmtd.lib" > GenerateDebugInformation="true" > SubSystem="2" > TargetMachine="1" > @@ -201,7 +203,7 @@ > EnableIntrinsicFunctions="true" > FavorSizeOrSpeed="1" > OmitFramePointers="true" > - PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=0" > + PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=0;VISTA=0" > StringPooling="true" > ExceptionHandling="1" > RuntimeLibrary="2" > @@ -226,6 +228,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib" > OutputFile="$(OutDir)\PouchinTVMod.exe" > LinkIncremental="1" > + IgnoreDefaultLibraryNames="libcmt.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > @@ -312,6 +315,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > OutputFile="$(OutDir)\PouchinTVMod_Vista.exe" > LinkIncremental="1" > + IgnoreDefaultLibraryNames="libcmt.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > @@ -370,7 +374,7 @@ > Name="VCCLCompilerTool" > Optimization="0" > - PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=1" > + PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=1;VISTA=0" > MinimalRebuild="true" > BasicRuntimeChecks="3" > RuntimeLibrary="1" > @@ -393,6 +397,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > OutputFile="$(OutDir)\PouchinTV_debug_x64.exe" > LinkIncremental="2" > + IgnoreDefaultLibraryNames="libcmtd.lib" > GenerateDebugInformation="true" > SubSystem="2" > TargetMachine="17" > @@ -471,6 +476,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > OutputFile="$(OutDir)\PouchinTV_vista_debug_x64.exe" > LinkIncremental="2" > + IgnoreDefaultLibraryNames="libcmtd.lib" > GenerateDebugInformation="true" > SubSystem="2" > TargetMachine="17" > @@ -526,7 +532,7 @@ > Name="VCCLCompilerTool" > Optimization="2" > - PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=0" > + PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=0;VISTA=0" > InlineFunctionExpansion="2" > EnableIntrinsicFunctions="true" > FavorSizeOrSpeed="1" > @@ -555,6 +561,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > OutputFile="$(OutDir)\PouchinTV_x64.exe" > LinkIncremental="1" > + IgnoreDefaultLibraryNames="libcmt.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > @@ -642,6 +649,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > OutputFile="$(OutDir)\PouchinTVMod_Vista_x64.exe" > LinkIncremental="1" > + IgnoreDefaultLibraryNames="libcmt.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > > Modified: trunk/grabber.cpp > =================================================================== > --- trunk/grabber.cpp 2007-08-21 19:38:38 UTC (rev 28) > +++ trunk/grabber.cpp 2007-08-21 21:19:05 UTC (rev 29) > @@ -44,7 +44,7 @@ > > taille_packet_buf = 0; > > - hFile = CreateFile(pName, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > + hFile = CreateFile(pName, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > } > > // enregistre une chaine en TS > @@ -64,7 +64,7 @@ > > myprintf(L"enregistre TS %i %i %i\n", video, audio, pmt_pid); > > - hFile = CreateFile(pName, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > + hFile = CreateFile(pName, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > } > > // enregistre une chaine en PS > @@ -86,7 +86,7 @@ > > taille_packet_buf = 0; > > - hFile = CreateFile(pName, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > + hFile = CreateFile(pName, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > } > > /* Destructor */ > > Modified: trunk/main.cpp > =================================================================== > --- trunk/main.cpp 2007-08-21 19:38:38 UTC (rev 28) > +++ trunk/main.cpp 2007-08-21 21:19:05 UTC (rev 29) > @@ -3231,6 +3231,7 @@ > #if USE_CONSOLE > startConsoleWin(); > myprintf(L"Compile le : %S %S\n", __DATE__, __TIME__); > + myprintf(L"\tVista build: %d\n", VISTA + 0); > #endif > > CoInitialize(NULL); > @@ -3336,6 +3337,7 @@ > } > > // R?cup?re la version de windows > + // et initialise la variable indiquant si on tourne sous Vista > ZeroMemory(&windows_version, sizeof(OSVERSIONINFOEX)); > windows_version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEXW); > if (GetVersionEx((OSVERSIONINFO *)&windows_version)) { > @@ -3358,7 +3360,7 @@ > switch_fullscreen(); > } > > - // Load the accelerator table. > + // Charge le tableau des raccourcis claviers > HACCEL hAccel = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDR_ACCELERATOR1)); > > // boucle qui traite les messages clavier > @@ -3370,12 +3372,16 @@ > } > } > > + // Si on demand? la mise ? jour de MSN > if (use_msn) > { > + // On cherche la fen?tre > HWND msnui = FindWindow(L"MsnMsgrUIManager", NULL); > > + // Si, msnui == NULL, MSN ne fonctionne pas ou le fen?tre est masqu?e (donc, pas de mise ? jour) > if (msnui != NULL) > { > + // Si on l'a trouv?e, on efface la musique indiqu?e sur MSN > COPYDATASTRUCT msndata; > msndata.dwData = 0x547; > msndata.lpData = L"\\0Music\\00\\0\\0\\0\\0\\0\\0"; > @@ -3384,8 +3390,10 @@ > } > } > > + // On efface la liste des raccourcis > DestroyAcceleratorTable(hAccel); > > + // On lib?re toutes les ressources initialis?es > CoUninitialize(); > > return (int)msg.wParam; > Je viens de mettre à jour la page expliquant les paramètres de compilation (http://pouchintv.baysse.fr/VisualExplress.html), ainsi que la méthode pour compiler suite à la suppression des librairies précompilées fournies, car non actuelles. -- Laurent Baysse From radius at r4dius.net Wed Aug 22 16:22:25 2007 From: radius at r4dius.net (radius) Date: Wed, 22 Aug 2007 16:22:25 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r29 - trunk References: <20070821211906.1CE445F268@mail.baysse.fr> <46CB5C03.6020307@baysse.fr> Message-ID: <200708221622245003714@r4dius.net> Salut, j'ai peut etre mal compris mais actuellement l'exe detecte l'os au lancement et inclus donc les modifs pour vista ? Si oui pourquoi on garde la config vista dans le projet ^^ ? A+ From pouchintv-svn at baysse.fr Wed Aug 22 18:06:40 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Wed, 22 Aug 2007 18:06:40 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] radius | r30 - trunk Message-ID: <20070822160640.CD7815F26D@mail.baysse.fr> Author: radius Date: 2007-08-22 18:06:40 +0200 (Wed, 22 Aug 2007) New Revision: 30 Modified: trunk/main.cpp Log: tab[4] = -1; on efface la 5?\195?\168me colonne tab[4] (au lieu de tab[5]) dans la barre des status si on est pas sous vista j'ai fais afficher les infos de zoom / volume tout en bas comme le nom des chaines est tout en haut, vous en pensez quoi ? pour finir j'ai fais la modif pour que le focus sur la fenetre de pouchin fonctionne (sans le probleme des 2 icones en notify) mais (pour Mathieu) je capte pas pourquoi le bouton dans la taskbar ne se cache plus que quand on minimise la fenetre Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-21 21:19:05 UTC (rev 29) +++ trunk/main.cpp 2007-08-22 16:06:40 UTC (rev 30) @@ -819,7 +819,7 @@ } else { n = 5; minwidth = 500; - tab[5] = -1; // tab[6] est inutilisé + tab[4] = -1; // tab[5] est inutilisé } // on a de la place en plus @@ -2143,6 +2143,7 @@ } static POINT coord_down; +int tray = 0; /** * main window procedure @@ -2157,10 +2158,11 @@ myprintf(L"create\n"); hWnd = hwnd; - if((GetWindowLong(hWnd, GWL_HWNDPARENT) == NULL) && minimize_system_tray) { - niData.hWnd = hWnd; - - Shell_NotifyIcon(NIM_ADD,&niData); + if(/*(GetWindowLong(hWnd, GWL_HWNDPARENT) == NULL) &&*/ minimize_system_tray && tray == 0) { + // on ne crée qu'une icone dans la zone de notification + tray = 1; + niData.hWnd = hWnd; + Shell_NotifyIcon(NIM_ADD,&niData); } break; @@ -2279,7 +2281,7 @@ { SetTextAlign(hdc, TA_RIGHT); - TextOutA(hdc, rect.right-10, rect.bottom-hauteur*2, "Sourdine", (int)strlen("Sourdine")); + TextOutA(hdc, rect.right-10, rect.bottom-hauteur, "Sourdine", (int)strlen("Sourdine")); } if (show_volume) @@ -2289,7 +2291,7 @@ char str[256]; int taille = sprintf(str, "Volume %i", (volumeCourant+8000)/80); - TextOutA(hdc, rect.left+10, rect.bottom-hauteur*2, str, taille); + TextOutA(hdc, rect.left+10, rect.bottom-hauteur, str, taille); } if (show_zoom) @@ -2299,7 +2301,7 @@ char str[256]; int taille = sprintf(str, "Zoom %i%%", zoom_ratio); - TextOutA(hdc, rect.left+10, rect.bottom-hauteur*3, str, taille); + TextOutA(hdc, rect.left+10, rect.bottom-hauteur, str, taille); } DeleteObject(hf); @@ -3265,8 +3267,8 @@ win_y, win_w, win_h, - hidden_hwnd, NULL, + NULL, hInstance, NULL); From laurent at baysse.fr Wed Aug 22 18:09:29 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Wed, 22 Aug 2007 18:09:29 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r29 - trunk In-Reply-To: <200708221622245003714@r4dius.net> References: <20070821211906.1CE445F268@mail.baysse.fr> <46CB5C03.6020307@baysse.fr> <200708221622245003714@r4dius.net> Message-ID: <10159.193.252.107.84.1187798969.squirrel@mail.baysse.fr> > Salut, > j'ai peut etre mal compris mais actuellement l'exe detecte l'os au > lancement et inclus donc les modifs pour vista ? > Si oui pourquoi on garde la config vista dans le projet ^^ ? > A+ En fait, tu as tout compris. Il cherche si il tourne sous Vista ou 2008 server, et positionne la variable "is_vista" à true dans ce cas. Elle vaut false sinon (2000, XP, 2003). Toutes les conditions "#if VISTA" ont été remplacée par "if (is_vista)" qui fonctionne elle à l'exécution... Actuellement, la config Vista n'est donc plus utile... -- Laurent ....ooo...(°_°)...ooo.... From pouchintv-svn at baysse.fr Wed Aug 22 18:52:59 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Wed, 22 Aug 2007 18:52:59 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] radius | r31 - trunk Message-ID: <20070822165300.072785F23A@mail.baysse.fr> Author: radius Date: 2007-08-22 18:52:59 +0200 (Wed, 22 Aug 2007) New Revision: 31 Modified: trunk/main.cpp Log: J'avais oubli?\195?\169 que le volume et le zoom s'affichaient a gauche, pour eviter qu'ils se chevauchent (avec ma pr?\195?\169cedente modif) on cache le volume si on zoom et vice-versa Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-22 16:06:40 UTC (rev 30) +++ trunk/main.cpp 2007-08-22 16:52:59 UTC (rev 31) @@ -2284,6 +2284,12 @@ TextOutA(hdc, rect.right-10, rect.bottom-hauteur, "Sourdine", (int)strlen("Sourdine")); } + // on affiche le dernier message appelé et on cache l'ancien + if (show_volume && show_zoom) { + if(last_volume_osd > last_zoom) show_zoom = !show_zoom; + else show_volume = !show_volume; + } + if (show_volume) { SetTextAlign(hdc, TA_LEFT); From matmaul at gmail.com Wed Aug 22 20:54:06 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Wed, 22 Aug 2007 20:54:06 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] radius | r30 - trunk In-Reply-To: <20070822160640.CD7815F26D@mail.baysse.fr> References: <20070822160640.CD7815F26D@mail.baysse.fr> Message-ID: <20fbb8bc0708221154o44aa3e13lc83cdc9d05c5121e@mail.gmail.com> oui mais non ^^ hwnd = CreateWindowEx(0, szAppName, L"Pouchin TV Mod", WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, win_x, win_y, win_w, win_h, -> hidden_hwnd, NULL, hInstance, NULL); si ici je faisais descendre la fenêtre de hidden_hwnd c'est pas pour rien. sans ca on ne peut pas cacher l'item dans la barre des taches sans cacher aussi la fenêtre. par contre je comprend pas ce que vous appelez le focus... j'ai ma petite idée mais je suis pas sur. en fait je cache totalement la fenètre mère du programme (hidden_hwnd) et je créé une nouvelle fenètre qui descend de hidden_hwnd, comme ca je peux enlever ou remettre l'item dans la barre des taches sans pb (ce n'est pas possible avec une fenètre mère malheuresement !) le pb du focus dont vous parlez je pense c'est le fait que comme la fenètre mère du programme est toujours caché bin le programme na jamais le "focus" même si il est au dessus des autres fenêtres (vu que c'est une fenêtre fille qui est au dessus des autres et non pas la fenètre mère). Mais en quoi vous avez besoin du focus ? à quoi il vous sert ? MatMaul Le 22/08/07, pouchintv-svn at baysse.fr a écrit : > Author: radius > Date: 2007-08-22 18:06:40 +0200 (Wed, 22 Aug 2007) > New Revision: 30 > > Modified: > trunk/main.cpp > Log: > tab[4] = -1; > on efface la 5?\195?\168me colonne tab[4] (au lieu de tab[5]) dans la barre des status si on est pas sous vista > > j'ai fais afficher les infos de zoom / volume tout en bas comme le nom des chaines est tout en haut, vous en pensez quoi ? > > pour finir j'ai fais la modif pour que le focus sur la fenetre de pouchin fonctionne (sans le probleme des 2 icones en notify) mais (pour Mathieu) je capte pas pourquoi le bouton dans la taskbar ne se cache plus que quand on minimise la fenetre > From pouchintv-svn at baysse.fr Wed Aug 22 21:01:15 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Wed, 22 Aug 2007 21:01:15 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] radius | r32 - trunk Message-ID: <20070822190115.B88C95F273@mail.baysse.fr> Author: radius Date: 2007-08-22 21:01:15 +0200 (Wed, 22 Aug 2007) New Revision: 32 Modified: trunk/main.cpp Log: L'unmute d?\195?\169connait encore si on ouvrait pouchin avec le volume a 100 dans la config Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-22 16:52:59 UTC (rev 31) +++ trunk/main.cpp 2007-08-22 19:01:15 UTC (rev 32) @@ -2009,7 +2009,7 @@ { muted = !muted; - long vol = muted ? -8000 : (volumeCourant ? volumeCourant : 0) ; + long vol = muted ? -8000 : (volumeCourant < 0 ? volumeCourant : 0) ; IBasicAudio * pBas; From pouchintv-svn at baysse.fr Wed Aug 22 21:13:05 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Wed, 22 Aug 2007 21:13:05 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r33 - trunk Message-ID: <20070822191305.5B9B65F273@mail.baysse.fr> Author: lolo_32 Date: 2007-08-22 21:13:04 +0200 (Wed, 22 Aug 2007) New Revision: 33 Modified: trunk/main.cpp Log: Ajout condition permettant de compiler une version qui se comportera toujours comme sous Vista, m?\195?\170me sous 2000 ou XP (is_vista = true) Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-22 19:01:15 UTC (rev 32) +++ trunk/main.cpp 2007-08-22 19:13:04 UTC (rev 33) @@ -3351,13 +3351,19 @@ if (GetVersionEx((OSVERSIONINFO *)&windows_version)) { if (windows_version.dwMajorVersion >= 6) { is_vista = true; - myprintf(L"Fonctionne sous Vista ou 2008 Serveur ou plus récent\n"); + myprintf(L"Fonctionne sous Vista ou 2008 Serveur ou plus récent"); } else { - myprintf(L"Fonctionne sous 2000 ou XP\n"); + myprintf(L"Fonctionne sous 2000 ou XP"); } } else { myprintf(L"Erreur lors de la récupération de la version de Windows\n"); } +#if VISTA + is_vista = true; + myprintf(L"\tVista forcé\n"); +#else + myprintf(L"\n"); +#endif mainMenu = GetMenu(hwnd); From radius at r4dius.net Wed Aug 22 21:16:49 2007 From: radius at r4dius.net (radius) Date: Wed, 22 Aug 2007 21:16:49 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] radius | r30 - trunk References: <20070822160640.CD7815F26D@mail.baysse.fr> <20fbb8bc0708221154o44aa3e13lc83cdc9d05c5121e@mail.gmail.com> Message-ID: <200708222116493283202@r4dius.net> Eheh je voyais pas ca aussi complexe, c'est clairement un truc de feignasse mais bon, disons si je passe de winamp (devant pouchin) a pouchin, comme pouchin s'active pas, pour que je retourne a winamp (qui a donc été caché par pouchin) je dois activer le bouton de pouchin puis winamp ^^ oui mais non ^^ hwnd = CreateWindowEx(0, szAppName, L"Pouchin TV Mod", WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, win_x, win_y, win_w, win_h, - > hidden_hwnd, NULL, hInstance, NULL); si ici je faisais descendre la fenêtre de hidden_hwnd c'est pas pour rien. sans ca on ne peut pas cacher l'item dans la barre des taches sans cacher aussi la fenêtre. par contre je comprend pas ce que vous appelez le focus... j'ai ma petite idée mais je suis pas sur. en fait je cache totalement la fenètre mère du programme (hidden_hwnd) et je créé une nouvelle fenètre qui descend de hidden_hwnd, comme ca je peux enlever ou remettre l'item dans la barre des taches sans pb (ce n'est pas possible avec une fenètre mère malheuresement !) le pb du focus dont vous parlez je pense c'est le fait que comme la fenètre mère du programme est toujours caché bin le programme na jamais le "focus" même si il est au dessus des autres fenêtres (vu que c'est une fenêtre fille qui est au dessus des autres et non pas la fenètre mère). Mais en quoi vous avez besoin du focus ? à quoi il vous sert ? MatMaul Le 22/08/07, pouchintv-svn at baysse.fr a écrit : > Author: radius > Date: 2007-08-22 18:06:40 +0200 (Wed, 22 Aug 2007) > New Revision: 30 > > Modified: > trunk/main.cpp > Log: > tab[4] = -1; > on efface la 5?\195?\168me colonne tab[4] (au lieu de tab[5]) dans la barre des status si on est pas sous vista > > j'ai fais afficher les infos de zoom / volume tout en bas comme le nom des chaines est tout en haut, vous en pensez quoi ? > > pour finir j'ai fais la modif pour que le focus sur la fenetre de pouchin fonctionne (sans le probleme des 2 icones en notify) mais (pour Mathieu) je capte pas pourquoi le bouton dans la taskbar ne se cache plus que quand on minimise la fenetre > _______________________________________________ Pouchintv-dev mailing list Pouchintv-dev at baysse.fr https://listes.baysse.fr/listinfo/pouchintv-dev From laurent at baysse.fr Wed Aug 22 21:41:49 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Wed, 22 Aug 2007 21:41:49 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r29 - trunk In-Reply-To: <10159.193.252.107.84.1187798969.squirrel@mail.baysse.fr> References: <20070821211906.1CE445F268@mail.baysse.fr> <46CB5C03.6020307@baysse.fr> <200708221622245003714@r4dius.net> <10159.193.252.107.84.1187798969.squirrel@mail.baysse.fr> Message-ID: <46CC917D.4080703@baysse.fr> Laurent Baysse a écrit : >> Salut, >> j'ai peut etre mal compris mais actuellement l'exe detecte l'os au >> lancement et inclus donc les modifs pour vista ? >> Si oui pourquoi on garde la config vista dans le projet ^^ ? >> A+ >> > > En fait, tu as tout compris. Il cherche si il tourne sous Vista ou 2008 > server, et positionne la variable "is_vista" à true dans ce cas. Elle vaut > false sinon (2000, XP, 2003). > > Toutes les conditions "#if VISTA" ont été remplacée par "if (is_vista)" > qui fonctionne elle à l'exécution... > > Actuellement, la config Vista n'est donc plus utile... > > Cependant, c'est pas mal de la garder, car elle permet de pouvoir tester la config Vista sur un poste XP -- Laurent From radius at r4dius.net Wed Aug 22 22:47:55 2007 From: radius at r4dius.net (radius) Date: Wed, 22 Aug 2007 22:47:55 +0200 Subject: [Pouchintv-dev] 2 probs References: <20070821211906.1CE445F268@mail.baysse.fr> <46CB5C03.6020307@baysse.fr> <200708221622245003714@r4dius.net> <10159.193.252.107.84.1187798969.squirrel@mail.baysse.fr> <46CC917D.4080703@baysse.fr> Message-ID: <200708222247547507340@r4dius.net> Re, j'ai trouvé 2 problemes, si on lance avec -minimize + "Démarrer en plein écran" + "Minimiser dans le system tray" quand on réactive pouchin (car il etait qu'en systray minimisé donc) et qu'on remet en fullscreen par exemple ca fait un peu n'importe quoi (je saurait pas expliquer) et le bouton dans la taskbar est plus utilisable l'autre prob est avec le -minimize + "Minimiser dans le system tray" + "Suspendre si minimisé", si on clique l'icone dans la zone de notification (^^) avant les 5 sec du sleep(5000) pouchin crash, j'ai testé quelques trucs, en virant le sleep (a quoi il sert exactement ?) pouchin crash tout seul parfois au lancement, sinon avec la modif suivante j'avais plus de crash mais en restorant la fenetre (double click de l'icone) j'avais pas de son pour une raison que j'ignore ^^. int res = init_vmr(); change_frequence(Canaux[chaineCourante].frequence); if (res) { erreur(L"Erreur lors de la création du VMR"); return -1; } // On a lancé avec le paramètre demandant de masquer la fenêtre if (!strcmp(lpCmdLine, "-minimize")) { myprintf(L"minimize\n"); if(suspend_minimized) { debranche_tout(pMapMPEG2); debranche_tout(pMapSound); debranche_tout(pMapAc3); debranche_tout(pMapPmt); } } a la place de // On a lancé avec le paramètre demandant de masquer la fenêtre if (!strcmp(lpCmdLine, "-minimize")) { myprintf(L"minimize\n"); if(suspend_minimized) { debranche_tout(pMapMPEG2); debranche_tout(pMapSound); debranche_tout(pMapAc3); debranche_tout(pMapPmt); } } else { int res = init_vmr(); change_frequence(Canaux[chaineCourante].frequence); if (res) { erreur(L"Erreur lors de la création du VMR"); return -1; } } From radius at r4dius.net Wed Aug 22 23:18:16 2007 From: radius at r4dius.net (radius) Date: Wed, 22 Aug 2007 23:18:16 +0200 Subject: [Pouchintv-dev] Encore un References: <20070821211906.1CE445F268@mail.baysse.fr> <46CB5C03.6020307@baysse.fr> <200708221622245003714@r4dius.net> <10159.193.252.107.84.1187798969.squirrel@mail.baysse.fr> <46CC917D.4080703@baysse.fr> Message-ID: <200708222318158901684@r4dius.net> Hum, un autre probleme, quand le prog est minimisé dans la systray avec "Suspendre si minimisé", si on change de chaine le son revient :/ j'ai pas trouvé la solution a part en desactivant le zapping dans ce cas particulié From arupqfjm at yahoo.fr Thu Aug 23 04:56:40 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Thu, 23 Aug 2007 04:56:40 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_un_probl=E8me_dans_le_fic?= =?iso-8859-1?q?hier_projet?= Message-ID: <000001c7e531$3af1c5b0$0200a8c0@blot> Il y a toujours un problème dans les propriétés de projet puisque pouchin refuse de tourner sur un pc où visual studio n'est pas installé tant que l'on a pas installé : http://www.apachelounge.com/download/vcredist_x86-sp1.exe (c f : http://www.developpez.net/forums/archive/index.php/t-218493.html). Je ferai des tests plus poussés dès que j'aurai le temps. From laurent at baysse.fr Thu Aug 23 08:25:11 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Thu, 23 Aug 2007 08:25:11 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_un_probl=E8me_dans_le_fic?= =?iso-8859-1?q?hier_projet?= In-Reply-To: <000001c7e531$3af1c5b0$0200a8c0@blot> References: <000001c7e531$3af1c5b0$0200a8c0@blot> Message-ID: <46CD2847.5020103@baysse.fr> arupqfjm a écrit : > Il y a toujours un problème dans les propriétés de projet puisque pouchin > refuse de tourner sur un pc où visual studio n'est pas installé tant que > l'on a pas installé : > http://www.apachelounge.com/download/vcredist_x86-sp1.exe (c f : > http://www.developpez.net/forums/archive/index.php/t-218493.html). Je ferai > des tests plus poussés dès que j'aurai le temps. > > Je comprend pas très bien ce qui refuse de fonctionner :( La compilation, ou le programme ? Pour ma part, j'ai jamais installé les VCRedist, d'aucune version. -- Laurent Baysse From arupqfjm at yahoo.fr Thu Aug 23 14:27:23 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Thu, 23 Aug 2007 14:27:23 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_un_probl=E8me_dans_le_fic?= =?iso-8859-1?q?hier_projet?= In-Reply-To: <46CD2847.5020103@baysse.fr> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> Message-ID: <000901c7e580$f57be2e0$0200a8c0@blot> Le programme ne fonctionne pas, mais uniquement sur un pc qui n'a pas visual studio d'installé, c'est pourquoi aucun développeur du projet n'a eu de problèmes. Mais vu que pour l'instant je développe sur un ordi et je teste sur un autre (où il n'y a pas visual studio), j'ai remarqué ce problème. Le message d'erreur exact est : "Cette application n'a pas pu démarrer car la configuration de l'application est incorrecte. Réinstaller l'application pourrait résoudre ce problème." et il s'affiche dès qu'on lance pouchin. -----Message d'origine----- De : pouchintv-dev-bounces at baysse.fr [mailto:pouchintv-dev-bounces at baysse.fr] De la part de Laurent Baysse Envoyé : jeudi 23 août 2007 08:25 À : Liste utilisée par les développeurs Objet : Re: [Pouchintv-dev] Toujours un problème dans le fichier projet arupqfjm a écrit : > Il y a toujours un problème dans les propriétés de projet puisque pouchin > refuse de tourner sur un pc où visual studio n'est pas installé tant que > l'on a pas installé : > http://www.apachelounge.com/download/vcredist_x86-sp1.exe (c f : > http://www.developpez.net/forums/archive/index.php/t-218493.html). Je ferai > des tests plus poussés dès que j'aurai le temps. > > Je comprend pas très bien ce qui refuse de fonctionner :( La compilation, ou le programme ? Pour ma part, j'ai jamais installé les VCRedist, d'aucune version. -- Laurent Baysse From radius at r4dius.net Thu Aug 23 14:30:38 2007 From: radius at r4dius.net (radius) Date: Thu, 23 Aug 2007 14:30:38 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> Message-ID: <200708231430376877830@r4dius.net> arupqfjm a écrit : > Il y a toujours un problème dans les propriétés de projet puisque pouchin > refuse de tourner sur un pc où visual studio n'est pas installé tant que > l'on a pas installé : > http://www.apachelounge.com/download/vcredist_x86-sp1.exe (c f : > http://www.developpez.net/forums/archive/index.php/t-218493.html). Je ferai > des tests plus poussés dès que j'aurai le temps. > > Je comprend pas très bien ce qui refuse de fonctionner :( La compilation, ou le programme ? Pour ma part, j'ai jamais installé les VCRedist, d'aucune version. -- Laurent Baysse _______________________________________________ Pouchintv-dev mailing list Pouchintv-dev at baysse.fr https://listes.baysse.fr/listinfo/pouchintv-dev . Salut, j'ai testé sous un vista virtuel (vierge) sans prob From gingko at gingko.homeip.net Thu Aug 23 15:26:59 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 15:26:59 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_un_probl=E8me_dans_le_fic?= =?iso-8859-1?q?hier_projet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <000901c7e580$f57be2e0$0200a8c0@blot> Message-ID: <000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> ----- Original Message ----- From: "arupqfjm" To: "'Liste utilisée par les développeurs'" Sent: Thursday, August 23, 2007 2:27 PM Subject: Re: [Pouchintv-dev]Toujours un problème dans le fichier projet > Le programme ne fonctionne pas, mais uniquement sur un pc qui n'a pas > visual > studio d'installé, c'est pourquoi aucun développeur du projet n'a eu de > problèmes. Mais vu que pour l'instant je développe sur un ordi et je teste > sur un autre (où il n'y a pas visual studio), j'ai remarqué ce problème. > Le > message d'erreur exact est : "Cette application n'a pas pu démarrer car la > configuration de l'application est incorrecte. Réinstaller l'application > pourrait résoudre ce problème." et il s'affiche dès qu'on lance pouchin. Bonjour, Je n'ai pas vraiment l'opportunité de tester ça immédiatement vu que je suis en vacances, mais j'ai cru comprendre - et observer - il y a quelques semaines que cette situation se produisait uniquement avec les compilations en mode "debug", et ce pour la raison très simple que les versions debug nécessitent la présence des version debug des DLL correspondant aux bibliothèques des programmes C/C++ et que ces versions des DLL n'existent que sur les systèmes ayant le compilateur installé. Bon, je dis peut-être une connerie, mais je vous invite quand même à vous assurer que, si vous exécutez sur des ordis n'ayant pas Visual Studio installé, vous le fassiez avec des compilations "Release" et non pas des compilations "Debug" ... ... ou alors copiez les DLL "Debug" sur ces ordis en même temps. Gingko From matmaul at gmail.com Thu Aug 23 15:38:53 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Thu, 23 Aug 2007 15:38:53 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <200708231430376877830@r4dius.net> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> Message-ID: <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> normal les redist sont fournies et installé avec visual :) est-ce qu'il n'y aurait pas dans le code des fonctions made in microsoft au lieu de leur équivalent standard ? genre les fonctions de traitement de chaines avec un _s à la fin ? je crois que j'ai trouvé le pb (à tester) : y'a des wscat_s et des fopen_s dans ini.cpp je commit, et laisse le soin à radius de tester au fait il sert à quoi le fichier afxres.h ??? Le 23/08/07, radius a écrit : > arupqfjm a écrit : > > Il y a toujours un problème dans les propriétés de projet puisque pouchin > > refuse de tourner sur un pc où visual studio n'est pas installé tant que > > l'on a pas installé : > > http://www.apachelounge.com/download/vcredist_x86-sp1.exe (c f : > > http://www.developpez.net/forums/archive/index.php/t-218493.html). Je ferai > > des tests plus poussés dès que j'aurai le temps. > > > > > Je comprend pas très bien ce qui refuse de fonctionner :( > La compilation, ou le programme ? > Pour ma part, j'ai jamais installé les VCRedist, d'aucune version. > > -- > Laurent Baysse > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > . > > Salut, > j'ai testé sous un vista virtuel (vierge) sans prob > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From pouchintv-svn at baysse.fr Thu Aug 23 15:43:18 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Thu, 23 Aug 2007 15:43:18 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk Message-ID: <20070823134318.1CD3F5F281@mail.baysse.fr> Author: matmaul Date: 2007-08-23 15:43:17 +0200 (Thu, 23 Aug 2007) New Revision: 34 Modified: trunk/ini.cpp trunk/main.cpp Log: remplacement des fonctions s?\195?\169curis?\195?\169es made in microsoft (celles qui finissent en _s) par leur ?\195?\169quivalentes standard. Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-22 19:13:04 UTC (rev 33) +++ trunk/ini.cpp 2007-08-23 13:43:17 UTC (rev 34) @@ -46,7 +46,7 @@ { wchar_t file[1024]; GetCurrentDirectory(_countof(file), file); - wcscat_s(file, _countof(file), scan_ini); + wcsncat(file, scan_ini, _countof(file)); UINT freq_offset = GetPrivateProfileInt(ville, L"Offset", 167, file); @@ -167,7 +167,7 @@ int nbProgrammes = (int)Programmes.size(); FILE * fop; - if (fopen_s(&fop, "programmes.xml", "w")) { + if (fop=fopen("programmes.xml", "w")) { return; } @@ -283,7 +283,7 @@ int nbChaines = (int)Canaux.size(); FILE * fop; - if (fopen_s(&fop, "chaines.xml", "w")) { + if (fop=fopen("chaines.xml", "w")) { return; } @@ -374,7 +374,7 @@ wchar_t fileName[1024]; GetCurrentDirectory(_countof(fileName), fileName); - wcscat_s(fileName, _countof(fileName), config_file); + wcsncat(fileName, config_file, _countof(fileName)); WritePrivateProfileString(ini_config, ini_tuner, nom_tuner, fileName); @@ -469,7 +469,7 @@ { wchar_t fileName[1024]; GetCurrentDirectory(_countof(fileName), fileName); - wcscat_s(fileName, _countof(fileName), config_file); + wcsncat(fileName, config_file, _countof(fileName)); GetPrivateProfileString(ini_config, ini_tuner, NULL, nom_tuner, _countof(nom_tuner), fileName); @@ -597,7 +597,7 @@ wchar_t fileName[1024]; GetCurrentDirectory(_countof(fileName), fileName); - wcscat_s(fileName, _countof(fileName), scan_ini); + wcsncat(fileName, scan_ini, _countof(fileName)); GetPrivateProfileSectionNames(strings, _countof(strings), fileName); Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-22 19:13:04 UTC (rev 33) +++ trunk/main.cpp 2007-08-23 13:43:17 UTC (rev 34) @@ -52,6 +52,9 @@ static wchar_t szAppName[]=L"Pouchin TV Mod"; HWND hWnd; +HWND hidden; +HWND hh; + static HWND hStatus; static HINSTANCE hInst; static HMENU mainMenu; @@ -3140,6 +3143,10 @@ time_context_quit = GetTickCount(); break; + case WM_ACTIVATE: + SetActiveWindow(hh); + break; + case WM_ENTERIDLE: { if (wParam == MSGF_DIALOGBOX && use_dialog_callback) @@ -3197,10 +3204,11 @@ { MSG msg; + HWND hwnd; + HWND hidden_hwnd; WNDCLASS wndclass; - HWND hidden_hwnd; - HWND hwnd; + hInst = hInstance; CreateMutex(NULL, TRUE, szAppName); @@ -3265,6 +3273,8 @@ return 0; } + hidden = hidden_hwnd; + hwnd = CreateWindowEx(0, szAppName, L"Pouchin TV Mod", @@ -3273,10 +3283,14 @@ win_y, win_w, win_h, + hidden_hwnd, NULL, - NULL, hInstance, NULL); + + hh = hwnd; + + SetActiveWindow(hh); // make sure window was created if (!hwnd) { From pouchintv-svn at baysse.fr Thu Aug 23 15:54:53 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Thu, 23 Aug 2007 15:54:53 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r35 - trunk Message-ID: <20070823135453.7D6285F281@mail.baysse.fr> Author: matmaul Date: 2007-08-23 15:54:52 +0200 (Thu, 23 Aug 2007) New Revision: 35 Modified: trunk/epgfilter.cpp trunk/ini.cpp trunk/main.cpp Log: m?\195?\170me chose Modified: trunk/epgfilter.cpp =================================================================== --- trunk/epgfilter.cpp 2007-08-23 13:43:17 UTC (rev 34) +++ trunk/epgfilter.cpp 2007-08-23 13:54:52 UTC (rev 35) @@ -160,7 +160,7 @@ FileTimeToSystemTime(&lft, &st); emi.debut2 = st; - sprintf_s(emi.debut_str, 32, "%02i:%02i:%02i", st.wHour, st.wMinute, st.wSecond); + sprintf(emi.debut_str, "%02i:%02i:%02i", st.wHour, st.wMinute, st.wSecond); int heure = hex_to_dec(p[offset+7]); int min = hex_to_dec(p[offset+8]); @@ -177,7 +177,7 @@ FileTimeToSystemTime(&lft, &st); emi.fin2 = st; - sprintf_s(emi.fin, 32, "%02i:%02i:%02i", st.wHour, st.wMinute, st.wSecond); + sprintf(emi.fin, "%02i:%02i:%02i", st.wHour, st.wMinute, st.wSecond); offset+=12; Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-23 13:43:17 UTC (rev 34) +++ trunk/ini.cpp 2007-08-23 13:54:52 UTC (rev 35) @@ -391,7 +391,7 @@ WritePrivateProfileString(ini_config, ini_strict, exact_match ? L"1":L"0", fileName); wchar_t valeur[64]; - _itow_s(chaineCourante, valeur, _countof(valeur), 10); + _itow(chaineCourante, valeur, 10); WritePrivateProfileString(ini_config, ini_chaine_courante, valeur, fileName); WritePrivateProfileString(ini_config, ini_rep_video, video_dir, fileName); @@ -443,25 +443,25 @@ WritePrivateProfileString(ini_config, ini_full_screen, full_screen ? L"Vrai" : L"Faux", fileName); - _itow_s(zoom_ratio, valeur, _countof(valeur), 10); + _itow(zoom_ratio, valeur, 10); WritePrivateProfileString(ini_config, ini_zoom_ratio, valeur, fileName); RECT rect; GetWindowRect(hWnd, &rect); - _itow_s(rect.left, valeur, _countof(valeur), 10); + _itow(rect.left, valeur, 10); WritePrivateProfileString(ini_config, ini_x_fenetre, valeur, fileName); - _itow_s(rect.top, valeur, _countof(valeur), 10); + _itow(rect.top, valeur, 10); WritePrivateProfileString(ini_config, ini_y_fenetre, valeur, fileName); - _itow_s(rect.right-rect.left, valeur, _countof(valeur), 10); + _itow(rect.right-rect.left, valeur, 10); WritePrivateProfileString(ini_config, ini_largeur_fenetre, valeur, fileName); - _itow_s(rect.bottom-rect.top, valeur, _countof(valeur), 10); + _itow(rect.bottom-rect.top, valeur, 10); WritePrivateProfileString(ini_config, ini_hauteur_fenetre, valeur, fileName); - _itow_s((volumeCourant + 10000) / 100, valeur, _countof(valeur), 10); + _itow((volumeCourant + 10000) / 100, valeur, 10); WritePrivateProfileString(ini_config, ini_volume, valeur, fileName); } Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-23 13:43:17 UTC (rev 34) +++ trunk/main.cpp 2007-08-23 13:54:52 UTC (rev 35) @@ -123,7 +123,7 @@ DWORD cnt; va_start(argptr, fmt); - cnt = vswprintf_s(s, _countof(s), fmt, argptr); + cnt = vswprintf(s, _countof(s), fmt, argptr); //cnt = wsprintfW(s, fmt, argptr); va_end(argptr); @@ -1749,7 +1749,7 @@ { HWND hText = GetDlgItem(hwndDlg, IDC_SIGNAL_QUALITY); wchar_t buf[256]; - swprintf_s(buf, 256, L"%i", l); + swprintf(buf, 256, L"%i", l); SetWindowText(hText, buf); } @@ -1757,7 +1757,7 @@ { HWND hText = GetDlgItem(hwndDlg, IDC_SIGNAL_STRENGTH); wchar_t buf[256]; - swprintf_s(buf, 256, L"%i", l); + swprintf(buf, 256, L"%i", l); SetWindowText(hText, buf); } } @@ -2533,7 +2533,7 @@ carac = strpbrk(nom_chaine, "\"*/:<>?\\|"); } - swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.bmp", screenshots_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.bmp", screenshots_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); HANDLE file = CreateFile(nom, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); @@ -2577,7 +2577,7 @@ carac = strpbrk(nom_chaine, "\"*/:<>?\\|"); } - swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); int video = Canaux[chaineCourante].video_pid ? Canaux[chaineCourante].video_pid : Canaux[chaineCourante].mpeg4_pid; @@ -2608,7 +2608,7 @@ carac = strpbrk(nom_chaine, "\"*/:<>?\\|"); } - swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); int video = Canaux[chaineCourante].video_pid ? Canaux[chaineCourante].video_pid : Canaux[chaineCourante].mpeg4_pid; @@ -2631,7 +2631,7 @@ SYSTEMTIME st; GetLocalTime(&st); - swprintf_s(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); ISampleGrabberCB * pCallback = new CSampleGrabber(nom); @@ -2973,18 +2973,18 @@ switch(Programmes[next_record].methode) { case 0: - swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); video = Canaux[index].video_pid ? Canaux[index].video_pid : Canaux[index].mpeg4_pid; pCallback = new CSampleGrabber(nom, Canaux[index].pmt_pid, video, Canaux[index].son, Canaux[index].nb_son, Canaux[index].autre, Canaux[index].nb_autre); break; case 1: - swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); video = Canaux[index].video_pid ? Canaux[index].video_pid : Canaux[index].mpeg4_pid; son = Canaux[index].son[index_son].pid; pCallback = new CSampleGrabber(nom, video, son); break; case 2: - swprintf_s(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); pCallback = new CSampleGrabber(nom); break; } From gingko at gingko.homeip.net Thu Aug 23 16:00:12 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 16:00:12 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk References: <20070823134318.1CD3F5F281@mail.baysse.fr> Message-ID: <006901c7e58d$ed8d5340$0f00a8c0@gillesvaio> ----- Original Message ----- From: To: Sent: Thursday, August 23, 2007 3:43 PM Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk > Author: matmaul > Date: 2007-08-23 15:43:17 +0200 (Thu, 23 Aug 2007) > New Revision: 34 > > Modified: > trunk/ini.cpp > trunk/main.cpp > Log: > remplacement des fonctions s?\195?\169curis?\195?\169es made in microsoft > (celles qui finissent en _s) par leur ?\195?\169quivalentes standard. > > Modified: trunk/ini.cpp Sans vouloir être vexant, je ne suis pas certain que ce soit la chose à faire ... Gingko From matmaul at gmail.com Thu Aug 23 16:09:27 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Thu, 23 Aug 2007 16:09:27 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk In-Reply-To: <006901c7e58d$ed8d5340$0f00a8c0@gillesvaio> References: <20070823134318.1CD3F5F281@mail.baysse.fr> <006901c7e58d$ed8d5340$0f00a8c0@gillesvaio> Message-ID: <20fbb8bc0708230709o7ec60626o34b5b3e7c97b5559@mail.gmail.com> non mais c'est de la paranoia ces fonctions surtout dans une application non critique comme celle là, puis j'ai utilisé les équivalentes standard sécurisées quand elles étaient disponibles dans la biblio standard. Le 23/08/07, Gingko a écrit : > > ----- Original Message ----- > From: > To: > Sent: Thursday, August 23, 2007 3:43 PM > Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk > > > > Author: matmaul > > Date: 2007-08-23 15:43:17 +0200 (Thu, 23 Aug 2007) > > New Revision: 34 > > > > Modified: > > trunk/ini.cpp > > trunk/main.cpp > > Log: > > remplacement des fonctions s?\195?\169curis?\195?\169es made in microsoft > > (celles qui finissent en _s) par leur ?\195?\169quivalentes standard. > > > > Modified: trunk/ini.cpp > > Sans vouloir être vexant, je ne suis pas certain que ce soit la chose à > faire ... > > Gingko > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From gingko at gingko.homeip.net Thu Aug 23 16:11:50 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 16:11:50 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> Message-ID: <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> ----- Original Message ----- From: "Mathieu Velten" To: "Liste utilisée par les développeurs" Sent: Thursday, August 23, 2007 3:38 PM Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > normal les redist sont fournies et installé avec visual :) > est-ce qu'il n'y aurait pas dans le code des fonctions made in > microsoft au lieu de leur équivalent standard ? genre les fonctions de > traitement de chaines avec un _s à la fin ? > > je crois que j'ai trouvé le pb (à tester) : y'a des wscat_s et des > fopen_s dans ini.cpp > > je commit, et laisse le soin à radius de tester > > au fait il sert à quoi le fichier afxres.h ??? Quoi que vous fassiez, la bibliothèque utilisée vient de Microsoft. Fonctions standards ou pas. Les fonctions en "_s" doivent donc y être, si on utilise la version (en principe la plus récente) appropriée, que je suppose mise à jour avec Windows Update de temps à autre. Je crois que ça doit être "msvcrt.dll" en version Release et "msvcrtd.dll" en version Debug - ou une appellation analogue (dans \Windows\system32). Le fichier "afxres.h" est fourni avec la version complète de Microsoft Visual Studio, et je crois qu'il regroupe les "#include" liées aux ressources. Visual C++ Express n'ayant qu'une version "Light" du compilateur de ressources, ce fichier n'y est pas fourni. Mais je crois bien qu'il ne contient pas grand chose de plus lui-même qu'un #include de "windows.h". Personnellement, je lui ai substitué celui qui venait de mon Microsoft Visual Studio 6.0 professionnel. J'attends toujours que mon patron m'achète le Visual Studio 8 complet. Gingko From laurent at baysse.fr Thu Aug 23 16:15:58 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Thu, 23 Aug 2007 16:15:58 +0200 (CEST) Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> Message-ID: <16387.193.252.107.84.1187878558.squirrel@mail.baysse.fr> > > ----- Original Message ----- > From: "Mathieu Velten" > To: "Liste utilisée par les développeurs" > Sent: Thursday, August 23, 2007 3:38 PM > Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > > >> normal les redist sont fournies et installé avec visual :) >> est-ce qu'il n'y aurait pas dans le code des fonctions made in >> microsoft au lieu de leur équivalent standard ? genre les fonctions de >> traitement de chaines avec un _s à la fin ? >> >> je crois que j'ai trouvé le pb (à tester) : y'a des wscat_s et des >> fopen_s dans ini.cpp >> >> je commit, et laisse le soin à radius de tester >> >> au fait il sert à quoi le fichier afxres.h ??? > > Quoi que vous fassiez, la bibliothèque utilisée vient de Microsoft. > Fonctions standards ou pas. > > Les fonctions en "_s" doivent donc y être, si on utilise la version (en > principe la plus récente) appropriée, que je suppose mise à jour avec > Windows Update de temps à autre. > > Je crois que ça doit être "msvcrt.dll" en version Release et "msvcrtd.dll" > en version Debug - ou une appellation analogue (dans \Windows\system32). > > Le fichier "afxres.h" est fourni avec la version complète de Microsoft > Visual Studio, et je crois qu'il regroupe les "#include" liées aux > ressources. > > Visual C++ Express n'ayant qu'une version "Light" du compilateur de > ressources, ce fichier n'y est pas fourni. > Mais je crois bien qu'il ne contient pas grand chose de plus lui-même > qu'un > #include de "windows.h". > Personnellement, je lui ai substitué celui qui venait de mon Microsoft > Visual Studio 6.0 professionnel. J'attends toujours que mon patron > m'achète > le Visual Studio 8 complet. > > Gingko > Pour le fichier "afxres.h", je l'ai inclus de base (venant de MinGW) dans le répertoire des sources, comme ça, aucun soucis (y'a qu'à regarder les sources sur le svn :P ) Sinon, j'ai pas encore testé. J'ai un WinXP fraichement installé (sans beaucoup de softs, et avec les mises à jours). Je teste ce soir, si je peux, avant et après modifs des versions _s -- Laurent ....ooo...(°_°)...ooo.... From gingko at gingko.homeip.net Thu Aug 23 16:19:47 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 16:19:47 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk References: <20070823134318.1CD3F5F281@mail.baysse.fr><006901c7e58d$ed8d5340$0f00a8c0@gillesvaio> <20fbb8bc0708230709o7ec60626o34b5b3e7c97b5559@mail.gmail.com> Message-ID: <00b301c7e590$a970ecf0$0f00a8c0@gillesvaio> ----- Original Message ----- From: "Mathieu Velten" To: "Liste utilisée par les développeurs" Sent: Thursday, August 23, 2007 4:09 PM Subject: Re: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk > non mais c'est de la paranoia ces fonctions surtout dans une > application non critique comme celle là, puis j'ai utilisé les > équivalentes standard sécurisées quand elles étaient disponibles dans > la biblio standard. Il me semble que la tendance générale est (ou en tout cas devrait être) de remplacer les anciennes fonctions par celles-là, même ailleurs que chez Microsoft. Leur raison d'être est de ne plus avoir ces fonctions qui sont capables d'écrire dans des buffers sans en connaître la taille, et il est vrai qu'il y un moment que je trouvais ça un peu douteux. Leur usage n'est pas tellement dérangeant puisque la seule différence est justement d'ajouter la taille du buffer en paramètre toutes les fois où celle-ci a besoin d'être connue. Et il me semble que c'est une bonne habitude à prendre. Garder les anciennes a surtout pour utilité de faire en sorte que les anciens programmes restent compilables ... Gingko From matmaul at gmail.com Thu Aug 23 16:29:29 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Thu, 23 Aug 2007 16:29:29 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> Message-ID: <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> je suis quasi sur que la dépendance envers les dll CRT n'est plus nécessaire une fois que les fonctions sécurisées ont été enlevé. Je crois que c'est les seules fonctions du CRT qu'on utilise(ait) dans pouchin. radius tu regardes ca quand t'as le temps ? les CRT ne sont pas livrés en standard avec windows et en plus elles changent à chaque version de visual (msvcrt80.dll, msvcrt71.dll etc), donc si on peut éviter de les utiliser c'est pas plus mal je pense... en fait le fichier afxres.h sert strictement à rien... Il est même pas "includer" quelque part dans le projet => je le vire. Le 23/08/07, Gingko a écrit : > > ----- Original Message ----- > From: "Mathieu Velten" > To: "Liste utilisée par les développeurs" > Sent: Thursday, August 23, 2007 3:38 PM > Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > > > > normal les redist sont fournies et installé avec visual :) > > est-ce qu'il n'y aurait pas dans le code des fonctions made in > > microsoft au lieu de leur équivalent standard ? genre les fonctions de > > traitement de chaines avec un _s à la fin ? > > > > je crois que j'ai trouvé le pb (à tester) : y'a des wscat_s et des > > fopen_s dans ini.cpp > > > > je commit, et laisse le soin à radius de tester > > > > au fait il sert à quoi le fichier afxres.h ??? > > Quoi que vous fassiez, la bibliothèque utilisée vient de Microsoft. > Fonctions standards ou pas. > > Les fonctions en "_s" doivent donc y être, si on utilise la version (en > principe la plus récente) appropriée, que je suppose mise à jour avec > Windows Update de temps à autre. > > Je crois que ça doit être "msvcrt.dll" en version Release et "msvcrtd.dll" > en version Debug - ou une appellation analogue (dans \Windows\system32). > > Le fichier "afxres.h" est fourni avec la version complète de Microsoft > Visual Studio, et je crois qu'il regroupe les "#include" liées aux > ressources. > > Visual C++ Express n'ayant qu'une version "Light" du compilateur de > ressources, ce fichier n'y est pas fourni. > Mais je crois bien qu'il ne contient pas grand chose de plus lui-même qu'un > #include de "windows.h". > Personnellement, je lui ai substitué celui qui venait de mon Microsoft > Visual Studio 6.0 professionnel. J'attends toujours que mon patron m'achète > le Visual Studio 8 complet. > > Gingko > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From laurent at baysse.fr Thu Aug 23 16:33:02 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Thu, 23 Aug 2007 16:33:02 +0200 (CEST) Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> Message-ID: <16645.193.252.107.84.1187879582.squirrel@mail.baysse.fr> > je suis quasi sur que la dépendance envers les dll CRT n'est plus > nécessaire une fois que les fonctions sécurisées ont été enlevé. Je > crois que c'est les seules fonctions du CRT qu'on utilise(ait) dans Si, il est inclus par VC dans ses resources, dans le fichier "res.rc". tu ne peux pas le virer :'(, car si tu vire la ligne, VC la recréera automatiquement lors de la modif des resources depuis l'interface graphique :( -- Laurent ....ooo...(°_°)...ooo.... From gingko at gingko.homeip.net Thu Aug 23 16:38:46 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 16:38:46 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><200708231430376877830@r4dius.net><20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com><008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> Message-ID: <000801c7e593$50c24290$0f00a8c0@gillesvaio> ----- Original Message ----- From: "Mathieu Velten" To: "Liste utilisée par les développeurs" Sent: Thursday, August 23, 2007 4:29 PM Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > les CRT ne sont pas livrés en standard avec windows et en plus elles > changent à chaque version de visual (msvcrt80.dll, msvcrt71.dll etc), > donc si on peut éviter de les utiliser c'est pas plus mal je pense... Ca, j'ai bien peur que vous n'ayiez pas le choix. J'ai cru comprendre que les compilations de Visual C++ doivent obligatoirement être liées à la DLL qui leur correspond. Sans ça, même les fonctions standards du C ne sont pas disponibles. > en fait le fichier afxres.h sert strictement à rien... Il est même pas > "includer" quelque part dans le projet => je le vire. Et si, il est "#includé" quelque part dans le projet : dans le fichier des ressources ! (ici "res.rc"). Il est indispensable aux compilations avec Visual C++ Express, ou alors il faut modifier son inclusion dans les ressources, mais je ne suis pas certain que ce soit recommandable non plus (parce que ce fichier est en principe généré ainsi automatiquement dans le Visual Studio complet). Maintenant, les utilisateurs de Visual C++ Express peuvent toujours s'en mettre une copie ailleurs que dans le répertoire de PouchinTV .... Gingko From matmaul at gmail.com Thu Aug 23 16:46:40 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Thu, 23 Aug 2007 16:46:40 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <000801c7e593$50c24290$0f00a8c0@gillesvaio> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> <000801c7e593$50c24290$0f00a8c0@gillesvaio> Message-ID: <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> > Ca, j'ai bien peur que vous n'ayiez pas le choix. > J'ai cru comprendre que les compilations de Visual C++ doivent > obligatoirement être liées à la DLL qui leur correspond. > > Sans ça, même les fonctions standards du C ne sont pas disponibles. à vérifier mais il me semble que les dll CRT ne sont nécessaires que quand on utilise des fonctions de la biblio CRT sinon visual utilise les biblio standard de windows il me semble. > Et si, il est "#includé" quelque part dans le projet : dans le fichier des > ressources ! (ici "res.rc"). > > Il est indispensable aux compilations avec Visual C++ Express, ou alors il > faut modifier son inclusion dans les ressources, mais je ne suis pas certain > que ce soit recommandable non plus (parce que ce fichier est en principe > généré ainsi automatiquement dans le Visual Studio complet). > > Maintenant, les utilisateurs de Visual C++ Express peuvent toujours s'en > mettre une copie ailleurs que dans le répertoire de PouchinTV .... à ok j'ai visual pro c'est pour ca que ca compile sans chez moi. (et oui visual pro c'est gratuit pour les étudiants :P ) From laurent at baysse.fr Thu Aug 23 16:54:57 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Thu, 23 Aug 2007 16:54:57 +0200 (CEST) Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> <000801c7e593$50c24290$0f00a8c0@gillesvaio> <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> Message-ID: <17064.193.252.107.84.1187880897.squirrel@mail.baysse.fr> > à ok j'ai visual pro c'est pour ca que ca compile sans chez moi. > (et oui visual pro c'est gratuit pour les étudiants :P ) Merde, j'aurai du rester plus longtemps sur les bancs des écoles alors -- Laurent ....ooo...(°_°)...ooo.... From gingko at gingko.homeip.net Thu Aug 23 17:04:41 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 17:04:41 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><200708231430376877830@r4dius.net><20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com><008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio><20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com><000801c7e593$50c24290$0f00a8c0@gillesvaio> <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> Message-ID: <001001c7e596$ef973df0$0f00a8c0@gillesvaio> ----- Original Message ----- From: "Mathieu Velten" To: "Liste utilisée par les développeurs" Sent: Thursday, August 23, 2007 4:46 PM Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet >> Ca, j'ai bien peur que vous n'ayiez pas le choix. >> J'ai cru comprendre que les compilations de Visual C++ doivent >> obligatoirement être liées à la DLL qui leur correspond. >> >> Sans ça, même les fonctions standards du C ne sont pas disponibles. > > à vérifier mais il me semble que les dll CRT ne sont nécessaires que > quand on utilise des fonctions de la biblio CRT sinon visual utilise > les biblio standard de windows il me semble. Et la biblio standard de Windows, elle s'appelle comment, à ton avis ? ... :-) Gingko From matmaul at gmail.com Thu Aug 23 17:37:00 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Thu, 23 Aug 2007 17:37:00 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <001001c7e596$ef973df0$0f00a8c0@gillesvaio> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> <000801c7e593$50c24290$0f00a8c0@gillesvaio> <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> <001001c7e596$ef973df0$0f00a8c0@gillesvaio> Message-ID: <20fbb8bc0708230837t411b6475l2be47b8f4d42d1af@mail.gmail.com> aparement pour pouvoir se passer des runtimes visual 2005 il faut aussi changer l'option "biblio runtime" de "dll multithread" à "multithread" c'était l'option que j'avais mis au début mais lolo est passé a "dll multithread" a la rev 27. lolo pourquoi tu avais fait cette modif ? t'arrive pas à compiler avec "multithread" ? Le 23/08/07, Gingko a écrit : > ----- Original Message ----- > From: "Mathieu Velten" > To: "Liste utilisée par les développeurs" > Sent: Thursday, August 23, 2007 4:46 PM > Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > > > >> Ca, j'ai bien peur que vous n'ayiez pas le choix. > >> J'ai cru comprendre que les compilations de Visual C++ doivent > >> obligatoirement être liées à la DLL qui leur correspond. > >> > >> Sans ça, même les fonctions standards du C ne sont pas disponibles. > > > > à vérifier mais il me semble que les dll CRT ne sont nécessaires que > > quand on utilise des fonctions de la biblio CRT sinon visual utilise > > les biblio standard de windows il me semble. > > Et la biblio standard de Windows, elle s'appelle comment, à ton avis ? ... > :-) > > Gingko > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From pouchintv-svn at baysse.fr Thu Aug 16 18:12:06 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Thu, 16 Aug 2007 18:12:06 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] gingko | r19 - trunk Message-ID: <20070816161206.1823A5F239@mail.baysse.fr> Author: gingko Date: 2007-08-16 15:40:17 +0200 (jeu, 16 aoû 2007) New Revision: 19 Modified: trunk/graph.cpp Log: Mise à jour mineure (espaces en fin de ligne et un attribut du Log DirectShow changé dans "graph.cpp"). C'est un peu aussi pour tester la livraison SVN ... :-) Modifié: trunk/graph.cpp =================================================================== --- trunk/graph.cpp 2007-08-15 13:45:58 UTC (rev 18) +++ trunk/graph.cpp 2007-08-16 13:40:17 UTC (rev 19) @@ -1,23 +1,23 @@ -/* - * graph.cpp - * Copyright (C) 2006 Pouchin - * - * This file is part of Pouchin TV, a free DVB-T viewer. - * See http://pouchinteve.free.fr/ for updates. - * - * Pouchin TV is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Pouchin TV is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +/* + * graph.cpp + * Copyright (C) 2006 Pouchin + * + * This file is part of Pouchin TV, a free DVB-T viewer. + * See http://pouchinteve.free.fr/ for updates. + * + * Pouchin TV is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Pouchin TV is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "network.h" @@ -71,7 +71,7 @@ static DWORD pdwRegister; -static HRESULT AddToRot() +static HRESULT AddToRot() { IMoniker * pMoniker; IRunningObjectTable *pROT; @@ -231,7 +231,7 @@ if (hr == S_OK) { bool found = false; - + for (ULONG j = 0; j < Interfaces; j++) { if (Interface[j] == IID_IBDA_FrequencyFilter) { found = true; @@ -277,7 +277,7 @@ if (hr == S_OK) { bool found = false; - + for (ULONG j = 0; j < Interfaces; j++) { if (Interface[j] == IID_IBDA_SignalStatistics ) { found = true; @@ -457,7 +457,7 @@ pMixControl->SetMixingPrefs(MyMixingPrefs); - pMixControl->Release(); + pMixControl->Release(); MyIVMRDeinterlaceControl * pDeint; hr = pVMR->QueryInterface(&pDeint); @@ -974,7 +974,7 @@ // on logge #if LOG_DSHOW - logFile = CreateFile(L"log_file.txt", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + logFile = CreateFile(L"log_file.txt", GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (logFile != INVALID_HANDLE_VALUE) { pGraph->SetLogFile((DWORD_PTR)logFile); } From pouchintv-dev at baysse.fr Thu Aug 16 22:25:39 2007 From: pouchintv-dev at baysse.fr (=?iso-8859-1?q?Liste_utilis=E9e_par_les_d=E9veloppeurs?=) Date: Thu, 16 Aug 2007 22:25:39 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk Message-ID: <20070816202539.881435F23B@mail.baysse.fr> Author: lolo_32 Date: 2007-08-16 22:25:39 +0200 (Thu, 16 Aug 2007) New Revision: 20 Modified: trunk/ini.cpp trunk/main.cpp trunk/main.h trunk/res.rc trunk/resource.h Log: Port de radius: affiche un message de confirmation si un enregistrement est en cours, et que l'on quitte PouchinTVMod. Modification des menus, en rajoutant les "..." ?\195?\160 toutes les entr?\195?\169es ouvrant une nouvelle fen?\195?\170tre (comme le veut la norme), et changement de quelques lettres d'acc?\195?\168s rapide dans les menus. Ajout de quelques commentaires dans les fichiers sources. Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-16 13:40:17 UTC (rev 19) +++ trunk/ini.cpp 2007-08-16 20:25:39 UTC (rev 20) @@ -350,6 +350,7 @@ static wchar_t ini_always_on_top[] = L"Fenêtre toujours devant"; static wchar_t ini_ac3_defaut[] = L"Utilise AC3 quand dispo"; static wchar_t ini_suspend_minimized[] = L"Suspendre si minimisé"; +static wchar_t ini_close_confirm[] = L"Confirmation de fermeture si enregistrement"; static wchar_t ini_minimize_system_tray[] = L"Minimiser dans le system tray"; static wchar_t ini_use_all_width[] = L"Utilise toute la largeur"; @@ -428,6 +429,8 @@ WritePrivateProfileString(ini_config, ini_suspend_minimized, suspend_minimized ? L"Vrai" : L"Faux", fileName); + WritePrivateProfileString(ini_config, ini_close_confirm, close_confirm ? L"Vrai" : L"Faux", fileName); + WritePrivateProfileString(ini_config, ini_minimize_system_tray, minimize_system_tray ? L"Vrai" : L"Faux", fileName); WritePrivateProfileString(ini_config, ini_use_all_width, use_all_width ? L"Vrai" : L"Faux", fileName); @@ -541,6 +544,13 @@ suspend_minimized = true; } + GetPrivateProfileString(ini_config, ini_close_confirm, NULL, prio, _countof(prio), fileName); + + if (lstrcmp(prio, L"Vrai") == 0) + { + close_confirm = true; + } + GetPrivateProfileString(ini_config, ini_minimize_system_tray, NULL, prio, _countof(prio), fileName); if (lstrcmp(prio, L"Vrai") == 0) Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-16 13:40:17 UTC (rev 19) +++ trunk/main.cpp 2007-08-16 20:25:39 UTC (rev 20) @@ -91,6 +91,7 @@ bool on_top = false; bool use_ac3 = false; bool suspend_minimized = false; +bool close_confirm = false; bool minimize_system_tray = false; bool minimize = false; bool full_screen = false; @@ -496,7 +497,23 @@ info.fState = suspend_minimized ? MFS_CHECKED : MFS_UNCHECKED; SetMenuItemInfo(hMenu, IDM_SUSPEND, FALSE, &info); + + } + DrawMenuBar(h); +} +static void update_close_confirm_menu(HWND h) +{ + HMENU hMenu = GetMenu(h); + + if (hMenu != NULL) { + MENUITEMINFO info; + info.cbSize = sizeof(MENUITEMINFO); + info.fMask = MIIM_STATE; + info.fState = close_confirm ? MFS_CHECKED : MFS_UNCHECKED; + + SetMenuItemInfo(hMenu, IDM_CLOSE_CONFIRM, FALSE, &info); + } DrawMenuBar(h); } @@ -562,6 +579,7 @@ update_all_width_and_ar_menu(h); update_ac3_menu(h); update_suspend_menu(h); + update_close_confirm_menu(h); update_system_tray_menu(h); menu_recording(h, recording); set_priority(); @@ -1676,7 +1694,44 @@ } } +/** + * Fonction de gestion de la fenêtre de confirmation d'arrêt + **/ +static INT_PTR CALLBACK ConfirmCloseProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { + switch (uMsg) { + case WM_INITDIALOG: + // Initialisation de la fenêtre + // Renvoie True car la fenêtre a été initialisée + return TRUE; + + case WM_COMMAND: + // Commande reçue (clic, etc...) + switch(LOWORD(wParam)) { + + case IDOK: + // Clic sur le bouton OK + if (recording) { + pSample->SetCallback(NULL, 0); + menu_recording(hWnd, false); + } + EndDialog(hwndDlg, 1); + return TRUE; + + case IDCANCEL: + // Clic sur le bouton Annuler + EndDialog(hwndDlg, 0); + return TRUE; + } + // Autre commandes, traitées par Windows + return FALSE; + + default: + // Autre message, traité par Windows + return FALSE; + } +} + static void update_signal_dialog(HWND hwndDlg) { BOOLEAN boo; @@ -2086,7 +2141,9 @@ } } -// Fonction sélectionnant le répertoire initial lors de la demande d'un dossier +/** + * Fonction sélectionnant le répertoire initial lors de la demande d'un dossier + **/ int CALLBACK BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData) { if(uMsg == BFFM_INITIALIZED) @@ -2096,7 +2153,9 @@ static POINT coord_down; -// main window procedure +/** + * main window procedure + **/ static LRESULT WINAPI MainWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { LRESULT lRet = 0; @@ -2287,11 +2346,22 @@ break; case WM_CLOSE: - if (minimize) ShowWindow(hwnd, SW_RESTORE); + if (minimize) + ShowWindow(hwnd, SW_RESTORE); if (full_screen) { switch_fullscreen(); full_screen = true; } + if (recording && close_confirm) { + // Si on enregistre et que l'on souhaite une confirmation, + // affiche la fenêtre de confirmation + if (DialogBox(hInst, MAKEINTRESOURCE(IDD_CLOSE_CONFIRM), hwnd, ConfirmCloseProc) == 1) { + // Vide, car on quitte + } + else + // On a appuyé sur Annuler, donc, on ne quitte pas + break; + } DestroyWindow(hwnd); break; @@ -2708,6 +2778,12 @@ update_suspend_menu(hWnd); break; + case IDM_CLOSE_CONFIRM: + // Option du menu demandant confirmation lorsque l'on quitte + close_confirm = !close_confirm; + update_close_confirm_menu(hWnd); + break; + case IDM_SYSTEM_TRAY: minimize_system_tray = !minimize_system_tray; update_system_tray_menu(hWnd); Modified: trunk/main.h =================================================================== --- trunk/main.h 2007-08-16 13:40:17 UTC (rev 19) +++ trunk/main.h 2007-08-16 20:25:39 UTC (rev 20) @@ -30,6 +30,7 @@ extern wchar_t video_dir[512]; extern bool suspend_minimized; +extern bool close_confirm; extern bool minimize_system_tray; extern bool use_msn; extern bool on_top; Modified: trunk/res.rc =================================================================== --- trunk/res.rc 2007-08-16 13:40:17 UTC (rev 19) +++ trunk/res.rc 2007-08-16 20:25:39 UTC (rev 20) @@ -65,29 +65,29 @@ BEGIN POPUP "&Fichier" BEGIN - MENUITEM "&Configuration", IDM_CONFIG + MENUITEM "&Configuration...", IDM_CONFIG MENUITEM SEPARATOR - MENUITEM "Répertoire &vidéo", IDM_MPEG2_DIR - MENUITEM "Répertoire &screenshots", IDM_SCREENSHOTS_DIR + MENUITEM "Répertoire &vidéo...", IDM_MPEG2_DIR + MENUITEM "Répertoire &screenshots...", IDM_SCREENSHOTS_DIR MENUITEM SEPARATOR MENUITEM "&Quitter", IDM_QUIT END POPUP "Fi<res" BEGIN - MENUITEM "Codec &MPEG2", IDM_MPEG2 - MENUITEM "Codec a&udio", IDM_AUDIO - MENUITEM "Codec &AC3", IDM_AC3 + MENUITEM "Codec &MPEG2...", IDM_MPEG2 + MENUITEM "Codec a&udio...", IDM_AUDIO + MENUITEM "Codec &AC3...", IDM_AC3 MENUITEM SEPARATOR - MENUITEM "&VMR", IDM_VMR - MENUITEM "&DSound", IDM_DSOUND - MENUITEM "DSound A&C3", IDM_DSOUNDAC3 + MENUITEM "&VMR...", IDM_VMR + MENUITEM "&DSound...", IDM_DSOUND + MENUITEM "DSound A&C3...", IDM_DSOUNDAC3 MENUITEM SEPARATOR - MENUITEM "D&emux", IDM_DEMUX + MENUITEM "D&emux...", IDM_DEMUX END - POPUP "&Commandes" + POPUP "C&ommandes" BEGIN - MENUITEM "&Zoomer\tMaj+Z", IDM_ZOOM - MENUITEM "D&ezoomer\tZ", IDM_DEZOOM + MENUITEM "Z&oomer\tMaj+Z", IDM_ZOOM + MENUITEM "De&zoomer\tZ", IDM_DEZOOM MENUITEM "&Utiliser toute la largeur\tW", IDM_STRETCH MENUITEM "Étirer la &vidéo\tE", IDM_NOAR MENUITEM SEPARATOR @@ -95,13 +95,13 @@ MENUITEM SEPARATOR MENUITEM "Touche &Mute\tM", IDM_MUTE MENUITEM "&Augmenter le volume\t+", IDM_VOL_AUG - MENUITEM "Dim&inuer le volume\t-", IDM_VOL_DIM + MENUITEM "&Diminuer le volume\t-", IDM_VOL_DIM END MENUITEM "C&haînes", IDM_CHAINES MENUITEM "&Pistes", IDM_PISTES POPUP "&Captures" BEGIN - MENUITEM "Enregistrements p&rogrammés", IDM_DELAYED_RECORD + MENUITEM "Enregistrements p&rogrammés...", IDM_DELAYED_RECORD MENUITEM "Enregistrer la chaine en &PS\tCtrl+Espace", IDM_RECORD_CHANNEL_PS MENUITEM "Enregistrer la chaine en &TS\tCtrl+T", IDM_RECORD_CHANNEL_TS MENUITEM "Enregistrer le &multiplex\tCtrl+M",IDM_RECORD_STREAM @@ -124,17 +124,18 @@ MENUITEM "&Inférieure à la normale", IDM_BELOW_NORMAL_PRIORITY END MENUITEM SEPARATOR - MENUITEM "&Guide des programmes\tG", IDM_EPG + MENUITEM "&Guide des programmes...\tG", IDM_EPG MENUITEM "Afficher le &nom de l'émission sous MSN", IDM_MSN MENUITEM "Utiliser l'&AC3 par défaut", IDM_AC3_DEF MENUITEM "&Suspendre si minimisé", IDM_SUSPEND - MENUITEM "&Minimiser dans le system tray", IDM_SYSTEM_TRAY + MENUITEM "&Minimiser dans le system tray", IDM_SYSTEM_TRAY + MENUITEM "Confirmation de &fermeture si enregistrement", IDM_CLOSE_CONFIRM MENUITEM SEPARATOR - MENUITEM "&Qualité du signal", IDM_SIGNAL + MENUITEM "&Qualité du signal...", IDM_SIGNAL END POPUP "&Aide" BEGIN - MENUITEM "À &propos\tCtrl+F1", IDM_ABOUT + MENUITEM "À &propos...\tCtrl+F1", IDM_ABOUT END END @@ -270,6 +271,15 @@ CTEXT "hh:mm:ss",IDC_STATIC,51,32,48,10 END +IDD_CLOSE_CONFIRM DIALOGEX 100, 100, 150, 75 +STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Confirmation" +FONT 8, "MS Shell Dlg", 400, 0, 0x1 +BEGIN + DEFPUSHBUTTON "Fermer",IDOK,22,54,50,14 + CTEXT "Un enregistrement est en cours",IDC_STATIC,21,25,107,10 + DEFPUSHBUTTON "Annuler",IDCANCEL,79,54,50,14 +END ///////////////////////////////////////////////////////////////////////////// // @@ -285,7 +295,7 @@ RIGHTMARGIN, 283 VERTGUIDE, 276 TOPMARGIN, 7 - BOTTOMMARGIN, 167 + BOTTOMMARGIN, 167 END IDD_ABOUT, DIALOG @@ -342,6 +352,14 @@ TOPMARGIN, 7 BOTTOMMARGIN, 68 END + + IDD_CLOSE_CONFIRM, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 143 + TOPMARGIN, 7 + BOTTOMMARGIN, 68 + END END #endif // APSTUDIO_INVOKED Modified: trunk/resource.h =================================================================== --- trunk/resource.h 2007-08-16 13:40:17 UTC (rev 19) +++ trunk/resource.h 2007-08-16 20:25:39 UTC (rev 20) @@ -2,6 +2,7 @@ // Microsoft Visual C++ generated include file. // Used by res.rc // +#define IDOK2 2 #define IDI_ICON1 101 #define IDR_MENU1 102 #define IDD_CONFIG 103 @@ -13,6 +14,7 @@ #define IDD_DELAYED_RECORD 110 #define IDD_PASWD 111 #define IDD_DELAYED_STOP 112 +#define IDD_CLOSE_CONFIRM 113 #define IDC_COMBO_VILLE 1001 #define IDC_COMBO_MPEG2 1002 #define IDC_COMBO_AUDIO 1003 @@ -29,6 +31,7 @@ #define IDC_SIGNAL_QUALITY 1017 #define IDC_SIGNAL_STRENGTH 1018 #define IDC_BUTTON1 1019 +#define IDC_SIGNAL_STRENGTH2 1020 #define IDC_ADD 1025 #define IDC_REMOVE 1026 #define IDC_DATE_START 1027 @@ -96,15 +99,16 @@ #define IDM_SYSTEM_TRAY 40102 #define IDM_DELAYED_RECORD 40104 #define IDM_DELAYED_STOP 40105 -#define IDM_NOAR 40106 +#define IDM_NOAR 40106 #define IDM_SUSPEND 40202 +#define IDM_CLOSE_CONFIRM 40203 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 122 -#define _APS_NEXT_COMMAND_VALUE 40203 +#define _APS_NEXT_COMMAND_VALUE 40204 #define _APS_NEXT_CONTROL_VALUE 1102 #define _APS_NEXT_SYMED_VALUE 121 #endif From pouchintv-dev at baysse.fr Thu Aug 16 23:06:05 2007 From: pouchintv-dev at baysse.fr (=?iso-8859-1?q?Liste_utilis=E9e_par_les_d=E9veloppeurs?=) Date: Thu, 16 Aug 2007 23:06:05 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r21 - trunk Message-ID: <20070816210605.25EAA5F23B@mail.baysse.fr> Author: lolo_32 Date: 2007-08-16 23:06:04 +0200 (Thu, 16 Aug 2007) New Revision: 21 Modified: trunk/epg.cpp trunk/epgfilter.cpp trunk/grabber.cpp trunk/graph.cpp trunk/ini.cpp trunk/main.cpp trunk/parse.cpp trunk/pmtfilter.cpp Log: Ajout d'un message en t?\195?\170te des fichiers CPP indiquant avec pr?\195?\169cision que les fichiers ont ?\195?\169t?\195?\169 modifi?\195?\169s, et ne correspondent plus ?\195?\160 la version originale (n?\195?\169cessit?\195?\169 de la GNU/GPL). Modified: trunk/epg.cpp =================================================================== --- trunk/epg.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/epg.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "base.h" Modified: trunk/epgfilter.cpp =================================================================== --- trunk/epgfilter.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/epgfilter.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "epgfilter.h" Modified: trunk/grabber.cpp =================================================================== --- trunk/grabber.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/grabber.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include Modified: trunk/graph.cpp =================================================================== --- trunk/graph.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/graph.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "network.h" Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/ini.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "base.h" Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/main.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include Modified: trunk/parse.cpp =================================================================== --- trunk/parse.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/parse.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "base.h" #include "main.h" Modified: trunk/pmtfilter.cpp =================================================================== --- trunk/pmtfilter.cpp 2007-08-16 20:25:39 UTC (rev 20) +++ trunk/pmtfilter.cpp 2007-08-16 21:06:04 UTC (rev 21) @@ -18,6 +18,11 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * + * This was changed from the Pouchin TV project, to use with + * a modified version of this software. + * See http://pouchintv.baysse.fr/ for updates. */ #include "pmtfilter.h" From pouchintv-dev at baysse.fr Thu Aug 16 23:39:28 2007 From: pouchintv-dev at baysse.fr (=?iso-8859-1?q?Liste_utilis=E9e_par_les_d=E9veloppeurs?=) Date: Thu, 16 Aug 2007 23:39:28 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk References: <20070816202539.881435F23B@mail.baysse.fr> Message-ID: <002901c7e04d$ecbd48c0$0a00a8c0@gilles> ----- Original Message ----- From: "Liste utilisée par les développeurs" To: Sent: Thursday, August 16, 2007 10:25 PM Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk > Author: lolo_32 > Date: 2007-08-16 22:25:39 +0200 (Thu, 16 Aug 2007) > New Revision: 20 > > Modified: > trunk/ini.cpp > trunk/main.cpp > trunk/main.h > trunk/res.rc > trunk/resource.h > Log: > Port de radius: affiche un message de confirmation si un enregistrement > est en cours, et que l'on quitte PouchinTVMod. > > Modification des menus, en rajoutant les "..." ?\195?\160 toutes les > entr?\195?\169es ouvrant une nouvelle fen?\195?\170tre (comme le veut la > norme), et changement de quelques lettres d'acc?\195?\168s rapide dans les > menus. > > Ajout de quelques commentaires dans les fichiers sources. Bonjour, J'ai vu la modif de message de confirmation. Très bonne idée .... mais en revanche, je pense que ça ne devrait pas être optionnel, mais au contraire toujours actif. Avoir ça comme option implique encore le risque qu'on oublie de sélectionner l'option. Or je vois ça comme aussi important que, par exemple dans un traitement de texte, avoir un dialogue de confirmation pour avertir qu'on n'a pas sauvegardé ses modifications. ... et dans un traitement de texte, il n'y a pas d'option pour demander si on veut avoir ce dialogue de confirmation : il y est toujours, quoi qu'on fasse ! Et là aussi, je pense que ce dialogue devrait être toujours présent. (sauf cas de "force majeure", comme par exemple extinction de l'ordinateur) Gingko P.S.: au fait, je viens de m'inscrire à cette liste, et aussi d'obtenir un accès SVN en écriture. En revanche, je ne pourrai pas en tirer pleinement parti immédiatement puisque je pars demain pour une semaine de villégiature ... :-) Ce qui ne m'empêchera pas de suivre ce qui se passe ici, mais bien sûr de façon un peu plus distante. From laurent at baysse.fr Fri Aug 17 09:30:35 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Fri, 17 Aug 2007 09:30:35 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk In-Reply-To: <002901c7e04d$ecbd48c0$0a00a8c0@gilles> References: <20070816202539.881435F23B@mail.baysse.fr> <002901c7e04d$ecbd48c0$0a00a8c0@gilles> Message-ID: <17271.193.252.107.84.1187335835.squirrel@mail.baysse.fr> > ----- Original Message ----- > From: "Liste utilisée par les développeurs" > To: > Sent: Thursday, August 16, 2007 10:25 PM > Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk > > >> Author: lolo_32 >> Date: 2007-08-16 22:25:39 +0200 (Thu, 16 Aug 2007) >> New Revision: 20 >> >> Modified: >> trunk/ini.cpp >> trunk/main.cpp >> trunk/main.h >> trunk/res.rc >> trunk/resource.h >> Log: >> Port de radius: affiche un message de confirmation si un enregistrement >> est en cours, et que l'on quitte PouchinTVMod. >> >> Modification des menus, en rajoutant les "..." ?\195?\160 toutes les >> entr?\195?\169es ouvrant une nouvelle fen?\195?\170tre (comme le veut la >> norme), et changement de quelques lettres d'acc?\195?\168s rapide dans >> les >> menus. >> >> Ajout de quelques commentaires dans les fichiers sources. > > Bonjour, > > J'ai vu la modif de message de confirmation. > > Très bonne idée .... mais en revanche, je pense que ça ne devrait pas être > optionnel, mais au contraire toujours actif. > > Avoir ça comme option implique encore le risque qu'on oublie de > sélectionner > l'option. > > Or je vois ça comme aussi important que, par exemple dans un traitement de > texte, avoir un dialogue de confirmation pour avertir qu'on n'a pas > sauvegardé ses modifications. > ... et dans un traitement de texte, il n'y a pas d'option pour demander si > on veut avoir ce dialogue de confirmation : il y est toujours, quoi qu'on > fasse ! > > Et là aussi, je pense que ce dialogue devrait être toujours présent. > (sauf cas de "force majeure", comme par exemple extinction de > l'ordinateur) > > Gingko Et si j'activais l'option par défaut (comme ça, il ne risque pas d'oublier de l'activer), et si l'utilisateur ne souhaite pas l'option, il la désactive ? -- Laurent ....ooo...(°_°)...ooo.... From gingko at gingko.homeip.net Fri Aug 17 12:19:01 2007 From: gingko at gingko.homeip.net (Gingko) Date: Fri, 17 Aug 2007 12:19:01 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk References: <20070816202539.881435F23B@mail.baysse.fr><002901c7e04d$ecbd48c0$0a00a8c0@gilles> <17271.193.252.107.84.1187335835.squirrel@mail.baysse.fr> Message-ID: <001401c7e0b8$084e1e10$0a00a8c0@gilles> ----- Original Message ----- From: "Laurent Baysse" To: Sent: Friday, August 17, 2007 9:30 AM Subject: Re: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk > Et si j'activais l'option par défaut (comme ça, il ne risque pas d'oublier > de l'activer), et si l'utilisateur ne souhaite pas l'option, il la > désactive ? > > -- > Laurent Bonjour Laurent, Selon moi, cette option ne devrait tout simplement pas exister. Que dirais-tu d'une application dans laquelle tu aurais travaillé sur un fichier quelconque pendant longtemps, et qui te laisserait quitter par simple clic sur la case de fermeture, sans t'avertir que tu vas perdre toutes tes données ce faisant ? Je ne conçois par ailleurs pas tellement de situations dans lesquelles quelqu'un pourrait souhaiter ne pas avoir cet avertissement, ou bien en tout cas vraiment voir un inconvénient à l'avoir ... Gilles (Gingko) From pouchintv-svn at baysse.fr Fri Aug 17 12:25:52 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Fri, 17 Aug 2007 12:25:52 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r22 - trunk Message-ID: <20070817102552.149825F23A@mail.baysse.fr> Author: lolo_32 Date: 2007-08-17 12:25:51 +0200 (Fri, 17 Aug 2007) New Revision: 22 Modified: trunk/ini.cpp trunk/main.cpp Log: Maintenant, PouchinTVMod demande une confirmation en quittant par d?\195?\169faut. Cependant, option est d?\195?\169sactivable (comportement inverse ?\195?\160 la version pr?\195?\169c?\195?\169dente). Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-16 21:06:04 UTC (rev 21) +++ trunk/ini.cpp 2007-08-17 10:25:51 UTC (rev 22) @@ -551,9 +551,9 @@ GetPrivateProfileString(ini_config, ini_close_confirm, NULL, prio, _countof(prio), fileName); - if (lstrcmp(prio, L"Vrai") == 0) + if (lstrcmp(prio, L"Faux") == 0) { - close_confirm = true; + close_confirm = false; } GetPrivateProfileString(ini_config, ini_minimize_system_tray, NULL, prio, _countof(prio), fileName); Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-16 21:06:04 UTC (rev 21) +++ trunk/main.cpp 2007-08-17 10:25:51 UTC (rev 22) @@ -96,7 +96,7 @@ bool on_top = false; bool use_ac3 = false; bool suspend_minimized = false; -bool close_confirm = false; +bool close_confirm = true; bool minimize_system_tray = false; bool minimize = false; bool full_screen = false; From laurent at baysse.fr Fri Aug 17 12:39:41 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Fri, 17 Aug 2007 12:39:41 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk In-Reply-To: <001401c7e0b8$084e1e10$0a00a8c0@gilles> References: <20070816202539.881435F23B@mail.baysse.fr><002901c7e04d$ecbd48c0$0a00a8c0@gilles> <17271.193.252.107.84.1187335835.squirrel@mail.baysse.fr> <001401c7e0b8$084e1e10$0a00a8c0@gilles> Message-ID: <11086.193.252.107.84.1187347181.squirrel@mail.baysse.fr> > > ----- Original Message ----- > From: "Laurent Baysse" > To: > Sent: Friday, August 17, 2007 9:30 AM > Subject: Re: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk > > > >> Et si j'activais l'option par défaut (comme ça, il ne risque pas >> d'oublier >> de l'activer), et si l'utilisateur ne souhaite pas l'option, il la >> désactive ? >> >> -- >> Laurent > > Bonjour Laurent, > > Selon moi, cette option ne devrait tout simplement pas exister. > > Que dirais-tu d'une application dans laquelle tu aurais travaillé sur un > fichier quelconque pendant longtemps, et qui te laisserait quitter par > simple clic sur la case de fermeture, sans t'avertir que tu vas perdre > toutes tes données ce faisant ? > > Je ne conçois par ailleurs pas tellement de situations dans lesquelles > quelqu'un pourrait souhaiter ne pas avoir cet avertissement, ou bien en > tout > cas vraiment voir un inconvénient à l'avoir ... > > Gilles (Gingko) > Ok, je viens donc de supprimer l'option dans les menus. Désolé, j'avais pas vu ta réponse avant de faire le commit :P -- Laurent ....ooo...(°_°)...ooo.... From pouchintv-svn at baysse.fr Fri Aug 17 12:43:46 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Fri, 17 Aug 2007 12:43:46 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r23 - trunk Message-ID: <20070817104347.11CF85F268@mail.baysse.fr> Author: lolo_32 Date: 2007-08-17 12:43:46 +0200 (Fri, 17 Aug 2007) New Revision: 23 Modified: trunk/ini.cpp trunk/main.cpp trunk/main.h trunk/res.rc trunk/resource.h Log: Suppression de l'entr?\195?\169e du menu permettant de d?\195?\169sactiver la demande de confirmation en quittant en cas d'enregistrement. Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-17 10:25:51 UTC (rev 22) +++ trunk/ini.cpp 2007-08-17 10:43:46 UTC (rev 23) @@ -355,7 +355,6 @@ static wchar_t ini_always_on_top[] = L"Fenêtre toujours devant"; static wchar_t ini_ac3_defaut[] = L"Utilise AC3 quand dispo"; static wchar_t ini_suspend_minimized[] = L"Suspendre si minimisé"; -static wchar_t ini_close_confirm[] = L"Confirmation de fermeture si enregistrement"; static wchar_t ini_minimize_system_tray[] = L"Minimiser dans le system tray"; static wchar_t ini_use_all_width[] = L"Utilise toute la largeur"; @@ -434,8 +433,6 @@ WritePrivateProfileString(ini_config, ini_suspend_minimized, suspend_minimized ? L"Vrai" : L"Faux", fileName); - WritePrivateProfileString(ini_config, ini_close_confirm, close_confirm ? L"Vrai" : L"Faux", fileName); - WritePrivateProfileString(ini_config, ini_minimize_system_tray, minimize_system_tray ? L"Vrai" : L"Faux", fileName); WritePrivateProfileString(ini_config, ini_use_all_width, use_all_width ? L"Vrai" : L"Faux", fileName); @@ -549,13 +546,6 @@ suspend_minimized = true; } - GetPrivateProfileString(ini_config, ini_close_confirm, NULL, prio, _countof(prio), fileName); - - if (lstrcmp(prio, L"Faux") == 0) - { - close_confirm = false; - } - GetPrivateProfileString(ini_config, ini_minimize_system_tray, NULL, prio, _countof(prio), fileName); if (lstrcmp(prio, L"Vrai") == 0) Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-17 10:25:51 UTC (rev 22) +++ trunk/main.cpp 2007-08-17 10:43:46 UTC (rev 23) @@ -96,7 +96,6 @@ bool on_top = false; bool use_ac3 = false; bool suspend_minimized = false; -bool close_confirm = true; bool minimize_system_tray = false; bool minimize = false; bool full_screen = false; @@ -507,22 +506,6 @@ DrawMenuBar(h); } -static void update_close_confirm_menu(HWND h) -{ - HMENU hMenu = GetMenu(h); - - if (hMenu != NULL) { - MENUITEMINFO info; - info.cbSize = sizeof(MENUITEMINFO); - info.fMask = MIIM_STATE; - info.fState = close_confirm ? MFS_CHECKED : MFS_UNCHECKED; - - SetMenuItemInfo(hMenu, IDM_CLOSE_CONFIRM, FALSE, &info); - - } - DrawMenuBar(h); -} - static void update_all_width_and_ar_menu(HWND h) { HMENU hMenu = GetMenu(h); @@ -584,7 +567,6 @@ update_all_width_and_ar_menu(h); update_ac3_menu(h); update_suspend_menu(h); - update_close_confirm_menu(h); update_system_tray_menu(h); menu_recording(h, recording); set_priority(); @@ -2357,9 +2339,8 @@ switch_fullscreen(); full_screen = true; } - if (recording && close_confirm) { - // Si on enregistre et que l'on souhaite une confirmation, - // affiche la fenêtre de confirmation + if (recording) { + // Si on enregistre affiche la fenêtre de confirmation if (DialogBox(hInst, MAKEINTRESOURCE(IDD_CLOSE_CONFIRM), hwnd, ConfirmCloseProc) == 1) { // Vide, car on quitte } @@ -2783,12 +2764,6 @@ update_suspend_menu(hWnd); break; - case IDM_CLOSE_CONFIRM: - // Option du menu demandant confirmation lorsque l'on quitte - close_confirm = !close_confirm; - update_close_confirm_menu(hWnd); - break; - case IDM_SYSTEM_TRAY: minimize_system_tray = !minimize_system_tray; update_system_tray_menu(hWnd); Modified: trunk/main.h =================================================================== --- trunk/main.h 2007-08-17 10:25:51 UTC (rev 22) +++ trunk/main.h 2007-08-17 10:43:46 UTC (rev 23) @@ -30,7 +30,6 @@ extern wchar_t video_dir[512]; extern bool suspend_minimized; -extern bool close_confirm; extern bool minimize_system_tray; extern bool use_msn; extern bool on_top; Modified: trunk/res.rc =================================================================== --- trunk/res.rc 2007-08-17 10:25:51 UTC (rev 22) +++ trunk/res.rc 2007-08-17 10:43:46 UTC (rev 23) @@ -129,7 +129,6 @@ MENUITEM "Utiliser l'&AC3 par défaut", IDM_AC3_DEF MENUITEM "&Suspendre si minimisé", IDM_SUSPEND MENUITEM "&Minimiser dans le system tray", IDM_SYSTEM_TRAY - MENUITEM "Confirmation de &fermeture si enregistrement", IDM_CLOSE_CONFIRM MENUITEM SEPARATOR MENUITEM "&Qualité du signal...", IDM_SIGNAL END Modified: trunk/resource.h =================================================================== --- trunk/resource.h 2007-08-17 10:25:51 UTC (rev 22) +++ trunk/resource.h 2007-08-17 10:43:46 UTC (rev 23) @@ -101,14 +101,13 @@ #define IDM_DELAYED_STOP 40105 #define IDM_NOAR 40106 #define IDM_SUSPEND 40202 -#define IDM_CLOSE_CONFIRM 40203 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 122 -#define _APS_NEXT_COMMAND_VALUE 40204 +#define _APS_NEXT_COMMAND_VALUE 40203 #define _APS_NEXT_CONTROL_VALUE 1102 #define _APS_NEXT_SYMED_VALUE 121 #endif From pouchintv-svn at baysse.fr Fri Aug 17 17:19:16 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Fri, 17 Aug 2007 17:19:16 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk Message-ID: <20070817151916.D335A5F268@mail.baysse.fr> Author: radius Date: 2007-08-17 17:19:16 +0200 (Fri, 17 Aug 2007) New Revision: 24 Modified: trunk/main.cpp Log: Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-17 10:43:46 UTC (rev 23) +++ trunk/main.cpp 2007-08-17 15:19:16 UTC (rev 24) @@ -2004,7 +2004,7 @@ { muted = !muted; - long vol = muted ? -8000 : volumeCourant; + long vol = muted ? -8000 : (volumeCourant ? volumeCourant : 0) ; IBasicAudio * pBas; From laurent at baysse.fr Fri Aug 17 17:47:50 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Fri, 17 Aug 2007 17:47:50 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk In-Reply-To: <20070817151916.D335A5F268@mail.baysse.fr> References: <20070817151916.D335A5F268@mail.baysse.fr> Message-ID: <16557.193.252.107.84.1187365670.squirrel@mail.baysse.fr> > Author: radius > Date: 2007-08-17 17:19:16 +0200 (Fri, 17 Aug 2007) > New Revision: 24 > > Modified: > trunk/main.cpp > Log: > > > Modified: trunk/main.cpp > =================================================================== > --- trunk/main.cpp 2007-08-17 10:43:46 UTC (rev 23) > +++ trunk/main.cpp 2007-08-17 15:19:16 UTC (rev 24) > @@ -2004,7 +2004,7 @@ > { > muted = !muted; > > - long vol = muted ? -8000 : volumeCourant; > + long vol = muted ? -8000 : (volumeCourant ? volumeCourant : 0) ; > > IBasicAudio * pBas; > > Radius, par contre, n'oublie pas d'indiquer un log pour les modifs (ça permet de savoir ce qui a été modifié plus rapidement...) expliquant grossièrement ce que tu as fait... Au fait, j'ai mis en place un système pour les commit sur ssh, donc, j'aurais besoin de vos clés ssh publiques (donc, plus de mot de passe), merci... -- Laurent ....ooo...(°_°)...ooo.... From gingko at gingko.homeip.net Fri Aug 17 23:33:48 2007 From: gingko at gingko.homeip.net (Gingko) Date: Fri, 17 Aug 2007 23:33:48 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk References: <20070817151916.D335A5F268@mail.baysse.fr> <16557.193.252.107.84.1187365670.squirrel@mail.baysse.fr> Message-ID: <001201c7e116$4c8e1ae0$1201a8c0@gillesvaio> ----- Original Message ----- From: "Laurent Baysse" To: "Liste utilisée par les développeurs" Sent: Friday, August 17, 2007 5:47 PM Subject: Re: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk > Au fait, j'ai mis en place un système pour les commit sur ssh, donc, > j'aurais besoin de vos clés ssh publiques (donc, plus de mot de passe), > merci... Heu ... Ca marche comment, ça ? Je suppose qu'il faut que j'en crée une ? Ca ne va pas être commode, vu que je ne suis pas chez moi jusqu'à la semaine prochaine et que je n'ai que mon ordinateur portable comme accès en attendant ... Gingko From gingko at gingko.homeip.net Sat Aug 18 00:22:10 2007 From: gingko at gingko.homeip.net (Gingko) Date: Sat, 18 Aug 2007 00:22:10 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk References: <20070816202539.881435F23B@mail.baysse.fr><002901c7e04d$ecbd48c0$0a00a8c0@gilles> <17271.193.252.107.84.1187335835.squirrel@mail.baysse.fr> <001401c7e0b8$084e1e10$0a00a8c0@gilles> <11086.193.252.107.84.1187347181.squirrel@mail.baysse.fr> Message-ID: <002d01c7e11d$0e8ef6e0$1201a8c0@gillesvaio> ----- Original Message ----- From: "Laurent Baysse" To: "Gingko" ; "Liste utilisée par les développeurs" Sent: Friday, August 17, 2007 12:39 PM Subject: Re: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r20 - trunk >> Bonjour Laurent, >> >> Selon moi, cette option ne devrait tout simplement pas exister. >> >> Que dirais-tu d'une application dans laquelle tu aurais travaillé sur un >> fichier quelconque pendant longtemps, et qui te laisserait quitter par >> simple clic sur la case de fermeture, sans t'avertir que tu vas perdre >> toutes tes données ce faisant ? >> >> Je ne conçois par ailleurs pas tellement de situations dans lesquelles >> quelqu'un pourrait souhaiter ne pas avoir cet avertissement, ou bien en >> tout >> cas vraiment voir un inconvénient à l'avoir ... >> >> Gilles (Gingko) >> > > Ok, je viens donc de supprimer l'option dans les menus. Désolé, j'avais > pas vu ta réponse avant de faire le commit :P Super. :-) Surtout qu'en plus c'était un peu trop visible dans les menus. Encore, si ça avait été planqué profondément dans une hiérarchie de pages de configuration avancées ... Je crois qu'il faudra éventuellement faire ça, aussi : Créer un dialogue plus ou moins paginé capable de regrouper les éléments de configuration qui sont actuellement dans les menus, plus d'autres qu'on pourrait y ajouter, afin de simplifier l'interface utilisateur immédiatement apparente. Gingko From laurent at baysse.fr Sat Aug 18 09:30:44 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Sat, 18 Aug 2007 09:30:44 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk In-Reply-To: <001201c7e116$4c8e1ae0$1201a8c0@gillesvaio> References: <20070817151916.D335A5F268@mail.baysse.fr> <16557.193.252.107.84.1187365670.squirrel@mail.baysse.fr> <001201c7e116$4c8e1ae0$1201a8c0@gillesvaio> Message-ID: <46C6A024.70605@baysse.fr> Gingko a écrit : > ----- Original Message ----- > From: "Laurent Baysse" > To: "Liste utilisée par les développeurs" > Sent: Friday, August 17, 2007 5:47 PM > Subject: Re: [Pouchintv-dev] [PouchinTVMod] radius | r24 - trunk > >> Au fait, j'ai mis en place un système pour les commit sur ssh, donc, >> j'aurais besoin de vos clés ssh publiques (donc, plus de mot de passe), >> merci... >> > Heu ... Ca marche comment, ça ? > Je suppose qu'il faut que j'en crée une ? > > Ca ne va pas être commode, vu que je ne suis pas chez moi jusqu'à la semaine > prochaine et que je n'ai que mon ordinateur portable comme accès en > attendant ... > > Gingko Ça permet d'éviter que les mots de passes ne transitent pas en clair sur internet. Les deux méthodes resteront néanmoins valides, au moins durant un moment... Pour le faire: * sous windows: il faut télécharger putty (http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.60-installer.exe), et l'installer. puis lancer PuTTYgen et générer une clé ssh2 (rsa ou dsa) et me faire parvenir la clé indiquée dans le premier champ (ex: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEA0HU9GOCJGLvZsZQ+1ZsFdU29+jWis487GoY8ThSHr36kH/BtXNvGLjUTgZhyydXstC8OCXujQBv8HNdJn5L+V6klnX1iYdrZL98v8KY69IbSQgAm8cClQwPYEaVl82yUx2yoVzb4z9zsbLnoEzzbVfReOKRk22Qzm9cty6CXk6k= rsa-key-20070818) Ensuite, n'oublier pas de sauvegarder la clé privée générée :P Dorénavant, il suffira d'ouvrir la clé ainsi générée. * sous linux: dans une fenêtre shell, avec openssh installé, lancer "ssh-keygen" et me faire parvenir la clée contenu dans le fichier ayant un nom se terminant par ".pub" (clé publique) Ensuite, il faut changer la source du repository (svn switch) de "svn://svn.baysse.fr/svn/pouchintv/trunk" vers "svn+ssh://pouchintv at svn.baysse.fr/trunk" Voila pour le petit cours -- Laurent Baysse From laurent at baysse.fr Sat Aug 18 09:43:27 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Sat, 18 Aug 2007 09:43:27 +0200 Subject: [Pouchintv-dev] Nouvelle fonction Message-ID: <46C6A31F.6080901@baysse.fr> Salut, je vais essayer de rajouter une fonction pour lire les fichier xmltv pour avoir un programme TV plus conséquent que les 2 émissions à l'heure actuelle. -- Laurent From pouchintv-svn at baysse.fr Sat Aug 18 19:45:52 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Sat, 18 Aug 2007 19:45:52 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r25 - trunk Message-ID: <20070818174552.8A1155F22F@mail.baysse.fr> Author: lolo_32 Date: 2007-08-18 19:45:51 +0200 (Sat, 18 Aug 2007) New Revision: 25 Modified: trunk/graph.cpp trunk/main.cpp trunk/main.h Log: D?\195?\169tection de la version de Windows utilis?\195?\169e au lancement (devrait fonctionner sous 2000/XP et sous Vista comme pr?\195?\169c?\195?\169demment). A tester sous Vista (j'ai pas ?\195?\167a), mais ?\195?\167a devrai ?\195?\170tre bon. Ajout de 2 variables globales: is_vista et windows_version(structure OSVERSIONINFOEX remplie) Modified: trunk/graph.cpp =================================================================== --- trunk/graph.cpp 2007-08-17 15:19:16 UTC (rev 24) +++ trunk/graph.cpp 2007-08-18 17:45:51 UTC (rev 25) @@ -432,11 +432,11 @@ IVMRImagePresenterConfig * pPresConf; hr = pSurfAlloc->QueryInterface(&pPresConf); myprintf(L"IVMRImagePresenterConfig %08x\n", hr); -#if VISTA - hr = pPresConf->SetRenderingPrefs(RenderPrefs_AllowOffscreen); -#else - hr = pPresConf->SetRenderingPrefs(RenderPrefs_ForceOverlays | RenderPrefs_DoNotRenderColorKeyAndBorder); -#endif + if (is_vista) { + hr = pPresConf->SetRenderingPrefs(RenderPrefs_AllowOffscreen); + } else { + hr = pPresConf->SetRenderingPrefs(RenderPrefs_ForceOverlays | RenderPrefs_DoNotRenderColorKeyAndBorder); + } if (FAILED(hr)) { erreur(L"VMR ImagePresenterConfig non dispo"); return 1; Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-17 15:19:16 UTC (rev 24) +++ trunk/main.cpp 2007-08-18 17:45:51 UTC (rev 25) @@ -99,7 +99,10 @@ bool minimize_system_tray = false; bool minimize = false; bool full_screen = false; +bool is_vista = false; +OSVERSIONINFOEX windows_version; + bool use_all_width = false; bool etirer_video = false; int zoom_ratio = 100; @@ -198,11 +201,10 @@ static void set_timer_osd() { - #if VISTA - #else + if (!is_vista) { RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif - // laise affiché 3 secondes + } + // laisse affiché 3 secondes SetTimer(hWnd, TIMER_OSD, DUREE_OSD, NULL); } @@ -806,16 +808,20 @@ // 100 60 140 60 140 INT vol = width - 100; - #if VISTA - INT n = 6; - INT tab[6]={100, 160, 300, 360, vol, -1}; - INT minwidth = 600; - #else - INT n = 5; - INT tab[5]={100, 160, 300, 360, -1}; - INT minwidth = 500; - #endif + INT n; + INT tab[6]={100, 160, 300, 360, vol, -1}; + INT minwidth; + + if (is_vista) { + n = 6; + minwidth = 600; + } else { + n = 5; + minwidth = 500; + tab[5] = -1; // tab[6] est inutilisé + } + // on a de la place en plus if (width > minwidth) { @@ -831,10 +837,9 @@ static void update_status_bar(void) { - #if VISTA - #else + if (!is_vista) { RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif + } if (hStatus != NULL) { @@ -848,13 +853,13 @@ SendMessageA(hStatus, SB_SETTEXTA, 4, (LPARAM)Canaux[chaineCourante].prog2.nom); - #if VISTA + if (is_vista) { if (!muted) sprintf(statusvol, "Volume %i", (volumeCourant+8000)/80); else sprintf(statusvol, "Sourdine %i", (volumeCourant+8000)/80); SendMessageA(hStatus, SB_SETTEXTA, 5, (LPARAM)statusvol); - #endif + } } if (use_msn && Canaux[chaineCourante].prog1.debut.QuadPart != 0) @@ -2012,10 +2017,9 @@ pBas->put_Volume(vol); pBas->Release(); - #if VISTA - #else + if (!is_vista) { RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif + } } static void update_volume(bool augmente) @@ -2161,11 +2165,8 @@ break; -#if VISTA -#else case WM_PAINT: - { - + if (!is_vista) { PAINTSTRUCT ps; HDC hdc = BeginPaint(hwnd, &ps); @@ -2306,9 +2307,8 @@ } EndPaint(hwnd, &ps); - } + } // if(!is_vista) break; -#endif case WM_DISPLAYCHANGE: if (pVMRControl != NULL) pVMRControl->DisplayModeChanged(); @@ -2322,10 +2322,9 @@ } if (pVMRControl != NULL) update_coords(); - #if VISTA - #else + if (is_vista) { RedrawWindow(hwnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif + } break; case WM_MOVE: @@ -2467,9 +2466,9 @@ if (zoom_ratio <= 0) zoom_ratio = 1; update_coords(); last_zoom = GetTickCount(); - #if VISTA + if (is_vista) { RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif + } set_timer_osd(); break; @@ -2654,9 +2653,9 @@ case IDM_MUTE: mute(); - #if VISTA + if (is_vista) { update_status_bar(); - #endif + } break; case IDM_MPEG2_DIR: @@ -2781,16 +2780,16 @@ case IDM_VOL_AUG: update_volume(true); - #if VISTA + if (is_vista) { update_status_bar(); - #endif + } break; case IDM_VOL_DIM: update_volume(false); - #if VISTA + if (is_vista) { update_status_bar(); - #endif + } break; case IDM_REALTIME_PRIORITY: @@ -2890,10 +2889,9 @@ switch_bordure(); } else if (wParam == TIMER_OSD) { KillTimer(hWnd, TIMER_OSD); - #if VISTA - #else + if (!is_vista) { RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE); - #endif + } } else if (wParam == TIMER_CURSOR) { KillTimer(hWnd, TIMER_CURSOR); showing_cursor_in_full_screen = false; @@ -3277,18 +3275,26 @@ return 0; } + // Si on minimise dans la zone système, n'afficha pas la fenêtre dans la barre des tâches if (!minimize_system_tray) { SetWindowLong(hwnd, GWL_EXSTYLE, WS_EX_APPWINDOW); } + // Comme marqué, on crée la barre de status de la fenêtre create_status_bar(); + + // Charge la liste des programmes lit_programmes(); + SYSTEMTIME time; GetLocalTime(&time); for(UINT i = 0; i < Programmes.size(); i++) { if (DiffTime(Programmes[i].debut, time) < 0) Programmes.erase(Programmes.begin()+i); } + + // Sauvegarde à nouveau la liste des programmes sauve_programmes(); + set_timer_record(); // show and update main window @@ -3310,6 +3316,7 @@ return -1; } + // On a lancé avec le paramètre demandant de masquer la fenêtre if (!strcmp(lpCmdLine, "-minimize")) { myprintf(L"minimize\n"); if(suspend_minimized) { @@ -3328,6 +3335,19 @@ } } + // Récupère la version de windows + ZeroMemory(&windows_version, sizeof(OSVERSIONINFOEX)); + windows_version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEXW); + if (GetVersionEx((OSVERSIONINFO *)&windows_version)) { + if (windows_version.dwMajorVersion >= 6) { + is_vista = true; + myprintf(L"Fonctionne sous Vista ou 2008 Serveur ou plus récent\n"); + } else { + myprintf(L"Fonctionne sous 2000 ou XP\n"); + } + } else { + myprintf(L"Erreur lors de la récupération de la version de Windows\n"); + } mainMenu = GetMenu(hwnd); @@ -3339,11 +3359,9 @@ } // Load the accelerator table. - HACCEL hAccel = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDR_ACCELERATOR1)); // boucle qui traite les messages clavier - while(GetMessage(&msg, NULL, 0, 0) ) { if (!TranslateAccelerator(hWnd, hAccel, &msg)) { Modified: trunk/main.h =================================================================== --- trunk/main.h 2007-08-17 15:19:16 UTC (rev 24) +++ trunk/main.h 2007-08-18 17:45:51 UTC (rev 25) @@ -41,3 +41,7 @@ extern bool use_all_width; extern bool etirer_video; extern int zoom_ratio; + +extern bool is_vista; +// diverses informations sur la version de windows (utile plus tard ?) +extern OSVERSIONINFOEX windows_version; \ No newline at end of file From arupqfjm at yahoo.fr Sun Aug 19 14:37:15 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Sun, 19 Aug 2007 14:37:15 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?=28sans_objet=29?= Message-ID: <000001c7e25d$acba87d0$0200a8c0@blot> J'ai installé tortoiseSVN et recupéré les sources mais il y avait une erreur à la compilation. Le problème vient du fait qu'une certaine librairie était dans la liste des librairies à ignorer alors qu'elle est nécessaire. J'ai donc modifié Pouchin TV.vcproj, voici le patch. Index: Pouchin TV.vcproj =================================================================== --- Pouchin TV.vcproj (revision 25) +++ Pouchin TV.vcproj (working copy) @@ -66,7 +66,6 @@ AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" OutputFile="$(OutDir)\PouchinTVMod_debug.exe" LinkIncremental="2" - IgnoreDefaultLibraryNames="libcmtd.lib" GenerateDebugInformation="true" SubSystem="2" TargetMachine="1" @@ -151,7 +150,6 @@ AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib" OutputFile="$(OutDir)\PouchinTVMod.exe" LinkIncremental="1" - IgnoreDefaultLibraryNames="LIBCMT.lib" GenerateDebugInformation="false" SubSystem="2" OptimizeReferences="2" @@ -239,7 +237,6 @@ AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib " OutputFile="$(OutDir)\PouchinTVMod_Vista.exe" LinkIncremental="1" - IgnoreDefaultLibraryNames="LIBCMT.lib" GenerateDebugInformation="false" SubSystem="2" OptimizeReferences="2" From radius at r4dius.net Sun Aug 19 16:19:59 2007 From: radius at r4dius.net (radius) Date: Sun, 19 Aug 2007 16:19:59 +0200 Subject: [Pouchintv-dev] (sans objet) In-Reply-To: <000001c7e25d$acba87d0$0200a8c0@blot> References: <000001c7e25d$acba87d0$0200a8c0@blot> Message-ID: <46C8518F.4010303@r4dius.net> arupqfjm wrote: > J'ai installé tortoiseSVN et recupéré les sources mais il y avait une erreur > à la compilation. Le problème vient du fait qu'une certaine librairie était > dans la liste des librairies à ignorer alors qu'elle est nécessaire. J'ai > donc modifié Pouchin TV.vcproj, voici le patch. > > Index: Pouchin TV.vcproj > =================================================================== > --- Pouchin TV.vcproj (revision 25) > +++ Pouchin TV.vcproj (working copy) > @@ -66,7 +66,6 @@ > AdditionalDependencies="Strmiids.lib > comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" > > OutputFile="$(OutDir)\PouchinTVMod_debug.exe" > LinkIncremental="2" > - IgnoreDefaultLibraryNames="libcmtd.lib" > GenerateDebugInformation="true" > SubSystem="2" > TargetMachine="1" > @@ -151,7 +150,6 @@ > AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib" > OutputFile="$(OutDir)\PouchinTVMod.exe" > LinkIncremental="1" > - IgnoreDefaultLibraryNames="LIBCMT.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > @@ -239,7 +237,6 @@ > AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > > OutputFile="$(OutDir)\PouchinTVMod_Vista.exe" > LinkIncremental="1" > - IgnoreDefaultLibraryNames="LIBCMT.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > > Salut, moi j'ai une erreur a cause de libcmt (j'utilise pas vc express) MSVCRT.lib(MSVCR80.dll) : error LNK2005: __wtoi already defined in LIBCMT.lib(wtox.obj) MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE at ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0 at ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library j'ai trouvé ca http://www.codecomments.com/archive292-2005-2-388613.html, en passant c/c++ - code generation - runtime library en /MD ca recompile normalement From radius at r4dius.net Sun Aug 19 17:07:06 2007 From: radius at r4dius.net (radius) Date: Sun, 19 Aug 2007 17:07:06 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <46C8518F.4010303@r4dius.net> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> Message-ID: <46C85C9A.6030205@r4dius.net> Salut, pour le problème de selection dans la taskbar, c'est dût au hidden_hwnd creé pour l'option "minimiser dans le system tray" en modifiant hidden_hwnd par NULL dans hwnd = CreateWindowEx(0, szAppName, L"Pouchin TV Mod", WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, win_x, win_y, win_w, win_h, hidden_hwnd, NULL, hInstance, NULL); il n'y a plus de probleme mais le prog reste dans la taskbar jusqu'a ce qu'on le minimize, pour moi ca reste logique qu'il soit dans la taskbar tant qu'on l'utise (comme la plupart des progs qui se minimise dans le systray), mais a prioris c'etait pas l'idée de départ pour celui qui a fait la modif, vous en pensez quoi ? A+ From radius at r4dius.net Sun Aug 19 17:09:24 2007 From: radius at r4dius.net (radius) Date: Sun, 19 Aug 2007 17:09:24 +0200 Subject: [Pouchintv-dev] taskbar Message-ID: <46C85D24.3040102@r4dius.net> Salut, j'ai remarqué que si on passe d'un programme qui est par dessus pouchin (comme msn ou winamp) a pouchin il n'est pas consideré comme selectionné dans la barre des taches, je vais enqueter voir si je trouve pourquoi :) A+ From matmaul at gmail.com Sun Aug 19 17:16:25 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Sun, 19 Aug 2007 17:16:25 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <46C85C9A.6030205@r4dius.net> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> <46C85C9A.6030205@r4dius.net> Message-ID: <20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com> bin en fait je regarde la télé sur un deuxième écran et ca prenait de la place dans la taskbar, donc pour moi c'était plus pratique. après on peut en faire une option (va falloir faire une boite de dialogue pour ce genre d'option avancé je pense...) Le 19/08/07, radius a écrit : > Salut, > pour le problème de selection dans la taskbar, c'est dût au hidden_hwnd > creé pour l'option "minimiser dans le system tray" > en modifiant hidden_hwnd par NULL dans > hwnd = CreateWindowEx(0, > szAppName, > L"Pouchin TV Mod", > WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, > win_x, > win_y, > win_w, > win_h, > hidden_hwnd, > NULL, > hInstance, > NULL); > > il n'y a plus de probleme mais le prog reste dans la taskbar jusqu'a ce > qu'on le minimize, > pour moi ca reste logique qu'il soit dans la taskbar tant qu'on l'utise > (comme la plupart des progs qui se minimise dans le systray), > mais a prioris c'etait pas l'idée de départ pour celui qui a fait la modif, > vous en pensez quoi ? > A+ > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From radius at r4dius.net Sun Aug 19 17:28:51 2007 From: radius at r4dius.net (radius) Date: Sun, 19 Aug 2007 17:28:51 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> <46C85C9A.6030205@r4dius.net> <20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com> Message-ID: <46C861B3.1000607@r4dius.net> Mathieu Velten wrote: > bin en fait je regarde la télé sur un deuxième écran et ca prenait de > la place dans la taskbar, donc pour moi c'était plus pratique. après > on peut en faire une option (va falloir faire une boite de dialogue > pour ce genre d'option avancé je pense...) > > Le 19/08/07, radius a écrit : > >> Salut, >> pour le problème de selection dans la taskbar, c'est dût au hidden_hwnd >> creé pour l'option "minimiser dans le system tray" >> en modifiant hidden_hwnd par NULL dans >> hwnd = CreateWindowEx(0, >> szAppName, >> L"Pouchin TV Mod", >> WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, >> win_x, >> win_y, >> win_w, >> win_h, >> hidden_hwnd, >> NULL, >> hInstance, >> NULL); >> >> il n'y a plus de probleme mais le prog reste dans la taskbar jusqu'a ce >> qu'on le minimize, >> pour moi ca reste logique qu'il soit dans la taskbar tant qu'on l'utise >> (comme la plupart des progs qui se minimise dans le systray), >> mais a prioris c'etait pas l'idée de départ pour celui qui a fait la modif, >> vous en pensez quoi ? >> A+ >> >> _______________________________________________ >> Pouchintv-dev mailing list >> Pouchintv-dev at baysse.fr >> https://listes.baysse.fr/listinfo/pouchintv-dev >> >> > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > > Ben faire en sorte que le bouton dans la taskbar se selectionne en mode non minisé dans le systray suffirait ^^ et je viens de vori qu'avec ma modif ca créait 2 icones au lieu d'une dans la systray a l'ouverture du prog From matmaul at gmail.com Sun Aug 19 17:56:42 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Sun, 19 Aug 2007 17:56:42 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <46C861B3.1000607@r4dius.net> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> <46C85C9A.6030205@r4dius.net> <20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com> <46C861B3.1000607@r4dius.net> Message-ID: <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com> j'ai pas compris :P en fait je regarde la télé sur le deuxième écran (donc en mode non minimisé) mais je veux pas du programme dans la taskbar, je le préfère dans le systray (même en fonctionnement). en fait pour pouvoir "cacher" le programme (cad qu'il n'apparaisse pas dans la taskbar) il faut créer 2 fenètres la 1ère est caché et la deuxième descend de la première (bref regarde le code ;) ), t'as du passer l'attribut qui dit d'afficher une icone systray pour les 2 fenètres => t'as 2 icones. Le 19/08/07, radius a écrit : > Ben faire en sorte que le bouton dans la taskbar se selectionne en mode > non minisé dans le systray suffirait ^^ > et je viens de vori qu'avec ma modif ca créait 2 icones au lieu d'une > dans la systray a l'ouverture du prog > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From radius at r4dius.net Sun Aug 19 18:07:18 2007 From: radius at r4dius.net (radius) Date: Sun, 19 Aug 2007 18:07:18 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> <46C85C9A.6030205@r4dius.net> <20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com> <46C861B3.1000607@r4dius.net> <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com> Message-ID: <46C86AB6.601@r4dius.net> Mathieu Velten wrote: > j'ai pas compris :P > en fait je regarde la télé sur le deuxième écran (donc en mode non > minimisé) mais je veux pas du programme dans la taskbar, je le préfère > dans le systray (même en fonctionnement). > en fait pour pouvoir "cacher" le programme (cad qu'il n'apparaisse pas > dans la taskbar) il faut créer 2 fenètres la 1ère est caché et la > deuxième descend de la première (bref regarde le code ;) ), t'as du > passer l'attribut qui dit d'afficher une icone systray pour les 2 > fenètres => t'as 2 icones. > > Le 19/08/07, radius a écrit : > >> Ben faire en sorte que le bouton dans la taskbar se selectionne en mode >> non minisé dans le systray suffirait ^^ >> et je viens de vori qu'avec ma modif ca créait 2 icones au lieu d'une >> dans la systray a l'ouverture du prog >> >> _______________________________________________ >> Pouchintv-dev mailing list >> Pouchintv-dev at baysse.fr >> https://listes.baysse.fr/listinfo/pouchintv-dev >> >> > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev En fait actuellement en mode normal (sans le systray) le bouton dans la taskbar est pas selectionné quand on ouvre pouchin ou qu'on passe d'un programme devant pouchin vers pouchin, par exemple j'ai winamp par dessus pouchin, je clique sur pouchin qui est derriere mais le bouton dans la taskbar ne s'active pas, je suppose que ca doit activer la version caché qui est crée par hidden_hwnd From arupqfjm at yahoo.fr Sun Aug 19 21:01:27 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Sun, 19 Aug 2007 21:01:27 +0200 Subject: [Pouchintv-dev] (sans objet) In-Reply-To: <46C8518F.4010303@r4dius.net> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> Message-ID: <000601c7e293$58d40bb0$0200a8c0@blot> Effectivement, chez moi aussi ca compile avec le /MD et même avec la librairie ignorée. J'ai donc refait un patch : Index: Pouchin TV.vcproj =================================================================== --- Pouchin TV.vcproj (revision 25) +++ Pouchin TV.vcproj (working copy) @@ -46,7 +46,7 @@ PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S ECURE_NO_DEPRECATE;USE_CONSOLE=1" MinimalRebuild="true" BasicRuntimeChecks="3" - RuntimeLibrary="1" + RuntimeLibrary="3" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="true" @@ -97,6 +97,84 @@ /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + arupqfjm wrote: >> J'ai installé tortoiseSVN et recupéré les sources mais il y avait une erreur >> à la compilation. Le problème vient du fait qu'une certaine librairie était >> dans la liste des librairies à ignorer alors qu'elle est nécessaire. J'ai >> donc modifié Pouchin TV.vcproj, voici le patch. >> >> Index: Pouchin TV.vcproj >> =================================================================== >> --- Pouchin TV.vcproj (revision 25) >> +++ Pouchin TV.vcproj (working copy) >> @@ -66,7 +66,6 @@ >> AdditionalDependencies="Strmiids.lib >> comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" >> >> OutputFile="$(OutDir)\PouchinTVMod_debug.exe" >> LinkIncremental="2" >> - IgnoreDefaultLibraryNames="libcmtd.lib" >> GenerateDebugInformation="true" >> SubSystem="2" >> TargetMachine="1" >> @@ -151,7 +150,6 @@ >> AdditionalDependencies="Strmiids.lib >> comctl32.lib strmbase.lib Winmm.lib msxml2.lib" >> OutputFile="$(OutDir)\PouchinTVMod.exe" >> LinkIncremental="1" >> - IgnoreDefaultLibraryNames="LIBCMT.lib" >> GenerateDebugInformation="false" >> SubSystem="2" >> OptimizeReferences="2" >> @@ -239,7 +237,6 @@ >> AdditionalDependencies="Strmiids.lib >> comctl32.lib strmbase.lib Winmm.lib msxml2.lib " >> >> OutputFile="$(OutDir)\PouchinTVMod_Vista.exe" >> LinkIncremental="1" >> - IgnoreDefaultLibraryNames="LIBCMT.lib" >> GenerateDebugInformation="false" >> SubSystem="2" >> OptimizeReferences="2" >> >Salut, moi j'ai une erreur a cause de libcmt (j'utilise pas vc express) > >MSVCRT.lib(MSVCR80.dll) : error LNK2005: __wtoi already defined in >LIBCMT.lib(wtox.obj) >MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall >type_info::type_info(class type_info const &)" >(??0type_info@@AAE at ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) >MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & >__thiscall type_info::operator=(class type_info const &)" >(??4type_info@@AAEAAV0 at ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) >LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other >libs; use /NODEFAULTLIB:library > >j'ai trouvé ca http://www.codecomments.com/archive292-2005-2-388613.html, >en passant c/c++ - code generation - runtime library en /MD ca recompile >normalement From gingko at gingko.homeip.net Sun Aug 19 22:33:21 2007 From: gingko at gingko.homeip.net (Gingko) Date: Sun, 19 Aug 2007 22:33:21 +0200 Subject: [Pouchintv-dev] taskbar References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net><46C85C9A.6030205@r4dius.net><20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com><46C861B3.1000607@r4dius.net> <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com> Message-ID: <005e01c7e2a0$2fe74980$0f00a8c0@gillesvaio> ----- Original Message ----- From: "Mathieu Velten" To: "Liste utilisée par les développeurs" Sent: Sunday, August 19, 2007 5:56 PM Subject: Re: [Pouchintv-dev] taskbar > j'ai pas compris :P > en fait je regarde la télé sur le deuxième écran (donc en mode non > minimisé) mais je veux pas du programme dans la taskbar, je le préfère > dans le systray (même en fonctionnement). > en fait pour pouvoir "cacher" le programme (cad qu'il n'apparaisse pas > dans la taskbar) il faut créer 2 fenètres la 1ère est caché et la > deuxième descend de la première (bref regarde le code ;) ), t'as du > passer l'attribut qui dit d'afficher une icone systray pour les 2 > fenètres => t'as 2 icones. Bonjour, Est-ce que vous savez que les termes "tray", "systray" et "system tray" sont incorrects et n'auraient jamais dû avoir été utilisés par quiconque ? Je vous invite, à ce sujet, à lire l'article suivant (en anglais), dans lequel on apprend que ce terme est vraisemblablement issu d'un oubli de renommage d'un fichier ("systray.exe") par les développeurs de Microsoft après un changement de choix concernant l'apparence de l'interface utilisateur de Windows, au cours de la genèse de Windows 95. http://blogs.msdn.com/oldnewthing/archive/2003/09/10/54831.aspx Le terme correct serait plutôt "Zone de notification de la barre des tâches", ou bien en raccourci "Zone de notification" (tout court). Gingko From radius at r4dius.net Mon Aug 20 00:21:26 2007 From: radius at r4dius.net (radius) Date: Mon, 20 Aug 2007 00:21:26 +0200 Subject: [Pouchintv-dev] taskbar In-Reply-To: <005e01c7e2a0$2fe74980$0f00a8c0@gillesvaio> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net><46C85C9A.6030205@r4dius.net><20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com><46C861B3.1000607@r4dius.net> <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com> <005e01c7e2a0$2fe74980$0f00a8c0@gillesvaio> Message-ID: <46C8C266.8020503@r4dius.net> Gingko wrote: > ----- Original Message ----- > From: "Mathieu Velten" > To: "Liste utilisée par les développeurs" > Sent: Sunday, August 19, 2007 5:56 PM > Subject: Re: [Pouchintv-dev] taskbar > > > >> j'ai pas compris :P >> en fait je regarde la télé sur le deuxième écran (donc en mode non >> minimisé) mais je veux pas du programme dans la taskbar, je le préfère >> dans le systray (même en fonctionnement). >> en fait pour pouvoir "cacher" le programme (cad qu'il n'apparaisse pas >> dans la taskbar) il faut créer 2 fenètres la 1ère est caché et la >> deuxième descend de la première (bref regarde le code ;) ), t'as du >> passer l'attribut qui dit d'afficher une icone systray pour les 2 >> fenètres => t'as 2 icones. >> > > Bonjour, > > Est-ce que vous savez que les termes "tray", "systray" et "system tray" sont > incorrects et n'auraient jamais dû avoir été utilisés par quiconque ? > > Je vous invite, à ce sujet, à lire l'article suivant (en anglais), dans > lequel on apprend que ce terme est vraisemblablement issu d'un oubli de > renommage d'un fichier ("systray.exe") par les développeurs de Microsoft > après un changement de choix concernant l'apparence de l'interface > utilisateur de Windows, au cours de la genèse de Windows 95. > > http://blogs.msdn.com/oldnewthing/archive/2003/09/10/54831.aspx > > Le terme correct serait plutôt "Zone de notification de la barre des > tâches", ou bien en raccourci "Zone de notification" (tout court). > > Gingko > > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > > Ahah, c'est peut etre pas son nom mais comme tout le monde l'appel comme ca, ca continuera jusqu'a sa mort :) From gingko at gingko.homeip.net Mon Aug 20 08:17:59 2007 From: gingko at gingko.homeip.net (Gingko) Date: Mon, 20 Aug 2007 08:17:59 +0200 Subject: [Pouchintv-dev] taskbar References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net><46C85C9A.6030205@r4dius.net><20fbb8bc0708190816h4a0936d4w385dd3fb94cca6d7@mail.gmail.com><46C861B3.1000607@r4dius.net> <20fbb8bc0708190856m26a578f8qa082ae41fa28a7dd@mail.gmail.com><005e01c7e2a0$2fe74980$0f00a8c0@gillesvaio> <46C8C266.8020503@r4dius.net> Message-ID: <000401c7e2f1$dbece680$0f00a8c0@gillesvaio> ----- Original Message ----- From: "radius" To: "Liste utilisée par les développeurs" Sent: Monday, August 20, 2007 12:21 AM Subject: Re: [Pouchintv-dev] taskbar > Ahah, c'est peut etre pas son nom mais comme tout le monde l'appel comme > ca, ca continuera jusqu'a sa mort :) Certes. Mais accessoirement, c'est pas très francophone non plus ... :-) Gingko From laurent at baysse.fr Mon Aug 20 15:07:59 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Mon, 20 Aug 2007 15:07:59 +0200 (CEST) Subject: [Pouchintv-dev] taskbar In-Reply-To: <46C85C9A.6030205@r4dius.net> References: <000001c7e25d$acba87d0$0200a8c0@blot> <46C8518F.4010303@r4dius.net> <46C85C9A.6030205@r4dius.net> Message-ID: <28334.193.252.107.84.1187615279.squirrel@mail.baysse.fr> > Salut, > pour le problème de selection dans la taskbar, c'est dût au hidden_hwnd > creé pour l'option "minimiser dans le system tray" > en modifiant hidden_hwnd par NULL dans > hwnd = CreateWindowEx(0, > szAppName, > L"Pouchin TV Mod", > WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, > win_x, > win_y, > win_w, > win_h, > hidden_hwnd, > NULL, > hInstance, > NULL); > > il n'y a plus de probleme mais le prog reste dans la taskbar jusqu'a ce > qu'on le minimize, > pour moi ca reste logique qu'il soit dans la taskbar tant qu'on l'utise > (comme la plupart des progs qui se minimise dans le systray), > mais a prioris c'etait pas l'idée de départ pour celui qui a fait la > modif, > vous en pensez quoi ? > A+ > Je trouve que cette proposition est la bonne :P Il manque plus que d'autres avis... -- Laurent ....ooo...(°_°)...ooo.... From pouchintv-svn at baysse.fr Mon Aug 20 22:06:32 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Mon, 20 Aug 2007 22:06:32 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r26 - trunk Message-ID: <20070820200632.CA8865F23B@mail.baysse.fr> Author: lolo_32 Date: 2007-08-20 22:06:32 +0200 (Mon, 20 Aug 2007) New Revision: 26 Added: trunk/AUTHORS Modified: trunk/main.h trunk/res.rc Log: Suppression aux r?\195?\169f?\195?\169rences de modifications par LoL, et ajout d'une liste de contributeurs (?\195?\160 compl?\195?\169ter) aux sources Added: trunk/AUTHORS =================================================================== --- trunk/AUTHORS (rev 0) +++ trunk/AUTHORS 2007-08-20 20:06:32 UTC (rev 26) @@ -0,0 +1,27 @@ +Project mailing list +Liste de diffusion du projet + + +Users mailing list +Liste de diffusion des utilisateurs + + + +Original author: Pouchin +Auteur du logiciel original: Pouchin + Pouchin http://pouchinteve.free.fr/ + + +Mod's creator +Créateur du Mod + MatMaul http://www.etud.insa-toulouse.fr/~mvelten/pouchintvmod/ + + +Contributers sorted alphabetically by last name +Contributeurs classés alphabétiquement par nom de famille + +Name/Nom Identifiant +Laurent Baysse lolo_32 + matmaul + gingko + radius Modified: trunk/main.h =================================================================== --- trunk/main.h 2007-08-18 17:45:51 UTC (rev 25) +++ trunk/main.h 2007-08-20 20:06:32 UTC (rev 26) @@ -44,4 +44,4 @@ extern bool is_vista; // diverses informations sur la version de windows (utile plus tard ?) -extern OSVERSIONINFOEX windows_version; \ No newline at end of file +extern OSVERSIONINFOEX windows_version; Modified: trunk/res.rc =================================================================== --- trunk/res.rc 2007-08-18 17:45:51 UTC (rev 25) +++ trunk/res.rc 2007-08-20 20:06:32 UTC (rev 26) @@ -173,10 +173,10 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN DEFPUSHBUTTON "OK",IDOK,50,54,50,14 - CTEXT "Pouchin TV Mod 0.4 RC2 by LoL",IDC_STATIC,21,7,107,10 + CTEXT "Pouchin TV Mod 0.4~svn",IDC_STATIC,21,7,107,10 CTEXT "Site de Pouchin TV",IDC_POUCHINTV_URL,21,23,107,10 - CTEXT "Site de Pouchin TV Mod",IDC_POUCHINTVMOD_URL,21,33,107,10 - CTEXT "Site de cette version modifiée", IDC_POUCHINTVMOD_LOL_URL,21,43,107,10 + CTEXT "Pouchin TV Mod (1ère version)",IDC_POUCHINTVMOD_URL,21,33,107,10 + CTEXT "Site de Pouchin TV Mod", IDC_POUCHINTVMOD_LOL_URL,21,43,107,10 END IDD_SCAN DIALOGEX 100, 100, 290, 198 From arupqfjm at yahoo.fr Tue Aug 21 04:04:41 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Tue, 21 Aug 2007 04:04:41 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Probl=E8me_de_compilation?= Message-ID: <000001c7e397$a3353ad0$0200a8c0@blot> Je poste à nouveau à ce sujet, car n'ayant pas l'accès en écriture sur le repository, ce serait bien que l'un de ceux qui l'a puisse mettre à jour le fichier vcproj avec le patch suivant ou bien me donner un accès en écriture. Merci d'avance. arupqfjm Index: Pouchin TV.vcproj =================================================================== --- Pouchin TV.vcproj (revision 25) +++ Pouchin TV.vcproj (working copy) @@ -46,7 +46,7 @@ PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S ECURE_NO_DEPRECATE;USE_CONSOLE=1" MinimalRebuild="true" BasicRuntimeChecks="3" - RuntimeLibrary="1" + RuntimeLibrary="3" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="true" @@ -97,6 +97,84 @@ /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + References: <000001c7e397$a3353ad0$0200a8c0@blot> Message-ID: <17289.193.252.107.84.1187702286.squirrel@mail.baysse.fr> > Je poste à nouveau à ce sujet, car n'ayant pas l'accès en écriture sur le > repository, ce serait bien que l'un de ceux qui l'a puisse mettre à jour > le > fichier vcproj avec le patch suivant ou bien me donner un accès en > écriture. > Merci d'avance. > > arupqfjm > > Index: Pouchin TV.vcproj > =================================================================== > --- Pouchin TV.vcproj (revision 25) > +++ Pouchin TV.vcproj (working copy) > @@ -46,7 +46,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=1" > MinimalRebuild="true" > BasicRuntimeChecks="3" > - RuntimeLibrary="1" > + RuntimeLibrary="3" > UsePrecompiledHeader="0" > WarningLevel="3" > Detect64BitPortabilityProblems="true" > @@ -97,6 +97,84 @@ > /> > > + Name="Debug|x64" > + > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > + > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + ConfigurationType="1" > + CharacterSet="1" > + > > + + Name="VCPreBuildEventTool" > + /> > + + Name="VCCustomBuildTool" > + /> > + + Name="VCXMLDataGeneratorTool" > + /> > + + Name="VCWebServiceProxyGeneratorTool" > + /> > + + Name="VCMIDLTool" > + TargetEnvironment="3" > + /> > + + Name="VCCLCompilerTool" > + Optimization="0" > + > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > + MinimalRebuild="true" > + BasicRuntimeChecks="3" > + RuntimeLibrary="3" > + UsePrecompiledHeader="0" > + WarningLevel="3" > + Detect64BitPortabilityProblems="true" > + DebugInformationFormat="3" > + /> > + + Name="VCManagedResourceCompilerTool" > + /> > + + Name="VCResourceCompilerTool" > + /> > + + Name="VCPreLinkEventTool" > + /> > + + Name="VCLinkerTool" > + AdditionalDependencies="Strmiids.lib > comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > + OutputFile="$(OutDir)\PouchinTV.exe" > + LinkIncremental="2" > + GenerateDebugInformation="true" > + SubSystem="2" > + TargetMachine="17" > + /> > + + Name="VCALinkTool" > + /> > + + Name="VCManifestTool" > + /> > + + Name="VCXDCMakeTool" > + /> > + + Name="VCBscMakeTool" > + /> > + + Name="VCFxCopTool" > + /> > + + Name="VCAppVerifierTool" > + /> > + + Name="VCWebDeploymentTool" > + /> > + + Name="VCPostBuildEventTool" > + /> > + > + Name="Release|Win32" > OutputDirectory="Release" > IntermediateDirectory="Release" > @@ -129,7 +207,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=0" > StringPooling="true" > ExceptionHandling="1" > - RuntimeLibrary="0" > + RuntimeLibrary="2" > BufferSecurityCheck="false" > UsePrecompiledHeader="0" > AssemblerOutput="4" > @@ -185,6 +263,93 @@ > /> > > + Name="Release|x64" > + > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > + > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + ConfigurationType="1" > + CharacterSet="1" > + > > + + Name="VCPreBuildEventTool" > + /> > + + Name="VCCustomBuildTool" > + /> > + + Name="VCXMLDataGeneratorTool" > + /> > + + Name="VCWebServiceProxyGeneratorTool" > + /> > + + Name="VCMIDLTool" > + TargetEnvironment="3" > + /> > + + Name="VCCLCompilerTool" > + Optimization="3" > + InlineFunctionExpansion="2" > + EnableIntrinsicFunctions="true" > + FavorSizeOrSpeed="2" > + OmitFramePointers="true" > + > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > + StringPooling="true" > + ExceptionHandling="1" > + RuntimeLibrary="2" > + BufferSecurityCheck="false" > + UsePrecompiledHeader="0" > + AssemblerOutput="4" > + WarningLevel="3" > + Detect64BitPortabilityProblems="true" > + DebugInformationFormat="3" > + /> > + + Name="VCManagedResourceCompilerTool" > + /> > + + Name="VCResourceCompilerTool" > + /> > + + Name="VCPreLinkEventTool" > + /> > + + Name="VCLinkerTool" > + AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > + OutputFile="$(OutDir)\PouchinTV.exe" > + LinkIncremental="1" > + GenerateDebugInformation="true" > + SubSystem="2" > + OptimizeReferences="2" > + EnableCOMDATFolding="2" > + OptimizeForWindows98="1" > + TargetMachine="17" > + /> > + + Name="VCALinkTool" > + /> > + + Name="VCManifestTool" > + /> > + + Name="VCXDCMakeTool" > + /> > + + Name="VCBscMakeTool" > + /> > + + Name="VCFxCopTool" > + /> > + + Name="VCAppVerifierTool" > + /> > + + Name="VCWebDeploymentTool" > + /> > + + Name="VCPostBuildEventTool" > + /> > + > + Name="Vista Release|Win32" > OutputDirectory="$(ConfigurationName)" > IntermediateDirectory="$(ConfigurationName)" > @@ -217,7 +382,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=0;VISTA=1" > StringPooling="true" > ExceptionHandling="1" > - RuntimeLibrary="0" > + RuntimeLibrary="2" > BufferSecurityCheck="false" > UsePrecompiledHeader="0" > AssemblerOutput="4" > @@ -273,9 +438,7 @@ > /> > > - Name="Vista Debug|Win32" > - OutputDirectory="$(SolutionDir)$(ConfigurationName)" > - IntermediateDirectory="$(ConfigurationName)" > + Name="Vista Release|x64" > ConfigurationType="1" > > > @@ -295,6 +458,7 @@ > /> > Name="VCCLCompilerTool" > + RuntimeLibrary="2" > /> > Name="VCManagedResourceCompilerTool" > @@ -307,7 +471,6 @@ > /> > Name="VCLinkerTool" > - IgnoreDefaultLibraryNames="libcmtd.lib" > /> > Name="VCALinkTool" > @@ -335,11 +498,10 @@ > /> > > - Name="Debug|x64" > - > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > - > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + Name="Vista Debug|Win32" > + OutputDirectory="$(SolutionDir)$(ConfigurationName)" > + IntermediateDirectory="$(ConfigurationName)" > ConfigurationType="1" > - CharacterSet="1" > > > Name="VCPreBuildEventTool" > @@ -355,19 +517,10 @@ > /> > Name="VCMIDLTool" > - TargetEnvironment="3" > /> > Name="VCCLCompilerTool" > - Optimization="0" > - > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > - MinimalRebuild="true" > - BasicRuntimeChecks="3" > - RuntimeLibrary="1" > - UsePrecompiledHeader="0" > - WarningLevel="3" > - Detect64BitPortabilityProblems="true" > - DebugInformationFormat="3" > + RuntimeLibrary="3" > /> > Name="VCManagedResourceCompilerTool" > @@ -380,12 +533,7 @@ > /> > Name="VCLinkerTool" > - AdditionalDependencies="Strmiids.lib > comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > - OutputFile="$(OutDir)\PouchinTV.exe" > - LinkIncremental="2" > - GenerateDebugInformation="true" > - SubSystem="2" > - TargetMachine="17" > + IgnoreDefaultLibraryNames="libcmtd.lib" > /> > Name="VCALinkTool" > @@ -413,11 +561,8 @@ > /> > > - Name="Release|x64" > - > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > - > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + Name="Vista Debug|x64" > ConfigurationType="1" > - CharacterSet="1" > > > Name="VCPreBuildEventTool" > @@ -433,25 +578,10 @@ > /> > Name="VCMIDLTool" > - TargetEnvironment="3" > /> > Name="VCCLCompilerTool" > - Optimization="3" > - InlineFunctionExpansion="2" > - EnableIntrinsicFunctions="true" > - FavorSizeOrSpeed="2" > - OmitFramePointers="true" > - > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > - StringPooling="true" > - ExceptionHandling="1" > - RuntimeLibrary="0" > - BufferSecurityCheck="false" > - UsePrecompiledHeader="0" > - AssemblerOutput="4" > - WarningLevel="3" > - Detect64BitPortabilityProblems="true" > - DebugInformationFormat="3" > + RuntimeLibrary="3" > /> > Name="VCManagedResourceCompilerTool" > @@ -464,15 +594,6 @@ > /> > Name="VCLinkerTool" > - AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > - OutputFile="$(OutDir)\PouchinTV.exe" > - LinkIncremental="1" > - GenerateDebugInformation="true" > - SubSystem="2" > - OptimizeReferences="2" > - EnableCOMDATFolding="2" > - OptimizeForWindows98="1" > - TargetMachine="17" > /> > Name="VCALinkTool" > Je suis en train de modifier le fichier de projet (certains ne sont pas bon comme vista 64 bits en release :( ) Je le commit d'après des modifs de ce diff dès qu'il est prêt... -- Laurent ....ooo...(°_°)...ooo.... From arupqfjm at yahoo.fr Tue Aug 21 16:02:18 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Tue, 21 Aug 2007 16:02:18 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Probl=E8me_de_compilation?= In-Reply-To: <17289.193.252.107.84.1187702286.squirrel@mail.baysse.fr> References: <000001c7e397$a3353ad0$0200a8c0@blot> <17289.193.252.107.84.1187702286.squirrel@mail.baysse.fr> Message-ID: <000001c7e3fb$e36e6db0$0200a8c0@blot> Parfait, merci bien. En fait les modifs que j'ai faites correspondent juste au changement dans : Propriétés de configuration > C/C++ > Génération de code > Bibliothèque runtime des bibliothèques standard (/MT ou /MTd) en DLL (/MD ou /MDd), et ce pour toutes les configurations/plateformes. -----Message d'origine----- De : pouchintv-dev-bounces at baysse.fr [mailto:pouchintv-dev-bounces at baysse.fr] De la part de Laurent Baysse Envoyé : mardi 21 août 2007 15:18 À : Liste utilisée par les développeurs Objet : Re: [Pouchintv-dev] Problème de compilation > Je poste à nouveau à ce sujet, car n'ayant pas l'accès en écriture sur le > repository, ce serait bien que l'un de ceux qui l'a puisse mettre à jour > le > fichier vcproj avec le patch suivant ou bien me donner un accès en > écriture. > Merci d'avance. > > arupqfjm > > Index: Pouchin TV.vcproj > =================================================================== > --- Pouchin TV.vcproj (revision 25) > +++ Pouchin TV.vcproj (working copy) > @@ -46,7 +46,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=1" > MinimalRebuild="true" > BasicRuntimeChecks="3" > - RuntimeLibrary="1" > + RuntimeLibrary="3" > UsePrecompiledHeader="0" > WarningLevel="3" > Detect64BitPortabilityProblems="true" > @@ -97,6 +97,84 @@ > /> > > + Name="Debug|x64" > + > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > + > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + ConfigurationType="1" > + CharacterSet="1" > + > > + + Name="VCPreBuildEventTool" > + /> > + + Name="VCCustomBuildTool" > + /> > + + Name="VCXMLDataGeneratorTool" > + /> > + + Name="VCWebServiceProxyGeneratorTool" > + /> > + + Name="VCMIDLTool" > + TargetEnvironment="3" > + /> > + + Name="VCCLCompilerTool" > + Optimization="0" > + > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > + MinimalRebuild="true" > + BasicRuntimeChecks="3" > + RuntimeLibrary="3" > + UsePrecompiledHeader="0" > + WarningLevel="3" > + Detect64BitPortabilityProblems="true" > + DebugInformationFormat="3" > + /> > + + Name="VCManagedResourceCompilerTool" > + /> > + + Name="VCResourceCompilerTool" > + /> > + + Name="VCPreLinkEventTool" > + /> > + + Name="VCLinkerTool" > + AdditionalDependencies="Strmiids.lib > comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > + OutputFile="$(OutDir)\PouchinTV.exe" > + LinkIncremental="2" > + GenerateDebugInformation="true" > + SubSystem="2" > + TargetMachine="17" > + /> > + + Name="VCALinkTool" > + /> > + + Name="VCManifestTool" > + /> > + + Name="VCXDCMakeTool" > + /> > + + Name="VCBscMakeTool" > + /> > + + Name="VCFxCopTool" > + /> > + + Name="VCAppVerifierTool" > + /> > + + Name="VCWebDeploymentTool" > + /> > + + Name="VCPostBuildEventTool" > + /> > + > + Name="Release|Win32" > OutputDirectory="Release" > IntermediateDirectory="Release" > @@ -129,7 +207,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=0" > StringPooling="true" > ExceptionHandling="1" > - RuntimeLibrary="0" > + RuntimeLibrary="2" > BufferSecurityCheck="false" > UsePrecompiledHeader="0" > AssemblerOutput="4" > @@ -185,6 +263,93 @@ > /> > > + Name="Release|x64" > + > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > + > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + ConfigurationType="1" > + CharacterSet="1" > + > > + + Name="VCPreBuildEventTool" > + /> > + + Name="VCCustomBuildTool" > + /> > + + Name="VCXMLDataGeneratorTool" > + /> > + + Name="VCWebServiceProxyGeneratorTool" > + /> > + + Name="VCMIDLTool" > + TargetEnvironment="3" > + /> > + + Name="VCCLCompilerTool" > + Optimization="3" > + InlineFunctionExpansion="2" > + EnableIntrinsicFunctions="true" > + FavorSizeOrSpeed="2" > + OmitFramePointers="true" > + > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > + StringPooling="true" > + ExceptionHandling="1" > + RuntimeLibrary="2" > + BufferSecurityCheck="false" > + UsePrecompiledHeader="0" > + AssemblerOutput="4" > + WarningLevel="3" > + Detect64BitPortabilityProblems="true" > + DebugInformationFormat="3" > + /> > + + Name="VCManagedResourceCompilerTool" > + /> > + + Name="VCResourceCompilerTool" > + /> > + + Name="VCPreLinkEventTool" > + /> > + + Name="VCLinkerTool" > + AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > + OutputFile="$(OutDir)\PouchinTV.exe" > + LinkIncremental="1" > + GenerateDebugInformation="true" > + SubSystem="2" > + OptimizeReferences="2" > + EnableCOMDATFolding="2" > + OptimizeForWindows98="1" > + TargetMachine="17" > + /> > + + Name="VCALinkTool" > + /> > + + Name="VCManifestTool" > + /> > + + Name="VCXDCMakeTool" > + /> > + + Name="VCBscMakeTool" > + /> > + + Name="VCFxCopTool" > + /> > + + Name="VCAppVerifierTool" > + /> > + + Name="VCWebDeploymentTool" > + /> > + + Name="VCPostBuildEventTool" > + /> > + > + Name="Vista Release|Win32" > OutputDirectory="$(ConfigurationName)" > IntermediateDirectory="$(ConfigurationName)" > @@ -217,7 +382,7 @@ > > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE;USE_CONSOLE=0;VISTA=1" > StringPooling="true" > ExceptionHandling="1" > - RuntimeLibrary="0" > + RuntimeLibrary="2" > BufferSecurityCheck="false" > UsePrecompiledHeader="0" > AssemblerOutput="4" > @@ -273,9 +438,7 @@ > /> > > - Name="Vista Debug|Win32" > - OutputDirectory="$(SolutionDir)$(ConfigurationName)" > - IntermediateDirectory="$(ConfigurationName)" > + Name="Vista Release|x64" > ConfigurationType="1" > > > @@ -295,6 +458,7 @@ > /> > Name="VCCLCompilerTool" > + RuntimeLibrary="2" > /> > Name="VCManagedResourceCompilerTool" > @@ -307,7 +471,6 @@ > /> > Name="VCLinkerTool" > - IgnoreDefaultLibraryNames="libcmtd.lib" > /> > Name="VCALinkTool" > @@ -335,11 +498,10 @@ > /> > > - Name="Debug|x64" > - > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > - > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + Name="Vista Debug|Win32" > + OutputDirectory="$(SolutionDir)$(ConfigurationName)" > + IntermediateDirectory="$(ConfigurationName)" > ConfigurationType="1" > - CharacterSet="1" > > > Name="VCPreBuildEventTool" > @@ -355,19 +517,10 @@ > /> > Name="VCMIDLTool" > - TargetEnvironment="3" > /> > Name="VCCLCompilerTool" > - Optimization="0" > - > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > - MinimalRebuild="true" > - BasicRuntimeChecks="3" > - RuntimeLibrary="1" > - UsePrecompiledHeader="0" > - WarningLevel="3" > - Detect64BitPortabilityProblems="true" > - DebugInformationFormat="3" > + RuntimeLibrary="3" > /> > Name="VCManagedResourceCompilerTool" > @@ -380,12 +533,7 @@ > /> > Name="VCLinkerTool" > - AdditionalDependencies="Strmiids.lib > comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > - OutputFile="$(OutDir)\PouchinTV.exe" > - LinkIncremental="2" > - GenerateDebugInformation="true" > - SubSystem="2" > - TargetMachine="17" > + IgnoreDefaultLibraryNames="libcmtd.lib" > /> > Name="VCALinkTool" > @@ -413,11 +561,8 @@ > /> > > - Name="Release|x64" > - > OutputDirectory="$(PlatformName)\$(ConfigurationName)" > - > IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" > + Name="Vista Debug|x64" > ConfigurationType="1" > - CharacterSet="1" > > > Name="VCPreBuildEventTool" > @@ -433,25 +578,10 @@ > /> > Name="VCMIDLTool" > - TargetEnvironment="3" > /> > Name="VCCLCompilerTool" > - Optimization="3" > - InlineFunctionExpansion="2" > - EnableIntrinsicFunctions="true" > - FavorSizeOrSpeed="2" > - OmitFramePointers="true" > - > PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_S > ECURE_NO_DEPRECATE" > - StringPooling="true" > - ExceptionHandling="1" > - RuntimeLibrary="0" > - BufferSecurityCheck="false" > - UsePrecompiledHeader="0" > - AssemblerOutput="4" > - WarningLevel="3" > - Detect64BitPortabilityProblems="true" > - DebugInformationFormat="3" > + RuntimeLibrary="3" > /> > Name="VCManagedResourceCompilerTool" > @@ -464,15 +594,6 @@ > /> > Name="VCLinkerTool" > - AdditionalDependencies="Strmiids.lib > comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > - OutputFile="$(OutDir)\PouchinTV.exe" > - LinkIncremental="1" > - GenerateDebugInformation="true" > - SubSystem="2" > - OptimizeReferences="2" > - EnableCOMDATFolding="2" > - OptimizeForWindows98="1" > - TargetMachine="17" > /> > Name="VCALinkTool" > Je suis en train de modifier le fichier de projet (certains ne sont pas bon comme vista 64 bits en release :( ) Je le commit d'après des modifs de ce diff dès qu'il est prêt... -- Laurent ....ooo...(°_°)...ooo.... From pouchintv-svn at baysse.fr Tue Aug 21 16:55:38 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Tue, 21 Aug 2007 16:55:38 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r27 - trunk Message-ID: <20070821145538.29CBD5F266@mail.baysse.fr> Author: lolo_32 Date: 2007-08-21 16:55:37 +0200 (Tue, 21 Aug 2007) New Revision: 27 Modified: trunk/Pouchin TV.vcproj Log: Modification du fichier de projet: * suppression des optimisations pour Windows 98 (ne fonctionne pas de toute fa?\195?\167on dessus) * ajout des lignes pour la compilation sous architectures 64 bits * suppression des biblioth?\195?\168ques ignor?\195?\169es * modif des noms/r?\195?\169pertoires de sortie des diff?\195?\169rentes cibles Modified: trunk/Pouchin TV.vcproj =================================================================== --- trunk/Pouchin TV.vcproj 2007-08-20 20:06:32 UTC (rev 26) +++ trunk/Pouchin TV.vcproj 2007-08-21 14:55:37 UTC (rev 27) @@ -20,8 +20,8 @@ @@ -66,7 +66,6 @@ AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" OutputFile="$(OutDir)\PouchinTVMod_debug.exe" LinkIncremental="2" - IgnoreDefaultLibraryNames="libcmtd.lib" GenerateDebugInformation="true" SubSystem="2" TargetMachine="1" @@ -97,12 +96,88 @@ /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From pouchintv-svn at baysse.fr Tue Aug 21 21:38:38 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Tue, 21 Aug 2007 21:38:38 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r28 - trunk Message-ID: <20070821193839.11C665F267@mail.baysse.fr> Author: matmaul Date: 2007-08-21 21:38:38 +0200 (Tue, 21 Aug 2007) New Revision: 28 Modified: trunk/AUTHORS trunk/res.rc Log: suppression des noms dans les ressources, rajout de mon vrai nom dans AUTHORS et test du svn aussi ;) Modified: trunk/AUTHORS =================================================================== --- trunk/AUTHORS 2007-08-21 14:55:37 UTC (rev 27) +++ trunk/AUTHORS 2007-08-21 19:38:38 UTC (rev 28) @@ -14,7 +14,7 @@ Mod's creator Créateur du Mod - MatMaul http://www.etud.insa-toulouse.fr/~mvelten/pouchintvmod/ + MatMaul (Mathieu Velten) http://www.etud.insa-toulouse.fr/~mvelten/pouchintvmod/ Contributers sorted alphabetically by last name @@ -22,6 +22,6 @@ Name/Nom Identifiant Laurent Baysse lolo_32 - matmaul +Mathieu Velten matmaul gingko radius Modified: trunk/res.rc =================================================================== --- trunk/res.rc 2007-08-21 14:55:37 UTC (rev 27) +++ trunk/res.rc 2007-08-21 19:38:38 UTC (rev 28) @@ -415,8 +415,7 @@ BEGIN BLOCK "040c04b0" BEGIN - VALUE "Comments", "http://pouchintv.baysse.fr, http://www.etud.insa-toulouse.fr/~mvelten/pouchintvmod/, http://pouchinteve.free.fr/" - VALUE "CompanyName", "Pouchin, MatMaul, LoL" + VALUE "Comments", "http://pouchintv.baysse.fr/, http://www.etud.insa-toulouse.fr/~mvelten/pouchintvmod/, http://pouchinteve.free.fr/" VALUE "FileDescription", "Pouchin TV Mod" VALUE "FileVersion", "0, 4, 0, 0" VALUE "InternalName", "Pouchin TV Mod" From pouchintv-svn at baysse.fr Tue Aug 21 23:19:06 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Tue, 21 Aug 2007 23:19:06 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r29 - trunk Message-ID: <20070821211906.1CE445F268@mail.baysse.fr> Author: lolo_32 Date: 2007-08-21 23:19:05 +0200 (Tue, 21 Aug 2007) New Revision: 29 Removed: trunk/lib_x64/ trunk/lib_x86/ Modified: trunk/ trunk/Pouchin TV.sln trunk/Pouchin TV.vcproj trunk/grabber.cpp trunk/main.cpp Log: * rectifications permettant de compiler la cible "Vista Debug", et de compiler en x64. * restauration des "librairies ignor?\195?\169e" supprim?\195?\169e lors du pr?\195?\169c?\195?\169dent commit * suppression des r?\195?\169pertoires lib_x64 et lib_x86 contenant les libs pr?\195?\169compil?\195?\169es impliquant la compilation des sources dans le r?\195?\169pertoire "BaseClasses" du SDK de "Microsoft SDKs", car les fichiers pr?\195?\169compil?\195?\169s ne correspondent pas ?\195?\160 la version utilis?\195?\169e actuellement des sources disponibles * ajout des r?\195?\169pertoires "Vista Debug" et "x64" ?\195?\160 la liste des ignor?\195?\169s pour le r?\195?\169pertoire initial Property changes on: trunk ___________________________________________________________________ Name: svn:ignore - Debug Release Vista Release chaines.xml config.ini pouchin.log Pouchin TV.suo Pouchin TV.ncb Pouchin TV.vcproj.* programmes.xml .*.swp + Debug Release Vista Debug Vista Release x64 chaines.xml config.ini pouchin.log Pouchin TV.suo Pouchin TV.ncb Pouchin TV.vcproj.* programmes.xml .*.swp Modified: trunk/Pouchin TV.sln =================================================================== --- trunk/Pouchin TV.sln 2007-08-21 19:38:38 UTC (rev 28) +++ trunk/Pouchin TV.sln 2007-08-21 21:19:05 UTC (rev 29) @@ -9,19 +9,28 @@ Debug|x64 = Debug|x64 Release|Win32 = Release|Win32 Release|x64 = Release|x64 + Vista Debug|Win32 = Vista Debug|Win32 + Vista Debug|x64 = Vista Debug|x64 Vista Release|Win32 = Vista Release|Win32 Vista Release|x64 = Vista Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|Win32.ActiveCfg = Debug|Win32 {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|Win32.Build.0 = Debug|Win32 - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.ActiveCfg = Debug|Win32 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.ActiveCfg = Debug|x64 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.Build.0 = Debug|x64 {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|Win32.ActiveCfg = Release|Win32 {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|Win32.Build.0 = Release|Win32 - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.ActiveCfg = Release|Win32 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.ActiveCfg = Debug|x64 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.Build.0 = Debug|x64 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|Win32.ActiveCfg = Vista Debug|Win32 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|Win32.Build.0 = Vista Debug|Win32 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|x64.ActiveCfg = Vista Release|x64 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|x64.Build.0 = Vista Release|x64 {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|Win32.ActiveCfg = Vista Release|Win32 {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|Win32.Build.0 = Vista Release|Win32 - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.ActiveCfg = Vista Release|Win32 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.ActiveCfg = Vista Release|x64 + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.Build.0 = Vista Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE Modified: trunk/Pouchin TV.vcproj =================================================================== --- trunk/Pouchin TV.vcproj 2007-08-21 19:38:38 UTC (rev 28) +++ trunk/Pouchin TV.vcproj 2007-08-21 21:19:05 UTC (rev 29) @@ -43,7 +43,7 @@ References: <20070821211906.1CE445F268@mail.baysse.fr> Message-ID: <46CB5C03.6020307@baysse.fr> pouchintv-svn at baysse.fr a écrit : > Author: lolo_32 > Date: 2007-08-21 23:19:05 +0200 (Tue, 21 Aug 2007) > New Revision: 29 > > Removed: > trunk/lib_x64/ > trunk/lib_x86/ > Modified: > trunk/ > trunk/Pouchin TV.sln > trunk/Pouchin TV.vcproj > trunk/grabber.cpp > trunk/main.cpp > Log: > * rectifications permettant de compiler la cible "Vista Debug", et de compiler en x64. > * restauration des "librairies ignor?\195?\169e" supprim?\195?\169e lors du pr?\195?\169c?\195?\169dent commit > * suppression des r?\195?\169pertoires lib_x64 et lib_x86 contenant les libs pr?\195?\169compil?\195?\169es impliquant la compilation des sources dans le r?\195?\169pertoire "BaseClasses" du SDK de "Microsoft SDKs", car les fichiers pr?\195?\169compil?\195?\169s ne correspondent pas ?\195?\160 la version utilis?\195?\169e actuellement des sources disponibles > * ajout des r?\195?\169pertoires "Vista Debug" et "x64" ?\195?\160 la liste des ignor?\195?\169s pour le r?\195?\169pertoire initial > > > Property changes on: trunk > ___________________________________________________________________ > Name: svn:ignore > - Debug > Release > Vista Release > chaines.xml > config.ini > pouchin.log > Pouchin TV.suo > Pouchin TV.ncb > Pouchin TV.vcproj.* > programmes.xml > .*.swp > > + Debug > Release > Vista Debug > Vista Release > x64 > chaines.xml > config.ini > pouchin.log > Pouchin TV.suo > Pouchin TV.ncb > Pouchin TV.vcproj.* > programmes.xml > .*.swp > > > Modified: trunk/Pouchin TV.sln > =================================================================== > --- trunk/Pouchin TV.sln 2007-08-21 19:38:38 UTC (rev 28) > +++ trunk/Pouchin TV.sln 2007-08-21 21:19:05 UTC (rev 29) > @@ -9,19 +9,28 @@ > Debug|x64 = Debug|x64 > Release|Win32 = Release|Win32 > Release|x64 = Release|x64 > + Vista Debug|Win32 = Vista Debug|Win32 > + Vista Debug|x64 = Vista Debug|x64 > Vista Release|Win32 = Vista Release|Win32 > Vista Release|x64 = Vista Release|x64 > EndGlobalSection > GlobalSection(ProjectConfigurationPlatforms) = postSolution > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|Win32.ActiveCfg = Debug|Win32 > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|Win32.Build.0 = Debug|Win32 > - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.ActiveCfg = Debug|Win32 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.ActiveCfg = Debug|x64 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Debug|x64.Build.0 = Debug|x64 > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|Win32.ActiveCfg = Release|Win32 > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|Win32.Build.0 = Release|Win32 > - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.ActiveCfg = Release|Win32 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.ActiveCfg = Debug|x64 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Release|x64.Build.0 = Debug|x64 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|Win32.ActiveCfg = Vista Debug|Win32 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|Win32.Build.0 = Vista Debug|Win32 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|x64.ActiveCfg = Vista Release|x64 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Debug|x64.Build.0 = Vista Release|x64 > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|Win32.ActiveCfg = Vista Release|Win32 > {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|Win32.Build.0 = Vista Release|Win32 > - {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.ActiveCfg = Vista Release|Win32 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.ActiveCfg = Vista Release|x64 > + {E40974CC-65ED-4E0D-A2E2-3885C2C8A25B}.Vista Release|x64.Build.0 = Vista Release|x64 > EndGlobalSection > GlobalSection(SolutionProperties) = preSolution > HideSolutionNode = FALSE > > Modified: trunk/Pouchin TV.vcproj > =================================================================== > --- trunk/Pouchin TV.vcproj 2007-08-21 19:38:38 UTC (rev 28) > +++ trunk/Pouchin TV.vcproj 2007-08-21 21:19:05 UTC (rev 29) > @@ -43,7 +43,7 @@ > Name="VCCLCompilerTool" > Optimization="0" > - PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=1" > + PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=1;VISTA=0" > MinimalRebuild="true" > BasicRuntimeChecks="3" > RuntimeLibrary="1" > @@ -66,6 +66,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" > OutputFile="$(OutDir)\PouchinTVMod_debug.exe" > LinkIncremental="2" > + IgnoreDefaultLibraryNames="libcmtd.lib" > GenerateDebugInformation="true" > SubSystem="2" > TargetMachine="1" > @@ -143,6 +144,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" > OutputFile="$(OutDir)\PouchinTVMod_vista_debug.exe" > LinkIncremental="2" > + IgnoreDefaultLibraryNames="libcmtd.lib" > GenerateDebugInformation="true" > SubSystem="2" > TargetMachine="1" > @@ -201,7 +203,7 @@ > EnableIntrinsicFunctions="true" > FavorSizeOrSpeed="1" > OmitFramePointers="true" > - PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=0" > + PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=0;VISTA=0" > StringPooling="true" > ExceptionHandling="1" > RuntimeLibrary="2" > @@ -226,6 +228,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib" > OutputFile="$(OutDir)\PouchinTVMod.exe" > LinkIncremental="1" > + IgnoreDefaultLibraryNames="libcmt.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > @@ -312,6 +315,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > OutputFile="$(OutDir)\PouchinTVMod_Vista.exe" > LinkIncremental="1" > + IgnoreDefaultLibraryNames="libcmt.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > @@ -370,7 +374,7 @@ > Name="VCCLCompilerTool" > Optimization="0" > - PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=1" > + PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=1;VISTA=0" > MinimalRebuild="true" > BasicRuntimeChecks="3" > RuntimeLibrary="1" > @@ -393,6 +397,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > OutputFile="$(OutDir)\PouchinTV_debug_x64.exe" > LinkIncremental="2" > + IgnoreDefaultLibraryNames="libcmtd.lib" > GenerateDebugInformation="true" > SubSystem="2" > TargetMachine="17" > @@ -471,6 +476,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib " > OutputFile="$(OutDir)\PouchinTV_vista_debug_x64.exe" > LinkIncremental="2" > + IgnoreDefaultLibraryNames="libcmtd.lib" > GenerateDebugInformation="true" > SubSystem="2" > TargetMachine="17" > @@ -526,7 +532,7 @@ > Name="VCCLCompilerTool" > Optimization="2" > - PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=0" > + PreprocessorDefinitions="NTDDI_VERSION=0x05010200;_WIN32_WINNT=0x0501;_CRT_SECURE_NO_DEPRECATE;USE_CONSOLE=0;VISTA=0" > InlineFunctionExpansion="2" > EnableIntrinsicFunctions="true" > FavorSizeOrSpeed="1" > @@ -555,6 +561,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > OutputFile="$(OutDir)\PouchinTV_x64.exe" > LinkIncremental="1" > + IgnoreDefaultLibraryNames="libcmt.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > @@ -642,6 +649,7 @@ > AdditionalDependencies="Strmiids.lib comctl32.lib strmbase.lib Winmm.lib msxml2.lib " > OutputFile="$(OutDir)\PouchinTVMod_Vista_x64.exe" > LinkIncremental="1" > + IgnoreDefaultLibraryNames="libcmt.lib" > GenerateDebugInformation="false" > SubSystem="2" > OptimizeReferences="2" > > Modified: trunk/grabber.cpp > =================================================================== > --- trunk/grabber.cpp 2007-08-21 19:38:38 UTC (rev 28) > +++ trunk/grabber.cpp 2007-08-21 21:19:05 UTC (rev 29) > @@ -44,7 +44,7 @@ > > taille_packet_buf = 0; > > - hFile = CreateFile(pName, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > + hFile = CreateFile(pName, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > } > > // enregistre une chaine en TS > @@ -64,7 +64,7 @@ > > myprintf(L"enregistre TS %i %i %i\n", video, audio, pmt_pid); > > - hFile = CreateFile(pName, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > + hFile = CreateFile(pName, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > } > > // enregistre une chaine en PS > @@ -86,7 +86,7 @@ > > taille_packet_buf = 0; > > - hFile = CreateFile(pName, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > + hFile = CreateFile(pName, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); > } > > /* Destructor */ > > Modified: trunk/main.cpp > =================================================================== > --- trunk/main.cpp 2007-08-21 19:38:38 UTC (rev 28) > +++ trunk/main.cpp 2007-08-21 21:19:05 UTC (rev 29) > @@ -3231,6 +3231,7 @@ > #if USE_CONSOLE > startConsoleWin(); > myprintf(L"Compile le : %S %S\n", __DATE__, __TIME__); > + myprintf(L"\tVista build: %d\n", VISTA + 0); > #endif > > CoInitialize(NULL); > @@ -3336,6 +3337,7 @@ > } > > // R?cup?re la version de windows > + // et initialise la variable indiquant si on tourne sous Vista > ZeroMemory(&windows_version, sizeof(OSVERSIONINFOEX)); > windows_version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEXW); > if (GetVersionEx((OSVERSIONINFO *)&windows_version)) { > @@ -3358,7 +3360,7 @@ > switch_fullscreen(); > } > > - // Load the accelerator table. > + // Charge le tableau des raccourcis claviers > HACCEL hAccel = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDR_ACCELERATOR1)); > > // boucle qui traite les messages clavier > @@ -3370,12 +3372,16 @@ > } > } > > + // Si on demand? la mise ? jour de MSN > if (use_msn) > { > + // On cherche la fen?tre > HWND msnui = FindWindow(L"MsnMsgrUIManager", NULL); > > + // Si, msnui == NULL, MSN ne fonctionne pas ou le fen?tre est masqu?e (donc, pas de mise ? jour) > if (msnui != NULL) > { > + // Si on l'a trouv?e, on efface la musique indiqu?e sur MSN > COPYDATASTRUCT msndata; > msndata.dwData = 0x547; > msndata.lpData = L"\\0Music\\00\\0\\0\\0\\0\\0\\0"; > @@ -3384,8 +3390,10 @@ > } > } > > + // On efface la liste des raccourcis > DestroyAcceleratorTable(hAccel); > > + // On lib?re toutes les ressources initialis?es > CoUninitialize(); > > return (int)msg.wParam; > Je viens de mettre à jour la page expliquant les paramètres de compilation (http://pouchintv.baysse.fr/VisualExplress.html), ainsi que la méthode pour compiler suite à la suppression des librairies précompilées fournies, car non actuelles. -- Laurent Baysse From radius at r4dius.net Wed Aug 22 16:22:25 2007 From: radius at r4dius.net (radius) Date: Wed, 22 Aug 2007 16:22:25 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r29 - trunk References: <20070821211906.1CE445F268@mail.baysse.fr> <46CB5C03.6020307@baysse.fr> Message-ID: <200708221622245003714@r4dius.net> Salut, j'ai peut etre mal compris mais actuellement l'exe detecte l'os au lancement et inclus donc les modifs pour vista ? Si oui pourquoi on garde la config vista dans le projet ^^ ? A+ From pouchintv-svn at baysse.fr Wed Aug 22 18:06:40 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Wed, 22 Aug 2007 18:06:40 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] radius | r30 - trunk Message-ID: <20070822160640.CD7815F26D@mail.baysse.fr> Author: radius Date: 2007-08-22 18:06:40 +0200 (Wed, 22 Aug 2007) New Revision: 30 Modified: trunk/main.cpp Log: tab[4] = -1; on efface la 5?\195?\168me colonne tab[4] (au lieu de tab[5]) dans la barre des status si on est pas sous vista j'ai fais afficher les infos de zoom / volume tout en bas comme le nom des chaines est tout en haut, vous en pensez quoi ? pour finir j'ai fais la modif pour que le focus sur la fenetre de pouchin fonctionne (sans le probleme des 2 icones en notify) mais (pour Mathieu) je capte pas pourquoi le bouton dans la taskbar ne se cache plus que quand on minimise la fenetre Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-21 21:19:05 UTC (rev 29) +++ trunk/main.cpp 2007-08-22 16:06:40 UTC (rev 30) @@ -819,7 +819,7 @@ } else { n = 5; minwidth = 500; - tab[5] = -1; // tab[6] est inutilisé + tab[4] = -1; // tab[5] est inutilisé } // on a de la place en plus @@ -2143,6 +2143,7 @@ } static POINT coord_down; +int tray = 0; /** * main window procedure @@ -2157,10 +2158,11 @@ myprintf(L"create\n"); hWnd = hwnd; - if((GetWindowLong(hWnd, GWL_HWNDPARENT) == NULL) && minimize_system_tray) { - niData.hWnd = hWnd; - - Shell_NotifyIcon(NIM_ADD,&niData); + if(/*(GetWindowLong(hWnd, GWL_HWNDPARENT) == NULL) &&*/ minimize_system_tray && tray == 0) { + // on ne crée qu'une icone dans la zone de notification + tray = 1; + niData.hWnd = hWnd; + Shell_NotifyIcon(NIM_ADD,&niData); } break; @@ -2279,7 +2281,7 @@ { SetTextAlign(hdc, TA_RIGHT); - TextOutA(hdc, rect.right-10, rect.bottom-hauteur*2, "Sourdine", (int)strlen("Sourdine")); + TextOutA(hdc, rect.right-10, rect.bottom-hauteur, "Sourdine", (int)strlen("Sourdine")); } if (show_volume) @@ -2289,7 +2291,7 @@ char str[256]; int taille = sprintf(str, "Volume %i", (volumeCourant+8000)/80); - TextOutA(hdc, rect.left+10, rect.bottom-hauteur*2, str, taille); + TextOutA(hdc, rect.left+10, rect.bottom-hauteur, str, taille); } if (show_zoom) @@ -2299,7 +2301,7 @@ char str[256]; int taille = sprintf(str, "Zoom %i%%", zoom_ratio); - TextOutA(hdc, rect.left+10, rect.bottom-hauteur*3, str, taille); + TextOutA(hdc, rect.left+10, rect.bottom-hauteur, str, taille); } DeleteObject(hf); @@ -3265,8 +3267,8 @@ win_y, win_w, win_h, - hidden_hwnd, NULL, + NULL, hInstance, NULL); From laurent at baysse.fr Wed Aug 22 18:09:29 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Wed, 22 Aug 2007 18:09:29 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r29 - trunk In-Reply-To: <200708221622245003714@r4dius.net> References: <20070821211906.1CE445F268@mail.baysse.fr> <46CB5C03.6020307@baysse.fr> <200708221622245003714@r4dius.net> Message-ID: <10159.193.252.107.84.1187798969.squirrel@mail.baysse.fr> > Salut, > j'ai peut etre mal compris mais actuellement l'exe detecte l'os au > lancement et inclus donc les modifs pour vista ? > Si oui pourquoi on garde la config vista dans le projet ^^ ? > A+ En fait, tu as tout compris. Il cherche si il tourne sous Vista ou 2008 server, et positionne la variable "is_vista" à true dans ce cas. Elle vaut false sinon (2000, XP, 2003). Toutes les conditions "#if VISTA" ont été remplacée par "if (is_vista)" qui fonctionne elle à l'exécution... Actuellement, la config Vista n'est donc plus utile... -- Laurent ....ooo...(°_°)...ooo.... From pouchintv-svn at baysse.fr Wed Aug 22 18:52:59 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Wed, 22 Aug 2007 18:52:59 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] radius | r31 - trunk Message-ID: <20070822165300.072785F23A@mail.baysse.fr> Author: radius Date: 2007-08-22 18:52:59 +0200 (Wed, 22 Aug 2007) New Revision: 31 Modified: trunk/main.cpp Log: J'avais oubli?\195?\169 que le volume et le zoom s'affichaient a gauche, pour eviter qu'ils se chevauchent (avec ma pr?\195?\169cedente modif) on cache le volume si on zoom et vice-versa Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-22 16:06:40 UTC (rev 30) +++ trunk/main.cpp 2007-08-22 16:52:59 UTC (rev 31) @@ -2284,6 +2284,12 @@ TextOutA(hdc, rect.right-10, rect.bottom-hauteur, "Sourdine", (int)strlen("Sourdine")); } + // on affiche le dernier message appelé et on cache l'ancien + if (show_volume && show_zoom) { + if(last_volume_osd > last_zoom) show_zoom = !show_zoom; + else show_volume = !show_volume; + } + if (show_volume) { SetTextAlign(hdc, TA_LEFT); From matmaul at gmail.com Wed Aug 22 20:54:06 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Wed, 22 Aug 2007 20:54:06 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] radius | r30 - trunk In-Reply-To: <20070822160640.CD7815F26D@mail.baysse.fr> References: <20070822160640.CD7815F26D@mail.baysse.fr> Message-ID: <20fbb8bc0708221154o44aa3e13lc83cdc9d05c5121e@mail.gmail.com> oui mais non ^^ hwnd = CreateWindowEx(0, szAppName, L"Pouchin TV Mod", WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, win_x, win_y, win_w, win_h, -> hidden_hwnd, NULL, hInstance, NULL); si ici je faisais descendre la fenêtre de hidden_hwnd c'est pas pour rien. sans ca on ne peut pas cacher l'item dans la barre des taches sans cacher aussi la fenêtre. par contre je comprend pas ce que vous appelez le focus... j'ai ma petite idée mais je suis pas sur. en fait je cache totalement la fenètre mère du programme (hidden_hwnd) et je créé une nouvelle fenètre qui descend de hidden_hwnd, comme ca je peux enlever ou remettre l'item dans la barre des taches sans pb (ce n'est pas possible avec une fenètre mère malheuresement !) le pb du focus dont vous parlez je pense c'est le fait que comme la fenètre mère du programme est toujours caché bin le programme na jamais le "focus" même si il est au dessus des autres fenêtres (vu que c'est une fenêtre fille qui est au dessus des autres et non pas la fenètre mère). Mais en quoi vous avez besoin du focus ? à quoi il vous sert ? MatMaul Le 22/08/07, pouchintv-svn at baysse.fr a écrit : > Author: radius > Date: 2007-08-22 18:06:40 +0200 (Wed, 22 Aug 2007) > New Revision: 30 > > Modified: > trunk/main.cpp > Log: > tab[4] = -1; > on efface la 5?\195?\168me colonne tab[4] (au lieu de tab[5]) dans la barre des status si on est pas sous vista > > j'ai fais afficher les infos de zoom / volume tout en bas comme le nom des chaines est tout en haut, vous en pensez quoi ? > > pour finir j'ai fais la modif pour que le focus sur la fenetre de pouchin fonctionne (sans le probleme des 2 icones en notify) mais (pour Mathieu) je capte pas pourquoi le bouton dans la taskbar ne se cache plus que quand on minimise la fenetre > From pouchintv-svn at baysse.fr Wed Aug 22 21:01:15 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Wed, 22 Aug 2007 21:01:15 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] radius | r32 - trunk Message-ID: <20070822190115.B88C95F273@mail.baysse.fr> Author: radius Date: 2007-08-22 21:01:15 +0200 (Wed, 22 Aug 2007) New Revision: 32 Modified: trunk/main.cpp Log: L'unmute d?\195?\169connait encore si on ouvrait pouchin avec le volume a 100 dans la config Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-22 16:52:59 UTC (rev 31) +++ trunk/main.cpp 2007-08-22 19:01:15 UTC (rev 32) @@ -2009,7 +2009,7 @@ { muted = !muted; - long vol = muted ? -8000 : (volumeCourant ? volumeCourant : 0) ; + long vol = muted ? -8000 : (volumeCourant < 0 ? volumeCourant : 0) ; IBasicAudio * pBas; From pouchintv-svn at baysse.fr Wed Aug 22 21:13:05 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Wed, 22 Aug 2007 21:13:05 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r33 - trunk Message-ID: <20070822191305.5B9B65F273@mail.baysse.fr> Author: lolo_32 Date: 2007-08-22 21:13:04 +0200 (Wed, 22 Aug 2007) New Revision: 33 Modified: trunk/main.cpp Log: Ajout condition permettant de compiler une version qui se comportera toujours comme sous Vista, m?\195?\170me sous 2000 ou XP (is_vista = true) Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-22 19:01:15 UTC (rev 32) +++ trunk/main.cpp 2007-08-22 19:13:04 UTC (rev 33) @@ -3351,13 +3351,19 @@ if (GetVersionEx((OSVERSIONINFO *)&windows_version)) { if (windows_version.dwMajorVersion >= 6) { is_vista = true; - myprintf(L"Fonctionne sous Vista ou 2008 Serveur ou plus récent\n"); + myprintf(L"Fonctionne sous Vista ou 2008 Serveur ou plus récent"); } else { - myprintf(L"Fonctionne sous 2000 ou XP\n"); + myprintf(L"Fonctionne sous 2000 ou XP"); } } else { myprintf(L"Erreur lors de la récupération de la version de Windows\n"); } +#if VISTA + is_vista = true; + myprintf(L"\tVista forcé\n"); +#else + myprintf(L"\n"); +#endif mainMenu = GetMenu(hwnd); From radius at r4dius.net Wed Aug 22 21:16:49 2007 From: radius at r4dius.net (radius) Date: Wed, 22 Aug 2007 21:16:49 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] radius | r30 - trunk References: <20070822160640.CD7815F26D@mail.baysse.fr> <20fbb8bc0708221154o44aa3e13lc83cdc9d05c5121e@mail.gmail.com> Message-ID: <200708222116493283202@r4dius.net> Eheh je voyais pas ca aussi complexe, c'est clairement un truc de feignasse mais bon, disons si je passe de winamp (devant pouchin) a pouchin, comme pouchin s'active pas, pour que je retourne a winamp (qui a donc été caché par pouchin) je dois activer le bouton de pouchin puis winamp ^^ oui mais non ^^ hwnd = CreateWindowEx(0, szAppName, L"Pouchin TV Mod", WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, win_x, win_y, win_w, win_h, - > hidden_hwnd, NULL, hInstance, NULL); si ici je faisais descendre la fenêtre de hidden_hwnd c'est pas pour rien. sans ca on ne peut pas cacher l'item dans la barre des taches sans cacher aussi la fenêtre. par contre je comprend pas ce que vous appelez le focus... j'ai ma petite idée mais je suis pas sur. en fait je cache totalement la fenètre mère du programme (hidden_hwnd) et je créé une nouvelle fenètre qui descend de hidden_hwnd, comme ca je peux enlever ou remettre l'item dans la barre des taches sans pb (ce n'est pas possible avec une fenètre mère malheuresement !) le pb du focus dont vous parlez je pense c'est le fait que comme la fenètre mère du programme est toujours caché bin le programme na jamais le "focus" même si il est au dessus des autres fenêtres (vu que c'est une fenêtre fille qui est au dessus des autres et non pas la fenètre mère). Mais en quoi vous avez besoin du focus ? à quoi il vous sert ? MatMaul Le 22/08/07, pouchintv-svn at baysse.fr a écrit : > Author: radius > Date: 2007-08-22 18:06:40 +0200 (Wed, 22 Aug 2007) > New Revision: 30 > > Modified: > trunk/main.cpp > Log: > tab[4] = -1; > on efface la 5?\195?\168me colonne tab[4] (au lieu de tab[5]) dans la barre des status si on est pas sous vista > > j'ai fais afficher les infos de zoom / volume tout en bas comme le nom des chaines est tout en haut, vous en pensez quoi ? > > pour finir j'ai fais la modif pour que le focus sur la fenetre de pouchin fonctionne (sans le probleme des 2 icones en notify) mais (pour Mathieu) je capte pas pourquoi le bouton dans la taskbar ne se cache plus que quand on minimise la fenetre > _______________________________________________ Pouchintv-dev mailing list Pouchintv-dev at baysse.fr https://listes.baysse.fr/listinfo/pouchintv-dev From laurent at baysse.fr Wed Aug 22 21:41:49 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Wed, 22 Aug 2007 21:41:49 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r29 - trunk In-Reply-To: <10159.193.252.107.84.1187798969.squirrel@mail.baysse.fr> References: <20070821211906.1CE445F268@mail.baysse.fr> <46CB5C03.6020307@baysse.fr> <200708221622245003714@r4dius.net> <10159.193.252.107.84.1187798969.squirrel@mail.baysse.fr> Message-ID: <46CC917D.4080703@baysse.fr> Laurent Baysse a écrit : >> Salut, >> j'ai peut etre mal compris mais actuellement l'exe detecte l'os au >> lancement et inclus donc les modifs pour vista ? >> Si oui pourquoi on garde la config vista dans le projet ^^ ? >> A+ >> > > En fait, tu as tout compris. Il cherche si il tourne sous Vista ou 2008 > server, et positionne la variable "is_vista" à true dans ce cas. Elle vaut > false sinon (2000, XP, 2003). > > Toutes les conditions "#if VISTA" ont été remplacée par "if (is_vista)" > qui fonctionne elle à l'exécution... > > Actuellement, la config Vista n'est donc plus utile... > > Cependant, c'est pas mal de la garder, car elle permet de pouvoir tester la config Vista sur un poste XP -- Laurent From radius at r4dius.net Wed Aug 22 22:47:55 2007 From: radius at r4dius.net (radius) Date: Wed, 22 Aug 2007 22:47:55 +0200 Subject: [Pouchintv-dev] 2 probs References: <20070821211906.1CE445F268@mail.baysse.fr> <46CB5C03.6020307@baysse.fr> <200708221622245003714@r4dius.net> <10159.193.252.107.84.1187798969.squirrel@mail.baysse.fr> <46CC917D.4080703@baysse.fr> Message-ID: <200708222247547507340@r4dius.net> Re, j'ai trouvé 2 problemes, si on lance avec -minimize + "Démarrer en plein écran" + "Minimiser dans le system tray" quand on réactive pouchin (car il etait qu'en systray minimisé donc) et qu'on remet en fullscreen par exemple ca fait un peu n'importe quoi (je saurait pas expliquer) et le bouton dans la taskbar est plus utilisable l'autre prob est avec le -minimize + "Minimiser dans le system tray" + "Suspendre si minimisé", si on clique l'icone dans la zone de notification (^^) avant les 5 sec du sleep(5000) pouchin crash, j'ai testé quelques trucs, en virant le sleep (a quoi il sert exactement ?) pouchin crash tout seul parfois au lancement, sinon avec la modif suivante j'avais plus de crash mais en restorant la fenetre (double click de l'icone) j'avais pas de son pour une raison que j'ignore ^^. int res = init_vmr(); change_frequence(Canaux[chaineCourante].frequence); if (res) { erreur(L"Erreur lors de la création du VMR"); return -1; } // On a lancé avec le paramètre demandant de masquer la fenêtre if (!strcmp(lpCmdLine, "-minimize")) { myprintf(L"minimize\n"); if(suspend_minimized) { debranche_tout(pMapMPEG2); debranche_tout(pMapSound); debranche_tout(pMapAc3); debranche_tout(pMapPmt); } } a la place de // On a lancé avec le paramètre demandant de masquer la fenêtre if (!strcmp(lpCmdLine, "-minimize")) { myprintf(L"minimize\n"); if(suspend_minimized) { debranche_tout(pMapMPEG2); debranche_tout(pMapSound); debranche_tout(pMapAc3); debranche_tout(pMapPmt); } } else { int res = init_vmr(); change_frequence(Canaux[chaineCourante].frequence); if (res) { erreur(L"Erreur lors de la création du VMR"); return -1; } } From radius at r4dius.net Wed Aug 22 23:18:16 2007 From: radius at r4dius.net (radius) Date: Wed, 22 Aug 2007 23:18:16 +0200 Subject: [Pouchintv-dev] Encore un References: <20070821211906.1CE445F268@mail.baysse.fr> <46CB5C03.6020307@baysse.fr> <200708221622245003714@r4dius.net> <10159.193.252.107.84.1187798969.squirrel@mail.baysse.fr> <46CC917D.4080703@baysse.fr> Message-ID: <200708222318158901684@r4dius.net> Hum, un autre probleme, quand le prog est minimisé dans la systray avec "Suspendre si minimisé", si on change de chaine le son revient :/ j'ai pas trouvé la solution a part en desactivant le zapping dans ce cas particulié From arupqfjm at yahoo.fr Thu Aug 23 04:56:40 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Thu, 23 Aug 2007 04:56:40 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_un_probl=E8me_dans_le_fic?= =?iso-8859-1?q?hier_projet?= Message-ID: <000001c7e531$3af1c5b0$0200a8c0@blot> Il y a toujours un problème dans les propriétés de projet puisque pouchin refuse de tourner sur un pc où visual studio n'est pas installé tant que l'on a pas installé : http://www.apachelounge.com/download/vcredist_x86-sp1.exe (c f : http://www.developpez.net/forums/archive/index.php/t-218493.html). Je ferai des tests plus poussés dès que j'aurai le temps. From laurent at baysse.fr Thu Aug 23 08:25:11 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Thu, 23 Aug 2007 08:25:11 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_un_probl=E8me_dans_le_fic?= =?iso-8859-1?q?hier_projet?= In-Reply-To: <000001c7e531$3af1c5b0$0200a8c0@blot> References: <000001c7e531$3af1c5b0$0200a8c0@blot> Message-ID: <46CD2847.5020103@baysse.fr> arupqfjm a écrit : > Il y a toujours un problème dans les propriétés de projet puisque pouchin > refuse de tourner sur un pc où visual studio n'est pas installé tant que > l'on a pas installé : > http://www.apachelounge.com/download/vcredist_x86-sp1.exe (c f : > http://www.developpez.net/forums/archive/index.php/t-218493.html). Je ferai > des tests plus poussés dès que j'aurai le temps. > > Je comprend pas très bien ce qui refuse de fonctionner :( La compilation, ou le programme ? Pour ma part, j'ai jamais installé les VCRedist, d'aucune version. -- Laurent Baysse From arupqfjm at yahoo.fr Thu Aug 23 14:27:23 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Thu, 23 Aug 2007 14:27:23 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_un_probl=E8me_dans_le_fic?= =?iso-8859-1?q?hier_projet?= In-Reply-To: <46CD2847.5020103@baysse.fr> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> Message-ID: <000901c7e580$f57be2e0$0200a8c0@blot> Le programme ne fonctionne pas, mais uniquement sur un pc qui n'a pas visual studio d'installé, c'est pourquoi aucun développeur du projet n'a eu de problèmes. Mais vu que pour l'instant je développe sur un ordi et je teste sur un autre (où il n'y a pas visual studio), j'ai remarqué ce problème. Le message d'erreur exact est : "Cette application n'a pas pu démarrer car la configuration de l'application est incorrecte. Réinstaller l'application pourrait résoudre ce problème." et il s'affiche dès qu'on lance pouchin. -----Message d'origine----- De : pouchintv-dev-bounces at baysse.fr [mailto:pouchintv-dev-bounces at baysse.fr] De la part de Laurent Baysse Envoyé : jeudi 23 août 2007 08:25 À : Liste utilisée par les développeurs Objet : Re: [Pouchintv-dev] Toujours un problème dans le fichier projet arupqfjm a écrit : > Il y a toujours un problème dans les propriétés de projet puisque pouchin > refuse de tourner sur un pc où visual studio n'est pas installé tant que > l'on a pas installé : > http://www.apachelounge.com/download/vcredist_x86-sp1.exe (c f : > http://www.developpez.net/forums/archive/index.php/t-218493.html). Je ferai > des tests plus poussés dès que j'aurai le temps. > > Je comprend pas très bien ce qui refuse de fonctionner :( La compilation, ou le programme ? Pour ma part, j'ai jamais installé les VCRedist, d'aucune version. -- Laurent Baysse From radius at r4dius.net Thu Aug 23 14:30:38 2007 From: radius at r4dius.net (radius) Date: Thu, 23 Aug 2007 14:30:38 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> Message-ID: <200708231430376877830@r4dius.net> arupqfjm a écrit : > Il y a toujours un problème dans les propriétés de projet puisque pouchin > refuse de tourner sur un pc où visual studio n'est pas installé tant que > l'on a pas installé : > http://www.apachelounge.com/download/vcredist_x86-sp1.exe (c f : > http://www.developpez.net/forums/archive/index.php/t-218493.html). Je ferai > des tests plus poussés dès que j'aurai le temps. > > Je comprend pas très bien ce qui refuse de fonctionner :( La compilation, ou le programme ? Pour ma part, j'ai jamais installé les VCRedist, d'aucune version. -- Laurent Baysse _______________________________________________ Pouchintv-dev mailing list Pouchintv-dev at baysse.fr https://listes.baysse.fr/listinfo/pouchintv-dev . Salut, j'ai testé sous un vista virtuel (vierge) sans prob From gingko at gingko.homeip.net Thu Aug 23 15:26:59 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 15:26:59 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_un_probl=E8me_dans_le_fic?= =?iso-8859-1?q?hier_projet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <000901c7e580$f57be2e0$0200a8c0@blot> Message-ID: <000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> ----- Original Message ----- From: "arupqfjm" To: "'Liste utilisée par les développeurs'" Sent: Thursday, August 23, 2007 2:27 PM Subject: Re: [Pouchintv-dev]Toujours un problème dans le fichier projet > Le programme ne fonctionne pas, mais uniquement sur un pc qui n'a pas > visual > studio d'installé, c'est pourquoi aucun développeur du projet n'a eu de > problèmes. Mais vu que pour l'instant je développe sur un ordi et je teste > sur un autre (où il n'y a pas visual studio), j'ai remarqué ce problème. > Le > message d'erreur exact est : "Cette application n'a pas pu démarrer car la > configuration de l'application est incorrecte. Réinstaller l'application > pourrait résoudre ce problème." et il s'affiche dès qu'on lance pouchin. Bonjour, Je n'ai pas vraiment l'opportunité de tester ça immédiatement vu que je suis en vacances, mais j'ai cru comprendre - et observer - il y a quelques semaines que cette situation se produisait uniquement avec les compilations en mode "debug", et ce pour la raison très simple que les versions debug nécessitent la présence des version debug des DLL correspondant aux bibliothèques des programmes C/C++ et que ces versions des DLL n'existent que sur les systèmes ayant le compilateur installé. Bon, je dis peut-être une connerie, mais je vous invite quand même à vous assurer que, si vous exécutez sur des ordis n'ayant pas Visual Studio installé, vous le fassiez avec des compilations "Release" et non pas des compilations "Debug" ... ... ou alors copiez les DLL "Debug" sur ces ordis en même temps. Gingko From matmaul at gmail.com Thu Aug 23 15:38:53 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Thu, 23 Aug 2007 15:38:53 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <200708231430376877830@r4dius.net> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> Message-ID: <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> normal les redist sont fournies et installé avec visual :) est-ce qu'il n'y aurait pas dans le code des fonctions made in microsoft au lieu de leur équivalent standard ? genre les fonctions de traitement de chaines avec un _s à la fin ? je crois que j'ai trouvé le pb (à tester) : y'a des wscat_s et des fopen_s dans ini.cpp je commit, et laisse le soin à radius de tester au fait il sert à quoi le fichier afxres.h ??? Le 23/08/07, radius a écrit : > arupqfjm a écrit : > > Il y a toujours un problème dans les propriétés de projet puisque pouchin > > refuse de tourner sur un pc où visual studio n'est pas installé tant que > > l'on a pas installé : > > http://www.apachelounge.com/download/vcredist_x86-sp1.exe (c f : > > http://www.developpez.net/forums/archive/index.php/t-218493.html). Je ferai > > des tests plus poussés dès que j'aurai le temps. > > > > > Je comprend pas très bien ce qui refuse de fonctionner :( > La compilation, ou le programme ? > Pour ma part, j'ai jamais installé les VCRedist, d'aucune version. > > -- > Laurent Baysse > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > . > > Salut, > j'ai testé sous un vista virtuel (vierge) sans prob > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From pouchintv-svn at baysse.fr Thu Aug 23 15:43:18 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Thu, 23 Aug 2007 15:43:18 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk Message-ID: <20070823134318.1CD3F5F281@mail.baysse.fr> Author: matmaul Date: 2007-08-23 15:43:17 +0200 (Thu, 23 Aug 2007) New Revision: 34 Modified: trunk/ini.cpp trunk/main.cpp Log: remplacement des fonctions s?\195?\169curis?\195?\169es made in microsoft (celles qui finissent en _s) par leur ?\195?\169quivalentes standard. Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-22 19:13:04 UTC (rev 33) +++ trunk/ini.cpp 2007-08-23 13:43:17 UTC (rev 34) @@ -46,7 +46,7 @@ { wchar_t file[1024]; GetCurrentDirectory(_countof(file), file); - wcscat_s(file, _countof(file), scan_ini); + wcsncat(file, scan_ini, _countof(file)); UINT freq_offset = GetPrivateProfileInt(ville, L"Offset", 167, file); @@ -167,7 +167,7 @@ int nbProgrammes = (int)Programmes.size(); FILE * fop; - if (fopen_s(&fop, "programmes.xml", "w")) { + if (fop=fopen("programmes.xml", "w")) { return; } @@ -283,7 +283,7 @@ int nbChaines = (int)Canaux.size(); FILE * fop; - if (fopen_s(&fop, "chaines.xml", "w")) { + if (fop=fopen("chaines.xml", "w")) { return; } @@ -374,7 +374,7 @@ wchar_t fileName[1024]; GetCurrentDirectory(_countof(fileName), fileName); - wcscat_s(fileName, _countof(fileName), config_file); + wcsncat(fileName, config_file, _countof(fileName)); WritePrivateProfileString(ini_config, ini_tuner, nom_tuner, fileName); @@ -469,7 +469,7 @@ { wchar_t fileName[1024]; GetCurrentDirectory(_countof(fileName), fileName); - wcscat_s(fileName, _countof(fileName), config_file); + wcsncat(fileName, config_file, _countof(fileName)); GetPrivateProfileString(ini_config, ini_tuner, NULL, nom_tuner, _countof(nom_tuner), fileName); @@ -597,7 +597,7 @@ wchar_t fileName[1024]; GetCurrentDirectory(_countof(fileName), fileName); - wcscat_s(fileName, _countof(fileName), scan_ini); + wcsncat(fileName, scan_ini, _countof(fileName)); GetPrivateProfileSectionNames(strings, _countof(strings), fileName); Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-22 19:13:04 UTC (rev 33) +++ trunk/main.cpp 2007-08-23 13:43:17 UTC (rev 34) @@ -52,6 +52,9 @@ static wchar_t szAppName[]=L"Pouchin TV Mod"; HWND hWnd; +HWND hidden; +HWND hh; + static HWND hStatus; static HINSTANCE hInst; static HMENU mainMenu; @@ -3140,6 +3143,10 @@ time_context_quit = GetTickCount(); break; + case WM_ACTIVATE: + SetActiveWindow(hh); + break; + case WM_ENTERIDLE: { if (wParam == MSGF_DIALOGBOX && use_dialog_callback) @@ -3197,10 +3204,11 @@ { MSG msg; + HWND hwnd; + HWND hidden_hwnd; WNDCLASS wndclass; - HWND hidden_hwnd; - HWND hwnd; + hInst = hInstance; CreateMutex(NULL, TRUE, szAppName); @@ -3265,6 +3273,8 @@ return 0; } + hidden = hidden_hwnd; + hwnd = CreateWindowEx(0, szAppName, L"Pouchin TV Mod", @@ -3273,10 +3283,14 @@ win_y, win_w, win_h, + hidden_hwnd, NULL, - NULL, hInstance, NULL); + + hh = hwnd; + + SetActiveWindow(hh); // make sure window was created if (!hwnd) { From pouchintv-svn at baysse.fr Thu Aug 23 15:54:53 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Thu, 23 Aug 2007 15:54:53 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r35 - trunk Message-ID: <20070823135453.7D6285F281@mail.baysse.fr> Author: matmaul Date: 2007-08-23 15:54:52 +0200 (Thu, 23 Aug 2007) New Revision: 35 Modified: trunk/epgfilter.cpp trunk/ini.cpp trunk/main.cpp Log: m?\195?\170me chose Modified: trunk/epgfilter.cpp =================================================================== --- trunk/epgfilter.cpp 2007-08-23 13:43:17 UTC (rev 34) +++ trunk/epgfilter.cpp 2007-08-23 13:54:52 UTC (rev 35) @@ -160,7 +160,7 @@ FileTimeToSystemTime(&lft, &st); emi.debut2 = st; - sprintf_s(emi.debut_str, 32, "%02i:%02i:%02i", st.wHour, st.wMinute, st.wSecond); + sprintf(emi.debut_str, "%02i:%02i:%02i", st.wHour, st.wMinute, st.wSecond); int heure = hex_to_dec(p[offset+7]); int min = hex_to_dec(p[offset+8]); @@ -177,7 +177,7 @@ FileTimeToSystemTime(&lft, &st); emi.fin2 = st; - sprintf_s(emi.fin, 32, "%02i:%02i:%02i", st.wHour, st.wMinute, st.wSecond); + sprintf(emi.fin, "%02i:%02i:%02i", st.wHour, st.wMinute, st.wSecond); offset+=12; Modified: trunk/ini.cpp =================================================================== --- trunk/ini.cpp 2007-08-23 13:43:17 UTC (rev 34) +++ trunk/ini.cpp 2007-08-23 13:54:52 UTC (rev 35) @@ -391,7 +391,7 @@ WritePrivateProfileString(ini_config, ini_strict, exact_match ? L"1":L"0", fileName); wchar_t valeur[64]; - _itow_s(chaineCourante, valeur, _countof(valeur), 10); + _itow(chaineCourante, valeur, 10); WritePrivateProfileString(ini_config, ini_chaine_courante, valeur, fileName); WritePrivateProfileString(ini_config, ini_rep_video, video_dir, fileName); @@ -443,25 +443,25 @@ WritePrivateProfileString(ini_config, ini_full_screen, full_screen ? L"Vrai" : L"Faux", fileName); - _itow_s(zoom_ratio, valeur, _countof(valeur), 10); + _itow(zoom_ratio, valeur, 10); WritePrivateProfileString(ini_config, ini_zoom_ratio, valeur, fileName); RECT rect; GetWindowRect(hWnd, &rect); - _itow_s(rect.left, valeur, _countof(valeur), 10); + _itow(rect.left, valeur, 10); WritePrivateProfileString(ini_config, ini_x_fenetre, valeur, fileName); - _itow_s(rect.top, valeur, _countof(valeur), 10); + _itow(rect.top, valeur, 10); WritePrivateProfileString(ini_config, ini_y_fenetre, valeur, fileName); - _itow_s(rect.right-rect.left, valeur, _countof(valeur), 10); + _itow(rect.right-rect.left, valeur, 10); WritePrivateProfileString(ini_config, ini_largeur_fenetre, valeur, fileName); - _itow_s(rect.bottom-rect.top, valeur, _countof(valeur), 10); + _itow(rect.bottom-rect.top, valeur, 10); WritePrivateProfileString(ini_config, ini_hauteur_fenetre, valeur, fileName); - _itow_s((volumeCourant + 10000) / 100, valeur, _countof(valeur), 10); + _itow((volumeCourant + 10000) / 100, valeur, 10); WritePrivateProfileString(ini_config, ini_volume, valeur, fileName); } Modified: trunk/main.cpp =================================================================== --- trunk/main.cpp 2007-08-23 13:43:17 UTC (rev 34) +++ trunk/main.cpp 2007-08-23 13:54:52 UTC (rev 35) @@ -123,7 +123,7 @@ DWORD cnt; va_start(argptr, fmt); - cnt = vswprintf_s(s, _countof(s), fmt, argptr); + cnt = vswprintf(s, _countof(s), fmt, argptr); //cnt = wsprintfW(s, fmt, argptr); va_end(argptr); @@ -1749,7 +1749,7 @@ { HWND hText = GetDlgItem(hwndDlg, IDC_SIGNAL_QUALITY); wchar_t buf[256]; - swprintf_s(buf, 256, L"%i", l); + swprintf(buf, 256, L"%i", l); SetWindowText(hText, buf); } @@ -1757,7 +1757,7 @@ { HWND hText = GetDlgItem(hwndDlg, IDC_SIGNAL_STRENGTH); wchar_t buf[256]; - swprintf_s(buf, 256, L"%i", l); + swprintf(buf, 256, L"%i", l); SetWindowText(hText, buf); } } @@ -2533,7 +2533,7 @@ carac = strpbrk(nom_chaine, "\"*/:<>?\\|"); } - swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.bmp", screenshots_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.bmp", screenshots_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); HANDLE file = CreateFile(nom, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); @@ -2577,7 +2577,7 @@ carac = strpbrk(nom_chaine, "\"*/:<>?\\|"); } - swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); int video = Canaux[chaineCourante].video_pid ? Canaux[chaineCourante].video_pid : Canaux[chaineCourante].mpeg4_pid; @@ -2608,7 +2608,7 @@ carac = strpbrk(nom_chaine, "\"*/:<>?\\|"); } - swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); int video = Canaux[chaineCourante].video_pid ? Canaux[chaineCourante].video_pid : Canaux[chaineCourante].mpeg4_pid; @@ -2631,7 +2631,7 @@ SYSTEMTIME st; GetLocalTime(&st); - swprintf_s(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); ISampleGrabberCB * pCallback = new CSampleGrabber(nom); @@ -2973,18 +2973,18 @@ switch(Programmes[next_record].methode) { case 0: - swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); video = Canaux[index].video_pid ? Canaux[index].video_pid : Canaux[index].mpeg4_pid; pCallback = new CSampleGrabber(nom, Canaux[index].pmt_pid, video, Canaux[index].son, Canaux[index].nb_son, Canaux[index].autre, Canaux[index].nb_autre); break; case 1: - swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); video = Canaux[index].video_pid ? Canaux[index].video_pid : Canaux[index].mpeg4_pid; son = Canaux[index].son[index_son].pid; pCallback = new CSampleGrabber(nom, video, son); break; case 2: - swprintf_s(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); pCallback = new CSampleGrabber(nom); break; } From gingko at gingko.homeip.net Thu Aug 23 16:00:12 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 16:00:12 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk References: <20070823134318.1CD3F5F281@mail.baysse.fr> Message-ID: <006901c7e58d$ed8d5340$0f00a8c0@gillesvaio> ----- Original Message ----- From: To: Sent: Thursday, August 23, 2007 3:43 PM Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk > Author: matmaul > Date: 2007-08-23 15:43:17 +0200 (Thu, 23 Aug 2007) > New Revision: 34 > > Modified: > trunk/ini.cpp > trunk/main.cpp > Log: > remplacement des fonctions s?\195?\169curis?\195?\169es made in microsoft > (celles qui finissent en _s) par leur ?\195?\169quivalentes standard. > > Modified: trunk/ini.cpp Sans vouloir être vexant, je ne suis pas certain que ce soit la chose à faire ... Gingko From matmaul at gmail.com Thu Aug 23 16:09:27 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Thu, 23 Aug 2007 16:09:27 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk In-Reply-To: <006901c7e58d$ed8d5340$0f00a8c0@gillesvaio> References: <20070823134318.1CD3F5F281@mail.baysse.fr> <006901c7e58d$ed8d5340$0f00a8c0@gillesvaio> Message-ID: <20fbb8bc0708230709o7ec60626o34b5b3e7c97b5559@mail.gmail.com> non mais c'est de la paranoia ces fonctions surtout dans une application non critique comme celle là, puis j'ai utilisé les équivalentes standard sécurisées quand elles étaient disponibles dans la biblio standard. Le 23/08/07, Gingko a écrit : > > ----- Original Message ----- > From: > To: > Sent: Thursday, August 23, 2007 3:43 PM > Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk > > > > Author: matmaul > > Date: 2007-08-23 15:43:17 +0200 (Thu, 23 Aug 2007) > > New Revision: 34 > > > > Modified: > > trunk/ini.cpp > > trunk/main.cpp > > Log: > > remplacement des fonctions s?\195?\169curis?\195?\169es made in microsoft > > (celles qui finissent en _s) par leur ?\195?\169quivalentes standard. > > > > Modified: trunk/ini.cpp > > Sans vouloir être vexant, je ne suis pas certain que ce soit la chose à > faire ... > > Gingko > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From gingko at gingko.homeip.net Thu Aug 23 16:11:50 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 16:11:50 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> Message-ID: <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> ----- Original Message ----- From: "Mathieu Velten" To: "Liste utilisée par les développeurs" Sent: Thursday, August 23, 2007 3:38 PM Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > normal les redist sont fournies et installé avec visual :) > est-ce qu'il n'y aurait pas dans le code des fonctions made in > microsoft au lieu de leur équivalent standard ? genre les fonctions de > traitement de chaines avec un _s à la fin ? > > je crois que j'ai trouvé le pb (à tester) : y'a des wscat_s et des > fopen_s dans ini.cpp > > je commit, et laisse le soin à radius de tester > > au fait il sert à quoi le fichier afxres.h ??? Quoi que vous fassiez, la bibliothèque utilisée vient de Microsoft. Fonctions standards ou pas. Les fonctions en "_s" doivent donc y être, si on utilise la version (en principe la plus récente) appropriée, que je suppose mise à jour avec Windows Update de temps à autre. Je crois que ça doit être "msvcrt.dll" en version Release et "msvcrtd.dll" en version Debug - ou une appellation analogue (dans \Windows\system32). Le fichier "afxres.h" est fourni avec la version complète de Microsoft Visual Studio, et je crois qu'il regroupe les "#include" liées aux ressources. Visual C++ Express n'ayant qu'une version "Light" du compilateur de ressources, ce fichier n'y est pas fourni. Mais je crois bien qu'il ne contient pas grand chose de plus lui-même qu'un #include de "windows.h". Personnellement, je lui ai substitué celui qui venait de mon Microsoft Visual Studio 6.0 professionnel. J'attends toujours que mon patron m'achète le Visual Studio 8 complet. Gingko From laurent at baysse.fr Thu Aug 23 16:15:58 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Thu, 23 Aug 2007 16:15:58 +0200 (CEST) Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> Message-ID: <16387.193.252.107.84.1187878558.squirrel@mail.baysse.fr> > > ----- Original Message ----- > From: "Mathieu Velten" > To: "Liste utilisée par les développeurs" > Sent: Thursday, August 23, 2007 3:38 PM > Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > > >> normal les redist sont fournies et installé avec visual :) >> est-ce qu'il n'y aurait pas dans le code des fonctions made in >> microsoft au lieu de leur équivalent standard ? genre les fonctions de >> traitement de chaines avec un _s à la fin ? >> >> je crois que j'ai trouvé le pb (à tester) : y'a des wscat_s et des >> fopen_s dans ini.cpp >> >> je commit, et laisse le soin à radius de tester >> >> au fait il sert à quoi le fichier afxres.h ??? > > Quoi que vous fassiez, la bibliothèque utilisée vient de Microsoft. > Fonctions standards ou pas. > > Les fonctions en "_s" doivent donc y être, si on utilise la version (en > principe la plus récente) appropriée, que je suppose mise à jour avec > Windows Update de temps à autre. > > Je crois que ça doit être "msvcrt.dll" en version Release et "msvcrtd.dll" > en version Debug - ou une appellation analogue (dans \Windows\system32). > > Le fichier "afxres.h" est fourni avec la version complète de Microsoft > Visual Studio, et je crois qu'il regroupe les "#include" liées aux > ressources. > > Visual C++ Express n'ayant qu'une version "Light" du compilateur de > ressources, ce fichier n'y est pas fourni. > Mais je crois bien qu'il ne contient pas grand chose de plus lui-même > qu'un > #include de "windows.h". > Personnellement, je lui ai substitué celui qui venait de mon Microsoft > Visual Studio 6.0 professionnel. J'attends toujours que mon patron > m'achète > le Visual Studio 8 complet. > > Gingko > Pour le fichier "afxres.h", je l'ai inclus de base (venant de MinGW) dans le répertoire des sources, comme ça, aucun soucis (y'a qu'à regarder les sources sur le svn :P ) Sinon, j'ai pas encore testé. J'ai un WinXP fraichement installé (sans beaucoup de softs, et avec les mises à jours). Je teste ce soir, si je peux, avant et après modifs des versions _s -- Laurent ....ooo...(°_°)...ooo.... From gingko at gingko.homeip.net Thu Aug 23 16:19:47 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 16:19:47 +0200 Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk References: <20070823134318.1CD3F5F281@mail.baysse.fr><006901c7e58d$ed8d5340$0f00a8c0@gillesvaio> <20fbb8bc0708230709o7ec60626o34b5b3e7c97b5559@mail.gmail.com> Message-ID: <00b301c7e590$a970ecf0$0f00a8c0@gillesvaio> ----- Original Message ----- From: "Mathieu Velten" To: "Liste utilisée par les développeurs" Sent: Thursday, August 23, 2007 4:09 PM Subject: Re: [Pouchintv-dev] [PouchinTVMod] matmaul | r34 - trunk > non mais c'est de la paranoia ces fonctions surtout dans une > application non critique comme celle là, puis j'ai utilisé les > équivalentes standard sécurisées quand elles étaient disponibles dans > la biblio standard. Il me semble que la tendance générale est (ou en tout cas devrait être) de remplacer les anciennes fonctions par celles-là, même ailleurs que chez Microsoft. Leur raison d'être est de ne plus avoir ces fonctions qui sont capables d'écrire dans des buffers sans en connaître la taille, et il est vrai qu'il y un moment que je trouvais ça un peu douteux. Leur usage n'est pas tellement dérangeant puisque la seule différence est justement d'ajouter la taille du buffer en paramètre toutes les fois où celle-ci a besoin d'être connue. Et il me semble que c'est une bonne habitude à prendre. Garder les anciennes a surtout pour utilité de faire en sorte que les anciens programmes restent compilables ... Gingko From matmaul at gmail.com Thu Aug 23 16:29:29 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Thu, 23 Aug 2007 16:29:29 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> Message-ID: <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> je suis quasi sur que la dépendance envers les dll CRT n'est plus nécessaire une fois que les fonctions sécurisées ont été enlevé. Je crois que c'est les seules fonctions du CRT qu'on utilise(ait) dans pouchin. radius tu regardes ca quand t'as le temps ? les CRT ne sont pas livrés en standard avec windows et en plus elles changent à chaque version de visual (msvcrt80.dll, msvcrt71.dll etc), donc si on peut éviter de les utiliser c'est pas plus mal je pense... en fait le fichier afxres.h sert strictement à rien... Il est même pas "includer" quelque part dans le projet => je le vire. Le 23/08/07, Gingko a écrit : > > ----- Original Message ----- > From: "Mathieu Velten" > To: "Liste utilisée par les développeurs" > Sent: Thursday, August 23, 2007 3:38 PM > Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > > > > normal les redist sont fournies et installé avec visual :) > > est-ce qu'il n'y aurait pas dans le code des fonctions made in > > microsoft au lieu de leur équivalent standard ? genre les fonctions de > > traitement de chaines avec un _s à la fin ? > > > > je crois que j'ai trouvé le pb (à tester) : y'a des wscat_s et des > > fopen_s dans ini.cpp > > > > je commit, et laisse le soin à radius de tester > > > > au fait il sert à quoi le fichier afxres.h ??? > > Quoi que vous fassiez, la bibliothèque utilisée vient de Microsoft. > Fonctions standards ou pas. > > Les fonctions en "_s" doivent donc y être, si on utilise la version (en > principe la plus récente) appropriée, que je suppose mise à jour avec > Windows Update de temps à autre. > > Je crois que ça doit être "msvcrt.dll" en version Release et "msvcrtd.dll" > en version Debug - ou une appellation analogue (dans \Windows\system32). > > Le fichier "afxres.h" est fourni avec la version complète de Microsoft > Visual Studio, et je crois qu'il regroupe les "#include" liées aux > ressources. > > Visual C++ Express n'ayant qu'une version "Light" du compilateur de > ressources, ce fichier n'y est pas fourni. > Mais je crois bien qu'il ne contient pas grand chose de plus lui-même qu'un > #include de "windows.h". > Personnellement, je lui ai substitué celui qui venait de mon Microsoft > Visual Studio 6.0 professionnel. J'attends toujours que mon patron m'achète > le Visual Studio 8 complet. > > Gingko > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From laurent at baysse.fr Thu Aug 23 16:33:02 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Thu, 23 Aug 2007 16:33:02 +0200 (CEST) Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> Message-ID: <16645.193.252.107.84.1187879582.squirrel@mail.baysse.fr> > je suis quasi sur que la dépendance envers les dll CRT n'est plus > nécessaire une fois que les fonctions sécurisées ont été enlevé. Je > crois que c'est les seules fonctions du CRT qu'on utilise(ait) dans Si, il est inclus par VC dans ses resources, dans le fichier "res.rc". tu ne peux pas le virer :'(, car si tu vire la ligne, VC la recréera automatiquement lors de la modif des resources depuis l'interface graphique :( -- Laurent ....ooo...(°_°)...ooo.... From gingko at gingko.homeip.net Thu Aug 23 16:38:46 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 16:38:46 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><200708231430376877830@r4dius.net><20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com><008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> Message-ID: <000801c7e593$50c24290$0f00a8c0@gillesvaio> ----- Original Message ----- From: "Mathieu Velten" To: "Liste utilisée par les développeurs" Sent: Thursday, August 23, 2007 4:29 PM Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > les CRT ne sont pas livrés en standard avec windows et en plus elles > changent à chaque version de visual (msvcrt80.dll, msvcrt71.dll etc), > donc si on peut éviter de les utiliser c'est pas plus mal je pense... Ca, j'ai bien peur que vous n'ayiez pas le choix. J'ai cru comprendre que les compilations de Visual C++ doivent obligatoirement être liées à la DLL qui leur correspond. Sans ça, même les fonctions standards du C ne sont pas disponibles. > en fait le fichier afxres.h sert strictement à rien... Il est même pas > "includer" quelque part dans le projet => je le vire. Et si, il est "#includé" quelque part dans le projet : dans le fichier des ressources ! (ici "res.rc"). Il est indispensable aux compilations avec Visual C++ Express, ou alors il faut modifier son inclusion dans les ressources, mais je ne suis pas certain que ce soit recommandable non plus (parce que ce fichier est en principe généré ainsi automatiquement dans le Visual Studio complet). Maintenant, les utilisateurs de Visual C++ Express peuvent toujours s'en mettre une copie ailleurs que dans le répertoire de PouchinTV .... Gingko From matmaul at gmail.com Thu Aug 23 16:46:40 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Thu, 23 Aug 2007 16:46:40 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <000801c7e593$50c24290$0f00a8c0@gillesvaio> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> <000801c7e593$50c24290$0f00a8c0@gillesvaio> Message-ID: <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> > Ca, j'ai bien peur que vous n'ayiez pas le choix. > J'ai cru comprendre que les compilations de Visual C++ doivent > obligatoirement être liées à la DLL qui leur correspond. > > Sans ça, même les fonctions standards du C ne sont pas disponibles. à vérifier mais il me semble que les dll CRT ne sont nécessaires que quand on utilise des fonctions de la biblio CRT sinon visual utilise les biblio standard de windows il me semble. > Et si, il est "#includé" quelque part dans le projet : dans le fichier des > ressources ! (ici "res.rc"). > > Il est indispensable aux compilations avec Visual C++ Express, ou alors il > faut modifier son inclusion dans les ressources, mais je ne suis pas certain > que ce soit recommandable non plus (parce que ce fichier est en principe > généré ainsi automatiquement dans le Visual Studio complet). > > Maintenant, les utilisateurs de Visual C++ Express peuvent toujours s'en > mettre une copie ailleurs que dans le répertoire de PouchinTV .... à ok j'ai visual pro c'est pour ca que ca compile sans chez moi. (et oui visual pro c'est gratuit pour les étudiants :P ) From laurent at baysse.fr Thu Aug 23 16:54:57 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Thu, 23 Aug 2007 16:54:57 +0200 (CEST) Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> <000801c7e593$50c24290$0f00a8c0@gillesvaio> <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> Message-ID: <17064.193.252.107.84.1187880897.squirrel@mail.baysse.fr> > à ok j'ai visual pro c'est pour ca que ca compile sans chez moi. > (et oui visual pro c'est gratuit pour les étudiants :P ) Merde, j'aurai du rester plus longtemps sur les bancs des écoles alors -- Laurent ....ooo...(°_°)...ooo.... From gingko at gingko.homeip.net Thu Aug 23 17:04:41 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 17:04:41 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><200708231430376877830@r4dius.net><20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com><008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio><20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com><000801c7e593$50c24290$0f00a8c0@gillesvaio> <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> Message-ID: <001001c7e596$ef973df0$0f00a8c0@gillesvaio> ----- Original Message ----- From: "Mathieu Velten" To: "Liste utilisée par les développeurs" Sent: Thursday, August 23, 2007 4:46 PM Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet >> Ca, j'ai bien peur que vous n'ayiez pas le choix. >> J'ai cru comprendre que les compilations de Visual C++ doivent >> obligatoirement être liées à la DLL qui leur correspond. >> >> Sans ça, même les fonctions standards du C ne sont pas disponibles. > > à vérifier mais il me semble que les dll CRT ne sont nécessaires que > quand on utilise des fonctions de la biblio CRT sinon visual utilise > les biblio standard de windows il me semble. Et la biblio standard de Windows, elle s'appelle comment, à ton avis ? ... :-) Gingko From matmaul at gmail.com Thu Aug 23 17:37:00 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Thu, 23 Aug 2007 17:37:00 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <001001c7e596$ef973df0$0f00a8c0@gillesvaio> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> <000801c7e593$50c24290$0f00a8c0@gillesvaio> <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> <001001c7e596$ef973df0$0f00a8c0@gillesvaio> Message-ID: <20fbb8bc0708230837t411b6475l2be47b8f4d42d1af@mail.gmail.com> aparement pour pouvoir se passer des runtimes visual 2005 il faut aussi changer l'option "biblio runtime" de "dll multithread" à "multithread" c'était l'option que j'avais mis au début mais lolo est passé a "dll multithread" a la rev 27. lolo pourquoi tu avais fait cette modif ? t'arrive pas à compiler avec "multithread" ? Le 23/08/07, Gingko a écrit : > ----- Original Message ----- > From: "Mathieu Velten" > To: "Liste utilisée par les développeurs" > Sent: Thursday, August 23, 2007 4:46 PM > Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > > > >> Ca, j'ai bien peur que vous n'ayiez pas le choix. > >> J'ai cru comprendre que les compilations de Visual C++ doivent > >> obligatoirement être liées à la DLL qui leur correspond. > >> > >> Sans ça, même les fonctions standards du C ne sont pas disponibles. > > > > à vérifier mais il me semble que les dll CRT ne sont nécessaires que > > quand on utilise des fonctions de la biblio CRT sinon visual utilise > > les biblio standard de windows il me semble. > > Et la biblio standard de Windows, elle s'appelle comment, à ton avis ? ... > :-) > > Gingko > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From gingko at gingko.homeip.net Thu Aug 23 19:15:58 2007 From: gingko at gingko.homeip.net (Gingko) Date: Thu, 23 Aug 2007 19:15:58 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><200708231430376877830@r4dius.net><20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com><008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio><20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com><000801c7e593$50c24290$0f00a8c0@gillesvaio><20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com><001001c7e596$ef973df0$0f00a8c0@gillesvaio> <20fbb8bc0708230837t411b6475l2be47b8f4d42d1af@mail.gmail.com> Message-ID: <001201c7e5a9$46d16430$0f00a8c0@gillesvaio> ----- Original Message ----- From: "Mathieu Velten" To: "Liste utilisée par les développeurs" Sent: Thursday, August 23, 2007 5:37 PM Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > aparement pour pouvoir se passer des runtimes visual 2005 il faut > aussi changer l'option "biblio runtime" de "dll multithread" à > "multithread" > > c'était l'option que j'avais mis au début mais lolo est passé a "dll > multithread" a la rev 27. > lolo pourquoi tu avais fait cette modif ? t'arrive pas à compiler avec > "multithread" ? Au pire c'est pas dramatique. Il suffit de fournir la DLL avec. Il se pourrait bien qu'on en ait le droit, en plus. Gingko From laurent at baysse.fr Thu Aug 23 19:36:39 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Thu, 23 Aug 2007 19:36:39 +0200 (CEST) Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <001201c7e5a9$46d16430$0f00a8c0@gillesvaio> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><200708231430376877830@r4dius.net><20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com><008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio><20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com><000801c7e593$50c24290$0f00a8c0@gillesvaio><20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com><001001c7e596$ef973df0$0f00a8c0@gillesvaio> <20fbb8bc0708230837t411b6475l2be47b8f4d42d1af@mail.gmail.com> <001201c7e5a9$46d16430$0f00a8c0@gillesvaio> Message-ID: <1922.81.56.207.193.1187890599.squirrel@mail.baysse.fr> > ----- Original Message ----- > From: "Mathieu Velten" > To: "Liste utilisée par les développeurs" > Sent: Thursday, August 23, 2007 5:37 PM > Subject: Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet > > Au pire c'est pas dramatique. > Il suffit de fournir la DLL avec. > Il se pourrait bien qu'on en ait le droit, en plus. > > Gingko > Je suis en train de faire plusieurs tests pour voir ce qui convient le mieux (avec ou sans foonction _s, les dépendences, tout ça, ...) -- Laurent ....ooo...(°_°)...ooo.... From laurent at baysse.fr Thu Aug 23 19:58:43 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Thu, 23 Aug 2007 19:58:43 +0200 (CEST) Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> <008601c7e58f$8d9b55c0$0f00a8c0@gillesvaio> <20fbb8bc0708230729y306284bfm93bdffeafe5372da@mail.gmail.com> <000801c7e593$50c24290$0f00a8c0@gillesvaio> <20fbb8bc0708230746p7848d305j958010174ce0ccff@mail.gmail.com> Message-ID: <2075.81.56.207.193.1187891923.squirrel@mail.baysse.fr> >> Ca, j'ai bien peur que vous n'ayiez pas le choix. >> J'ai cru comprendre que les compilations de Visual C++ doivent >> obligatoirement être liées à la DLL qui leur correspond. >> >> Sans ça, même les fonctions standards du C ne sont pas disponibles. > > à vérifier mais il me semble que les dll CRT ne sont nécessaires que > quand on utilise des fonctions de la biblio CRT sinon visual utilise > les biblio standard de windows il me semble. > > aparement pour pouvoir se passer des runtimes visual 2005 il faut > aussi changer l'option "biblio runtime" de "dll multithread" à > "multithread" > > c'était l'option que j'avais mis au début mais lolo est passé a "dll > multithread" a la rev 27. > lolo pourquoi tu avais fait cette modif ? t'arrive pas à compiler avec > "multithread" ? Je viens de faire le test: * fonctions avec _s: fonctionne si les .NET 2.0 sont installés, ne marche pas sinon * fonctions sans _s: situation identique à ci-dessus * option "biblio runtime": sans .NET 2.0, ça marche pas :'( Il ne reste plus qu'à chercher comment se passer de la dépendance... -- Laurent ....ooo...(°_°)...ooo.... From arupqfjm at yahoo.fr Thu Aug 23 22:59:10 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Thu, 23 Aug 2007 22:59:10 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_un_probl=E8me_dans_le_fic?= =?iso-8859-1?q?hier_projet?= In-Reply-To: <000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><000901c7e580$f57be2e0$0200a8c0@blot> <000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> Message-ID: <000901c7e5c8$748fceb0$0200a8c0@blot> Que ce soit la version debug ou release, le problème est toujours là, ce qui peut être embêtant pour les utilisateurs... -----Message d'origine----- De : pouchintv-dev-bounces at baysse.fr [mailto:pouchintv-dev-bounces at baysse.fr] De la part de Gingko Envoyé : jeudi 23 août 2007 15:27 À : Liste utilisée par les développeurs Objet : Re: [Pouchintv-dev]Toujours un problème dans le fichier projet ----- Original Message ----- From: "arupqfjm" To: "'Liste utilisée par les développeurs'" Sent: Thursday, August 23, 2007 2:27 PM Subject: Re: [Pouchintv-dev]Toujours un problème dans le fichier projet > Le programme ne fonctionne pas, mais uniquement sur un pc qui n'a pas > visual > studio d'installé, c'est pourquoi aucun développeur du projet n'a eu de > problèmes. Mais vu que pour l'instant je développe sur un ordi et je teste > sur un autre (où il n'y a pas visual studio), j'ai remarqué ce problème. > Le > message d'erreur exact est : "Cette application n'a pas pu démarrer car la > configuration de l'application est incorrecte. Réinstaller l'application > pourrait résoudre ce problème." et il s'affiche dès qu'on lance pouchin. Bonjour, Je n'ai pas vraiment l'opportunité de tester ça immédiatement vu que je suis en vacances, mais j'ai cru comprendre - et observer - il y a quelques semaines que cette situation se produisait uniquement avec les compilations en mode "debug", et ce pour la raison très simple que les versions debug nécessitent la présence des version debug des DLL correspondant aux bibliothèques des programmes C/C++ et que ces versions des DLL n'existent que sur les systèmes ayant le compilateur installé. Bon, je dis peut-être une connerie, mais je vous invite quand même à vous assurer que, si vous exécutez sur des ordis n'ayant pas Visual Studio installé, vous le fassiez avec des compilations "Release" et non pas des compilations "Debug" ... ... ou alors copiez les DLL "Debug" sur ces ordis en même temps. Gingko _______________________________________________ Pouchintv-dev mailing list Pouchintv-dev at baysse.fr https://listes.baysse.fr/listinfo/pouchintv-dev __________ Information NOD32 2479 (20070823) __________ Ce message a ete verifie par NOD32 Antivirus System. http://www.nod32.com From arupqfjm at yahoo.fr Thu Aug 23 23:01:06 2007 From: arupqfjm at yahoo.fr (arupqfjm) Date: Thu, 23 Aug 2007 23:01:06 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr><200708231430376877830@r4dius.net> <20fbb8bc0708230638r59220f58uaa3a920bb8890627@mail.gmail.com> Message-ID: <000a01c7e5c8$b9608980$0200a8c0@blot> les versions sécurisées des différentes fonctions, c'est moi qui les ai mises lorsque j'ai rajouté la programmation des enregistrements et à l'époque le programme marchait très bien sans besoin des redist... Le problème vient plutôt des paramètres du projet. -----Message d'origine----- De : pouchintv-dev-bounces at baysse.fr [mailto:pouchintv-dev-bounces at baysse.fr] De la part de Mathieu Velten Envoyé : jeudi 23 août 2007 15:39 À : Liste utilisée par les développeurs Objet : Re: [Pouchintv-dev]Toujours_un_problème_dans_le_fichier_projet normal les redist sont fournies et installé avec visual :) est-ce qu'il n'y aurait pas dans le code des fonctions made in microsoft au lieu de leur équivalent standard ? genre les fonctions de traitement de chaines avec un _s à la fin ? je crois que j'ai trouvé le pb (à tester) : y'a des wscat_s et des fopen_s dans ini.cpp je commit, et laisse le soin à radius de tester au fait il sert à quoi le fichier afxres.h ??? Le 23/08/07, radius a écrit : > arupqfjm a écrit : > > Il y a toujours un problème dans les propriétés de projet puisque pouchin > > refuse de tourner sur un pc où visual studio n'est pas installé tant que > > l'on a pas installé : > > http://www.apachelounge.com/download/vcredist_x86-sp1.exe (c f : > > http://www.developpez.net/forums/archive/index.php/t-218493.html). Je ferai > > des tests plus poussés dès que j'aurai le temps. > > > > > Je comprend pas très bien ce qui refuse de fonctionner :( > La compilation, ou le programme ? > Pour ma part, j'ai jamais installé les VCRedist, d'aucune version. > > -- > Laurent Baysse > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > . > > Salut, > j'ai testé sous un vista virtuel (vierge) sans prob > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > _______________________________________________ Pouchintv-dev mailing list Pouchintv-dev at baysse.fr https://listes.baysse.fr/listinfo/pouchintv-dev __________ Information NOD32 2479 (20070823) __________ Ce message a ete verifie par NOD32 Antivirus System. http://www.nod32.com From gingko at gingko.homeip.net Fri Aug 24 08:30:43 2007 From: gingko at gingko.homeip.net (Gingko) Date: Fri, 24 Aug 2007 08:30:43 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_un_probl=E8me_dans_le_fic?= =?iso-8859-1?q?hier_projet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot><46CD2847.5020103@baysse.fr><000901c7e580$f57be2e0$0200a8c0@blot><000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> <000901c7e5c8$748fceb0$0200a8c0@blot> Message-ID: <002401c7e618$4d41ccf0$0f00a8c0@gillesvaio> ----- Original Message ----- From: "arupqfjm" To: "'Liste utilisée par les développeurs'" Sent: Thursday, August 23, 2007 10:59 PM Subject: Re: [Pouchintv-dev]Toujours un problème dans le fichier projet > Que ce soit la version debug ou release, le problème est toujours là, ce > qui > peut être embêtant pour les utilisateurs... Il faudrait vérifier avec quelles DLL il se lie effectivement dans chaque mode de compilation. J'ai un utilitaire qui peut montrer ça (TaskInfo, http://www.iarsn.com/, shareware 30 jours), mais heu .... .... moi, pas trop avant dimanche soir prochain, dans le meilleur des cas .... Gingko From radius at r4dius.net Fri Aug 24 12:33:30 2007 From: radius at r4dius.net (radius) Date: Fri, 24 Aug 2007 12:33:30 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot><46CD2847.5020103@baysse.fr><000901c7e580$f57be2e0$0200a8c0@blot><000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> <000901c7e5c8$748fceb0$0200a8c0@blot> <002401c7e618$4d41ccf0$0f00a8c0@gillesvaio> Message-ID: <200708241233295783737@r4dius.net> ----- Original Message ----- From: "arupqfjm" To: "'Liste utilisée par les développeurs'" Sent: Thursday, August 23, 2007 10:59 PM Subject: Re: [Pouchintv-dev]Toujours un problème dans le fichier projet > Que ce soit la version debug ou release, le problème est toujours là, ce > qui > peut être embêtant pour les utilisateurs... Il faudrait vérifier avec quelles DLL il se lie effectivement dans chaque mode de compilation. J'ai un utilitaire qui peut montrer ça (TaskInfo, http://www.iarsn.com/, shareware 30 jours), mais heu .... .... moi, pas trop avant dimanche soir prochain, dans le meilleur des cas .... Gingko _______________________________________________ Pouchintv-dev mailing list Pouchintv-dev at baysse.fr https://listes.baysse.fr/listinfo/pouchintv-dev . Salut, j'ai fais quelques tests aussi, en compilant le pouchin d'origine j'ai le meme probleme, l'exe que je compile tourne pas sous un xp vierge alors que le precompilé oui, maintenant je comprends pourquoi ma compil fait la moitié de la taille de l'original ^^ From matmaul at gmail.com Fri Aug 24 12:50:08 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Fri, 24 Aug 2007 12:50:08 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <200708241233295783737@r4dius.net> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <000901c7e580$f57be2e0$0200a8c0@blot> <000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> <000901c7e5c8$748fceb0$0200a8c0@blot> <002401c7e618$4d41ccf0$0f00a8c0@gillesvaio> <200708241233295783737@r4dius.net> Message-ID: <20fbb8bc0708240350r3921cb86x71709504bbad6096@mail.gmail.com> > Salut, > j'ai fais quelques tests aussi, en compilant le pouchin d'origine j'ai le meme probleme, l'exe que je compile tourne pas sous un xp vierge alors que le precompilé oui, > maintenant je comprends pourquoi ma compil fait la moitié de la taille de l'original ^^ @ radius : j'ai fait différentes compils ici : http://matmaul16.free.fr/bordel/test.zip tu peux tester et me dire lesquel marche (ou pas) sur ton xp vierge ? Merci From radius at r4dius.net Fri Aug 24 12:55:12 2007 From: radius at r4dius.net (radius) Date: Fri, 24 Aug 2007 12:55:12 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <000901c7e580$f57be2e0$0200a8c0@blot> <000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> <000901c7e5c8$748fceb0$0200a8c0@blot> <002401c7e618$4d41ccf0$0f00a8c0@gillesvaio> <200708241233295783737@r4dius.net> <20fbb8bc0708240350r3921cb86x71709504bbad6096@mail.gmail.com> Message-ID: <200708241255119372136@r4dius.net> > Salut, > j'ai fais quelques tests aussi, en compilant le pouchin d'origine j'ai le meme probleme, l'exe que je compile tourne pas sous un xp vierge alors que le precompilé oui, > maintenant je comprends pourquoi ma compil fait la moitié de la taille de l'original ^^ @ radius : j'ai fait différentes compils ici : http://matmaul16.free.fr/bordel/test.zip tu peux tester et me dire lesquel marche (ou pas) sur ton xp vierge ? Merci _______________________________________________ Pouchintv-dev mailing list Pouchintv-dev at baysse.fr https://listes.baysse.fr/listinfo/pouchintv-dev . Aucun ^^ From laurent at baysse.fr Fri Aug 24 13:25:14 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Fri, 24 Aug 2007 13:25:14 +0200 (CEST) Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours_=5Fun=5Fprobl=E8me=5Fdans?= =?iso-8859-1?q?=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <200708241233295783737@r4dius.net> References: <000001c7e531$3af1c5b0$0200a8c0@blot><46CD2847.5020103@baysse.fr><000901c7e580$f57be2e0$0200a8c0@blot><000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> <000901c7e5c8$748fceb0$0200a8c0@blot> <002401c7e618$4d41ccf0$0f00a8c0@gillesvaio> <200708241233295783737@r4dius.net> Message-ID: <4298.217.128.189.92.1187954714.squirrel@mail.baysse.fr> Le Ven 24 août 2007 12:33, radius a écrit : > ----- Original Message ----- > From: "arupqfjm" > To: "'Liste utilisée par les développeurs'" > Sent: Thursday, August 23, 2007 10:59 PM > Subject: Re: [Pouchintv-dev]Toujours un problème dans le fichier projet > > Salut, > j'ai fais quelques tests aussi, en compilant le pouchin d'origine j'ai le > meme probleme, l'exe que je compile tourne pas sous un xp vierge alors que > le precompilé oui, > maintenant je comprends pourquoi ma compil fait la moitié de la taille de > l'original ^^ > Qu'appelles-tu la version précompilée ? -- Laurent Baysse ....ooo...(°_°)...ooo.... From radius at r4dius.net Fri Aug 24 13:41:12 2007 From: radius at r4dius.net (radius) Date: Fri, 24 Aug 2007 13:41:12 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5F=5Fun=5Fprobl=E8me=5Fda?= =?iso-8859-1?q?ns=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot><46CD2847.5020103@baysse.fr><000901c7e580$f57be2e0$0200a8c0@blot><000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> <000901c7e5c8$748fceb0$0200a8c0@blot> <002401c7e618$4d41ccf0$0f00a8c0@gillesvaio> <200708241233295783737@r4dius.net> <4298.217.128.189.92.1187954714.squirrel@mail.baysse.fr> Message-ID: <200708241341123286808@r4dius.net> Le Ven 24 août 2007 12:33, radius a écrit : > ----- Original Message ----- > From: "arupqfjm" > To: "'Liste utilisée par les développeurs'" > Sent: Thursday, August 23, 2007 10:59 PM > Subject: Re: [Pouchintv-dev]Toujours un problème dans le fichier projet > > Salut, > j'ai fais quelques tests aussi, en compilant le pouchin d'origine j'ai le > meme probleme, l'exe que je compile tourne pas sous un xp vierge alors que > le precompilé oui, > maintenant je comprends pourquoi ma compil fait la moitié de la taille de > l'original ^^ > Qu'appelles-tu la version précompilée ? -- Laurent Baysse ....ooo...(°_°)...ooo.... _______________________________________________ Pouchintv-dev mailing list Pouchintv-dev at baysse.fr https://listes.baysse.fr/listinfo/pouchintv-dev . La version originale de pouchin je voulais dire, bon maintenant ca marche, j'ai remis en MT, viré la lib ignoré et compilé strmbase.lib en MT (d'origine il etait en MD et la compile de pouchin foirait) From matmaul at gmail.com Fri Aug 24 13:45:56 2007 From: matmaul at gmail.com (Mathieu Velten) Date: Fri, 24 Aug 2007 13:45:56 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5F=5Fun=5Fprobl=E8me=5Fda?= =?iso-8859-1?q?ns=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <200708241341123286808@r4dius.net> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <000901c7e580$f57be2e0$0200a8c0@blot> <000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> <000901c7e5c8$748fceb0$0200a8c0@blot> <002401c7e618$4d41ccf0$0f00a8c0@gillesvaio> <200708241233295783737@r4dius.net> <4298.217.128.189.92.1187954714.squirrel@mail.baysse.fr> <200708241341123286808@r4dius.net> Message-ID: <20fbb8bc0708240445j2f116c77qe7c342f684f0bbed@mail.gmail.com> grilled !! je venais d'y arriver aussi avec la même méthode ^^ Le 24/08/07, radius a écrit : > Le Ven 24 août 2007 12:33, radius a écrit : > > ----- Original Message ----- > > From: "arupqfjm" > > To: "'Liste utilisée par les développeurs'" > > Sent: Thursday, August 23, 2007 10:59 PM > > Subject: Re: [Pouchintv-dev]Toujours un problème dans le fichier projet > > > > Salut, > > j'ai fais quelques tests aussi, en compilant le pouchin d'origine j'ai le > > meme probleme, l'exe que je compile tourne pas sous un xp vierge alors que > > le precompilé oui, > > maintenant je comprends pourquoi ma compil fait la moitié de la taille de > > l'original ^^ > > > > Qu'appelles-tu la version précompilée ? > > -- > Laurent Baysse > > ....ooo...(°_°)...ooo.... > > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > . > > La version originale de pouchin je voulais dire, > bon maintenant ca marche, j'ai remis en MT, viré la lib ignoré et compilé strmbase.lib en MT (d'origine il etait en MD et la compile de pouchin foirait) > _______________________________________________ > Pouchintv-dev mailing list > Pouchintv-dev at baysse.fr > https://listes.baysse.fr/listinfo/pouchintv-dev > From pouchintv-svn at baysse.fr Fri Aug 24 13:57:19 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Fri, 24 Aug 2007 13:57:19 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] matmaul | r36 - trunk Message-ID: <20070824115719.B48F35F28B@mail.baysse.fr> Author: matmaul Date: 2007-08-24 13:57:19 +0200 (Fri, 24 Aug 2007) New Revision: 36 Modified: trunk/Pouchin TV.vcproj trunk/epgfilter.cpp trunk/ini.cpp trunk/main.cpp Log: j'ai remis les fonctions securis?\195?\169es en fait c'?\195?\169tait pas ca... j'ai enlev?\195?\169 le blacklist sur libcmt.lib et l'ai mis sur msvcrt.lib comme ca plus de pb ^^ ATTENTION : Il faut compiler les baseclasses avec "Biblioth?\195?\168que runtime" sur "Multithread" (ou "d?\195?\169boguage multithread") au lieu de "DLL multithread" qui est la valeur par d?\195?\169faut Modified: trunk/Pouchin TV.vcproj =================================================================== --- trunk/Pouchin TV.vcproj 2007-08-23 13:54:52 UTC (rev 35) +++ trunk/Pouchin TV.vcproj 2007-08-24 11:57:19 UTC (rev 36) @@ -66,7 +66,7 @@ AdditionalDependencies="Strmiids.lib comctl32.lib strmbasd.lib Winmm.lib msxml2.lib" OutputFile="$(OutDir)\PouchinTVMod_debug.exe" LinkIncremental="2" - IgnoreDefaultLibraryNames="libcmtd.lib" + IgnoreDefaultLibraryNames="MSVCRTD.lib" GenerateDebugInformation="true" SubSystem="2" TargetMachine="1" @@ -97,9 +97,9 @@ /> @@ -117,11 +117,12 @@ /> @@ -282,24 +274,19 @@ /> @@ -369,19 +353,24 @@ /> @@ -527,19 +528,18 @@ /> ?\\|"); } - swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.bmp", screenshots_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.bmp", screenshots_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); HANDLE file = CreateFile(nom, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); @@ -2577,7 +2574,7 @@ carac = strpbrk(nom_chaine, "\"*/:<>?\\|"); } - swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); int video = Canaux[chaineCourante].video_pid ? Canaux[chaineCourante].video_pid : Canaux[chaineCourante].mpeg4_pid; @@ -2608,7 +2605,7 @@ carac = strpbrk(nom_chaine, "\"*/:<>?\\|"); } - swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); int video = Canaux[chaineCourante].video_pid ? Canaux[chaineCourante].video_pid : Canaux[chaineCourante].mpeg4_pid; @@ -2631,7 +2628,7 @@ SYSTEMTIME st; GetLocalTime(&st); - swprintf(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf_s(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); ISampleGrabberCB * pCallback = new CSampleGrabber(nom); @@ -2973,18 +2970,18 @@ switch(Programmes[next_record].methode) { case 0: - swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.ts", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); video = Canaux[index].video_pid ? Canaux[index].video_pid : Canaux[index].mpeg4_pid; pCallback = new CSampleGrabber(nom, Canaux[index].pmt_pid, video, Canaux[index].son, Canaux[index].nb_son, Canaux[index].autre, Canaux[index].nb_autre); break; case 1: - swprintf(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf_s(nom, _countof(nom), L"%s\\%S %02i-%02i %02i-%02i-%02i.mpg", video_dir, nom_chaine, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); video = Canaux[index].video_pid ? Canaux[index].video_pid : Canaux[index].mpeg4_pid; son = Canaux[index].son[index_son].pid; pCallback = new CSampleGrabber(nom, video, son); break; case 2: - swprintf(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); + swprintf_s(nom, _countof(nom), L"%s\\Transport Stream %02i-%02i %02i-%02i-%02i.ts", video_dir, st.wDay, st.wMonth, st.wHour, st.wMinute, st.wSecond); pCallback = new CSampleGrabber(nom); break; } @@ -3143,10 +3140,6 @@ time_context_quit = GetTickCount(); break; - case WM_ACTIVATE: - SetActiveWindow(hh); - break; - case WM_ENTERIDLE: { if (wParam == MSGF_DIALOGBOX && use_dialog_callback) @@ -3204,11 +3197,10 @@ { MSG msg; - HWND hwnd; - HWND hidden_hwnd; WNDCLASS wndclass; + HWND hidden_hwnd; + HWND hwnd; - hInst = hInstance; CreateMutex(NULL, TRUE, szAppName); @@ -3273,8 +3265,6 @@ return 0; } - hidden = hidden_hwnd; - hwnd = CreateWindowEx(0, szAppName, L"Pouchin TV Mod", @@ -3283,14 +3273,10 @@ win_y, win_w, win_h, - hidden_hwnd, NULL, + NULL, hInstance, NULL); - - hh = hwnd; - - SetActiveWindow(hh); // make sure window was created if (!hwnd) { From laurent at baysse.fr Mon Aug 27 17:51:09 2007 From: laurent at baysse.fr (Laurent Baysse) Date: Mon, 27 Aug 2007 17:51:09 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5F=5Fun=5Fprobl=E8me=5Fda?= =?iso-8859-1?q?ns=5Fle=5Ffichier=5Fprojet?= In-Reply-To: <20fbb8bc0708240445j2f116c77qe7c342f684f0bbed@mail.gmail.com> References: <000001c7e531$3af1c5b0$0200a8c0@blot> <46CD2847.5020103@baysse.fr> <000901c7e580$f57be2e0$0200a8c0@blot> <000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> <000901c7e5c8$748fceb0$0200a8c0@blot> <002401c7e618$4d41ccf0$0f00a8c0@gillesvaio> <200708241233295783737@r4dius.net> <4298.217.128.189.92.1187954714.squirrel@mail.baysse.fr> <200708241341123286808@r4dius.net> <20fbb8bc0708240445j2f116c77qe7c342f684f0bbed@mail.gmail.com> Message-ID: <46D2F2ED.3040608@baysse.fr> Pour résoudre le problème des dépendances de Pouchin TV Mod de manière définitive, que pensez-vous d'inclure le projet "BaseClasses" de Microsoft dans les sources ? Mais surtout, en avons-nous le droit (licence?) ? Je n'ai encore rien trouvé dans ce sens là... -- Laurent Baysse From gingko at gingko.homeip.net Mon Aug 27 18:43:32 2007 From: gingko at gingko.homeip.net (Gilles Reeves) Date: Mon, 27 Aug 2007 18:43:32 +0200 Subject: [Pouchintv-dev] =?iso-8859-1?q?Toujours=5F=5Fun=5Fprobl=E8me=5Fda?= =?iso-8859-1?q?ns=5Fle=5Ffichier=5Fprojet?= References: <000001c7e531$3af1c5b0$0200a8c0@blot><46CD2847.5020103@baysse.fr> <000901c7e580$f57be2e0$0200a8c0@blot> <000c01c7e589$4a08cf00$0f00a8c0@gillesvaio> <000901c7e5c8$748fceb0$0200a8c0@blot> <002401c7e618$4d41ccf0$0f00a8c0@gillesvaio> <200708241233295783737@r4dius.net> <4298.217.128.189.92.1187954714.squirrel@mail.baysse.fr> <200708241341123286808@r4dius.net><20fbb8bc0708240445j2f116c77qe7c342f684f0bbed@mail.gmail.com> <46D2F2ED.3040608@baysse.fr> Message-ID: <000a01c7e8c9$683ae830$29a0a8c0@GReeves> Bonjour, J'avais fait quelque chose de similaire à l'origine, avec Visual C++ Express, parce que j'avais rencontré ce problème moi aussi. Je l'avais résolu en incluant ce projet en tant que projet additionnel dans la "solution", et en paramétrant les dépendances de projet à l'intérieur de celle-ci, ce qui me dispensait accessoirement d'inclure les bibliothèque correspondantes au niveau de l'éditeur de liens. Evidemment, l'inconvénient, c'est que l'inclusion du projet supplémentaire est liée à l'endroit où chacun décide d'installer le SDK Microsoft, et doit donc être modifié en conséquence par chaque développeur. Actuellement, je me contente de compiler "BaseClasses" indépendamment dans un répertoire distinct et de lier ce répertoire dans le projet. Par "inclure le projet dans les sources", je ne sais pas si c'est ainsi que tu l'entends, ou bien en recopiant carrément le contenu de celui-ci ... ce que je déconseillerais personnellement, étant donné que le SDK est susceptible d'évoluer fréquemment, et qu'évidemment; les mises à jour futures seraient à recopier à chaque fois. Gingko ----- Message d'origine ----- De : "Laurent Baysse" À : "Liste utilisée par les développeurs" Envoyé : lundi 27 août 2007 17:51 Objet : Re: [Pouchintv-dev] Toujours__un_problème_dans_le_fichier_projet > Pour résoudre le problème des dépendances de Pouchin TV Mod de manière > définitive, que pensez-vous d'inclure le projet "BaseClasses" de Microsoft > dans les sources ? > > Mais surtout, en avons-nous le droit (licence?) ? Je n'ai encore rien > trouvé dans ce sens là... From pouchintv-svn at baysse.fr Mon Aug 27 19:47:22 2007 From: pouchintv-svn at baysse.fr (pouchintv-svn at baysse.fr) Date: Mon, 27 Aug 2007 19:47:22 +0200 (CEST) Subject: [Pouchintv-dev] [PouchinTVMod] lolo_32 | r37 - in trunk: . BaseClasses Message-ID: <20070827174722.EE4105F28D@mail.baysse.fr> Author: lolo_32 Date: 2007-08-27 19:47:21 +0200 (Mon, 27 Aug 2007) New Revision: 37 Added: trunk/BaseClasses/ trunk/BaseClasses/amextra.cpp trunk/BaseClasses/amextra.h trunk/BaseClasses/amfilter.cpp trunk/BaseClasses/amfilter.h trunk/BaseClasses/amvideo.cpp trunk/BaseClasses/arithutil.cpp trunk/BaseClasses/baseclasses.sln trunk/BaseClasses/baseclasses.vcproj trunk/BaseClasses/cache.h trunk/BaseClasses/checkbmi.h trunk/BaseClasses/combase.cpp trunk/BaseClasses/combase.h trunk/BaseClasses/cprop.cpp trunk/BaseClasses/cprop.h trunk/BaseClasses/ctlutil.cpp trunk/BaseClasses/ctlutil.h trunk/BaseClasses/ddmm.cpp trunk/BaseClasses/ddmm.h trunk/BaseClasses/dllentry.cpp trunk/BaseClasses/dllsetup.cpp trunk/BaseClasses/dllsetup.h trunk/BaseClasses/dxmperf.h trunk/BaseClasses/fourcc.h trunk/BaseClasses/measure.h trunk/BaseClasses/msgthrd.h trunk/BaseClasses/mtype.cpp trunk/BaseClasses/mtype.h trunk/BaseClasses/outputq.cpp trunk/BaseClasses/outputq.h trunk/BaseClasses/perflog.cpp trunk/BaseClasses/perflog.h trunk/BaseClasses/pstream.cpp trunk/BaseClasses/pstream.h trunk/BaseClasses/pullpin.cpp trunk/BaseClasses/pullpin.h trunk/BaseClasses/refclock.cpp trunk/BaseClasses/refclock.h trunk/BaseClasses/reftime.h trunk/BaseClasses/renbase.cpp trunk/BaseClasses/renbase.h trunk/BaseClasses/schedule.cpp trunk/BaseClasses/schedule.h trunk/BaseClasses/seekpt.cpp trunk/BaseClasses/seekpt.h trunk/BaseClasses/source.cpp trunk/BaseClasses/source.h trunk/BaseClasses/streams.h trunk/BaseClasses/strmctl.cpp trunk/BaseClasses/strmctl.h trunk/BaseClasses/sysclock.cpp trunk/BaseClasses/sysclock.h trunk/BaseClasses/transfrm.cpp trunk/BaseClasses/transfrm.h trunk/BaseClasses/transip.cpp trunk/BaseClasses/transip.h trunk/BaseClasses/videoctl.cpp trunk/BaseClasses/videoctl.h trunk/BaseClasses/vtrans.cpp trunk/BaseClasses/vtrans.h trunk/BaseClasses/winctrl.cpp trunk/BaseClasses/winctrl.h trunk/BaseClasses/winutil.cpp trunk/BaseClasses/winutil.h trunk/BaseClasses/wxdebug.cpp trunk/BaseClasses/wxdebug.h trunk/BaseClasses/wxlist.cpp trunk/BaseClasses/wxlist.h trunk/BaseClasses/wxutil.cpp trunk/BaseClasses/wxutil.h Modified: trunk/Pouchin TV.sln trunk/Pouchin TV.vcproj Log: Ajout des BaseClasses de DirectShow de Microsoft, car apr?\195?\168s v?\195?\169rifications, la licence le permet, et la configuration par d?\195?\169faut des librairies ne permet pas un d?\195?\169ploiement ais?\195?\169 de Pouchin TV Mod. Modifications des options: * Compilation des librairies en statiques; * ajout du support x64 (non test?\195?\169) * d?\195?\169pendances avec le projet "Pouchin TV.vcproj" pr?\195?\169configur?\195?\169 Ne posera pas de probl?\195?\168me ult?\195?\169rieur, m?\195?\170me si le SDK de Microsoft est mis ?\195?\160 jour... Property changes on: trunk/BaseClasses ___________________________________________________________________ Name: svn:ignore + Debug_Win32 Release_Win32 Debug_x64 Release_x64 baseclasses.vcproj.* .*.swp Added: trunk/BaseClasses/amextra.cpp =================================================================== --- trunk/BaseClasses/amextra.cpp (rev 0) +++ trunk/BaseClasses/amextra.cpp 2007-08-27 17:47:21 UTC (rev 37) @@ -0,0 +1,111 @@ +//------------------------------------------------------------------------------ +// File: AMExtra.cpp +// +// Desc: DirectShow base classes - implements CRenderedInputPin class. +// +// Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#include // DirectShow base class definitions +#include // Needed for definition of timeGetTime +#include // Standard data type limit definitions +#include // Used for time critical log functions + +#include "amextra.h" + +#pragma warning(disable:4355) + +// Implements CRenderedInputPin class + +CRenderedInputPin::CRenderedInputPin(__in_opt LPCTSTR pObjectName, + __in CBaseFilter *pFilter, + __in CCritSec *pLock, + __inout HRESULT *phr, + __in_opt LPCWSTR pName) : + CBaseInputPin(pObjectName, pFilter, pLock, phr, pName), + m_bAtEndOfStream(FALSE), + m_bCompleteNotified(FALSE) +{ +} +#ifdef UNICODE +CRenderedInputPin::CRenderedInputPin(__in_opt LPCSTR pObjectName, + __in CBaseFilter *pFilter, + __in CCritSec *pLock, + __inout HRESULT *phr, + __in_opt LPCWSTR pName) : + CBaseInputPin(pObjectName, pFilter, pLock, phr, pName), + m_bAtEndOfStream(FALSE), + m_bCompleteNotified(FALSE) +{ +} +#endif + +// Flush end of stream condition - caller should do any +// necessary stream level locking before calling this + +STDMETHODIMP CRenderedInputPin::EndOfStream() +{ + HRESULT hr = CheckStreaming(); + + // Do EC_COMPLETE handling for rendered pins + if (S_OK == hr && !m_bAtEndOfStream) { + m_bAtEndOfStream = TRUE; + FILTER_STATE fs; + EXECUTE_ASSERT(SUCCEEDED(m_pFilter->GetState(0, &fs))); + if (fs == State_Running) { + DoCompleteHandling(); + } + } + return hr; +} + + +// Called to complete the flush + +STDMETHODIMP CRenderedInputPin::EndFlush() +{ + CAutoLock lck(m_pLock); + + // Clean up renderer state + m_bAtEndOfStream = FALSE; + m_bCompleteNotified = FALSE; + + return CBaseInputPin::EndFlush(); +} + + +// Notify of Run() from filter + +HRESULT CRenderedInputPin::Run(REFERENCE_TIME tStart) +{ + UNREFERENCED_PARAMETER(tStart); + m_bCompleteNotified = FALSE; + if (m_bAtEndOfStream) { + DoCompleteHandling(); + } + return S_OK; +} + + +// Clear status on going into paused state + +HRESULT CRenderedInputPin::Active() +{ + m_bAtEndOfStream = FALSE; + m_bCompleteNotified = FALSE; + return CBaseInputPin::Active(); +} + + +// Do stuff to deliver end of stream + +void CRenderedInputPin::DoCompleteHandling() +{ + ASSERT(m_bAtEndOfStream); + if (!m_bCompleteNotified) { + m_bCompleteNotified = TRUE; + m_pFilter->NotifyEvent(EC_COMPLETE, S_OK, (LONG_PTR)(IBaseFilter *)m_pFilter); + } +} + Added: trunk/BaseClasses/amextra.h =================================================================== --- trunk/BaseClasses/amextra.h (rev 0) +++ trunk/BaseClasses/amextra.h 2007-08-27 17:47:21 UTC (rev 37) @@ -0,0 +1,56 @@ +//------------------------------------------------------------------------------ +// File: AMExtra.h +// +// Desc: DirectShow base classes. +// +// Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __AMEXTRA__ +#define __AMEXTRA__ + +// Simple rendered input pin +// +// NOTE if your filter queues stuff before rendering then it may not be +// appropriate to use this class +// +// In that case queue the end of stream condition until the last sample +// is actually rendered and flush the condition appropriately + +class CRenderedInputPin : public CBaseInputPin +{ +public: + + CRenderedInputPin(__in_opt LPCTSTR pObjectName, + __in CBaseFilter *pFilter, + __in CCritSec *pLock, + __inout HRESULT *phr, + __in_opt LPCWSTR pName); +#ifdef UNICODE + CRenderedInputPin(__in_opt LPCSTR pObjectName, + __in CBaseFilter *pFilter, + __in CCritSec *pLock, + __inout HRESULT *phr, + __in_opt LPCWSTR pName); +#endif + + // Override methods to track end of stream state + STDMETHODIMP EndOfStream(); + STDMETHODIMP EndFlush(); + + HRESULT Active(); + HRESULT Run(REFERENCE_TIME tStart); + +protected: + + // Member variables to track state + BOOL m_bAtEndOfStream; // Set by EndOfStream + BOOL m_bCompleteNotified; // Set when we notify for EC_COMPLETE + +private: + void DoCompleteHandling(); +}; + +#endif // __AMEXTRA__ + Added: trunk/BaseClasses/amfilter.cpp =================================================================== --- trunk/BaseClasses/amfilter.cpp (rev 0) +++ trunk/BaseClasses/amfilter.cpp 2007-08-27 17:47:21 UTC (rev 37) @@ -0,0 +1,5427 @@ +//------------------------------------------------------------------------------ +// File: AMFilter.cpp +// +// Desc: DirectShow base classes - implements class hierarchy for streams +// architecture. +// +//@@BEGIN_MSINTERNAL +// +// December 1994 +// +//@@END_MSINTERNAL +// Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +//===================================================================== +//===================================================================== +// The following classes are declared in this header: +// +// +// CBaseMediaFilter Basic IMediaFilter support (abstract class) +// CBaseFilter Support for IBaseFilter (incl. IMediaFilter) +// CEnumPins Enumerate input and output pins +// CEnumMediaTypes Enumerate the preferred pin formats +// CBasePin Abstract base class for IPin interface +// CBaseOutputPin Adds data provider member functions +// CBaseInputPin Implements IMemInputPin interface +// CMediaSample Basic transport unit for IMemInputPin +// CBaseAllocator General list guff for most allocators +// CMemAllocator Implements memory buffer allocation +// +//===================================================================== +//===================================================================== + +#include +#include + +//@@BEGIN_MSINTERNAL +#ifdef DXMPERF +#include "dxmperf.h" +#endif // DXMPERF +//@@END_MSINTERNAL + + +//===================================================================== +// Helpers +//===================================================================== +STDAPI CreateMemoryAllocator(__deref_out IMemAllocator **ppAllocator) +{ + return CoCreateInstance(CLSID_MemoryAllocator, + 0, + CLSCTX_INPROC_SERVER, + IID_IMemAllocator, + (void **)ppAllocator); +} + +// Put this one here rather than in ctlutil.cpp to avoid linking +// anything brought in by ctlutil.cpp +STDAPI CreatePosPassThru( + __in_opt LPUNKNOWN pAgg, + BOOL bRenderer, + IPin *pPin, + __deref_out IUnknown **ppPassThru +) +{ + *ppPassThru = NULL; + IUnknown *pUnkSeek; + HRESULT hr = CoCreateInstance(CLSID_SeekingPassThru, + pAgg, + CLSCTX_INPROC_SERVER, + IID_IUnknown, + (void **)&pUnkSeek + ); + if (FAILED(hr)) { + return hr; + } + + ISeekingPassThru *pPassThru; + hr = pUnkSeek->QueryInterface(IID_ISeekingPassThru, (void**)&pPassThru); + if (FAILED(hr)) { + pUnkSeek->Release(); + return hr; + } + hr = pPassThru->Init(bRenderer, pPin); + pPassThru->Release(); + if (FAILED(hr)) { + pUnkSeek->Release(); + return hr; + } + *ppPassThru = pUnkSeek; + return S_OK; +} + + + +#define CONNECT_TRACE_LEVEL 3 + +//===================================================================== +//===================================================================== +// Implements CBaseMediaFilter +//===================================================================== +//===================================================================== + + +/* Constructor */ + +CBaseMediaFilter::CBaseMediaFilter(__in_opt LPCTSTR pName, + __inout_opt LPUNKNOWN pUnk, + __in CCritSec *pLock, + REFCLSID clsid) : + CUnknown(pName, pUnk), + m_pLock(pLock), + m_clsid(clsid), + m_State(State_Stopped), + m_pClock(NULL) +{ +} + + +/* Destructor */ + +CBaseMediaFilter::~CBaseMediaFilter() +{ + // must be stopped, but can't call Stop here since + // our critsec has been destroyed. + + /* Release any clock we were using */ + + if (m_pClock) { + m_pClock->Release(); + m_pClock = NULL; + } +} + + +/* Override this to say what interfaces we support and where */ + +STDMETHODIMP +CBaseMediaFilter::NonDelegatingQueryInterface( + REFIID riid, + __deref_out void ** ppv) +{ + if (riid == IID_IMediaFilter) { + return GetInterface((IMediaFilter *) this, ppv); + } else if (riid == IID_IPersist) { + return GetInterface((IPersist *) this, ppv); + } else { + return CUnknown::NonDelegatingQueryInterface(riid, ppv); + } +} + +/* Return the filter's clsid */ +STDMETHODIMP +CBaseMediaFilter::GetClassID(__out CLSID *pClsID) +{ + CheckPointer(pClsID,E_POINTER); + ValidateReadWritePtr(pClsID,sizeof(CLSID)); + *pClsID = m_clsid; + return NOERROR; +} + +/* Override this if your state changes are not done synchronously */ + +STDMETHODIMP +CBaseMediaFilter::GetState(DWORD dwMSecs, __out FILTER_STATE *State) +{ + UNREFERENCED_PARAMETER(dwMSecs); + CheckPointer(State,E_POINTER); + ValidateReadWritePtr(State,sizeof(FILTER_STATE)); + + *State = m_State; + return S_OK; +} + + +/* Set the clock we will use for synchronisation */ + +STDMETHODIMP +CBaseMediaFilter::SetSyncSource(__inout_opt IReferenceClock *pClock) +{ + CAutoLock cObjectLock(m_pLock); + + // Ensure the new one does not go away - even if the same as the old + if (pClock) { + pClock->AddRef(); + } + + // if we have a clock, release it + if (m_pClock) { + m_pClock->Release(); + } + + // Set the new reference clock (might be NULL) + // Should we query it to ensure it is a clock? Consider for a debug build. + m_pClock = pClock; + + return NOERROR; +} + +/* Return the clock we are using for synchronisation */ +STDMETHODIMP +CBaseMediaFilter::GetSyncSource(__deref_out_opt IReferenceClock **pClock) +{ + CheckPointer(pClock,E_POINTER); + ValidateReadWritePtr(pClock,sizeof(IReferenceClock *)); + CAutoLock cObjectLock(m_pLock); + + if (m_pClock) { + // returning an interface... addref it... + m_pClock->AddRef(); + } + *pClock = (IReferenceClock*)m_pClock; + return NOERROR; +} + + +/* Put the filter into a stopped state */ + +STDMETHODIMP +CBaseMediaFilter::Stop() +{ + CAutoLock cObjectLock(m_pLock); + + m_State = State_Stopped; + return S_OK; +} + + +/* Put the filter into a paused state */ + +STDMETHODIMP +CBaseMediaFilter::Pause() +{ + CAutoLock cObjectLock(m_pLock); + + m_State = State_Paused; + return S_OK; +} + + +// Put the filter into a running state. + +// The time parameter is the offset to be added to the samples' +// stream time to get the reference time at which they should be presented. +// +// you can either add these two and compare it against the reference clock, +// or you can call CBaseMediaFilter::StreamTime and compare that against +// the sample timestamp. + +STDMETHODIMP +CBaseMediaFilter::Run(REFERENCE_TIME tStart) +{ + CAutoLock cObjectLock(m_pLock); + + // remember the stream time offset + m_tStart = tStart; + + if (m_State == State_Stopped){ + HRESULT hr = Pause(); + + if (FAILED(hr)) { + return hr; + } + } + m_State = State_Running; + return S_OK; +} + + +// +// return the current stream time - samples with start timestamps of this +// time or before should be rendered by now +HRESULT +CBaseMediaFilter::StreamTime(CRefTime& rtStream) +{ + // Caller must lock for synchronization + // We can't grab the filter lock because we want to be able to call + // this from worker threads without deadlocking + + if (m_pClock == NULL) { + return VFW_E_NO_CLOCK; + } + + // get the current reference time + HRESULT hr = m_pClock->GetTime((REFERENCE_TIME*)&rtStream); + if (FAILED(hr)) { + return hr; + } + + // subtract the stream offset to get stream time + rtStream -= m_tStart; + + return S_OK; +} + + +//===================================================================== +//===================================================================== +// Implements CBaseFilter +//===================================================================== +//===================================================================== + + +/* Override this to say what interfaces we support and where */ + +STDMETHODIMP CBaseFilter::NonDelegatingQueryInterface(REFIID riid, + __deref_out void **ppv) +{ + /* Do we have this interface */ + + if (riid == IID_IBaseFilter) { + return GetInterface((IBaseFilter *) this, ppv); + } else if (riid == IID_IMediaFilter) { + return GetInterface((IMediaFilter *) this, ppv); + } else if (riid == IID_IPersist) { + return GetInterface((IPersist *) this, ppv); + } else if (riid == IID_IAMovieSetup) { + return GetInterface((IAMovieSetup *) this, ppv); + } else { + return CUnknown::NonDelegatingQueryInterface(riid, ppv); + } +} + +#ifdef DEBUG +STDMETHODIMP_(ULONG) CBaseFilter::NonDelegatingRelease() +{ + if (m_cRef == 1) { + KASSERT(m_pGraph == NULL); + } + return CUnknown::NonDelegatingRelease(); +} +#endif + + +/* Constructor */ + +CBaseFilter::CBaseFilter(__in_opt LPCTSTR pName, + __inout_opt LPUNKNOWN pUnk, + __in CCritSec *pLock, + REFCLSID clsid) : + CUnknown( pName, pUnk ), + m_pLock(pLock), + m_clsid(clsid), + m_State(State_Stopped), + m_pClock(NULL), + m_pGraph(NULL), + m_pSink(NULL), + m_pName(NULL), + m_PinVersion(1) +{ +//@@BEGIN_MSINTERNAL +#ifdef DXMPERF + PERFLOG_CTOR( pName ? pName : L"CBaseFilter", (IBaseFilter *) this ); +#endif // DXMPERF +//@@END_MSINTERNAL + + ASSERT(pLock != NULL); +} + +/* Passes in a redundant HRESULT argument */ + +CBaseFilter::CBaseFilter(__in_opt LPCTSTR pName, + __in_opt LPUNKNOWN pUnk, + __in CCritSec *pLock, + REFCLSID clsid, + __inout HRESULT *phr) : + CUnknown( pName, pUnk ), + m_pLock(pLock), + m_clsid(clsid), + m_State(State_Stopped), + m_pClock(NULL), + m_pGraph(NULL), + m_pSink(NULL), + m_pName(NULL), + m_PinVersion(1) +{ +//@@BEGIN_MSINTERNAL +#ifdef DXMPERF + PERFLOG_CTOR( pName ? pName : L"CBaseFilter", (IBaseFilter *) this ); +#endif // DXMPERF +//@@END_MSINTERNAL + + ASSERT(pLock != NULL); + UNREFERENCED_PARAMETER(phr); +} + +#ifdef UNICODE +CBaseFilter::CBaseFilter(__in_opt LPCSTR pName, + __in_opt LPUNKNOWN pUnk, + __in CCritSec *pLock, + REFCLSID clsid) : + CUnknown( pName, pUnk ), + m_pLock(pLock), + m_clsid(clsid), + m_State(State_Stopped), + m_pClock(NULL), + m_pGraph(NULL), + m_pSink(NULL), + m_pName(NULL), + m_PinVersion(1) +{ +//@@BEGIN_MSINTERNAL +#ifdef DXMPERF + PERFLOG_CTOR( L"CBaseFilter", (IBaseFilter *) this ); +#endif // DXMPERF +//@@END_MSINTERNAL + + ASSERT(pLock != NULL); +} +CBaseFilter::CBaseFilter(__in_opt LPCSTR pName, + __in_opt LPUNKNOWN pUnk, + __in CCritSec *pLock, + REFCLSID clsid, + __inout HRESULT *phr) : + CUnknown( pName, pUnk ), + m_pLock(pLock), + m_clsid(clsid), + m_State(State_Stopped), + m_pClock(NULL), + m_pGraph(NULL), + m_pSink(NULL), + m_pName(NULL), + m_PinVersion(1) +{ +//@@BEGIN_MSINTERNAL +#ifdef DXMPERF + PERFLOG_CTOR( L"CBaseFilter", (IBaseFilter *) this ); +#endif // DXMPERF +//@@END_MSINTERNAL + + ASSERT(pLock != NULL); + UNREFERENCED_PARAMETER(phr); +} +#endif + +/* Destructor */ + +CBaseFilter::~CBaseFilter() +{ +//@@BEGIN_MSINTERNAL +#ifdef DXMPERF + PERFLOG_DTOR( L"CBaseFilter", (IBaseFilter *) this ); +#endif // DXMPERF +//@@END_MSINTERNAL + + // NOTE we do NOT hold references on the filtergraph for m_pGraph or m_pSink + // When we did we had the circular reference problem. Nothing would go away. + + delete[] m_pName; + + // must be stopped, but can't call Stop here since + // our critsec has been destroyed. + + /* Release any clock we were using */ + if (m_pClock) { + m_pClock->Release(); + m_pClock = NULL; + } +} + +/* Return the filter's clsid */ +STDMETHODIMP +CBaseFilter::GetClassID(__out CLSID *pClsID) +{ + CheckPointer(pClsID,E_POINTER); + ValidateReadWritePtr(pClsID,sizeof(CLSID)); + *pClsID = m_clsid; + return NOERROR; +} + +/* Override this if your state changes are not done synchronously */ +STDMETHODIMP +CBaseFilter::GetState(DWORD dwMSecs, __out FILTER_STATE *State) +{ + UNREFERENCED_PARAMETER(dwMSecs); + CheckPointer(State,E_POINTER); + ValidateReadWritePtr(State,sizeof(FILTER_STATE)); + + *State = m_State; + return S_OK; +} + + +/* Set the clock we will use for synchronisation */ + +STDMETHODIMP +CBaseFilter::SetSyncSource(__in_opt IReferenceClock *pClock) +{ + CAutoLock cObjectLock(m_pLock); + + // Ensure the new one does not go away - even if the same as the old + if (pClock) { + pClock->AddRef(); + } + + // if we have a clock, release it + if (m_pClock) { + m_pClock->Release(); + } + + // Set the new reference clock (might be NULL) + // Should we query it to ensure it is a clock? Consider for a debug build. + m_pClock = pClock; + + return NOERROR; +} + +/* Return the clock we are using for synchronisation */ +STDMETHODIMP +CBaseFilter::GetSyncSource(__deref_out_opt IReferenceClock **pClock) +{ + CheckPointer(pClock,E_POINTER); + ValidateReadWritePtr(pClock,sizeof(IReferenceClock *)); + CAutoLock cObjectLock(m_pLock); + + if (m_pClock) { + // returning an interface... addref it... + m_pClock->AddRef(); + } + *pClock = (IReferenceClock*)m_pClock; + return NOERROR; +} + + + +// override CBaseMediaFilter Stop method, to deactivate any pins this +// filter has. +STDMETHODIMP +CBaseFilter::Stop() +{ + CAutoLock cObjectLock(m_pLock); + HRESULT hr = NOERROR; + + // notify all pins of the state change + if (m_State != State_Stopped) { + int cPins = GetPinCount(); + for (int c = 0; c < cPins; c++) { + + CBasePin *pPin = GetPin(c); + if (NULL == pPin) { + break; + } + + // Disconnected pins are not activated - this saves pins worrying + // about this state themselves. We ignore the return code to make + // sure everyone is inactivated regardless. The base input pin + // class can return an error if it has no allocator but Stop can + // be used to resync the graph state after something has gone bad + + if (pPin->IsConnected()) { + HRESULT hrTmp = pPin->Inactive(); + if (FAILED(hrTmp) && SUCCEEDED(hr)) { + hr = hrTmp; + } + } + } + } + +//@@BEGIN_MSINTERNAL +#ifdef DXMPERF + PERFLOG_STOP( m_pName ? m_pName : L"CBaseFilter", (IBaseFilter *) this, m_State ); +#endif // DXMPERF +//@@END_MSINTERNAL + + m_State = State_Stopped; + return hr; +} + + +// override CBaseMediaFilter Pause method to activate any pins +// this filter has (also called from Run) + +STDMETHODIMP +CBaseFilter::Pause() +{ + CAutoLock cObjectLock(m_pLock); + + // notify all pins of the change to active state + if (m_State == State_Stopped) { + int cPins = GetPinCount(); + for (int c = 0; c < cPins; c++) { + + CBasePin *pPin = GetPin(c); + if (NULL == pPin) { + break; + } + + // Disconnected pins are not activated - this saves pins + // worrying about this state themselves + + if (pPin->IsConnected()) { + HRESULT hr = pPin->Active(); + if (FAILED(hr)) { + return hr; + } + } + } + } + + +//@@BEGIN_MSINTERNAL +#ifdef DXMPERF + PERFLOG_PAUSE( m_pName ? m_pName : L"CBaseFilter", (IBaseFilter *) this, m_State ); +#endif // DXMPERF +//@@END_MSINTERNAL + + m_State = State_Paused; + return S_OK; +} + +// Put the filter into a running state. + +// The time parameter is the offset to be added to the samples' +// stream time to get the reference time at which they should be presented. +// +// you can either add these two and compare it against the reference clock, +// or you can call CBaseFilter::StreamTime and compare that against +// the sample timestamp. + +STDMETHODIMP +CBaseFilter::Run(REFERENCE_TIME tStart) +{ + CAutoLock cObjectLock(m_pLock); + + // remember the stream time offset + m_tStart = tStart; + + if (m_State == State_Stopped){ + HRESULT hr = Pause(); + + if (FAILED(hr)) { + return hr; + } + } + // notify all pins of the change to active state + if (m_State != State_Running) { + int cPins = GetPinCount(); + for (int c = 0; c < cPins; c++) { + + CBasePin *pPin = GetPin(c); + if (NULL == pPin) { + break; + } + + // Disconnected pins are not activated - this saves pins + // worrying about this state themselves + + if (pPin->IsConnected()) { + HRESULT hr = pPin->Run(tStart); + if (FAILED(hr)) { + return hr; + } + } + } + } + +//@@BEGIN_MSINTERNAL +#ifdef DXMPERF + PERFLOG_RUN( m_pName ? m_pName : L"CBaseFilter", (IBaseFilter *) this, tStart, m_State ); +#endif // DXMPERF +//@@END_MSINTERNAL + + m_State = State_Running; + return S_OK; +} + +// +// return the current stream time - samples with start timestamps of this +// time or before should be rendered by now +HRESULT +CBaseFilter::StreamTime(CRefTime& rtStream) +{ + // Caller must lock for synchronization + // We can't grab the filter lock because we want to be able to call + // this from worker threads without deadlocking + + if (m_pClock == NULL) { + return VFW_E_NO_CLOCK; + } + + // get the current reference time + HRESULT hr = m_pClock->GetTime((REFERENCE_TIME*)&rtStream); + if (FAILED(hr)) { + return hr; + } + + // subtract the stream offset to get stream time + rtStream -= m_tStart; + + return S_OK; +} + + +/* Create an enumerator for the pins attached to this filter */ + +STDMETHODIMP +CBaseFilter::EnumPins(__deref_out IEnumPins **ppEnum) +{ + CheckPointer(ppEnum,E_POINTER); + ValidateReadWritePtr(ppEnum,sizeof(IEnumPins *)); + + /* Create a new ref counted enumerator */ + + *ppEnum = new CEnumPins(this, + NULL); + + return *ppEnum == NULL ? E_OUTOFMEMORY : NOERROR; +} + + +// default behaviour of FindPin is to assume pins are named +// by their pin names +STDMETHODIMP +CBaseFilter::FindPin( + LPCWSTR Id, + __deref_out IPin ** ppPin +) +{ + CheckPointer(ppPin,E_POINTER); + ValidateReadWritePtr(ppPin,sizeof(IPin *)); + + // We're going to search the pin list so maintain integrity + CAutoLock lck(m_pLock); + int iCount = GetPinCount(); + for (int i = 0; i < iCount; i++) { + CBasePin *pPin = GetPin(i); + if (NULL == pPin) { + break; + } + + if (0 == lstrcmpW(pPin->Name(), Id)) { + // Found one that matches + // + // AddRef() and return it + *ppPin = pPin; + pPin->AddRef(); + return S_OK; + } + } + *ppPin = NULL; + return VFW_E_NOT_FOUND; +} + +/* Return information about this filter */ + +STDMETHODIMP +CBaseFilter::QueryFilterInfo(__out FILTER_INFO * pInfo) +{ + CheckPointer(pInfo,E_POINTER); + ValidateReadWritePtr(pInfo,sizeof(FILTER_INFO)); + + if (m_pName) { + (void)StringCchCopyW(pInfo->achName, NUMELMS(pInfo->achName), m_pName); + } else { + pInfo->achName[0] = L'\0'; + } + pInfo->pGraph = m_pGraph; + if (m_pGraph) + m_pGraph->AddRef(); + return NOERROR; +} + + +/* Provide the filter with a filter graph */ + +STDMETHODIMP +CBaseFilter::JoinFilterGraph( + __inout_opt IFilterGraph * pGraph, + __in_opt LPCWSTR pName) +{ + CAutoLock cObjectLock(m_pLock); + + // NOTE: we no longer hold references on the graph (m_pGraph, m_pSink) + + m_pGraph = pGraph; + if (m_pGraph) { + HRESULT hr = m_pGraph->QueryInterface(IID_IMediaEventSink, + (void**) &m_pSink); + if (FAILED(hr)) { + ASSERT(m_pSink == NULL); + } + else m_pSink->Release(); // we do NOT keep a reference on it. + } else { + // if graph pointer is null, then we should + // also release the IMediaEventSink on the same object - we don't + // refcount it, so just set it to null + m_pSink = NULL; + } + + + if (m_pName) { + delete[] m_pName; + m_pName = NULL; + } + + if (pName) { + size_t namelen; + HRESULT hr = StringCchLengthW(pName, STRSAFE_MAX_CCH, &namelen); + if (FAILED(hr)) { + return hr; + } + m_pName = new WCHAR[namelen + 1]; + if (m_pName) { + (void)StringCchCopy(m_pName, namelen + 1, pName); + } else { + return E_OUTOFMEMORY; + } + } + +//@@BEGIN_MSINTERNAL +#ifdef DXMPERF + PERFLOG_JOINGRAPH( m_pName ? m_pName : L"CBaseFilter",(IBaseFilter *) this, pGraph ); +#endif // DXMPERF +//@@END_MSINTERNAL + + return NOERROR; +} + + +// return a Vendor information string. Optional - may return E_NOTIMPL. +// memory returned should be freed using CoTaskMemFree +// default implementation returns E_NOTIMPL +STDMETHODIMP +CBaseFilter::QueryVendorInfo( + __deref_out LPWSTR* pVendorInfo) +{ + UNREFERENCED_PARAMETER(pVendorInfo); + return E_NOTIMPL; +} + + +// send an event notification to the filter graph if we know about it. +// returns S_OK if delivered, S_FALSE if the filter graph does not sink +// events, or an error otherwise. +HRESULT +CBaseFilter::NotifyEvent( + long EventCode, + LONG_PTR EventParam1, + LONG_PTR EventParam2) +{ + // Snapshot so we don't have to lock up + IMediaEventSink *pSink = m_pSink; + if (pSink) { + if (EC_COMPLETE == EventCode) { + EventParam2 = (LONG_PTR)(IBaseFilter*)this; + } + + return pSink->Notify(EventCode, EventParam1, EventParam2); + } else { + return E_NOTIMPL; + } +} + +// Request reconnect +// pPin is the pin to reconnect +// pmt is the type to reconnect with - can be NULL +// Calls ReconnectEx on the filter graph +HRESULT +CBaseFilter::ReconnectPin( + IPin *pPin, + __in_opt AM_MEDIA_TYPE const *pmt +) +{ + IFilterGraph2 *pGraph2; + if (m_pGraph != NULL) { + HRESULT hr = m_pGraph->QueryInterface(IID_IFilterGraph2, (void **)&pGraph2); + if (SUCCEEDED(hr)) { + hr = pGraph2->ReconnectEx(pPin, pmt); + pGraph2->Release(); + return hr; + } else { + return m_pGraph->Reconnect(pPin); + } + } else { + return E_NOINTERFACE; + } +} + + + +/* This is the same idea as the media type version does for type enumeration + on pins but for the list of pins available. So if the list of pins you + provide changes dynamically then either override this virtual function + to provide the version number, or more simply call IncrementPinVersion */ + +LONG CBaseFilter::GetPinVersion() +{ + return m_PinVersion; +} + + +/* Increment the current pin version cookie */ + +void CBaseFilter::IncrementPinVersion() +{ + InterlockedIncrement(&m_PinVersion); +} + +/* register filter */ + +STDMETHODIMP CBaseFilter::Register() +{ + // get setup data, if it exists + // + LPAMOVIESETUP_FILTER psetupdata = GetSetupData(); + + // check we've got data + // + if( NULL == psetupdata ) return S_FALSE; + + // init is ref counted so call just in case + // we're being called cold. + // + HRESULT hr = CoInitialize( (LPVOID)NULL ); + ASSERT( SUCCEEDED(hr) ); + + // get hold of IFilterMapper + // + IFilterMapper *pIFM; + hr = CoCreateInstance( CLSID_FilterMapper + , NULL + , CLSCTX_INPROC_SERVER + , IID_IFilterMapper + , (void **)&pIFM ); + if( SUCCEEDED(hr) ) + { + hr = AMovieSetupRegisterFilter( psetupdata, pIFM, TRUE ); + pIFM->Release(); + } + + // and clear up + // + CoFreeUnusedLibraries(); + CoUninitialize(); + + return NOERROR; +} + + +/* unregister filter */ + +STDMETHODIMP CBaseFilter::Unregister() +{ + // get setup data, if it exists + // + LPAMOVIESETUP_FILTER psetupdata = GetSetupData(); + + // check we've got data + // + if( NULL == psetupdata ) return S_FALSE; + + // OLE init is ref counted so call + // just in case we're being called cold. + // + HRESULT hr = CoInitialize( (LPVOID)NULL ); + ASSERT( SUCCEEDED(hr) ); + + // get hold of IFilterMapper + // + IFilterMapper *pIFM; + hr = CoCreateInstance( CLSID_FilterMapper + , NULL + , CLSCTX_INPROC_SERVER + , IID_IFilterMapper + , (void **)&pIFM ); + if( SUCCEEDED(hr) ) + { + hr = AMovieSetupRegisterFilter( psetupdata, pIFM, FALSE ); + + // release interface + // + pIFM->Release(); + } + + // clear up + // + CoFreeUnusedLibraries(); + CoUninitialize(); + + // handle one acceptable "error" - that + // of filter not being registered! + // (couldn't find a suitable #define'd + // name for the error!) + // + if( 0x80070002 == hr) + return NOERROR; + else + return hr; +} + + +//===================================================================== +//===================================================================== +// Implements CEnumPins +//===================================================================== +//===================================================================== + + +CEnumPins::CEnumPins(__in CBaseFilter *pFilter, + __in_opt CEnumPins *pEnumPins) : + m_Position(0), + m_PinCount(0), + m_pFilter(pFilter), + m_cRef(1), // Already ref counted + m_PinCache(NAME("Pin Cache")) +{ + +#ifdef DEBUG + m_dwCookie = DbgRegisterObjectCreation("CEnumPins", 0); +#endif + + /* We must be owned by a filter derived from CBaseFilter */ + + ASSERT(pFilter != NULL); + + /* Hold a reference count on our filter */ + m_pFilter->AddRef(); + + /* Are we creating a new enumerator */ + + if (pEnumPins == NULL) { + m_Version = m_pFilter->GetPinVersion(); + m_PinCount = m_pFilter->GetPinCount(); + } else { + ASSERT(m_Position <= m_PinCount); + m_Position = pEnumPins->m_Position; + m_PinCount = pEnumPins->m_PinCount; + m_Version = pEnumPins->m_Version; + m_PinCache.AddTail(&(pEnumPins->m_PinCache)); + } +} + + +/* Destructor releases the reference count on our filter NOTE since we hold + a reference count on the filter who created us we know it is safe to + release it, no access can be made to it afterwards though as we have just + caused the last reference count to go and the object to be deleted */ + +CEnumPins::~CEnumPins() +{ + m_pFilter->Release(); + +#ifdef DEBUG + DbgRegisterObjectDestruction(m_dwCookie); +#endif +} + + +/* Override this to say what interfaces we support where */ + +STDMETHODIMP +CEnumPins::QueryInterface(REFIID riid, __deref_out void **ppv) +{ + CheckPointer(ppv, E_POINTER); + + /* Do we have this interface */ + + if (riid == IID_IEnumPins || riid == IID_IUnknown) { + return GetInterface((IEnumPins *) this, ppv); + } else { + *ppv = NULL; + return E_NOINTERFACE; + } +} + +STDMETHODIMP_(ULONG) +CEnumPins::AddRef() +{ + return InterlockedIncrement(&m_cRef); +} + +STDMETHODIMP_(ULONG) +CEnumPins::Release() +{ + ULONG cRef = InterlockedDecrement(&m_cRef); + if (cRef == 0) { + delete this; + } + return cRef; +} + +/* One of an enumerator's basic member functions allows us to create a cloned + interface that initially has the same state. Since we are taking a snapshot + of an object (current position and all) we must lock access at the start */ + +STDMETHODIMP +CEnumPins::Clone(__deref_out IEnumPins **ppEnum) +{ + CheckPointer(ppEnum,E_POINTER); + ValidateReadWritePtr(ppEnum,sizeof(IEnumPins *)); + HRESULT hr = NOERROR; + + /* Check we are still in sync with the filter */ + if (AreWeOutOfSync() == TRUE) { + *ppEnum = NULL; + hr = VFW_E_ENUM_OUT_OF_SYNC; + } else { + *ppEnum = new CEnumPins(m_pFilter, + this); + if (*ppEnum == NULL) { + hr = E_OUTOFMEMORY; + } + } + return hr; +} + + +/* Return the next pin after the current position */ + +STDMETHODIMP +CEnumPins::Next(ULONG cPins, // place this many pins... + __out_ecount(cPins) IPin **ppPins, // ...in this array + __out_opt ULONG *pcFetched) // actual count passed returned here +{ + CheckPointer(ppPins,E_POINTER); + ValidateReadWritePtr(ppPins,cPins * sizeof(IPin *)); + + ASSERT(ppPins); + + if (pcFetched!=NULL) { + ValidateWritePtr(pcFetched, sizeof(ULONG)); + *pcFetched = 0; // default unless we succeed + } + // now check that the parameter is valid + else if (cPins>1) { // pcFetched == NULL + return E_INVALIDARG; + } + ULONG cFetched = 0; // increment as we get each one. + + /* Check we are still in sync with the filter */ + if (AreWeOutOfSync() == TRUE) { + // If we are out of sync, we should refresh the enumerator. + // This will reset the position and update the other members, but + // will not clear cache of pins we have already returned. + Refresh(); + } + + /* Return each pin interface NOTE GetPin returns CBasePin * not addrefed + so we must QI for the IPin (which increments its reference count) + If while we are retrieving a pin from the filter an error occurs we + assume that our internal state is stale with respect to the filter + (for example someone has deleted a pin) so we + return VFW_E_ENUM_OUT_OF_SYNC */ + + while (cFetched < cPins && m_PinCount > m_Position) { + + /* Get the next pin object from the filter */ + + CBasePin *pPin = m_pFilter->GetPin(m_Position++); + if (pPin == NULL) { + // If this happend, and it's not the first time through, then we've got a problem, + // since we should really go back and release the iPins, which we have previously + // AddRef'ed. + ASSERT( cFetched==0 ); + return VFW_E_ENUM_OUT_OF_SYNC; + } + + /* We only want to return this pin, if it is not in our cache */ + if (0 == m_PinCache.Find(pPin)) + { + /* From the object get an IPin interface */ + + *ppPins = pPin; + pPin->AddRef(); + + cFetched++; + ppPins++; + + m_PinCache.AddTail(pPin); + } + } + + if (pcFetched!=NULL) { + *pcFetched = cFetched; + } + + return (cPins==cFetched ? NOERROR : S_FALSE); +} + + +/* Skip over one or more entries in the enumerator */ + +STDMETHODIMP +CEnumPins::Skip(ULONG cPins) +{ + /* Check we are still in sync with the filter */ + if (AreWeOutOfSync() == TRUE) { + return VFW_E_ENUM_OUT_OF_SYNC; + } + + /* Work out how many pins are left to skip over */ + /* We could position at the end if we are asked to skip too many... */ + /* ..which would match the base implementation for CEnumMediaTypes::Skip */ + + ULONG PinsLeft = m_PinCount - m_Position; + if (cPins > PinsLeft) { + return S_FALSE; + } + m_Position += cPins; + return NOERROR; +} + + +/* Set the current position back to the start */ +/* Reset has 4 simple steps: + * + * Set position to head of list + * Sync enumerator with object being enumerated + * Clear the cache of pins already returned + * return S_OK + */ + +STDMETHODIMP +CEnumPins::Reset() +{ + m_Version = m_pFilter->GetPinVersion(); + m_PinCount = m_pFilter->GetPinCount(); + + m_Position = 0; + + // Clear the cache + m_PinCache.RemoveAll(); + + return S_OK; +} + + +/* Set the current position back to the start */ +/* Refresh has 3 simple steps: + * + * Set position to head of list + * Sync enumerator with object being enumerated + * return S_OK + */ + +STDMETHODIMP +CEnumPins::Refresh() +{ + m_Version = m_pFilter->GetPinVersion(); + m_PinCount = m_pFilter->GetPinCount(); + + m_Position = 0; + return S_OK; +} + + +//===================================================================== +//===================================================================== +// Implements CEnumMediaTypes +//===================================================================== +//===================================================================== + + +CEnumMediaTypes::CEnumMediaTypes(__in CBasePin *pPin, + __in_opt CEnumMediaTypes *pEnumMediaTypes) : + m_Position(0), + m_pPin(pPin), + m_cRef(1) +{ + +#ifdef DEBUG + m_dwCookie = DbgRegisterObjectCreation("CEnumMediaTypes", 0); +#endif + + /* We must be owned by a pin derived from CBasePin */ + + ASSERT(pPin != NULL); + + /* Hold a reference count on our pin */ + m_pPin->AddRef(); + + /* Are we creating a new enumerator */ + + if (pEnumMediaTypes == NULL) { + m_Version = m_pPin->GetMediaTypeVersion(); + return; + } + + m_Position = pEnumMediaTypes->m_Position; + m_Version = pEnumMediaTypes->m_Version; +} + + +/* Destructor releases the reference count on our base pin. NOTE since we hold + a reference count on the pin who created us we know it is safe to release + it, no access can be made to it afterwards though as we might have just + caused the last reference count to go and the object to be deleted */ + +CEnumMediaTypes::~CEnumMediaTypes() +{ +#ifdef DEBUG + DbgRegisterObjectDestruction(m_dwCookie); +#endif + m_pPin->Release(); +} + + +/* Override this to say what interfaces we support where */ + +STDMETHODIMP +CEnumMediaTypes::QueryInterface(REFIID riid, __deref_out void **ppv) +{ + CheckPointer(ppv, E_POINTER); + + /* Do we have this interface */ + + if (riid == IID_IEnumMediaTypes || riid == IID_IUnknown) { + return GetInterface((IEnumMediaTypes *) this, ppv); + } else { + *ppv = NULL; + return E_NOINTERFACE; + } +} + +STDMETHODIMP_(ULONG) +CEnumMediaTypes::AddRef() +{ + return InterlockedIncrement(&m_cRef); +} + +STDMETHODIMP_(ULONG) +CEnumMediaTypes::Release() +{ + ULONG cRef = InterlockedDecrement(&m_cRef); + if (cRef == 0) { + delete this; + } + return cRef; +} + +/* One of an enumerator's basic member functions allows us to create a cloned + interface that initially has the same state. Since we are taking a snapshot + of an object (current position and all) we must lock access at the start */ + +STDMETHODIMP +CEnumMediaTypes::Clone(__deref_out IEnumMediaTypes **ppEnum) +{ + CheckPointer(ppEnum,E_POINTER); + ValidateReadWritePtr(ppEnum,sizeof(IEnumMediaTypes *)); + HRESULT hr = NOERROR; + + /* Check we are still in sync with the pin */ + if (AreWeOutOfSync() == TRUE) { + *ppEnum = NULL; + hr = VFW_E_ENUM_OUT_OF_SYNC; + } else { + + *ppEnum = new CEnumMediaTypes(m_pPin, + this); + + if (*ppEnum == NULL) { + hr = E_OUTOFMEMORY; + } + } + return hr; +} + + +/* Enumerate the next pin(s) after the current position. The client using this + interface passes in a pointer to an array of pointers each of which will + be filled in with a pointer to a fully initialised media type format + Return NOERROR if it all works, + S_FALSE if fewer than cMediaTypes were enumerated. + VFW_E_ENUM_OUT_OF_SYNC if the enumerator has been broken by + state changes in the filter + The actual count always correctly reflects the number of types in the array. +*/ + +STDMETHODIMP +CEnumMediaTypes::Next(ULONG cMediaTypes, // place this many types... + __out_ecount(cMediaTypes) AM_MEDIA_TYPE **ppMediaTypes, // ...in this array + __out ULONG *pcFetched) // actual count passed +{ + CheckPointer(ppMediaTypes,E_POINTER); + ValidateReadWritePtr(ppMediaTypes,cMediaTypes * sizeof(AM_MEDIA_TYPE *)); + /* Check we are still in sync with the pin */ + if (AreWeOutOfSync() == TRUE) { + return VFW_E_ENUM_OUT_OF_SYNC; + } + + if (pcFetched!=NULL) { + ValidateWritePtr(pcFetched, sizeof(ULONG)); + *pcFetched = 0; // default unless we succeed + } + // now check that the parameter is valid + else if (cMediaTypes>1) { // pcFetched == NULL + return E_INVALIDARG; + } + ULONG cFetched = 0; // increment as we get each one. + + /* Return each media type by asking the filter for them in turn - If we + have an error code retured to us while we are retrieving a media type + we assume that our internal state is stale with respect to the filter + (for example the window size changing) so we return + VFW_E_ENUM_OUT_OF_SYNC */ + + while (cMediaTypes) { + + CMediaType cmt; + + HRESULT hr = m_pPin->GetMediaType(m_Position++, &cmt); + if (S_OK != hr) { + break; + } + + /* We now have a CMediaType object that contains the next media type + but when we assign it to the array position we CANNOT just assign + the AM_MEDIA_TYPE structure because as soon as the object goes out of + scope it will delete the memory we have just copied. The function + we use is CreateMediaType which allocates a task memory block */ + + /* Transfer across the format block manually to save an allocate + and free on the format block and generally go faster */ + + *ppMediaTypes = (AM_MEDIA_TYPE *)CoTaskMemAlloc(sizeof(AM_MEDIA_TYPE)); + if (*ppMediaTypes == NULL) { + break; + } + + /* Do a regular copy */ + **ppMediaTypes = cmt; + + /* Make sure the destructor doesn't free these */ + cmt.pbFormat = NULL; + cmt.cbFormat = NULL; + cmt.pUnk = NULL; + + + ppMediaTypes++; + cFetched++; + cMediaTypes--; + } + + if (pcFetched!=NULL) { + *pcFetched = cFetched; + } + + return ( cMediaTypes==0 ? NOERROR : S_FALSE ); +} + + +/* Skip over one or more entries in the enumerator */ + +STDMETHODIMP +CEnumMediaTypes::Skip(ULONG cMediaTypes) +{ + // If we're skipping 0 elements we're guaranteed to skip the + // correct number of elements + if (cMediaTypes == 0) { + return S_OK; + } + + /* Check we are still in sync with the pin */ + if (AreWeOutOfSync() == TRUE) { + return VFW_E_ENUM_OUT_OF_SYNC; + } + + m_Position += cMediaTypes; + + /* See if we're over the end */ + CMediaType cmt; + return S_OK == m_pPin->GetMediaType(m_Position - 1, &cmt) ? S_OK : S_FALSE; +} + + +/* Set the current position back to the start */ +/* Reset has 3 simple steps: + * + * set position to head of list + * sync enumerator with object being enumerated + * return S_OK + */ + +STDMETHODIMP +CEnumMediaTypes::Reset() + +{ + m_Position = 0; + + // Bring the enumerator back into step with the current state. This + // may be a noop but ensures that the enumerator will be valid on the + // next call. + m_Version = m_pPin->GetMediaTypeVersion(); + return NOERROR; +} + + +//===================================================================== +//===================================================================== +// Implements CBasePin +//===================================================================== +//===================================================================== + + +/* NOTE The implementation of this class calls the CUnknown constructor with + a NULL outer unknown pointer. This has the effect of making us a self + contained class, ie any QueryInterface, AddRef or Release calls will be + routed to the class's NonDelegatingUnknown methods. You will typically + find that the classes that do this then override one or more of these + virtual functions to provide more specialised behaviour. A good example + of this is where a class wants to keep the QueryInterface internal but + still wants its lifetime controlled by the external object */ + +/* Constructor */ + +CBasePin::CBasePin(__in_opt LPCTSTR pObjectName, + __in CBaseFilter *pFilter, + __in CCritSec *pLock, + __inout HRESULT *phr, + __in_opt LPCWSTR pName, + PIN_DIRECTION dir) : + CUnknown( pObjectName, NULL ), + m_pFilter(pFilter), + m_pLock(pLock), + m_pName(NULL), + m_Connected(NULL), + m_dir(dir), + m_bRunTimeError(FALSE), + m_pQSink(NULL), + m_TypeVersion(1), + m_tStart(), + m_tStop(MAX_TIME), + m_bCanReconnectWhenActive(false), + m_bTryMyTypesFirst(false), + m_dRate(1.0) +{ + /* WARNING - pFilter is often not a properly constituted object at + this state (in particular QueryInterface may not work) - this + is because its owner is often its containing object and we + have been called from the containing object's constructor so + the filter's owner has not yet had its CUnknown constructor + called + */ +//@@BEGIN_MSINTERNAL +#ifdef DXMPERF + PERFLOG_CTOR( pName ? pName : L"CBasePin", (IPin *) this ); +#endif // DXMPERF +//@@END_MSINTERNAL + + ASSERT(pFilter != NULL); + ASSERT(pLock != NULL); + + if (pName) { + size_t cchName; + HRESULT hr = StringCchLengthW(pName, STRSAFE_MAX_CCH, &cchName); + if (SUCCEEDED(hr)) { + m_pName = new WCHAR[cchName + 1]; + if (m_pName) { +