Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3272 connectés 

 

Sujet(s) à lire :
    - Who's who@Programmation
 

 Mot :   Pseudo :  
  Aller à la page :
 
 Page :   1  2  3  4  5  ..  9335  9336  9337  ..  26995  26996  26997  26998  26999  27000
Auteur Sujet :

[blabla@olympe] Le topic du modo, dieu de la fibre et du monde

n°1257022
chrisbk
-
Posté le 01-12-2005 à 17:19:27  profilanswer
 

Reprise du message précédent :
nan mais ca marchera pas ca, va voir le code de pubsetbuf [:pingouino]

mood
Publicité
Posté le 01-12-2005 à 17:19:27  profilanswer
 

n°1257023
chrisbk
-
Posté le 01-12-2005 à 17:19:58  profilanswer
 

et s.c_str() renvoie const char * bondieu [:totoz]

n°1257024
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 01-12-2005 à 17:20:25  profilanswer
 

chrisbk a écrit :

et s.c_str() renvoie const char * bondieu [:totoz]


pourquoi tu crois que je l'ai casté ? [:ddr555]

n°1257025
Dion
Acceuil
Posté le 01-12-2005 à 17:20:59  profilanswer
 

Harkonnen a écrit :

ah ok :D
t'es dans le coin Dion ? tu peux essayer de compiler ça ? [:dawa]

Code :
  1. #include <sstream>
  2. #include <iostream>
  3. #include <string>
  4. int main()
  5. {
  6. std::istringstream strime;
  7. std::string s("YOP" );
  8. strime.rdbuf()->pubsetbuf((char *)s.c_str(),4);
  9. char *prout;
  10. prout = new char[5];
  11. memset(prout,0,4);
  12. strime.read(&prout[0],5);
  13. prout[4] = 0;
  14. std::cout<<prout<<std::endl;
  15. delete prout;
  16. return 0;
  17. }


 
oui, c'est crade, mais qui veut la fin... [:pingouino]


 
J'ai plus de vs2005 sous la main la, avec 2003 ca donne une ligne vide :o


---------------
When it comes to business/legal topics, just assume almost everyone commenting has no idea what they’re taking about and have no background in these subjects because that’s how it really is. Harkonnen 8-> Elmoricq 8====>
n°1257026
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 01-12-2005 à 17:27:03  profilanswer
 

chrisbk a écrit :

nan mais ca marchera pas ca, va voir le code de pubsetbuf [:pingouino]


Code :
  1. virtual _Myt *setbuf(_Elem *, streamsize)
  2. { // offer buffer to external agent (do nothing)
  3.      return (this);
  4. }


its teh big vide [:pingouino]

n°1257028
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 01-12-2005 à 17:27:33  profilanswer
 

Dion a écrit :

J'ai plus de vs2005 sous la main la, avec 2003 ca donne une ligne vide :o


fuckerie

n°1257029
chrisbk
-
Posté le 01-12-2005 à 17:29:34  profilanswer
 

Harkonnen a écrit :

Code :
  1. virtual _Myt *setbuf(_Elem *, streamsize)
  2. { // offer buffer to external agent (do nothing)
  3.      return (this);
  4. }


its teh big vide [:pingouino]


 
 
superbe hein ?

n°1257031
masklinn
í dag viðrar vel til loftárása
Posté le 01-12-2005 à 17:31:53  profilanswer
 

VS2005b2:
 
Ca indique que

Citation :

Warning 1 warning C4996: 'std::basic_istream<_Elem,_Traits>::read' was declared deprecated  

, et à l'exécution ça donne une ligne vide


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1257032
Lam's
Profil: bas.
Posté le 01-12-2005 à 17:32:50  profilanswer
 

walli a écrit :

Merci, je regarde du côté de vbscript, mais pour le moment, j'ai rien trouvé de probant...


dim WShell
set WShell = Wscript.CreateObject("Wscript.Shell" )
strMessage = WShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId" )
msgbox strMessage

Message cité 1 fois
Message édité par Lam's le 01-12-2005 à 17:33:36
n°1257035
walli
Posté le 01-12-2005 à 17:42:04  profilanswer
 

Lam's a écrit :

dim WShell
set WShell = Wscript.CreateObject("Wscript.Shell" )
strMessage = WShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId" )
msgbox strMessage



En fait, c'est un peu plus complexe ce que je veux.
J'ai une appli où je fais justement un  : new ActiveXObject("WScript.Shell" );
Et forcément il m'affiche une fenêtre avec le message habituel : "Un contrôle ActiveX présent sur cette page....", c'est cette fenêtre que je veux virer.
Pour celà il me faut faire un descativeX.reg, mais j'ai besoin.... de la CLSID correspondant à WScript.shell, clsid qui est différente d'un poste à un autre.
Donc il faudrait que j'automatise cette recherche de clsid.
Toute autre idée est la bienvenue  :jap:  

mood
Publicité
Posté le 01-12-2005 à 17:42:04  profilanswer
 

n°1257040
tholdan
Posté le 01-12-2005 à 17:44:01  profilanswer
 


Avec VS2005 beta 2, ligne vide. :o


---------------
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
n°1257048
stiffler
Lâche mon profil putain ! :o
Posté le 01-12-2005 à 17:54:11  profilanswer
 

JE VEUX CHANTER POUR CEUX §§§§§§§§
QUI SONT LOIN DE CHEZ EUX §§§§§§§§§§§

n°1257051
0x90
Posté le 01-12-2005 à 17:56:43  profilanswer
 

Y'a un moyen plus propre que de s'y connecter pour stopper un socket.accept() en python ? ( sachant que j'ai un thread avec ca, un autre qui le controle en gtk )


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°1257052
nraynaud
lol
Posté le 01-12-2005 à 17:58:27  profilanswer
 

0x90 >
exit(1000)


---------------
trainoo.com, c'est fini
n°1257058
0x90
Posté le 01-12-2005 à 18:02:12  profilanswer
 

trouvaid sur ASPN en jouant sur les timeout, merci de ton aide :)


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°1257063
chrisbk
-
Posté le 01-12-2005 à 18:16:27  profilanswer
 

masklinn a écrit :

VS2005b2:
 
Ca indique que

Citation :

Warning 1 warning C4996: 'std::basic_istream<_Elem,_Traits>::read' was declared deprecated  

, et à l'exécution ça donne une ligne vide


 
[:le kneu] on utilise quoi alors a la place de read ?

n°1257065
masklinn
í dag viðrar vel til loftárása
Posté le 01-12-2005 à 18:16:55  profilanswer
 

Aucune idée, je rapporte l'info moi stou :o


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1257066
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 01-12-2005 à 18:17:42  profilanswer
 

chrisbk a écrit :

[:le kneu] on utilise quoi alors a la place de read ?


tiens, t'as vu ça ?
http://www.cplusplus.com/ref/iostr [...] etbuf.html

n°1257069
chrisbk
-
Posté le 01-12-2005 à 18:27:14  profilanswer
 

c'est le protected appelé par pubsetbuf

n°1257072
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 01-12-2005 à 18:31:33  profilanswer
 

chrisbk a écrit :

c'est le protected appelé par pubsetbuf


oui je sais [:petrus75]
mais je voulais attirer ton attention sur ceci :

Citation :


This member is called to set a new buffer for the streambuf-derived object. Its default behavior for this class is just to return this.
This is a virtual member function that should be redefined in derived classes to behave as expected setting the array of n characters pointed by s as the new character buffer.

n°1257074
chrisbk
-
Posté le 01-12-2005 à 18:33:07  profilanswer
 

sauf que dans std::istringstream c'est un stringbug, pas un streambuf
 
[:petrus75]
 
bon, a+ les gigembre roti

n°1257079
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 01-12-2005 à 18:49:14  profilanswer
 

il est passé où ce cancer de stiffler ?

n°1257080
uriel
blood pt.2
Posté le 01-12-2005 à 18:50:40  profilanswer
 

DTC  
 
 
AHAHAHAHAHAHAHHAHAHAHA [:screetch]


---------------
IVG en france
n°1257086
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 01-12-2005 à 19:21:49  profilanswer
 

ur teh fool


---------------
J'ai un string dans l'array (Paris Hilton)
n°1257090
the real m​oins moins
Posté le 01-12-2005 à 19:28:36  profilanswer
 

[:ludo2604]


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1257091
the real m​oins moins
Posté le 01-12-2005 à 19:29:02  profilanswer
 

un volontaire pour m'aider sur un probleme web hallucino-chiant ? [:ludo2604]


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1257092
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 01-12-2005 à 19:29:27  profilanswer
 

\o_


---------------
J'ai un string dans l'array (Paris Hilton)
n°1257093
the real m​oins moins
Posté le 01-12-2005 à 19:31:26  profilanswer
 

[:paysan]


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1257096
0x90
Posté le 01-12-2005 à 19:47:03  profilanswer
 

vazy explique au docteur ...


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°1257097
red factio​n
Posté le 01-12-2005 à 19:52:07  profilanswer
 

stiffler a écrit :

JE VEUX CHANTER POUR CEUX §§§§§§§§
QUI SONT LOIN DE CHEZ EUX §§§§§§§§§§§


 
 
ET QUI ONT (COINCE) AU FOND D'EUX  
UN GROS TRUC QUI FAIT MAAAAAL QUI FAIT MAAAAAAL

n°1257098
uriel
blood pt.2
Posté le 01-12-2005 à 19:52:11  profilanswer
 

pourquoi pas MP florentG?


---------------
IVG en france
n°1257100
the real m​oins moins
Posté le 01-12-2005 à 20:03:19  profilanswer
 

uriel a écrit :

pourquoi pas MP florentG?


paske ça n'a rien à voir avec de la florengitude :o


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1257101
tholdan
Posté le 01-12-2005 à 20:04:20  profilanswer
 

the real moins moins a écrit :

paske ça n'a rien à voir avec de la florengitude :o


explicite ton problème, ici, unis sous la banière de la section prog se trouvent l'élite de la programmation :o


---------------
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
n°1257102
the real m​oins moins
Posté le 01-12-2005 à 20:05:05  profilanswer
 

no :o


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1257103
the real m​oins moins
Posté le 01-12-2005 à 20:06:32  profilanswer
 

keski branle safari à foutre un <em> 100px plus bas que le reste [:x-httpd-php]


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1257104
the real m​oins moins
Posté le 01-12-2005 à 20:08:36  profilanswer
 

ha non, c'est juste qu'il inherit pas du vertical-align [:x-httpd-php]


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1257105
uriel
blood pt.2
Posté le 01-12-2005 à 20:09:33  profilanswer
 

s'en branle, safari c'est 4% des browser, met une alerte js pour leur dire d'installer firefox :O


---------------
IVG en france
n°1257107
the real m​oins moins
Posté le 01-12-2005 à 20:22:26  profilanswer
 

non mais tu bois toi ou quoi ?
 
(au fait, le prob dont question ci-dessus n'a foutrement rien à voir avec du css etc, donc, hein)


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1257108
uriel
blood pt.2
Posté le 01-12-2005 à 20:25:37  profilanswer
 

the real moins moins a écrit :

non mais tu bois toi ou quoi ?


je viens de finir 1 demi litre de chino [:pingouino]


---------------
IVG en france
n°1257111
chrisbk
-
Posté le 01-12-2005 à 20:45:47  profilanswer
 

Salut les kids.
 
vous etes des gros cons
 
A+ les kids
 
 
 
ps : lol

n°1257112
R3g
fonctionnaire certifié ITIL
Posté le 01-12-2005 à 20:48:08  profilanswer
 

øĸ' łøł
 
edit : tiens c'est marrant, si on veut poster &#322;, il faut d'abord taper le caractère, puis éditer le message pour ajouter un 0 [:pingouino] [:pingouino]


Message édité par R3g le 01-12-2005 à 20:51:19

---------------
Au royaume des sourds, les borgnes sont sourds.
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  ..  9335  9336  9337  ..  26995  26996  26997  26998  26999  27000

Aller à :
Ajouter une réponse
 

Sujets relatifs
Plus de sujets relatifs à : [blabla@olympe] Le topic du modo, dieu de la fibre et du monde


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)