View Single Post
Re: (noob) calling a function in a DLL
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: (noob) calling a function in a DLL - 10-02-2004

meh, I think I've found it

I must export the function this way instead:
Code:
#define DLLEXPORT extern "C" __declspec (dllexport)
 
DLLEXPORT void InputPluginAPI (char *input_pathname, block_t *output_blocks)
{
   // this function reads and translate the data from a CSV file into block structures.
 
   // [snip] code follows...
}
silly me...



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote