I use the GetCommandLine function to obtain parameters send to my exe file. It works very well in W95 but in WinNT in doesn't. Here is the declaration:
Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As String
What happens when I call this function in WinNT: Program error occurs(GPF). I tried to change the declaration from <Alias "GetCommandLineA" () As String> to :
<Alias "GetCommandLineW" () As String> but in that case the function returns only the first character of the command line string.
What's the problem and how to avoid it?
I use WinNT 4.0 and VB 5.0 EE
We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.
What are they?
An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…