• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1025
  • Last Modified:

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.


0
TungVan
Asked:
TungVan
  • 2
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
(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.
0
 
TungVanAuthor Commented:

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?
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
>> Is there a way to convert from dll file to code? so that i can look at it?

In general, No.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now