Hi all,
I am using a process class. I am able to run or open external
Executables(.exe) like notepad, .doc etc. Now i want to run a method present
in a component(.dll). Can i create an instance for that component, and
execute the method in seperate process using that process class? I would be
greatful if anybody clears my doubt.
regards,
Sivaraman.S 3 986
dlls are loaded into their host process. So the short answer is no - you
can't use the process class to "run" them.
If the dll contains COM objects, you can use interop to instantiate and call
them - see http://msdn.microsoft.com/library/de...opTutorial.asp
If the dll contains exported functions (like a C/C++ dll), use p/invoke.
see: http://msdn.microsoft.com/library/de...ketutorial.asp
"Sivaraman.S" <Si********@discussions.microsoft.com> wrote in message
news:BF**********************************@microsof t.com... Hi all,
I am using a process class. I am able to run or open external Executables(.exe) like notepad, .doc etc. Now i want to run a method present in a component(.dll). Can i create an instance for that component, and execute the method in seperate process using that process class? I would be greatful if anybody clears my doubt.
regards, Sivaraman.S
Hi Philip,
Thanks for ur reply. Is there any other way to do that. The actual
senario is this: I have, take, three records in a table. Actually the three
records a three seperate tasks. each records will have seperate dll name
along with the method to be executed. I will have to fetch the three
records(i.e components name) and make them execute at the same time. I dont
want to use thread. What can i do for it. Is there anyother way to do this.
thanks and regards,
Sivaraman.S
"Philip Rieck" wrote: dlls are loaded into their host process. So the short answer is no - you can't use the process class to "run" them.
If the dll contains COM objects, you can use interop to instantiate and call them - see http://msdn.microsoft.com/library/de...opTutorial.asp
If the dll contains exported functions (like a C/C++ dll), use p/invoke. see: http://msdn.microsoft.com/library/de...ketutorial.asp "Sivaraman.S" <Si********@discussions.microsoft.com> wrote in message news:BF**********************************@microsof t.com... Hi all,
I am using a process class. I am able to run or open external Executables(.exe) like notepad, .doc etc. Now i want to run a method present in a component(.dll). Can i create an instance for that component, and execute the method in seperate process using that process class? I would be greatful if anybody clears my doubt.
regards, Sivaraman.S
You could make your own executable that will run the task, then use the
process class to start that. But you can't use the process class to
directly start the function in the dll.
"Sivaraman.S" <Si********@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com... Hi Philip,
Thanks for ur reply. Is there any other way to do that. The actual senario is this: I have, take, three records in a table. Actually the three records a three seperate tasks. each records will have seperate dll name along with the method to be executed. I will have to fetch the three records(i.e components name) and make them execute at the same time. I dont want to use thread. What can i do for it. Is there anyother way to do this.
thanks and regards, Sivaraman.S
"Philip Rieck" wrote:
dlls are loaded into their host process. So the short answer is no - you can't use the process class to "run" them.
If the dll contains COM objects, you can use interop to instantiate and call them - see http://msdn.microsoft.com/library/de...opTutorial.asp
If the dll contains exported functions (like a C/C++ dll), use p/invoke. see: http://msdn.microsoft.com/library/de...ketutorial.asp "Sivaraman.S" <Si********@discussions.microsoft.com> wrote in message news:BF**********************************@microsof t.com... > Hi all, > > I am using a process class. I am able to run or open external > Executables(.exe) like notepad, .doc etc. Now i want to run a method > present > in a component(.dll). Can i create an instance for that component, and > execute the method in seperate process using that process class? I > would > be > greatful if anybody clears my doubt. > > regards, > Sivaraman.S This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: chris |
last post by:
What is a class ?? is it like a function ??
this has allways confused me as i am a newby to programming (since Basic in
the 80's)
thanks for any insight you can give
|
by: kaede |
last post by:
Hi all,
Consider the following code fragment:
// some data structure
class Data { ... }
// Container for the data structure
Class Container
{
|
by: Luca |
last post by:
I have a doubt: is it dangerous to create widgets out of the main thread, or
it is dangerous to call methods of a widgets out of the thread which created
it? or both?
TIA
Perry
|
by: Janus |
last post by:
Hell
This is a very basic question i know :O
Formerly I developed in VisualBasic 6.0 and when a project is started you can select different project types.
But what exactly is an ActiveX DLL? -...
|
by: trialproduct2004 |
last post by:
Hi all,
I am having slight confusion regarding memory management in .net.
Say suppose i have two application one is in C# and other is in
MFC(VC++).
Both of this application are using lots...
|
by: sonu |
last post by:
Hi all,
I have a problem regarding use of manualreset events in .net.
I have a developed a sample appliation in which entries from the
listview which I say is a queue for my processes.I want to...
|
by: Mikus Sleiners |
last post by:
Is there any way to enable exception throws in VS 2005, that occur during
binding operations?
I am upset that i can't see exceptions that are thrown during binding
operations. It's very hard to...
|
by: wnaveenkumar |
last post by:
package com.trewport.orderprocess.action;
import java.io.*;
import java.sql.*;
import java.util.*;
import java.util.Date;
import java.lang.Object;
import javax.servlet.*;
import...
|
by: Jeremy Banks |
last post by:
Hi. I wondered if anyone knew the rationale behind the naming of the
Popen class in the subprocess module. Popen sounds like the a suitable
name for a function that created a subprocess, but the...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |