Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

GTK ´úÂë´ÓLinuxÒÆÖ²µ½WindowsÐĵÃ

µ÷ÊÔ´úÂëµÄÄѶÈÊÇÊ״αàдÕâЩ´úÂëµÄÁ½±¶£¬Òò´Ë£¬Èç¹ûÄãÔÚ±àд´úÂëʱ¾ÍÒѾ­·¢»ÓÁËÈ«²¿µÄ´Ï
Ã÷²ÅÖÇ£¬ÄÇô°´ÕÕ³£Àí£¬Ä㽫ÎÞ·¨Æ¾½è×Ô¼ºµÄÖÇ»ÛÈ¥µ÷ÊÔÕâЩ´úÂë¡£


----Ìâ¼Ç
¿´µ½Õâ¾ä
»°ÓÐûÓÐÏë×áÈ˵ĸоõ£¿ÄãYÒ»¼¼ÊõÎÄÕ£¬Ð´µÃ¸úиÅÄî×÷ÎÄËƵġ£ºÇºÇ£¬ÈÈÁÒÇì×£²©¿Í·ÃÎÊÁ¿Í»ÆÆ1w´ó¹Ø¡£Ã¿
ÌìÓкܶàÊìϤµÄºÍÄ°ÉúµÄÅóÓѵ½·Ã£¬ÎÒÏëÄÇЩͨ¹ýËÑË÷ÒýÇæÀ´µ½ÕâÀïµÄÅóÓÑ£¬ÎÒµÄÎÄÕÂÓ¦¸Ã½â¾öÁËÄãµÄһЩÎÊÌâ°É¡£
ÎÒµÄÏë·¨¾ÍÊÇ·ÖÏí¼¼ÊõÐĵ㬼õÉÙ²»±ØÒªµÄÂé·³ºÍÖظ´ÀͶ¯Ê±¼ä¡£

ÎҵijÌÐòÔÚLinuxϵĽçÃæ²î²»¶àÍê³ÉÁË£¬Ïë´ï³É֮ǰ¿çƽ̨µÄÔ¸Íû£¬Ïë°ÑËüÒÆÖ²µ½windows
ÏÂ
GTK
+
¿ª·¢
»·¾³ÔÚwin32&VC++6 IDE»·¾³ÏµĴ
1.
µ½ http://gladewin32.sourceforge.net/
ÏÂÔز¢°²×°ÒÔÏÂÎļþ
1)
¡¢
Gtk
+/Win32 Runtime Environment Installer
2)¡¢
Gtk
+/Win32
Development Environment
ÕâÊDZðÈËÒѾ­±àÒëºÃµÄGTK
,Ò»¸öÊÇruntime,Ö÷ÒªÊÇ
.dll£¬ÁíÒ»¸öÊÇwin32¿ª·¢
ÓõÄÎļþ¼¯¡£Ö÷ÒªÊÇ.hºÍ.libÎļþ¡£
2.
²âÊÔ£º
ÔÚVC++6Öн¨Á¢Ò»
¸ö¹¤³Ì¡£ÔÚproject settingµÄlinkÀïÃ棬ȥµôÄÇЩ.libÎļþ£¬¼ÓÈëÈçÏ£º

glib-2.0.lib gtk
-win32-2.0.lib
gdk-win32-2.0.lib gobject-2.0.lib gdk_pixbuf-2.0.lib gthread-2.0.lib
gmodule-2.0.lib pango-1.0.lib intl.lib
¡£
¶øºó£¬ÔÚ.cppÎļþ
ÀïÃæÕ³ÌùÈçÏ´úÂ룺
#include
<gtk
/gtk
.h>
int main( int argc,char *argv[] ){
Gtk
Widget *window;
gtk
_init (&argc, &argv);
window = gtk
_window_new (GTK
_WINDOW_TOPLEVEL);
gtk
_widget_show (window);
gtk
_main ();
return 0;
}
±àÒ룬Èç¹ûÓÐÌáʾ£¬ÔÚproject settingµÄ
c/c++ÀïÃæɾ³ýһЩstdafx.hµÈ×ÖÑùµÄ²ÎÊý¡£±ØҪʱ²é¿´Ò»ÏÂcl.exe±àÒëÆ÷µÄ°ïÖú


°´ÕÕÉÏÃæµÄ½éÉÜ£¬»ù±¾¿ÉÒÔÎÞ´íͨ¹ýhello world¡£¿ÉÊÇ°ÑÎÒÔÚLinuxϵĴúÂëÕ´µ½VCÉÏ£¬ÎÊÌâ¾ÍÀ´ÁË

Ê×ÏÈÊÇ×Ö·û¼¯µÄÎÊÌ⣬UTF ºÍ GBK£¬µ¼ÖÂÁ˶àÉÙÂé·³ºÍ°²È«Â©¶´¡£
ÏÈÓÃwordÒÔUTF-8¸ñʽ´ò¿ªLinuxϵÄÔ´´úÂ룬մµ½vcÀ
ÔËÐÐʱ±¨´í Pango-WARNING **: Invalid UTF-8 string passed to
pango_layo


Ïà¹ØÎĵµ£º

LinuxÄÚ´æ¹ÜÀí(zt)


Linux
ÄÚ´æ¹ÜÀí
ÕªÒª
£º±¾ÕÂÊ×ÏÈÒÔÓ¦ÓóÌÐò¿ª·¢ÕߵĽǶÈÉóÊÓ
Linux
µÄ½ø³ÌÄÚ´æ¹ÜÀí£¬ÔÚ´Ë»ù´¡ÉÏÖð²½ÉîÈëµ½ÄÚºËÖÐÌÖÂÛϵͳÎïÀíÄÚ´æ¹ÜÀíºÍÄÚºËÄÚ´æµÄʹÓ÷½·¨¡£Á¦Çó´ÓÍâµ½ÄÚ¡¢Ë®µ½Çþ³ÉµØÒýµ¼ÍøÓÑ·ÖÎö
Linux
µÄÄÚ´æ¹ÜÀíÓëʹÓá£ÔÚ±¾ÕÂ×îºó£¬ÎÒÃǸø³öÒ»¸öÄÚ´æÓ³ÉäµÄʵÀý£¬°ïÖúÍøÓÑÃÇÀí½â
ÄÚºËÄÚ´æ¹ÜÀíÓëÓû§ÄÚ´æ¹ÜÀíÖ ......

ÈçºÎ±àÒëLinuxÄÚºË

Äںˣ¬ÊÇÒ»¸ö²Ù×÷ϵͳµÄºËÐÄ¡£Ëü¸ºÔð¹ÜÀíϵͳµÄ½ø³Ì¡¢ÄÚ´æ¡¢É豸Çý¶¯³ÌÐò¡¢ÎļþºÍÍøÂçϵͳ£¬¾ö¶¨×ÅϵͳµÄÐÔÄܺÍÎȶ¨ÐÔ¡£Linux×÷Ϊһ¸ö×ÔÓÉÈí¼þ£¬ÔÚ¹ã
´ó°®ºÃÕßµÄÖ§³ÖÏ£¬Äں˰汾²»¶Ï¸üС£ÐµÄÄÚºËÐÞ¶©Á˾ÉÄں˵Äbug£¬²¢Ôö¼ÓÁËÐí¶àеÄÌØÐÔ¡£Èç¹ûÓû§ÏëҪʹÓÃÕâЩÐÂÌØÐÔ£¬»òÏë¸ù¾Ý×Ô¼ºµÄϵͳ¶ÈÉí¶¨ÖÆÒ»
¸ö¸ü¸ßЧ£¬¸üÎȶ¨ ......

LinuxϵÄAdobe AIR¿ª·¢

Ç°ÃæÒ²ÓнéÉܹýAdobe AIR£¬²»¹ýÊÇWindowsƽ̨£¬×î½üÓÐһʷ³ÐÄ£ºLinuxQQÌ«À¬»ø£¬wine qqÌ«Âý£¬web qq²»·½±ã£¬ÄÇÔõô°ìÄØ£¿
ÎÒÏëµ½ÁËair¡£
Ê×Ïȵ±È»ÒªÏÂÔØsdkºÍruntime£ºhttp://www.adobe.com/cn/products/air/tools/sdk/
×îÖØÒªµÄÊÇÏÈÏÂÔØruntime£¬ÔÚÍøÕ¾µÄ×îµ×²¿Óиö
Á¢¼´ÏÂÔØ Adobe AIR
ÕâÑùµÄÁ´½Ó£¬µã½øÈ¥¾ÍÊÇÏÂÔØÁ ......

[ת]LinuxÖж¨Ê±Æ÷µÄË㷨ʵÏÖ

LinuxÖж¨Ê±Æ÷µÄË㷨ʵÏÖ
¶¨Ê±Æ÷µÄ×÷ÓÃ
       ¶¨Ê±Æ÷ÔÚ²Ù×÷ϵͳÖÐÆðµ½Á˾Ù×ãÇáÖصÄ×÷Óá£ÔÚ×öIO²Ù×÷ʱ£¬ÐèÒª³¬Ê±»úÖƱ£Ö¤ÈÎÎñ²»´¦ÓÚÎÞÐÝÖ¹µÄµÈ´ý״̬£»ÔÚÑÓʱ´¦Àíʱ£¬¿ÉÒÔͨ¹ý“Äֱ픽øÐÐÏà¶Ô×¼µãµÄ»½ÐѲÙ×÷¡£ÔÚ¶àÈÎÎñ²Ù×÷ϵͳÖУ¬¶¨Ê±Æ÷ÊÇÒ»Öַdz£³£ÓõÄ×ÊÔ´¡£
¶ÔÓÚÊìϤӲ¼þ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ