473,378 Members | 1,207 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

how to use dll at Runtime

I have dll in my system , bt how 2 use it runtime

means ,,,,,we r create the Referece 2 dll in project & use the functions with in that dll

BUT i want 2 Use the dll .........( dynamically ) means the DLL WILL GET ATTACH 2 RUNNING PROCESS ( EXE ) ............
help me it is IMP FOR ME
Apr 5 '08 #1
4 1103
pootle
68
I have dll in my system , bt how 2 use it runtime

means ,,,,,we r create the Referece 2 dll in project & use the functions with in that dll

BUT i want 2 Use the dll .........( dynamically ) means the DLL WILL GET ATTACH 2 RUNNING PROCESS ( EXE ) ............
help me it is IMP FOR ME
Hi samonnet

It is a bit hard to understand what you want. Perhaps if you describe your situation a bit more clearly...
Apr 5 '08 #2
What iam understanding that u want to load the dll dynimaclly (i.e. on runtime) for that u can use the Reflection to load the dll and its function on run time.

Here is sample code:

using System.Reflection;


Assembly a = Assembly.Load("assembly.dll"); // Dll Name
Type t = a.GetType("namespace.classname"); //Class Name
object obj = Activator.CreateInstance(t);
MethodInfo mi = t.GetMethod("foo"); // Function Name
mi.Invoke(obj, Parameters); //Invoke methods
Apr 7 '08 #3
NitinSawant
270 100+
thnx bro i understood what u hav told

but can u pls tell me how to import and use "user32.dll" located in "C:\windows\System32"

thnx in advance
Apr 7 '08 #4
Simple Dear, use

Assembly a = Assembly.Load("C:\windows\System32\user32.dll"); // Dll Name


and call the class name in user32.dll and its function for operation
Apr 7 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Lauren Wilson | last post by:
Ok I have searched the MS website for info on this. I am totally confused. If I want to deploy an Access 2003 app and allow my users to run it using Access 2003 Runtime, where do I get the...
10
by: MLH | last post by:
I am concerned. I have recently moved to A97 from Access 2.0 where I rolled out runtime apps with the ADT. Now, the Office Pro Developer's Edition with Access 97 is what I'm using. I find some...
17
by: Owen Jenkins | last post by:
I have an Access application that is being used by 150+ clients. I develop in 97, convert to 2000 and distribute as a 97 or 2000 mde, or 97 runtime. This limits me to 97 functions. My clients may...
16
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
28
by: larpup | last post by:
I have computers setup with A97 runtime with mde's. Work perfectly. I've written an app in 2003 and purchased the Developer extensions. When I load A2003 runtime with my app on a computer that...
3
by: =?Utf-8?B?R3JhaGFt?= | last post by:
I've added 2 tracking services to the wf runtime; one is the standard SqlTrackingService: trackingService = new SqlTrackingService(<trackingConnectionString>); <workflow...
17
by: Neil | last post by:
A client of mine likes some of the new bells and whistles in Access 2007, and is thinking about converting our A03 format MDB to an A07 format file. However, while some of the users have A07, many...
6
by: SMcK | last post by:
I have a PDA-based (Syware Visual CE) database which I need to sync to an Access database. The Access database contains three tables: 1 is the data itself, 2 is a linked table that prefills...
7
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
2
by: mohi | last post by:
hello every one , this may be very basic question and may be a bit out of topic ,, can anyone please tell me what are the functions of runtime library and are they the one which create the...
1
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.