|
|
Auteur | Message |
---|
ProgVal modérateur
Nombre de messages : 4107 Age : 173 Localisation : In da cloud items : o Personalized field : Réputation : -4 Points : 6733 Date d'inscription : 09/08/2007
Profil TI: V200 - NSpire TO: 120 [2352 - 2%] Spécialité: Programmation web
| Sujet: Taches en attente Dim 02 Mar 2008, 17:20 | |
| Programmes devant être programmés: exploreur de fichiers qui renvoie le nom du fichier choisi. |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Dim 02 Mar 2008, 17:23 | |
| ah, ça faut l'faire en C, parce que j'sais pas si flib gère ça ^^ |
|
| |
AdRiWeB amis
Nombre de messages : 3655 Age : 31 Localisation : Juste sous mes cheveux Loisirs : Internet, programmation, TI, musique, tennis-de-table ... Humeur : ^^ items : o Personalized field : Réputation : 0 Points : 6293 Date d'inscription : 12/08/2007
Profil TI: TI-84 Plus, nspire CAS TO: 2429 {2} Spécialité: Basic z80
| Sujet: Re: Taches en attente Dim 02 Mar 2008, 18:43 | |
| (j'connais un prgm asm z80 qui le fait mais bon...) |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Dim 02 Mar 2008, 22:26 | |
| ProgVal>renseigne-toi sur la VAT |
|
| |
AdRiWeB amis
Nombre de messages : 3655 Age : 31 Localisation : Juste sous mes cheveux Loisirs : Internet, programmation, TI, musique, tennis-de-table ... Humeur : ^^ items : o Personalized field : Réputation : 0 Points : 6293 Date d'inscription : 12/08/2007
Profil TI: TI-84 Plus, nspire CAS TO: 2429 {2} Spécialité: Basic z80
| Sujet: Re: Taches en attente Dim 02 Mar 2008, 23:12 | |
| |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Dim 02 Mar 2008, 23:37 | |
| rooooh j't'ai déjà répondu autre part... |
|
| |
ProgVal modérateur
Nombre de messages : 4107 Age : 173 Localisation : In da cloud items : o Personalized field : Réputation : -4 Points : 6733 Date d'inscription : 09/08/2007
Profil TI: V200 - NSpire TO: 120 [2352 - 2%] Spécialité: Programmation web
| Sujet: Re: Taches en attente Lun 03 Mar 2008, 14:53 | |
| C'est ce qui gère les noms de fichiers. Sino, j'ai fait un truc dans ce goût là, avec flib (flib2("getfolder") et flib2("getfile:[type,]foldname") |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Lun 03 Mar 2008, 15:09 | |
| sinon y a un truc qui devrait t'intéresser dans les exemples de TIGCC, mais j'm'souviens du nom |
|
| |
AdRiWeB amis
Nombre de messages : 3655 Age : 31 Localisation : Juste sous mes cheveux Loisirs : Internet, programmation, TI, musique, tennis-de-table ... Humeur : ^^ items : o Personalized field : Réputation : 0 Points : 6293 Date d'inscription : 12/08/2007
Profil TI: TI-84 Plus, nspire CAS TO: 2429 {2} Spécialité: Basic z80
| Sujet: Re: Taches en attente Lun 03 Mar 2008, 17:48 | |
| ( sur TiCalc, vu le nombre de fans de TIGCC, il doit bien y avoir des trucs ) |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Lun 03 Mar 2008, 17:53 | |
| |
|
| |
ProgVal modérateur
Nombre de messages : 4107 Age : 173 Localisation : In da cloud items : o Personalized field : Réputation : -4 Points : 6733 Date d'inscription : 09/08/2007
Profil TI: V200 - NSpire TO: 120 [2352 - 2%] Spécialité: Programmation web
| Sujet: Re: Taches en attente Sam 08 Mar 2008, 17:11 | |
| Il y a Einstein 3. Mais ce qui m'interresse, c'est que l'URL du fichier sois retournée et que le fichier sélectionner dans l'explorateur ne soit pas ouvert si l'un des arguments donnés à l'appel le précise. |
|
| |
AdRiWeB amis
Nombre de messages : 3655 Age : 31 Localisation : Juste sous mes cheveux Loisirs : Internet, programmation, TI, musique, tennis-de-table ... Humeur : ^^ items : o Personalized field : Réputation : 0 Points : 6293 Date d'inscription : 12/08/2007
Profil TI: TI-84 Plus, nspire CAS TO: 2429 {2} Spécialité: Basic z80
| Sujet: Re: Taches en attente Sam 08 Mar 2008, 18:59 | |
| EXCELLENT Einstein 3
trop bien cet "OS" |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Sam 08 Mar 2008, 19:00 | |
| tu veux dire quoi par "ouvert" ? |
|
| |
ProgVal modérateur
Nombre de messages : 4107 Age : 173 Localisation : In da cloud items : o Personalized field : Réputation : -4 Points : 6733 Date d'inscription : 09/08/2007
Profil TI: V200 - NSpire TO: 120 [2352 - 2%] Spécialité: Programmation web
| Sujet: Re: Taches en attente Sam 08 Mar 2008, 19:13 | |
| Quand on appuie sur Enter |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Sam 08 Mar 2008, 19:17 | |
| |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Sam 08 Mar 2008, 19:26 | |
| Juste avant de partir jouer : Extrait de la FAQ de TIGCC - Citation :
How can I bring up the VAR-LINK dialog and get the name of the selected file?
Q: | How do I bring up the VAR-LINK dialog from C code and then get the name of the file that was selected?
| A: | This is an advanced question. As the VAR-LINK dialog is an event-driven applet, you must use event-driven functions defined in the events.h header file. Bringing up the VAR-LINK dialog is quite easy: EVENT ev; ev.Type = CM_KEYPRESS; ev.extra.Key.Code = KEY_VARLNK; EV_defaultHandler (&ev);
but getting the name of the file that was selected is a bit harder. After executing the VAR-LINK dialog, the VAR-LINK applet will send the name of the selected file to the current application via the CM_HSTRING message. This message may be captured by a user event handler. Here is the demonstration program (called "Get File Name"): // Open VAR-LINK dialog and let user select something
#define USE_TI89 // Compile for TI-89 #define USE_TI92PLUS // Compile for TI-92 Plus #define USE_V200 // Compile for V200
#define MIN_AMS 100 // Compile for AMS 1.00 or higher #define SAVE_SCREEN // Save/Restore LCD Contents
#include // Include All Header Files
char VarBuffer[20] = "";
CALLBACK void VarLinkHandler (EVENT *ev) { if (ev->Type == CM_HSTRING) { strncpy (VarBuffer, HeapDeref (ev->extra.hPasteText), 19); VarBuffer [19] = 0; } EV_defaultHandler (ev); }
void VarLinkDialog (void) { EVENT ev; EVENT_HANDLER OldHandler = EV_captureEvents (VarLinkHandler); memset (&ev, sizeof (ev), 0); ev.Type = CM_KEYPRESS; ev.extra.Key.Code = KEY_VARLNK; EV_defaultHandler (&ev); EV_captureEvents (OldHandler); }
void _main(void) { VarLinkDialog (); printf_xy (0, 50, "You picked: %s", VarBuffer); ngetchx (); }
Read more about the events.h header file: incredible miracles may be produced using event-passing techniques!
|
|
|
| |
ProgVal modérateur
Nombre de messages : 4107 Age : 173 Localisation : In da cloud items : o Personalized field : Réputation : -4 Points : 6733 Date d'inscription : 09/08/2007
Profil TI: V200 - NSpire TO: 120 [2352 - 2%] Spécialité: Programmation web
| Sujet: Re: Taches en attente Dim 09 Mar 2008, 12:08 | |
| J'ai essayé ton truc. Ca m'affiche bien le Var-Link, mais ça place de nom du fichier dans l'écran HOME et ça relance le Var-Link. Bref... |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Lun 10 Mar 2008, 00:06 | |
| oui, après 'faut adapter pour pouvoir utiliser la chaine retournée |
|
| |
ProgVal modérateur
Nombre de messages : 4107 Age : 173 Localisation : In da cloud items : o Personalized field : Réputation : -4 Points : 6733 Date d'inscription : 09/08/2007
Profil TI: V200 - NSpire TO: 120 [2352 - 2%] Spécialité: Programmation web
| Sujet: Re: Taches en attente Lun 10 Mar 2008, 15:51 | |
| Bah oui, mais j'ai pas les connaissances necessaires... |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Lun 10 Mar 2008, 19:32 | |
| bah regarde les fonctions de stdio.h, fopen, fputc, fputs, fwrite etc... et renseigne-toi sur la fonction memcpy() c'est pas en disant ça que tu vas progresser, le code tout cuit ne va pas arriver devant toi, il faut apprendre par soi-même si tu as besoin d'aide parce que tu n'arrives pas à utiliser une fonction, là ok... |
|
| |
AdRiWeB amis
Nombre de messages : 3655 Age : 31 Localisation : Juste sous mes cheveux Loisirs : Internet, programmation, TI, musique, tennis-de-table ... Humeur : ^^ items : o Personalized field : Réputation : 0 Points : 6293 Date d'inscription : 12/08/2007
Profil TI: TI-84 Plus, nspire CAS TO: 2429 {2} Spécialité: Basic z80
| Sujet: Re: Taches en attente Lun 10 Mar 2008, 20:26 | |
| c'est obligé que ce soit direct en C ^^
bref |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Mar 11 Mar 2008, 23:47 | |
| euh...adri, pas compris ton message |
|
| |
AdRiWeB amis
Nombre de messages : 3655 Age : 31 Localisation : Juste sous mes cheveux Loisirs : Internet, programmation, TI, musique, tennis-de-table ... Humeur : ^^ items : o Personalized field : Réputation : 0 Points : 6293 Date d'inscription : 12/08/2007
Profil TI: TI-84 Plus, nspire CAS TO: 2429 {2} Spécialité: Basic z80
| Sujet: Re: Taches en attente Mer 12 Mar 2008, 15:19 | |
| |
|
| |
tama Admin
Nombre de messages : 12376 Age : 32 Localisation : DTC ? :triso: Humeur : =) items : o Personalized field : huh ? oO Réputation : 3 Points : 9452 Date d'inscription : 08/08/2007
Profil TI: 84+, 89 tita, 89 tita TO: infini :p Spécialité: C 68k
| Sujet: Re: Taches en attente Mer 12 Mar 2008, 16:05 | |
| |
|
| |
AdRiWeB amis
Nombre de messages : 3655 Age : 31 Localisation : Juste sous mes cheveux Loisirs : Internet, programmation, TI, musique, tennis-de-table ... Humeur : ^^ items : o Personalized field : Réputation : 0 Points : 6293 Date d'inscription : 12/08/2007
Profil TI: TI-84 Plus, nspire CAS TO: 2429 {2} Spécialité: Basic z80
| Sujet: Re: Taches en attente Mer 12 Mar 2008, 16:18 | |
| |
|
| |
Contenu sponsorisé
| Sujet: Re: Taches en attente | |
| |
|
| |
|