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

B

Brahm

hi folks !

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

Thanks,

Daniel
 
H

Herfried K. Wagner [MVP]

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.
 
T

Tom Shelton

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
 
B

Brahm

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.
 
P

Patrice

Overloads and double check that the Registry classes provided by .NET
doesn't provide what you are after...
 
H

Herfried K. Wagner [MVP]

Patrice said:
Overloads and double check that the Registry classes provided by .NET
doesn't provide what you are after...

=> 'Microsoft.Win32.Registry'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top