473,508 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending data to dll plugin problem!! help.

I have 3rd party dll plugin COM interface, when loaded executes the following
functions.

public class Test: IPlugin
{
public void Innitialize(IPluginApp obj, int pluginHandle)
{
//gets the plugin obj dynamically to work with third party application.
//can be added events etc.
}
public shutdown()
{
//this is executed with plugin is terminated.
}
}

I have our application written in c# that should reference this plugin
assembly
and send some data to plugin from outside. But my problem is im unable to
send
data to plugin from outside that assembly. Plugin should accept the data and
do
further processing using IPluginApp object. IPluginApp object is null
outside that
Innitialize method. I am unable to create copy of that object using late
binding
concepts as that is an interface pointer. Can anyone suggest me some
techniques
to send data to plugin from outside.

Oct 18 '06 #1
2 1844

Aravind wrote:
I have 3rd party dll plugin COM interface, when loaded executes the following
functions.

public class Test: IPlugin
{
public void Innitialize(IPluginApp obj, int pluginHandle)
{
//gets the plugin obj dynamically to work with third party application.
//can be added events etc.
}
public shutdown()
{
//this is executed with plugin is terminated.
}
}

I have our application written in c# that should reference this plugin
assembly
and send some data to plugin from outside. But my problem is im unable to
send
data to plugin from outside that assembly. Plugin should accept the data and
do
further processing using IPluginApp object. IPluginApp object is null
outside that
Innitialize method. I am unable to create copy of that object using late
binding
concepts as that is an interface pointer. Can anyone suggest me some
techniques
to send data to plugin from outside.
Can't you add an IPluginApp variable to the class and assign that in
the constructor:

public class Test: IPlugin
{
private IPluginApp _pluginApp;

public void Innitialize(IPluginApp obj, int pluginHandle)
{
_pluginApp = obj;

//gets the plugin obj dynamically to work with third party
application.
//can be added events etc.
}

public shutdown()
{
//this is executed with plugin is terminated.
}
}

Oct 18 '06 #2
Thanx for your reply. Sorry im late in framing my question. I have done like
this..
public class Test: IPlugin
{
public static IPluginApp _pluginApp;

public void Innitialize(IPluginApp obj, int pluginHandle)
{
_pluginApp = obj;

//gets the plugin obj dynamically to work with third party
// application.
//can be added events etc.
}

public static bool CheckPluginIsNull()
{
if(Test._pluginApp == null) return true;
else return false;
}

}

from my executable application. I need to access that _pluginApp.

But if i do if(Test.CheckPluginIsNull) ..... Im geting null value...

Test class is in different assembly which I reference in to my executable
project.

I hope now you understood my problem. Is there any way to access that
_pluginApp referece from outside the Test class.


"Chris Dunaway" wrote:
>
Aravind wrote:
I have 3rd party dll plugin COM interface, when loaded executes the following
functions.

public class Test: IPlugin
{
public void Innitialize(IPluginApp obj, int pluginHandle)
{
//gets the plugin obj dynamically to work with third party application.
//can be added events etc.
}
public shutdown()
{
//this is executed with plugin is terminated.
}
}

I have our application written in c# that should reference this plugin
assembly
and send some data to plugin from outside. But my problem is im unable to
send
data to plugin from outside that assembly. Plugin should accept the data and
do
further processing using IPluginApp object. IPluginApp object is null
outside that
Innitialize method. I am unable to create copy of that object using late
binding
concepts as that is an interface pointer. Can anyone suggest me some
techniques
to send data to plugin from outside.

Can't you add an IPluginApp variable to the class and assign that in
the constructor:

public class Test: IPlugin
{
private IPluginApp _pluginApp;

public void Innitialize(IPluginApp obj, int pluginHandle)
{
_pluginApp = obj;

//gets the plugin obj dynamically to work with third party
application.
//can be added events etc.
}

public shutdown()
{
//this is executed with plugin is terminated.
}
}

Oct 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3490
by: UrgeOverkill | last post by:
I'm having a problem sending data from a socket server. The server side reports that it has sent 4845 bytes but the client reports only 1448 bytes received. The kicker is that this ONLY happens...
1
3770
by: Daniel | last post by:
after opening socket, sending data then closing socket 3000 times i get "Only one usage of each socket address" what am i doing wrong? is there some thing else i need to do to free up the socket...
4
3557
by: David | last post by:
I'm wondering if python is capable of fairly precise timing and also sending data out the parallel port. For example ; making a 7.5 KHz square wave come out of one of the data pins on the...
9
8423
by: MNQ | last post by:
Hi All I want to use my parallel port of my PC to control some external devices. I am writing a program in ANSI C using the PacificC compiler. What I need to know is how to access the parallel...
4
8189
by: yaron | last post by:
Hi, I have a problem when sending data over TCP socket from c# client to java server. the connection established ok, but i can't send data from c# client to java server. it's work ok with...
9
3004
by: Sandy | last post by:
can mfc application, send text data to opened notepad file in desktop?(live transfer of data) . can anybody help
0
1780
by: vladimir.plotnikov | last post by:
Hello! I have problem: I have IPB forum installed. After search in IPB (search takes about 3-4 seconds for post table about 300 000 records) mysql shows "Sending Data" status and takes about...
1
1654
by: Charlie | last post by:
Hi: I need a way to test my TcpListner, but not sure what applications are sending data to tcp ports. How about Email or Instant Messenger? If they are tcp, what ports are they sending data...
5
1813
by: Navin Mishra | last post by:
Hi, In load test of our .NET 2.0 socket application on Win2003 server, we are seeing sometimes WSEWOULDBLOCK error when sending data to clients. We are using synchronoous scokets with...
0
7223
marktang
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,...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7036
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...
1
5047
isladogs
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...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1547
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 ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.