Re: writing a php-gtk extension
| From: | xxoes | Date: | Sun, 29 Oct 2006 00:41:51 +0000 |
| Subject: | Re: writing a php-gtk extension | ||
| References: | 1 2 3 4 5 6 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3507@lists.php.net to get a copy of this message | ||
code example:
#include "php_gtk.h"
#include "php_gtk_api.h"
#if HAVE_PHP_GTK
#include "gen_gdk.h"
PHP_GTK_EXPORT_CE(gtkcl_ce);
PHP_GTK_EXPORT_CE(gtkclimageset_ce);
static PHP_METHOD(GtkCL, __construct)
{
zval *drawable;
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "N", &drawable, gdkdrawable_ce)) {
PHPG_THROW_CONSTRUCT_EXCEPTION(GtkCL);} } it is a extension not a gen file from gtk+! i think its a linker problem/ or function call can give me the gdkdrawable_ce! i use win32 with vc7. sorry for my english, is not very well. mfg xxoes Steph Fox schrieb:
I have try it, it dosn't work!Where are you including it?Steph Fox schrieb:__________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.comthat not a include problem! thats a link problem.Yes, and if you don't include the file the link doesn't happen! Anant is correct. - Stephor a function can give me gdkdrawable_ce.mfg xxoes -- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpbut how can i get the gdkdrawable_ce? compiler say's unresolved symbol __imp__gdkdrawable_ce. i can only use gobject_ce not other *_ce.Try including php_gtk_api.h - Anant