Questions tagged [late-binding]

Late binding is a mechanism in which the method being called upon an object is looked up by name at runtime.

Late binding is a mechanism in which the method being called upon an object is looked up by name at runtime.

The specific type of a late bound object is unknown to the compiler at compile time. This is contrasted with early binding, where relationships between objects, methods are properties are established during compile time.

It is expected that questions tagged specifically relate to programming using late bound code. You should also tag your post with the specific programming language being used.

Example (VBA):

' late bound objects are declared As Object
Dim obj As Object
Set obj = CreateObject("Excel.Application")

Related Tags:

353 questions
-1
votes
1 answer

Understanding dynamic polymorphsim byte code

I am a novice to Java byte code and would like to understand the following byte code of Dispatch.class relative to Dispatch.java source code below : Compiled from "Dispatch.java" class Dispatch { Dispatch(); Code: 0: aload_0 1:…
ecdhe
  • 421
  • 4
  • 17
-1
votes
1 answer

Converting From Early Binding to Late Binding

Update # 2 I changed the values of the txtbox and submitbtns with a (0) (and also tried (1) as well), no changes. And I also need to note that the Button has a different name and I updated accordingly here as well. Dim TBox As String 'Name…
user6576927
-1
votes
1 answer

C# late binding and File exceptions

Simple host app searching for assemblies by special Interface and importing from them list of delegates, now it's Func. Then it can execute any Func and there's no problem. Problems starts when any of this Func tries to access…
Arman Hayots
  • 2,459
  • 6
  • 29
  • 53
-1
votes
1 answer

How to get cell name from an excel sheet in C# using late binding?

I am trying to get the cell name like A1,B1,A2,B2 from an excel sheet. Here is my code object objCellText = Cells.GetType().InvokeMember("Item", BindingFlags.GetProperty,null,Cells, new object[] {…
-1
votes
1 answer

java inheritance and late binding

I understand how the following code works, based on polymorphism and dynamic binding. Java is somehow able to figure out at runtime that because vh is a MotorBike, we should call MotorBike's move() method. class Vehicle{ public void move(){ …
-1
votes
1 answer

How to initialize user control sub controls when late binding

I have a usercontrol with a webbrowser control on it compiled out to it's own assembly. This control worked in my project prior to breaking it out to its own assembly. Now the goal of doing this is to late bind to the assembly, instantiate the…
thetimmer
  • 186
  • 1
  • 8
-2
votes
1 answer

foreach for dynamic type C# - dynamic casting? reflection?

I defined various classes like this: public class Subclass : BaseObject, IObject, IObject { ... } BaseObject contains all the functionality I need. IObject allows it to be accessed between projects. IObject allows collections to be…
Bit Racketeer
  • 493
  • 1
  • 3
  • 13
-10
votes
1 answer

vb.net late bindings issue even after setting the variable

Hey all I have the following code thats throwing Late bindings. I thought putting: Dim excelWS As Worksheet excelWS = New Worksheet Before using the variable corrected the late binding issue? UPDATE 1 Would it be something like this? Dim…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
1 2 3
23
24