Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
  Tip: Use the command line in a DLL  
 
 

By Dominic Olivastro.

Previously I had posted (in the VB Helper discussion group) that you can not use CommandLine or APP.Name, in a DLL. Since then, I've discovered that you *CAN* use the WinAPI function, GetCommandLine, which returns both the APP.Name and the command line. This won't work in the debugger, but it will in the compiled executable.

 

Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated