?
Solved

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

Posted on 2005-03-03
3
Medium Priority
?
1,006 Views
Last Modified: 2013-12-26

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
Comment
Question by:TungVan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 13451882
(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
 

Author Comment

by:TungVan
ID: 13452123

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
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 200 total points
ID: 13452610
>> Is there a way to convert from dll file to code? so that i can look at it?

In general, No.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question