473,378 Members | 1,426 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 create a driver for DLL file in C

Can someone please show me a small example of a driver which can access a DLL written in C.

The driver should be in C as well. PLEASE HELP!
Sep 29 '08 #1
6 1884
Banfa
9,065 Expert Mod 8TB
You don't need a driver to access a DLL either statically link to it at link time (using the DLLs associated lib file) or dynamically link to it at run time by calling LoadLibrary and GetProcAddress.
Sep 29 '08 #2
Can you please give me an example of how to use LoadLibrary and GetAddressProc in C. I have been searching on the web and no luck.
Sep 29 '08 #3
Banfa
9,065 Expert Mod 8TB
If you were to Google LoadLibrary and follow the first link (to the MSDN page) and then read that page about LoadLibrary about half way down the page you would find a link to an example.
Sep 29 '08 #4
So, I was complicating my search

"C" dll loadlibrary getaddressproc -c++

instead, all i had to type was "LoadLibrary"

Thanks, Ill check it out.
Sep 29 '08 #5
Banfa
9,065 Expert Mod 8TB
When computing it pays to remember the adage "Keep It Simple" :D
Sep 29 '08 #6
Thanks bud, I got it to work.

Cheers,
Sevak.

;-)
Sep 29 '08 #7

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

Similar topics

9
by: Albretch | last post by:
.. I am trying to create a database in a MS Access DB via JDBC drivers. I have tried both sun.jdbc.odbc.JdbcOdbcDriver and ids.sql.IDSDriver From some reason both drivers Exceptions tell me...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
6
by: Tony Liu | last post by:
Hi, is it possible to create a virtual drive? For instance, let's say I want to create a virtual drive call "Z", and that drive should be visible in the My Computer folder and works like a...
1
by: Iwan | last post by:
I have a speciffic task of which i do not know how to start on. The task is to create a virtual drive (like a ram drive og deamon tools). Through this drive files are to be saved and loaded like...
3
by: Tull Clancey | last post by:
Hi all. I've been searching all over the place for a bit of VB Net code that will create a DSN for an Access database. I've found examples of creating connections for SQL, but not Access. ...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
3
by: Bob | last post by:
I need to create a program that is essentially a special fax sender using multi line Dialogic cards. I figure that the best way to do this so that it can be used from any app is to create someting...
4
by: Abdhul Saleem | last post by:
Hi, I am recieving error ActiveX component can't create object in the following line in the asp page. set ExcelApp = CreateObject("Excel.Application") Previously this code was working fine....
3
by: m.smith_1999 | last post by:
Hello, I'm a student software developer. As a part of an excerise I'm doing I'm trying to build a program to create "mount files" and mount them. Something like Sarah Dean's OTFE but really...
40
by: Angus | last post by:
Hello I am writing a library which will write data to a user defined callback function. The function the user of my library will supply is: int (*callbackfunction)(const char*); In my...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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.