parameter "any" VB 6 (what is your equivalent in vb 2005 ?)

  • Thread starter Thread starter Brahm
  • Start date Start date
B

Brahm

hi folks !

What is the equivalent parameter in vb 2005 for "any" from vb 6 ?

Thanks,

Daniel
 
Brahm said:
What is the equivalent parameter in vb 2005 for "any" from vb 6 ?

This depends on the particular function declaration. There is no generic
answer.
 
Brahm said:
hi folks !

What is the equivalent parameter in vb 2005 for "any" from vb 6 ?

Thanks,

Daniel

There isn't one. If you want to send multiple types to a declare
statement, you do it by overloading the declare statement. Contrived
example follows:

Private Declare Function Foo Lib "MyLib.dll" (ByRef i As Integer) As
Integer
Private Declare Function Foo Lib "MyLib.dll" (ByRef i As SomeStructure)
As Integer
.....


HTH
 
For this piece of code:

Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias
"RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal
lpReserved As Long, ByVal lpType As Long, ByVal lpData As Any, ByVal
lpcbData As Long) As Long

For

Daniel

"Herfried K. Wagner [MVP]" <[email protected]> escreveu na mensagem
Brahm said:
What is the equivalent parameter in vb 2005 for "any" from vb 6 ?

This depends on the particular function declaration. There is no generic
answer.
 
Overloads and double check that the Registry classes provided by .NET
doesn't provide what you are after...
 
Patrice said:
Overloads and double check that the Registry classes provided by .NET
doesn't provide what you are after...

=> 'Microsoft.Win32.Registry'.
 
Back
Top