Julien237
Messages postés883Date d'inscriptionvendredi 3 novembre 2000StatutMembreDernière intervention 3 mars 2009
-
22 juin 2005 à 17:30
cs_dragon
Messages postés2336Date d'inscriptionsamedi 14 juillet 2001StatutMembreDernière intervention 5 mai 2009
-
22 juin 2005 à 18:01
Bonjour,
je viens tout juste de passer à VB.Net et j'ai manifestement quelques problèmes d'adaptation. Voici mon code :
Public
Declare
Function GetPrivateProfileString
Lib "kernel32"
Alias "GetPrivateProfileStringA" (
ByVal lpApplicationName
As
String,
ByVal lpKeyName
As
String,
ByVal lpDefault
As
String,
ByVal lpReturnedString
As
String,
ByVal nSize
As
Long,
ByVal lpFileName
As
String)
As
Long
Public
Declare
Function GetPrivateProfileString
Lib "kernel32"
Alias "GetPrivateProfileStringA" (
ByVal lpApplicationName
As
String,
ByVal lpKeyName
As
Long,
ByVal lpDefault
As
String,
ByVal lpReturnedString
As
String,
ByVal nSize
As
Long,
ByVal lpFileName
As
String)
As
Long
Public
Function ReadIni(
ByVal mSection
As
String,
ByVal mKey
As
String)
As
String
Le même code en vb6 fonctionne, mais en vb.net, j'obtiens la string par défaut dans buf et Rep contient un nombre immense (8028345155369041926)...
Pourriez-vous m'aider ?
Merci...
cs_dragon
Messages postés2336Date d'inscriptionsamedi 14 juillet 2001StatutMembreDernière intervention 5 mai 20096 22 juin 2005 à 18:01
regarde dans l'API guide. Certain API fonctionne différemment en .net
-------------------------------------------------
Dragon alias aussi Waxime mais bon, pas le gout de refaire un nouveau profil lol
-------------------------------------------------