100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Computer system £15.79   Add to cart

Lecture notes

Computer system

 0 view  0 purchase

Computer system, computer science, computer skills, computer language

Preview 4 out of 33  pages

  • July 24, 2023
  • 33
  • 2017/2018
  • Lecture notes
  • Prof
  • All classes
All documents for this subject (7)
avatar-seller
akhilagouri
Syntax Considerations
H All Functions are Global in VB
H Variables are declared using the syntax:
– Dim <Name> As <Type>
– Every variable must have a type
– Dim A,B,C As <Type> will work, but gives
weird results
H Most Common Types: Integer, String, Long

,Alternative Methods
H Some Versions of VB do not allow DLL
function definitions in the (general) section
of a form.
H To Get Around this Problem, Create a new
Module (File Menu)
H Add the declarations to the (general) section
of the module
H You can add your own VB functions to the
(general) section of a form or a module.

,A (Very Annoying) Problem
H It is sometimes difficult for VB to FIND the
.DLL file.
H If this occurs, copy the .DLL file to the
WINDOWS directory.
H Remember to Delete the file when you are
done.

, C Definition vs. VB Definition
C:
long FAR PASCAL _export HexToLong (char *Hex)



VB:
Declare Function HexToLong Lib “FIRSTONE.DLL”
(ByVal InString As String) As Long


Function Name Must Be The Same in Both Declarations.
The Lib keyword Must Give The Name of the Library.
Argument Name in VB is arbitrary.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller akhilagouri. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for £15.79. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83430 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy revision notes and other study material for 14 years now

Start selling
£15.79
  • (0)
  Add to cart