[Pyrex] Newbie question

Natsagdorj Shagdar natsag2000 at yahoo.com
Thu Dec 21 09:55:43 UTC 2006


Thank you Greg and Chris. It works :)

----- Original Message ----

Natsagdorj Shagdar wrote:

>     fToOpen = fopen(FileName, "rb")
>     if fToOpen is None:

That should be

       if fToOpen == NULL:

None is a Python object; it is *not* the same as a C null pointer.

>     print ReadFileIntoBuffer(FileName, plSize)
> 
> But it gives an error " cannot assign type 'unsigned long' to 'unsigned long (*)"

should be

       print ReadFileIntoBuffer(FileName, &plSize)

--
Greg




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Pyrex mailing list