#Two Questions
4 messages in this thread
Hello,
This is my first foray into windows programming. I have two questions I
hope haven't been asked too many times.
1. Is there a way to call a dos command line program and pass it command
line parameters from VB? Ideally it would either ignore the screen output
from dos or trap it in the clipboard.
2. Where do I start looking for the proper way to call DLL's. I would
like to use the netware.dll to write my own network utilities but have no
idea where to look and how to properly access them from within VB.
I am a rank beginner to any feedback would be appreciated.
Regards,
jpm
There are 2 Replies.
Hi Joseph,
You can pass command line parameters such as:
X% = Shell("idea.bat param1 param2")
If you look in the manual or query the online help for "Delcare", it will
have some examples of how to declare an API/DLL (really the same thing). As
far as how to declare a particualar function, you will have to find out the
data types for the formal arguments to the dll, and then declare the VB
equivelent. If you have a data type in question, leave it here in the forum
and myself or someone else will give you some helpfull hints. How do you
like VB?
Don FUnk
Hi Joseph,
You can pass command line parameters such as:
X% = Shell("idea.bat param1 param2")
If you look in the manual or query the online help for "Delcare", it will
have some examples of how to declare an API/DLL (really the same thing). As
far as how to declare a particualar function, you will have to find out the
data types for the formal arguments to the dll, and then declare the VB
equivelent. If you have a data type in question, leave it here in the forum
and myself or someone else will give you some helpfull hints. How do you
like VB?
Don FUnk
There is 1 Reply.
I like it…:)
jpm