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

VC++ 2003 Does Not Support DEF files -- Correct?

I just wanted to confirm this for WIN32 projects in VC++ 2003.

It looks like you need to reference functions in 3rd party DLL's (C-based)
by building a LIB file as described here:

http://support.microsoft.com/default...;EN-US;q131313

Am I wrong in my assumption?

TIA

Harry
Nov 17 '05 #1
2 1215
"Harry Whitehouse" <ha***@envmgr.com> wrote in message
news:uR**************@tk2msftngp13.phx.gbl...
I just wanted to confirm this for WIN32 projects in VC++ 2003.

It looks like you need to reference functions in 3rd party DLL's (C-based)
by building a LIB file as described here:

http://support.microsoft.com/default...;EN-US;q131313

Am I wrong in my assumption?


Well, that's not strictly true.

Certainly, when developing unmanaged components that is the easiest way to
go. But, there is nothing to stop you from calling the target functions
through a pointer by means of an explicit load of the 3rd party DLL with
LoadLibrary(), and finding the entry points of the functions with
GetProcAddress(), and calling the functions through the returned pointer,
and finally finishing some time later with FreeLibrary(). This can get
tedious in a hurry.

If you are developing managed components, you can use the services provide
by Platform Invoke. I'd explain, but I don't think that's what you are up
to. If so, just holler.

Regards,
Will

Nov 17 '05 #2

Harry Whitehouse wrote:
I just wanted to confirm this for WIN32 projects in VC++ 2003.

It looks like you need to reference functions in 3rd party DLL's (C-based) by building a LIB file as described here:

http://support.microsoft.com/default...;EN-US;q131313

VC++ 2003 does support def files as well as previous versions, , but
def files are usually used when building a DLL.
What is described in this KB is a "hack" to get a LIB file when you
have only a DLL. This hack will work in VC2003 as well as in previous
versiosn.
The usual way to use a DLL is :
- if you've got .h and .lib, use them.
- Elsewhere, use LoadLibrary/GetProcAddress.

Please describe the context of your problem for a more meaningfull
answer.

Arnaud
MVP - VC

Nov 17 '05 #3

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

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
5
by: Hari | last post by:
Guys please help me to solve this strange problem what Iam getting as follows.. Trying to instantiate a global instance of a template class as follows :- when i build this code with debug and...
4
by: ultranet | last post by:
I have cruised around http://msdn.microsoft.com/visualc/ and the rest of the site, and i am not able to find a single C++ or VC++ certification exam that will be available after June 30, 2004. I...
7
by: ultranet | last post by:
I have cruised around http://msdn.microsoft.com/visualc/ and the rest of the site, and i am not able to find a single C++ or VC++ certification exam that will be available after June 30, 2004. I...
4
by: Alex | last post by:
Hi there I'm switching from VC++ 6.0 to VC++ .NET 2003. Since there is no stand-alone version of VC++ .NET 2003 Pro, I went and purchased the Standard version, which does not have an...
2
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project...
5
by: JesseJr | last post by:
I recently installed Microsoft's Visual C++ 6.0 Enterprise Edition(1985-1999) on my antiquated AMD K-6 2/300 with 160 Mb of SDRAM (PC66) with a 120 Gb 8mb mem Seagate Hard Drive and an NVidia...
0
by: Ganapathy | last post by:
I have COM dll code written in VC 6.0. When i tried compiling this code in VC 7, The MIDL cmpiler gets called twice. i.e. it initially compiles fully & immediately a line - 64 bit processing'...
3
by: Old Codger | last post by:
Thanks for this Oleg, nice try! Unfortunately the solution you gave refers to .NET 2002 and I am using .NET 2003. In the article it says: "This bug was corrected in Microsoft Visual C++ .NET...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...

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.