469,926 Members | 2,259 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

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

hi folks !

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

Thanks,

Daniel

Jun 19 '06 #1
5 2878
"Brahm" <da**********@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/>

Jun 19 '06 #2

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]

Jun 19 '06 #3
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]" <hi***************@gmx.at> escreveu na mensagem
news:eE**************@TK2MSFTNGP02.phx.gbl...
"Brahm" <da**********@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/>
Jun 19 '06 #4
Overloads and double check that the Registry classes provided by .NET
doesn't provide what you are after...

--
Patrice

"Brahm" <da**********@contronic.com.br> a écrit dans le message de news:
OF**************@TK2MSFTNGP03.phx.gbl...
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]" <hi***************@gmx.at> escreveu na mensagem
news:eE**************@TK2MSFTNGP02.phx.gbl...
"Brahm" <da**********@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/>

Jun 19 '06 #5
"Patrice" <sc****@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/>
Jun 19 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by awan | last post: by
4 posts views Thread by teddysnips | last post: by
60 posts views Thread by K. G. Suarez | last post: by
2 posts views Thread by Alexander Eisenhuth | last post: by
2 posts views Thread by Peter Duniho | last post: by
3 posts views Thread by conics | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.