[Pyrex] Newbie question
Chris Perkins
chrisperkins99 at gmail.com
Fri Dec 15 15:09:28 UTC 2006
On 12/15/06, Natsagdorj Shagdar <natsag2000 at yahoo.com> wrote:
> def ReadFile(self, FileName):
> cdef unsigned long plSize
> print ReadFileIntoBuffer(FileName, plSize)
>
> But it gives an error " cannot assign type 'unsigned long' to 'unsigned long (*)"
>
> What did I wrong ? Any help most appreciated.
Try this:
- print ReadFileIntoBuffer(FileName, plSize)
+ print ReadFileIntoBuffer(FileName, &plSize)
Chris Perkins
More information about the Pyrex
mailing list