ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ctypes-users
ctypes-users
[ctypes-users] how to test null pointer to struct return?
by Marcus Goldfish other posts by this author
Nov 16 2005 2:47PM messages near this date
Re: [ctypes-users] import urllib kills callback, but urllib2 doesn't!? | Re: [ctypes-users] how to test null pointer to struct return?
I need some help with a ctypes POINTER question. My python module
calls a C-dll and receives a pointer to a structure. A (c-code) null pointer
indicates no message. How do I test this in ctypes?
 Thanks!
Marcus
 -- code snippet
pMsg = mydll.GetMessage() # pointer to a struct conatining message info
 # if pMsg == null then no message -->  how to test this?
# else
# process message
Attachments:
unknown1
unknown2

Thread:
Marcus Goldfish
Marcus Goldfish

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved