Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   How to pass FILE * (http://www.velocityreviews.com/forums/t952812-how-to-pass-file.html)

xDog Walker 09-28-2012 09:55 PM

How to pass FILE *
 

The function I am trying to call wants a FILE *:

dlg_progressbox(const char *title,
const char *cprompt,
int height,
int width,
int pauseopt,
FILE *fp)

I can open the file to be referenced:

fp = os.fdopen(self.pipefds[0], 'r')

Every thing I've tried ends with ctypes raising a TypeError.

--
Yonder nor sorghum stenches shut ladle gulls stopper torque wet
strainers.

-------------------------------------------------------

--
Yonder nor sorghum stenches shut ladle gulls stopper torque wet
strainers.



All times are GMT. The time now is 12:34 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.