Click here to Skip to main content
15,920,629 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Reading from Text file Pin
Amarni17-May-06 21:59
Amarni17-May-06 21:59 
GeneralRe: Reading from Text file Pin
Steve Pullan17-May-06 22:15
Steve Pullan17-May-06 22:15 
GeneralRe: hhhhhhhh Pin
Amarni17-May-06 22:34
Amarni17-May-06 22:34 
GeneralRe: hhhhhhhh Pin
J4amieC17-May-06 23:00
J4amieC17-May-06 23:00 
GeneralRe: hhhhhhhh Pin
Steve Pullan18-May-06 0:37
Steve Pullan18-May-06 0:37 
GeneralRe: hhhhhhhh Pin
_AK_18-May-06 2:06
_AK_18-May-06 2:06 
QuestionEarly and Late Binding Pin
Scorpio17-May-06 19:36
Scorpio17-May-06 19:36 
AnswerRe: Early and Late Binding Pin
Steve Pullan17-May-06 21:17
Steve Pullan17-May-06 21:17 
Basically: with early binding the compiler knows the type of object at compile time. With late binding, the type of object is only known at runtime.

There are cases for using one or the other but my preference would be for early binding where possible because many problems and type-related issues can be sorted out during development. If you late bind, some problems may not be evident until your application is live!

There are many samples of this on the web - including The Code Project. Simply search for them.

In the meantime, very brief samples are shown below...

' Early Binding
' Compiler knows what type x is.

Dim x As Word.Application
Set x = New Word.Application

' Late Binding:
' Only know what type x is at runtime.

Dim x As Object
Set x = CreateObject("Word.Application")


...Steve

1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life."
I read that somewhere once Smile | :)
GeneralHints: Early and Late Binding Pin
MohammadAmiry18-May-06 5:16
MohammadAmiry18-May-06 5:16 
QuestionDotNetNuke Skin Pin
Kakuji17-May-06 18:57
Kakuji17-May-06 18:57 
QuestionHow to customize WSE policy Pin
hung_ngole17-May-06 18:32
hung_ngole17-May-06 18:32 
QuestionControl MenuItem on MDI application Pin
minhnguyen0817-May-06 16:54
minhnguyen0817-May-06 16:54 
QuestionLOGONUSER Pin
mlauahi17-May-06 13:59
mlauahi17-May-06 13:59 
AnswerRe: LOGONUSER Pin
progload17-May-06 14:45
progload17-May-06 14:45 
GeneralRe: LOGONUSER Pin
mlauahi18-May-06 5:09
mlauahi18-May-06 5:09 
GeneralRe: LOGONUSER Pin
progload18-May-06 5:36
progload18-May-06 5:36 
GeneralRe: LOGONUSER Pin
mlauahi18-May-06 9:37
mlauahi18-May-06 9:37 
QuestionCOM Pin
mhswitch17-May-06 13:27
mhswitch17-May-06 13:27 
QuestionBuild a treeview from database table vb.net Pin
Serpiente17-May-06 13:09
Serpiente17-May-06 13:09 
Questionproblem with ParameterModifier in .net 2 Pin
lsugirljte17-May-06 11:07
lsugirljte17-May-06 11:07 
Questionsending data through the serial port Pin
wtfskh17-May-06 9:39
wtfskh17-May-06 9:39 
AnswerRe: sending data through the serial port Pin
Joshua Quick17-May-06 10:14
Joshua Quick17-May-06 10:14 
GeneralRe: sending data through the serial port Pin
wtfskh17-May-06 11:09
wtfskh17-May-06 11:09 
GeneralRe: sending data through the serial port Pin
wtfskh17-May-06 11:22
wtfskh17-May-06 11:22 
GeneralRe: sending data through the serial port Pin
Joshua Quick17-May-06 14:01
Joshua Quick17-May-06 14:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.