?
Solved

DLLEXPORT name decoration and varargs

Posted on 1999-01-18
2
Medium Priority
?
918 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 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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 clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

741 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