|
by: Robert May |
last post by:
We have a VB6 COM component that I don't have control over. All of the
values are returned from method calls using byref parameters. They
frequently break binary compatibility, in fact, there are three different
versions of the component, one for dev, one for test, and one for
production, all of which are broken with each re-compile, which means I
can't use early binding and COM interop. Ugh.
Using InvokeMember, how do I get values...
|
by: Stephane D. |
last post by:
I have currently an issue with the following piece of code. The assembly is
to run under com+ (as Library) and the class derives from ServicedComponent.
Code: C# - .NET framework V1.1.4322
// Prepare fully qualified class name
fullyQualifiedNetClassTypeName = Namespace + "." + ClassName + ", " +
AssemblyName + ", " + "Version=" + AssemblyVersion + ", " + "Culture=" +
AssemblyCulture + ", " + "PublicKeyToken=" + PublicKeyToken;
|
by: Jared Hagel |
last post by:
I can't use Type.InvokeMember(...) on a remote object.
But when I use Type.InvokeMember(...) on a non-remote object in the
exact same way, I don't have a problem.
Does someone know what I'm doing wrong? Or if using InvokeMember on a
remote object is just a bad idea?
The reason I wish to use InvokeMember rather than to call the method
directly is because I don't want to install the assembly describing
|
by: hazz |
last post by:
this is a repost with more concise code (well, for me) and better questions
(I hope....) .
given the following two classes, my intent is to use either
Activator.CreateInstance or InvokeMember pass a token into the instantiated
class DBPassword and return a string;
**************************************
namespace DBPasswordProvider
public class DBPassword
{
|
by: Alex Zhitlenok |
last post by:
Hi,
On Google, one can find a lot of statements that Invoke and
InvokeMemeber work alike. However, my own experience contradicts this
statement.
1. Surprisingly, Invoke and InvokeMember methods work differently!
I'm working with some legacy COM. The COM object (CMyCOM) implements
an interface that is not dual. The interface has a method, let say,
HRESULT Foo();
The corresponded coclass defines an interface
|
|
by: Laurent |
last post by:
Hello,
I'm having a problem trying to call a DLL assembly from a C# code with
some special parameters.
I have a global class used to store some parameters and work with them:
public class GlobalClass
{
public int parameter1;
|
by: Pat Ireland |
last post by:
I continue to investigate issues with making explicit InvokeMember calls
(necessary when dynamically loading classes). My quest lets me use a simple
class to invoke another class's member method by normal means and by using
the InvokeMember. By examining the underlying il code with ildasm, when
attempting to pass by reference, the il code generates a box command so that
a pointer to the actual data is passed. This is clearly seen with...
|
by: Patrick Ireland |
last post by:
I am dynamically loading a class. One of the methods of the class takes
a short * (by reference) argument. However, the InvokeMember call used
to invoke the method of the class passings arguments in and object .
Since this is a pointer reference being passed it must be invoked in a
unsafe {} even thought the dynamically loaded class is a .Net entity.
The following is the test code that I am using to try and load a short *
into an object:...
|
by: hazz |
last post by:
this is a repost with a hopefully more clearly stated scenario and more
concise questions at the end.
given the following two classes, my intent is to use pass a token into the
instantiated class DBPassword and return a string;
**************************************
public class DBPassword
{
public DBPassword()
{
//Empty constructor
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|