introduction to vb, asp, com presented by charley jones the maxim group las vegas, nv...

22
Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV [email protected] All code samples will be posted to: http://www.crjones.com/vbintro

Upload: ronald-jordan

Post on 13-Jan-2016

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to VB, ASP, COM

Presented byCharley Jones

The Maxim GroupLas Vegas, NV

[email protected]

All code samples will be posted to:http://www.crjones.com/vbintro

Page 2: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

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!)

Page 3: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to VB

Generates EXE’s, DLL’s…

Distribution/Installation Scripts…

ConceptsObectsPropertiesMethods

Page 4: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to VB

Integrated Development EnvironmentCompilerOptimizerDebugger

Demonstration:

Timer App

Page 5: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to VB

Database Access

Use the Wizards

Demonstration:

Author App

Page 6: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to VB

Controlling other apps

MS Office

Demonstration:

Excel Control

Page 7: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to VB

Example to build from:

Plus

Demonstration:

Plus VB

Page 8: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to ASP

An extension of HTML (Vb + HTML)

ASP -> IIS -> HTML

Web Server interprets ASP pages and produces HTML for display on browser…

Page 9: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to ASP

Example to build from:

Plus

Demonstration:

Plus.ASP

Page 10: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

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>

Page 11: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to ASP

Making it work!

Request Object

Demonstration:

Plus2.ASP

Page 12: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

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>

Page 13: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to COM

Component Object Model(ing)

Replaceable/Reusable (Plugins)

Word, Excel, ActiveXUser Created

3rd Party

Page 14: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to COM

Rebuild PLUS as COM:

Back to VB

Demonstration:

PlusObject

Page 15: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to COM

Using a COM object:

Back to VB

Demonstration:

PlusObjectTestVB

Page 16: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

Introduction to COM

Using COM from ASP:

Back to ASP

Demonstration:

Plus3.ASP

Page 17: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

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>

Page 18: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

VB Resources

VB Resources:

Hardcopy??

There’s a ton!

Page 19: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

VB Resources

VB Resources:

Carl & Gary’s

http://www.cgvb.com/

Page 20: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

VB Resources

VB Resources:

Microsoft Visual Basic Homepage

http://msdn.microsoft.com/vbasic/

Page 21: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

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

              

  

           

 

Page 22: Introduction to VB, ASP, COM Presented by Charley Jones The Maxim Group Las Vegas, NV CRJones@VSC.MaximGroup.Com All code samples will be posted to:

The Future of VB?

Microsoft Visual Studio .net

http://msdn.microsoft.com/vstudio/nextgen

Introduction to VB, ASP, COM