473,378 Members | 1,658 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,378 software developers and data experts.

How to use APIs in VBs

FE
Hi,

I would liket to know if and how to use Windows APIs in .vbs files.

I need to read a .ini file with getprivateprofilestring from .vbs ...

Thanks

FE
Nov 20 '05 #1
12 5646
"FE" <fr******@esnouf.net> schrieb
I would liket to know if and how to use Windows APIs in .vbs
files.

I need to read a .ini file with getprivateprofilestring from .vbs
...


This is a VB.NET group (see group name).
--
Armin

Nov 20 '05 #2
Declare the function in the dll that you want like this for example.

Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA"
(ByVal hWnd As IntPtr, ByVal wMsg As Int32, ByVal wParam As Int32, ByVal
lParam As Int32) As Int32

Const WM_VSCROLL As Int32 = &H115

Const SB_LINEDOWN As Int32 = 1

Const SB_LINEUP As Int32 = 0
--
Regards - One Handed Man

Author : Fish .NET & Keep .NET
=========================================
This posting is provided "AS IS" with no warranties,
and confers no rights.
"FE" <fr******@esnouf.net> wrote in message
news:ub**************@TK2MSFTNGP09.phx.gbl...
Hi,

I would liket to know if and how to use Windows APIs in .vbs files.

I need to read a .ini file with getprivateprofilestring from .vbs ...

Thanks

FE

Nov 20 '05 #3
"FE" <fr******@esnouf.net> schrieb:
I would liket to know if and how to use Windows APIs in .vbs files.

I need to read a .ini file with getprivateprofilestring from .vbs ...


This is a VB.NET language group. Please turn to this ng:

news://news.microsoft.com/microsoft....pting.vbscript

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4
LOL, wrong standard reply.....
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:eI**************@TK2MSFTNGP09.phx.gbl...
"FE" <fr******@esnouf.net> schrieb:
I would liket to know if and how to use Windows APIs in .vbs files.

I need to read a .ini file with getprivateprofilestring from .vbs ...


This is a VB.NET language group. Please turn to this ng:

news://news.microsoft.com/microsoft....pting.vbscript

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #5
"Rick" <ri**@NOSPAM.computetosuit.com> schrieb
I would liket to know if and how to use Windows APIs in .vbs
files.

I need to read a .ini file with getprivateprofilestring from .vbs
...


This is a VB.NET language group. Please turn to this ng:

news://news.microsoft.com/microsoft....pting.vbscript


LOL, wrong standard reply.....


Why?

--
Armin

Nov 20 '05 #6
"Rick" <ri**@NOSPAM.computetosuit.com> schrieb:
LOL, wrong standard reply.....


Why?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #7
>This is a VB.NET language group.

It is actually a VB6 and below group.
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:u%****************@TK2MSFTNGP10.phx.gbl...
"Rick" <ri**@NOSPAM.computetosuit.com> schrieb:
LOL, wrong standard reply.....


Why?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #8
The OP cross-posted both a VB.Net and VB Classic group. Hence, whatever your
reply, it would be out-of-place in one of the 2 groups.

As it is, no one is quite sure whether the OP wanted a .Net or a VB6 answer

Tony Proctor

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:u#**************@TK2MSFTNGP10.phx.gbl...
"Rick" <ri**@NOSPAM.computetosuit.com> schrieb:
LOL, wrong standard reply.....


Why?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #9
"Tony Proctor" <tony_proctor@aimtechnology_NOSPAM.com> schrieb:
The OP cross-posted both a VB.Net and VB Classic group.
Ooops. I didn't realize that the post was a crosspost.
Hence, whatever your reply, it would be out-of-place
in one of the 2 groups.

As it is, no one is quite sure whether the OP wanted a .Net or
a VB6 answer


He wanted a VBScript solution.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #10
40 love next, then Deuce !!!!
;-D

"Tony Proctor" <tony_proctor@aimtechnology_NOSPAM.com> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
The OP cross-posted both a VB.Net and VB Classic group. Hence, whatever your reply, it would be out-of-place in one of the 2 groups.

As it is, no one is quite sure whether the OP wanted a .Net or a VB6 answer
Tony Proctor

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:u#**************@TK2MSFTNGP10.phx.gbl...
"Rick" <ri**@NOSPAM.computetosuit.com> schrieb:
LOL, wrong standard reply.....


Why?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet


Nov 20 '05 #11
My bad, i didnt notice the crosspost.
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:u%****************@TK2MSFTNGP10.phx.gbl...
"Rick" <ri**@NOSPAM.computetosuit.com> schrieb:
LOL, wrong standard reply.....


Why?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #12
An invalid crosspost has occurred, into VB.NET and VB6-.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"
"Rick" <ri**@NOSPAM.computetosuit.com> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
This is a VB.NET language group.


It is actually a VB6 and below group.
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:u%****************@TK2MSFTNGP10.phx.gbl...
"Rick" <ri**@NOSPAM.computetosuit.com> schrieb:
LOL, wrong standard reply.....


Why?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet


Nov 20 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tanuki | last post by:
Hi All: I am doing some development in VC++ using some llibraries downloaded from the web. The library comes in 3 files <mylib.dll>, <mylib.lib>, <mylib.exp> and I also have <mylib.h>. As...
1
by: cindy liu | last post by:
Hi, I'd like to create xml string based on my xsd file. Is there any .Net APIs to do this? Like in BizTalk 2004, you can generate xml instance based on xsd file. Thanks in advance!!! Cindy
3
by: Raquel | last post by:
A very basic question to all the esteemed listers. I am going through UDB manual. At the end of each chapter, "DB2 APIs" are listed. For example a multi-page description of the DB2 API "db2Restore"...
7
by: Mustafa Rabie | last post by:
Hi I am writing and application using C# and i want to use some APIs from an SDK. I want to know how can i incorperate the libs, .h etc to the C# file and use the apis. Thanks Mustafa
8
by: José Achig | last post by:
Hi I have to use functions inside of system apis so I want the correct dllimports declarations in c# for the following functions or information about where I can get these statements. +...
1
by: Vikas | last post by:
Hello, I am consuming a C++ COM dll exposed by a 3rd party from a C# application but I do not have a documentation of the APIs exposed by it. Is there a command or tool available that will tell...
3
by: TC | last post by:
Hey Folks, I am using the following 4 Win32 APIs with a C# AddIn: FindWindow SetWindowLong SetForegroundWindow EnableWindow Within the AddIn, there are some winforms. I use these APIs to...
0
by: karthik.balaguru | last post by:
Hi, Is CCW(COM Callable Wrapper) independent/dependent on any kind of language ? If we are able to Access .NET APIs via a CCW from VB6. Is it possible to use the same CCW and access .NET APIs...
1
by: nagrik | last post by:
Hello Group, I am writing a http client and reading a web page from the server. The page can be compressed in any of the format namely; gzip or deflate or compress. My client reads the page...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.