473,785 Members | 2,374 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing existing c++ files

3 New Member
Hi all,

I have few header, obj and dlls of c++ program.

Now i need to instantiate a class and access its objects.

though i could include the header, i am not able to link to the dlls..

How do specify a link between obj,header and dll files. i dont have the source code.

Please let me know in terms of either vc++ or borland..

Any helps is appreciated. thanks.
Apr 26 '07 #1
1 1297
weaknessforcats
9,208 Recognized Expert Moderator Expert
Yiou #include the dll header in your source code.

Then to use the dll you must:
1) load the dll
2) assign the address of the desired function from the dll to a function pointer
3) call the function by using the function pointer
4) unload the dll

For Winbdows the calls are:

LoadLibrary
GetProcAddress
FreeLibrary
Apr 26 '07 #2

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

Similar topics

36
16419
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC path with a FSO: Set myFile = Server.CreateObject("Scripting.FileSystemObject").GetFile("\\server2\myshare\myfile.txt") this fails with an Permission Denied. here's the deal:
0
1061
by: Edward Diener | last post by:
Scenario: base class in one assembly, derived class in another assembly, __event in base class, testing if event has any handlers in derived class with 'if (OnTestEvent) { //etc. }'. Result: LINK : error LNK2020: unresolved token (0A000004) OnTestEvent LINK : fatal error LNK1120: 1 unresolved externals Reproduce:
1
1674
by: Robert Jones | last post by:
I have an asp.net web site that I want to develop further, but I don't have the Visual Studio project files for the site. I have all the source files for the site (aspx, cs etc) and the site itself is running quite happily on my development web server, however within Visual Studio the only way to add an existing file has two problems: 1. You can only add one file at a time 2. You don't appear to be able to navigate into subfolders...
1
1324
by: readytoride39 | last post by:
First of all I apologize in advance if this topic does not exactly fit but if someone could still address it I would appreciate it. My boss tasked me to take out all references of this third party software ie functions, headers, libs and put them in a dll. I recently moved the main functions, the libs, and the includes out of the exe and into the dll. I am using loadlibrary to load the dll into memory and I am using getprocaddress to...
0
1079
by: Raffi Basmajian | last post by:
We are developing .net C# clients for our internal company users. We are trying to minimize installation and management of EXE and DLL's on individual user PC's since it creates additional work each time any of those files change, so we choose to use a central server approach. We don't physically deploy exe files to each users PC, rather, we deploy new versions of an exe to a centralized server and place shortcut links on user' desktop...
2
1409
by: ctrl.undo | last post by:
Hi, I'm not sure if this is possible, but I'm looking for a way to access another IE browser window using JavaScript (assuming the two browser windows are running in the same instance). The purpose of this task is so that if a user hits ctrl+n in IE, the new window is "aware" of the other instance. Thanks in advance,
4
9933
by: vancehome | last post by:
I have a series of macros running everynight creating tons of excel files (using transfer spreadsheet). I then have another program that zips them up and emails them all over the place. It then deletes the originals. I would like to move away from the emailing and begin pushing the files out directly via the WAN. The problem is I need to DELETE the existing excel files before they are recreated everynight. There seems to be some glitch that...
6
4180
by: Adam McCormack | last post by:
Good morning, I hope I'm not repeating a post, but I did try to search for the topic before asking. I am trying to resolve an issue that has come up as a result of planned migration from a single server solution to a distributed solution. A site (and interrelated batch processing scripts) has been running on a single server (IIS 6, win 2003) to two machines both are IIS 6, win 2003, the machines are as follows: box1: Webserver box2:...
29
1687
by: RageARC | last post by:
I have the following code: index.php: class main_class { public $database = new DAL; public $html = new HTML; }
0
9483
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10157
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8982
agi2029
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...
0
5386
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4055
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
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2887
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 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...

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.