Home All Groups Group Topic Archive Search About

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

Author
19 Jun 2006 5:40 PM
Brahm
hi folks !

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

Thanks,

Daniel

Author
19 Jun 2006 5:48 PM
Herfried K. Wagner [MVP]
"Brahm" <daniel.br***@contronic.com.br> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
19 Jun 2006 5:51 PM
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]" <hirf-spam-me-here@gmx.at> escreveu na mensagem
news:eEYqbi8kGHA.5108@TK2MSFTNGP02.phx.gbl...
"Brahm" <daniel.br***@contronic.com.br> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
19 Jun 2006 5:55 PM
Patrice
Overloads and double check that the Registry classes provided by .NET
doesn't provide what you are after...

--
Patrice

"Brahm" <daniel.br***@contronic.com.br> a écrit dans le message de news:
OFlJok8kGHA.1***@TK2MSFTNGP03.phx.gbl...
Show quoteHide quote
> 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]" <hirf-spam-me-here@gmx.at> escreveu na mensagem
> news:eEYqbi8kGHA.5108@TK2MSFTNGP02.phx.gbl...
> "Brahm" <daniel.br***@contronic.com.br> schrieb:
>> 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.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>
>
>
Author
19 Jun 2006 8:40 PM
Herfried K. Wagner [MVP]
"Patrice" <scr***@chez.com> schrieb:
> Overloads and double check that the Registry classes provided by .NET
> doesn't provide what you are after...

=> 'Microsoft.Win32.Registry'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
19 Jun 2006 5:50 PM
Tom Shelton
Brahm wrote:
> 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

--
Tom Shelton [MVP]