Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Comportement GetCommandLineArgs bizare

Started 1 month ago by olibara
Bonjour Voici un bug pas trivial Apres des heures de recherche pour comprendre pourquoi notre application ne traitait pas correctement les arguments de lancement sur certaines machines : Air connu - Bien bien sur que ca marche - Mais non ca ne marche pas - Mais enfin que faites vous ? - Il doit y avoir un probleme sur votre machine .... ...
Site: Forums de Developpez.com  Forums de Developpez.com - site profile
Forum: C#  C# - forum profile
Total authors: 2 authors
Total thread posts: 10 posts
Thread activity: no new posts during last week
Domain info for: developpez.net

Other posts in this thread:

Skyounet replied 1 month ago
Cha ? Citation: Envoyé par msdn Windows 98, Windows Millennium Edition Platform Note: The name of the executable file includes the path. Long file names (non-8dot3 names) can be shortened to their 8dot3 representation. http://en.wikipedia.org/wiki/8.3_filename

olibara replied 1 month ago
J'ai deux machines XP Pro Qui me rendent des resultats différents ?

olibara replied 1 month ago
Nuance .. Une est une version 2002 SP 2 (mauvais) l'autre est une version 2002 SP 3 (correct) C'est quand meme un gros bug ! Mon probleme c'est que je devrais le moyen de recuperer l'extension reelle (.mmdl) qui est tronquée avec cette méthode !!

Skyounet replied 1 month ago
Citation: Envoyé par olibara Mon probleme c'est que je devrais le moyen de recuperer l'extension reelle (.mmdl) qui est tronquée avec cette méthode !! Oui c'est pour ça le 3 dans 8.3 Mais oui je comprends ton soucis, surtout que ce n'est pas précisé dans la MSDN à propos de XP SP2

Skyounet replied 1 month ago
Et avec Environment.CommandLine ça te donne pareil ?

olibara replied 1 month ago
Salut Environnement.Commandline; c'est pareil !! Je percoit parfaitement le concept 8.3 ! J'ai fait du DOS au biberon Mais le probleme ici semble lié au FW avec SP2 quand le path vient d'un open systeme !

olibara replied 1 month ago
Je crois que je suis condamné a faire des acrobaties J'ai trouvé ca Code : using System; using System. Runtime . InteropServices ; using System. Text ; public class _Main { [ DllImport ( "kernel32.dll" , CharSet = CharSet. Auto ) ] public static extern int GetShortPathName ( [ MarshalAs ( UnmanagedType...

olibara replied 1 month ago
La solution Voila le bricolage rapide permettant de contourner ce bug Code : [ DllImport ( "kernel32.dll" , CharSet = CharSet. Auto ) ] public static extern int GetLongPathName ( [ MarshalAs ( UnmanagedType. LPTStr ) ] string path, [ ...

olibara replied 1 month ago
Voila le bricolage rapide permettant de contourner ce bug Code : [ DllImport ( "kernel32.dll" , CharSet = CharSet. Auto ) ] public static extern int GetLongPathName ( [ MarshalAs ( UnmanagedType. LPTStr ) ] string path, [ MarshalAs ( UnmanagedType. LPTStr ) ] StringBuilder longPath,...

 

Top contributing authors

Name
Posts
olibara
7
user's latest post:
Comportement GetCommandLineArgs...
Published (2009-11-11 08:45:00)
Voila le bricolage rapide permettant de contourner ce bug Code : [ DllImport ( "kernel32.dll" , CharSet = CharSet. Auto ) ] public static extern int GetLongPathName ( [ MarshalAs ( UnmanagedType. LPTStr ) ] string path, [ MarshalAs ( UnmanagedType. LPTStr ) ] StringBuilder longPath, int longPathLength ) ;  ...
Skyounet
3
user's latest post:
Comportement GetCommandLineArgs...
Published (2009-11-10 22:24:00)
Et avec Environment.CommandLine ça te donne pareil ?

Related threads on other sites:

Thread profile page for "Comportement GetCommandLineArgs bizare" on http://www.developpez.net. This report page is a snippet summary view from a single thread "Comportement GetCommandLineArgs bizare", located on the Message Board at http://www.developpez.net. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity