472,328 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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 2951
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: awan | last post by:
Is there a function in dotnet which is equivalent as "app.Path" in VB 6? Thanks in advance!
4
by: teddysnips | last post by:
I am studying for the MSCE/MCDBA exam 70-229. In the book I am using ("MCSA/MCSE/MCDBA Self-Paced Training Kit: Microsoft SQL Server 2000 Database...
4
by: Greg Stark | last post by:
I find myself wishing I had a syntax "LIKE ANY (array)". I don't see much value in the = ANY, = ALL, <> ANY, <> ALL syntax since they're...
60
by: K. G. Suarez | last post by:
Hello everyone. I am new to programming and my uncle gave me a copy of "C For Dummies 2nd Edition". I am up to chapter 9 right now. He probably...
2
by: | last post by:
While I was learning about baking cookies in ASP.NET, I also ran across this interesting article that outlined a few bombs to watch out for when...
2
by: Alexander Eisenhuth | last post by:
.... as you can find in os.py at line 1 ? Regards Alexander
6
by: Deano | last post by:
Every once in a while I modify one particular form (could be anything from adding code to tweaking properties as far as I can see) and upon loading...
2
by: Peter Duniho | last post by:
On Fri, 18 Jul 2008 10:41:23 -0700, jmDesktop <needin4mation@gmail.com> wrote: Well, that's an interesting example, if for no other reason than...
3
by: conics | last post by:
what data type replaced the the data type "any"? what will i write as a replacement for dim a as any thanks, conics
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.