Solved

DLLEXPORT name decoration and varargs

Posted on 1999-01-18
2
916 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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 …
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

687 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