Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

DLLEXPORT name decoration and varargs

Posted on 1999-01-18
2
Medium Priority
?
922 Views
Last Modified: 2008-03-10
What is the name decoration applied to a function that such as:

#define DLLEXPORT __declspec(dllexport)
#define STDCALL __stdcall
typedef   unsigned char     text;
typedef   unsigned short    ub2;
typedef            short    sb2;
typedef   unsigned long     ub4;
typedef            long     sb4;

sb4 DLLEXPORT STDCALL hdSetRow(HOSTDATA *hd,ub4 row,ub4 numargs,...)
sb4 DLLEXPORT STDCALL hdSetCol(HOSTDATA *hd,ub4 row,ub4 col,void *buf,ub4 bloblen)

I'm trying to create a .def file with linker statements such as:

LIBRARY fmloci
EXPORTS hdSetRow = _hdSetRow   <-- What goes here?
EXPORTS hdSetCol = _hdSetCol@20
0
Comment
Question by:zebada
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 400 total points
ID: 1184488
Standard calls do not support variable arguments. You will need to either change your hdSetRow to not use variable arguments, or to use __cdecl.
0
 
LVL 6

Author Comment

by:zebada
ID: 1184489
Thanks a bunch,
(That was quick, less than five minutes)
I'm posting another question....

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question