473,320 Members | 1,694 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,320 software developers and data experts.

Using DLLs in MS Visual C++ 6

Hi,

How to add dll file into Visual C++ 6.0 project? I've tried to do it by
Project -> Settings -> Link -> Object/library modules but when I try to
run it, there is a linker error:
"fatal error LNK1136: invalid or corrupt file"
The file is OK becouse it works fine in sample project. I have no idea
what's wrong.

Please help.
Mar 18 '06 #1
2 7966
Hi,
I think you have to add the import library there (the *.lib) file that goes
with the dll.

--
Regards, Ron AF Greve

http://moonlit.xs4all.nl

"Arek" <gu********@poczta.onet.pl> wrote in message
news:dv**********@news.onet.pl...
Hi,

How to add dll file into Visual C++ 6.0 project? I've tried to do it by
Project -> Settings -> Link -> Object/library modules but when I try to
run it, there is a linker error:
"fatal error LNK1136: invalid or corrupt file"
The file is OK becouse it works fine in sample project. I have no idea
what's wrong.

Please help.

Mar 18 '06 #2
Moonlit napisa³(a):
Hi,
I think you have to add the import library there (the *.lib) file that goes
with the dll.

Now it works :) Thanks. I thought I need *.h and *.dll files only but OK.
Mar 18 '06 #3

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

Similar topics

3
by: kjon | last post by:
Hi, I've developed a couple of DLL assemblies component to be used with my main exe application. Since I need to distribute all the exe and dlls to the user PC, how can I prevent the user, who...
6
by: Ernesto | last post by:
Hi everybody: I do not know if this is the right newsgroup for my issue, but I think that someone here knows about this issue: I am developing a set of libraries in C++ and I want to export my...
3
by: ARZ | last post by:
Hi How do I include DLLs based on a condition. Eg., there are 2 DLLs 'Oracle.dll' and 'SQL.dll'. I need to include ANYONE of the DLLs based on a value. Is it possile in C# Thanks in advance ARZ
0
by: Shiraz | last post by:
Hi I have a question regarding the functionality of merge modules. Since this relates to my previous queries, I'll just give you a brief background on the topic. I had to make an installer for...
1
by: Anna | last post by:
Hi, I'm using VS.NET 2003 on Win2000 (SP3). I am trying to import a dll developed in VC++6.0 into my VC.net project. I keep getting linker errors complaining about GetThisClass and...
2
by: | last post by:
I posted this question in the past, but have not yet received an answer. Here is the question. By default an ASP.NET app developed in Visual Studio compiles it's code to a DLL located in the...
3
by: John | last post by:
Hi What are the advantages of storing ones class project dlls in gac? How can one access these dlls? Thanks Regards
2
by: Dave | last post by:
Hi everyone. Okay, I'm trying to dynamically link some dlls and I'm having some problems. I originally had a project that seems to work, but for the life of me I can't repeat the results. I...
10
by: Ezmeralda | last post by:
Hello, I am looking for a good introductory documentation to DLLs. Can you provide me some links, please? Issues: - what different kind of DLLs do exist? COM, Win32, .Net class library, ......
0
by: =?Utf-8?B?UGFy?= | last post by:
Hi I have a question on how to import unmanaged DLLs into Visual Studio 2005, C# environment. The background is that an instrument we bought is controlled through a couple of DLL files. I...
1
isladogs
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...
0
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.