Importing CDECL functions?

Windows specific forum
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Importing CDECL functions?

Post by Karbon »

This started over here : viewtopic.php?t=6578

.. but I've moved it here because the questions I have are windows specific and tinman has to be tired of answering me! :-)

Brief summary :

I'm super new to windows programming and PB (not a news flash!).

I'm trying to get libcurl to play nice with PB. I'm using the mingw compiled library from the libcurl homepage. I was in the middle of trying to write out a description for all the functions so I could import them and eliminate the need for Library (CallCFunction etc) stuff. I ran into trying to give a number of arguments for this function in libcurl :

Code: Select all

CURLFORMcode curl_formadd(struct  HttpPost  **  firstitem,
       struct HttpPost ** lastitem, ...);
... that has a variable number of arguments.

So is it possible to import CDECL functions (if that's indeed what this is)? If so, how? Also, how do you explain the number of arguments in the above function in a .pbl file?

One last thought, tinman did point out that there is an import library, would using that make more sense here?

Thanks all!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net