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

Using dll in VC++ 1.52

I need to compile a DLL with VC++1.52 ( 16 bit ). My project must link to
another 16 bit .dll ( PXENGWIN.DLL, paradox ). I can't find where to set this
link...it seems that only .lib files are supported, and in this case, I'd
need some tool to extract .lib file from a 16 bit .dll file ( I haven't now
the .lib file ).
Please help me, it is very important!
Thank you
Nov 17 '05 #1
7 1820
Alessandro Sbenaglia wrote:
I need to compile a DLL with VC++1.52 ( 16 bit ). My project must
link to another 16 bit .dll ( PXENGWIN.DLL, paradox ). I can't find
where to set this link...it seems that only .lib files are supported,
and in this case, I'd need some tool to extract .lib file from a 16
bit .dll file ( I haven't now the .lib file ).
Please help me, it is very important!
Thank you


Hi,

Wrong forum.

However, the answer is simple: use the implib tool to extract the export
library from the DLL.

--
Patrick Philippot - Microsoft MVP
MainSoft Consulting Services
www.mainsoft.fr
Nov 17 '05 #2
Thank You!

"Patrick Philippot" wrote:
Alessandro Sbenaglia wrote:
I need to compile a DLL with VC++1.52 ( 16 bit ). My project must
link to another 16 bit .dll ( PXENGWIN.DLL, paradox ). I can't find
where to set this link...it seems that only .lib files are supported,
and in this case, I'd need some tool to extract .lib file from a 16
bit .dll file ( I haven't now the .lib file ).
Please help me, it is very important!
Thank you


Hi,

Wrong forum.

However, the answer is simple: use the implib tool to extract the export
library from the DLL.

--
Patrick Philippot - Microsoft MVP
MainSoft Consulting Services
www.mainsoft.fr

Nov 17 '05 #3
Patrick Philippot wrote:
use the implib tool to extract the
export library from the DLL.


Oooooops! I meant "import libary".

--
Patrick Philippot - Microsoft MVP
MainSoft Consulting Services
www.mainsoft.fr
Nov 17 '05 #4
Ok.Another question...now I've used the ImpLib in the VC++1.52 bin path, I've
the PxEngWin.Lib. I've added the reference in the
Options->Project->Linker->libraries ( debug / release ) but the functions the
lib exports still aren't visible to my dll.
In Ex. in the lib ( using the UltraEdit to see the Hex ) I see the
'PXTBLCLOSE' method. I've written a function that is
BOOL WINAPI __export MyClose(DWORD TblHandle)
{
return PXTBLCLOSE(TblHandle);
}

(I've tried uppercase,lowercase etc)
When I build all the compiler raises the warning: warning C4013:'PxTblClose'
undefined; assuming extern returning int
and the linker:
error L2029: '_PxTblClose' : unresolved external
What this means?
"Patrick Philippot" wrote:
Patrick Philippot wrote:
use the implib tool to extract the
export library from the DLL.


Oooooops! I meant "import libary".

--
Patrick Philippot - Microsoft MVP
MainSoft Consulting Services
www.mainsoft.fr

Nov 17 '05 #5
I suggest microsoft.public.vc.language

--
Patrick Philippot - Microsoft MVP
MainSoft Consulting Services
www.mainsoft.fr
Nov 17 '05 #6
Alessandro Sbenaglia wrote:
Ok.Another question...now I've used the ImpLib in the VC++1.52 bin
path, I've the PxEngWin.Lib. I've added the reference in the
...


Alessandro,

As I already said, wrong forum. This group is dedicated to .Net.

Please post to one of the microsoft.public.vc.* groups. I'll try to
answer there.

--
Patrick Philippot - Microsoft MVP
MainSoft Consulting Services
www.mainsoft.fr
Nov 17 '05 #7
Sorry. I've just posted in vc.language. Help me plase!

"Patrick Philippot" wrote:
I suggest microsoft.public.vc.language

--
Patrick Philippot - Microsoft MVP
MainSoft Consulting Services
www.mainsoft.fr

Nov 17 '05 #8

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

Similar topics

34
by: Dennis | last post by:
I would like to dynamically allocate in a sub a 2 dimensional Array float *myarray = new float ; of course I get an error. How do you allocate a 2D array using the New operator? I...
11
by: Tatu Portin | last post by:
Have this kind of struct: typedef struct { char **user_comments; /* ... */ } vorbis_comment; /* prototype */ char * read_vorbis_string ( FILE *sc);
4
by: Anthony Gallagher | last post by:
I have a bunch of libraries compiled using VC++ 6.0, and I am trying to recompile one of our projects using VC++ .NET. I get all kind of linker errors (specially in STL calls). How do I get rid of...
11
by: Paul Tremblay | last post by:
Hi, I can't seem to locate the visual C++ (pre .NET) ng. This may be slight off topic here - please point me to the correct ng if it is. Without going into much detail (and repeating myself...
0
by: vishal.nagota | last post by:
I'm making a project on vc++ express I want to plot graphs, so using MSChart evrything goes fine, till i come to point where I've to include afxdisp.h by defualt i'm using Project properties...
4
by: Praveen Chandra | last post by:
Hi, I just wanted to put down the issue with more detailed information so that you can help us get to the right Microsoft resource for a solution! Here is the problem description... Our...
0
by: castratroi | last post by:
Hi, I have created a VC# dll using Visual Studio 2005, and I am using it in VC++ project(again created in Visual Studio 2005). For using this dll I simply add #using <mscorlib.dll> to the...
10
by: albert.neu | last post by:
To what extent does Microsoft Visual C++ also called: VC++ also called: Microsoft (R) 32-bit C/C++ Optimizing Compiler support C99? VC++ compiles either in C mode (which is def. *not*...
7
by: Rahul | last post by:
Hi Everyone, I have the following code, void f(int &) { printf("in f...\n"); } #ifdef __cplusplus
3
by: vrsathyan | last post by:
Hi.., While executing the following code in purifier.., std::vector<int> vecX; vecX.clear(); int iCount = 0; { int iVal;
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.