Link to home
Start Free TrialLog in
Avatar of TungVan
TungVan

asked on

Public Declare Function CSNull Lib "QPRO32.DLL" (ByVal Work As String) As Long


Hi all,

First, I just want to let you know that I am new in VB...And thx to any help...:)

I have 3 questions to ask:

1) I see a line of code calling CSNull(something). When I right-click on CSNull and chose Definition. It goes to Public Declare Function CSNull Lib "QPRO32.DLL" (ByVal Work As String) As Long

My question is how do I know what that function is doing? Is there a functions specification for QPRO32.DLL?

2) My second question is I see 2 things: frmMain, and Sub Main (in a module). When you run the application, the program runs frmMain first or Sub Main (function in the module)?

3) My 3rd question is sometimes i see something like frmMainMenu!mnuSettingShowStart.CHECKED = UNCHECKED

What does the sign "!" do in that line?



Thanks a lot.


Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

(1) I believe that QPRO32.DLL is part of the Crescent PowerPack Suite which consists of replacement/enhanced controls and libraries for VB.  The CSNull() function resides in this DLL and without documentation there isn't any way to know what it is doing.  Your only option is to do search of the internet to see if anything useful comes up.

(2) Cick on Project --> (YourProjectName) Properties.  There is a "Startup Object" drop down box that determines the entry point into the application.  When a Sub Main is present, it is most likely the entry point but doesn't have to be.  If Main() is the entry point then somewhere in the code an instance of frmMain is being created and then shown.

(3) The ! operator isn't used in VB.  Are you using VBA for Word, Excel or Access?  Typically in VBA the ! operator allows you to access a control or field/cell contained within something else.   It has been awhile since I have done any VBA coding so another expert may be able to give you a more precise answer.
Avatar of TungVan
TungVan

ASKER


Hi Idle_Mind,

Thnx for your reply. Is there a way to convert from dll file to code? so that i can look at it?
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial