473,414 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 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 3011
"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 Design and Implementation Exam 70-229, Second...
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 equivalent more or less to IN and NOT IN. But it could be...
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 saw me struggling with "The C Programming...
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 using cookies in ASP.NET: ...
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 I get; "You can't assign a value to this...
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 that the DirectShow video capture stuff is a...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.