Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

Trying to compile a VB6 DLL via command line using /cmd otion

$
0
0
Hi,

I'm trying to compile a DLL via command line using the /cmd argument. I'd like to pass in a string which will be used in the DLL.
The DLL does compile but it doesn't appear that the /cmd part functioned. From what I've read the command$ function is supposed to return
any arguments or in the case below: xyz

The string appears empty when the DLL function is called from my application so I presume that I'm doing something wrong.

Here is the command line:

"C:\Program Files\Microsoft Visual Studio\VB98\vb6.exe" /make C:\Test\TestDLLProject.vbp /cmd "xyz"

This is the vb code:

dim strMyName as string

strMyName = command$

Thank for your help, William

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>