361
questions
0
votes
1
answer
30
views
how to activate the main body in Late Biding
activating the Main Body in early binding works.
Dim partDocument1 As PartDocument
partDocument1 = CATIA.ActiveDocument
Dim part1 As Part
part1 = partDocument1.Part
Dim bodies1 As Bodies = ...
1
vote
0
answers
31
views
VB.NET programming patterns for late binding of parsers for varying dataset file formats
synopsis
It's been a long time since writing VB.NET code and since then .NET CORE has been created and grown. So quite some time. And programming practices and patterns have evolved without my keeping ...
0
votes
1
answer
36
views
MergeShapes fails when declared as Object instead of explicitly as ShapeRange
I have a section of code that uses Late Binding on PowerPoint, and one of the actions that I wish to perform is to Merge 2 shapes.
When I attempt this, I get "Run-time error '13': Type mismatch&...
0
votes
0
answers
47
views
Option Strict On disallows late binding & Cannot infer an element type, and Option Strict On does not allow 'Object' to be assumed in vb.net
I have error like this Option Strict On disallows late binding & Cannot infer an element type, and Option Strict On does not allow 'Object' to be assumed in vb.net .
please guide if there is ...
0
votes
0
answers
93
views
How to call late bound extension method from VB.NET (Framework)
I have successfully used MQTTnet in C#. One customer insists that I use VB.NET, so I converted my C# to VB.NET. Now I get an error, 'Error BC36908 Late-bound extension methods are not supported' on ...
0
votes
0
answers
42
views
Activator.CreateInstance throws Exception when references Type moved to another assembly
I am in the process of refactoring a Legacy Application and want to keep the Plugin System compatible, while getting some issues out of the way.
The problem is, that I needed to move the Interface ...
0
votes
2
answers
120
views
Activator.CreateInstance(Type.GetTypeFromProgID("Outlook.Application")) does not return when "the new Outlook" is turned on
Up to now, the following line worked.
var comObject = Activator.CreateInstance(
Type.GetTypeFromProgID("Outlook.Application"))
Since "the new Outlook" is turned on, that line ...
1
vote
0
answers
92
views
Confusion over how base class finds the correct method in dynamic dispatch for overridden methods with vtable implementations
This question can be summed up as: where is the missing arrow?
I was reading Chapter 4 of A Tour of C++ 2nd Edition by Bjarne Stroustrup and couldn't understand how a base pointer to a derived object ...
0
votes
0
answers
109
views
How to reference an Object library in VBA Excel when the installed version may vary between different users?
I need to use a ChemDrawCtl object in one of my projects. So far I have used early binding by referencing the library "CD ChemDraw 20.0 Object Library" which have worked well so far. However,...
1
vote
1
answer
178
views
Celery signatures .s(): early or late binding?
This blog post of Adam Johnson perfectly illustrates the difference between early binding and late binding closures in Python. This is also explained here.
I've got a function my_func which ...
0
votes
0
answers
77
views
How to maintain referential integrity in Postgres’s functions/stored procedures in light of schema changes
I don’t understand how to deal with schema changes and function definitions (which are by nature strings).
For example, if I have a table called tablename1 and/or a column called columnname1, and ...
0
votes
0
answers
79
views
C# - Adobe OLE JSObject - Value does not fall within the expected range
I'm switching over code from VB to C#, and with C# I'm getting a System.ArgumentException with the message Value does not fall within the expected range.
I know I must be missing something stupid ...
1
vote
2
answers
118
views
How does Base class pointer access the member variable (vptr) of Derived class?
Lets consider the following example
#include <iostream>
class Base {
public:
virtual void foo() {
std::cout << "Base::foo()" << std::endl;
}
};
class ...
0
votes
1
answer
46
views
Why is Late Binding not working as i expected?
The following code outputs 7:
public class GuessTheAnswer {
public static void main(String[] args) {
A obj = new H();
int jj;
jj = obj.m(new E());
System.out....
0
votes
1
answer
31
views
How can I set the value of a static property per inherited class in PHP
I found out that due to inheritance static properties are shared in sibling classes even when called in static context instead of self
abstract class Repository {
protected static ?string $tableName =...
1
vote
0
answers
66
views
How to fix C++ object slicing in a mixed array? [duplicate]
In my C++ I would like to print out cars and lorrys (derived from the vehicle class). Here are the definitions of the classes:
class Vehicle
{
int speed;
int entryTime;
int ...
0
votes
2
answers
67
views
I have been migrating old VB6 Windows apps to VB.net then to C#, pretty much have if worked out except for this outlook object with option strict on
can't find anything on early binding that is not VBA, kind of lost on this one. Code as follows.
Private Sub FabViewFeedBackToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ...
1
vote
1
answer
58
views
Accessing public variables from a c++ program
I have a program written in VB2012 and I'm trying to do the heavy number crunching in a c++ DLL. There are lots of variables that the c++ program needs access to. What I would like to do it pass a ...
0
votes
0
answers
65
views
Can you achieve early-binding through Cython?
One thing always confuses me, which is the counterintuitive dynamic / early binding of Python, especially when I have a for loop. I heard that Cython has some C language-style semantics, so I tried ...
1
vote
1
answer
138
views
What is it called when a function has a late-binding generic type? [duplicate]
What is it called when a function has a late-bound Generic type (which is determined only when the function is called, not when it is defined).
It is shown as LateT in the code example below, and ...
2
votes
2
answers
627
views
VBA Application-defined error outlook connection
I have the following code and keep having the error "application-defined or object-defined error" and cannot understand why. The tool Microsoft Office 16.0 Object library is activated, I am ...
0
votes
0
answers
151
views
How to find the VBA late binding Class name
I'm trying to run an Excel macro with late binding code that looks like this:
Dim oThisObject As Object
Set oThisObject = CreateObject("ClassNameString")
It works fine on my machine but on ...
1
vote
1
answer
97
views
How do I create a late-binding clone method in TypeScript classes?
I want to make a simple Cloneable interface for all my data classes, it's easy to do it in JavaScript. But it's not obvious on how to properly type it in TypeScript.
I am currently hacking it together ...
0
votes
0
answers
63
views
Late code evaluation and also printing the code
I want to pass code to a test() routine, which has to :
print the code
execute it
and finally do stuff with the result.
should handle args in the background
For quick code snippets I can use eval(...
0
votes
1
answer
74
views
Excel VBA failing to access CorelDraw Page property with Late Binding
I have an Excel (Office 16) VBA code that opens a CorelDraw document and performs a task based on the orientation of each page in the document. The code is as follows:
Dim app As Object
Dim page As ...
0
votes
1
answer
50
views
How do you late-bind DatabaseTypeEnum values?
The DatabaseTypeEnum values are listed here.
How do you late bind the values?
At the moment I am passing literal integers:
64 for dbVersion40
128 for dbVersion120
This is the current code in context:...
0
votes
1
answer
113
views
Does child class internally call super of parent method?
I have a small doubt regarding method overriding.
Animal animal = new Dog();
animal.makeSound();
Dog is the child class of Animal. animal.makeSound() will call dog object makeSound() because it's ...
2
votes
1
answer
137
views
Why casting is not possible from child to parent
I have a class Animal which has one child Dog.
class Animal {
public void makeSound() {
System.out.println("Animal sound");
}
}
class Dog extends Animal {
@Override
...
0
votes
1
answer
107
views
.NET 5 VB Late bound variables unavailable at run time due to Public member 'Visible' on type 'Application' not found
I've searched the forums for something similar to this, but most of the issues I've seen do not have access to the variables in the debugger and have issues with casting the object.
I'm running a C# ...
0
votes
1
answer
2k
views
Late Binding Issue with "MSXML2.XMLHTTP60"
I am getting a Run-time error '429': ActiveX component can't create object error when I try to run the following code.
Option Explicit
Private Sub EarlyVsLateBinding()
' References to both the ...
0
votes
0
answers
23
views
(python) How to pass the value of a variable and not the variable itself [duplicate]
I'm trying to create a loop that creates several buttons and displays them on the screen but I'm running into problems when trying to identify each specific button.
I've tried several things, but I ...
0
votes
2
answers
144
views
Late-Binding conflict with Pytest module
I am trying to iterate pytest over functions, the problem of late-binding
makes pytest only apply the test to the last function.
For a simplified example I authored the following test.py file:
import ...
3
votes
1
answer
168
views
I want to create a generic selector for 2D array in C
In case if 2d array is of float type I want to call the first function and otherwise the second, how can I accomplish this?
void printff(int n,float m[n][n])
{
for(int i=0;i<n;i++){
...
1
vote
1
answer
694
views
how to avoid late binding in vb.net
I have a project written in vb.net .net version is 3.5 and its worked fine with no problems, now i decided to convert it into c#. I have using more than on tool, like instantc#, vbconversion, also the ...
0
votes
0
answers
23
views
Python Game Planner - Unexpected Behavior from Delayed Function Execution - Scope/Binding/Closure Issue? [duplicate]
I am implementing a decision-making pattern for enemies in my turn-based game. In order to help understand the code (I hope!), I'll explain the pattern it's implementing:
When an enemy is instructed ...
0
votes
1
answer
589
views
Python Binding (Closure Late Binding)
I've got a question about "python binding" (suppose the question has something to do with it). I spent hours on the question below and reached the topics "closure late binding", &...
0
votes
1
answer
297
views
Excel VBA: How to use early binding with class module in Personal workbook
I have a class module in my project that I want to make available to other projects. I moved the class module to my Personal workbook. Following this Microsoft document, I added this function to the ...
1
vote
0
answers
180
views
creating functions in for loop to control ToggleButton, problem with late binding (ipywidgets JupyterLab)
I'm trying to make ToggleButtons for my plot and stumble upon a problem. I created the buttons, no problem:
# create buttons
button = []
for i in range(len(expnum)):
button.append(wg.ToggleButton(...
-1
votes
1
answer
65
views
Does destructing objects stop the late binding?
Consider the following C++ classes inheritance hierarchy and their intended polymorphic behaviour.
#include <iostream>
using namespace std;
class A
{
public:
A () { cout << "A ...
1
vote
1
answer
138
views
print() inside thread outputs wrong value [duplicate]
I'm trying to recreate a stupid idea called sleep sort, however the output is far from expected.
I am expecting
0
1
2
3
5
However I get
0
5
5
5
5
...which is wierd because the thread does: sleep for ...
0
votes
0
answers
44
views
Numpy - Late Binding Closures
I guess it could be a late binding closures problem.
for i,dt in enumerate(delay_list):
accel[:,i],freq[:,i] = srs(sum)
What I actually get: 2 arrays (shape: 124,3) with all 3 columns identical (...
2
votes
1
answer
48
views
Late binding a variable?
I have logtalk rule to add to the prolog DB :
add(IF, THEN) :- new_uid(U), assertz(cond(IF, 0, U)), assertz(act(U) :- THEN).
it seems to work ok.. i.e. it splits the rule to TWO separate facts (which ...
1
vote
0
answers
404
views
VBA - Late Binding Outlook.Mailitem to support different Excel versions
My company is slowly transitioning employees from Microsoft Office 2013 to Microsoft Office 365. This has resulted in compatibility issues between users and their different Office versions. My main ...
1
vote
0
answers
22
views
Merging 2 Processes -> parent adopting a child
Init can reap orphaned processes. Zombies can cause issues with system resources. These are situations where UNIX/Linux can and has done a good job over the years.
With the advent of Docker/...
0
votes
1
answer
332
views
VBA CreateObject versus Type Library References
I have build a COM object via ATL, to use compiled C++ in VBA. My type library is (say) "MyObjLib", and the object is "MyObj".
If I use the Object Browser in VBA, all looks good: ...
0
votes
2
answers
2k
views
Understanding the flow of this Python code
I saw this code on the internet, and I don't know how it works.
def multipliers():
return [lambda x : i * x for i in range(4)]
print([m(2) for m in multipliers()])
Here are some questions:
What ...
0
votes
2
answers
71
views
How does JAVA allow class instantiation within the class?
Am new to JAVA. Am wondering over the following construct:
class MyClass {
private MyClass myClass;
//whatever
}
How is it that this does not cause infinite recursion? Is it only due to late-...
1
vote
2
answers
641
views
Loose late binding v. strict late binding
While reading Python’s Execution model documentation, I realized that Python’s free variables do not seem to have a strict late binding property where a name binding occurring in any code block can be ...
0
votes
1
answer
156
views
How to define Python functions inside a loop and use *args and **kwargs
I'm trying to print a message when instance methods get called, like below. I'm running into this problem, but I'm having trouble solving it in my case because all the solutions seem to require ...
0
votes
1
answer
585
views
VBA Late Binding for Active DS Type Library
EDIT:
What I have researched on the Active DS Type Library, the examples either require early binding or GetObject. Can late binding be performed on the Active DS Type library using the CreateObject ...