Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV...
-
Upload
ronald-jordan -
Category
Documents
-
view
218 -
download
0
Transcript of Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV...
Introduction to VB, ASP, COM
Presented byCharley Jones
The Maxim GroupLas Vegas, NV
All code samples will be posted to:http://www.crjones.com/vbintro
Introduction to VB, ASP, COM
Shameless Plug:
The Maxim Group
Since 1987
75 Offices World Wide
6,000+ Consultants
Online Training, Tutoring, Support
Hourly, Salaried, Full-Time
Narc on your friends!?!?(Send us a resume or two!)
Introduction to VB
Generates EXE’s, DLL’s…
Distribution/Installation Scripts…
ConceptsObectsPropertiesMethods
Introduction to VB
Integrated Development EnvironmentCompilerOptimizerDebugger
Demonstration:
Timer App
Introduction to VB
Database Access
Use the Wizards
Demonstration:
Author App
Introduction to VB
Controlling other apps
MS Office
Demonstration:
Excel Control
Introduction to VB
Example to build from:
Plus
Demonstration:
Plus VB
Introduction to ASP
An extension of HTML (Vb + HTML)
ASP -> IIS -> HTML
Web Server interprets ASP pages and produces HTML for display on browser…
Introduction to ASP
Example to build from:
Plus
Demonstration:
Plus.ASP
Introduction to ASP
PLUS.ASP:
<FORM METHOD=POST>
<INPUT TYPE=TEXT NAME=A WIDTH=20 VALUE=""><BR>
+<BR>
<INPUT TYPE=TEXT NAME=B WIDTH=20 VALUE=""><BR>
=<BR>
<INPUT TYPE=TEXT NAME=C WIDTH=20 VALUE=""><BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
Introduction to ASP
Making it work!
Request Object
Demonstration:
Plus2.ASP
Introduction to ASP
Plus2.ASP:
<%
A = request("A")
B = request("B")
C = cint(a) + cint(b)
%>
<FORM METHOD=POST>
<INPUT TYPE=TEXT NAME=A WIDTH=20 VALUE="<%=A%>"><BR>
+<BR>
<INPUT TYPE=TEXT NAME=B WIDTH=20 VALUE="<%=B%>"><BR>
=<BR>
<INPUT TYPE=TEXT NAME=C WIDTH=20 VALUE="<%=C%>"><BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
Introduction to COM
Component Object Model(ing)
Replaceable/Reusable (Plugins)
Word, Excel, ActiveXUser Created
3rd Party
Introduction to COM
Rebuild PLUS as COM:
Back to VB
Demonstration:
PlusObject
Introduction to COM
Using a COM object:
Back to VB
Demonstration:
PlusObjectTestVB
Introduction to COM
Using COM from ASP:
Back to ASP
Demonstration:
Plus3.ASP
Introduction to COMPlus3.ASP:
<%
A = request("A")
B = request("B")
Dim objPlus
Set objPlus = Server.CreateObject("PlusObject.Plus")
C = objPlus.Plus(cint(A),cint(B))
Set objPlus = Nothing
%>
<FORM METHOD=POST>
<INPUT TYPE=TEXT NAME=A WIDTH=20 VALUE="<%=A%>"><BR>
+<BR>
<INPUT TYPE=TEXT NAME=B WIDTH=20 VALUE="<%=B%>"><BR>
=<BR>
<INPUT TYPE=TEXT NAME=C WIDTH=20 VALUE="<%=C%>"><BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
VB Resources
VB Resources:
Hardcopy??
There’s a ton!
VB Resources
VB Resources:
Carl & Gary’s
http://www.cgvb.com/
VB Resources
VB Resources:
Microsoft Visual Basic Homepage
http://msdn.microsoft.com/vbasic/
ASP Resources
The complete and up to date source:http://msdn.microsoft.com/scripting/
Professional Active Server Pages 3.0Wrox Press ~$60
ASP in a NutshellO’Reilly ~$30
The Future of VB?
Microsoft Visual Studio .net
http://msdn.microsoft.com/vstudio/nextgen
Introduction to VB, ASP, COM