Symbian C/S »úÖÆ·ÖÎö
ÒÔÏ·ÖÎö»ùÓÚ£º
Developer Platform :S60 3rd Edition, Feature Pack 2 SDK
Operating System :Symbian OS v9.3
Ò»£¬ÎªÊ²Ã´ÒªÊ¹ÓÃClient/Server¼Ü¹¹
ÔÚSymibian OSÖÐËùÓеÄÒì²½·þÎñ¶¼ÊÇServerͨ¹ýC/S¼Ü¹¹À´ÊµÏֵġ£ClientÊÇÀûÓÃServerÌṩµÄÌض¨·þÎñµÄ³ÌÐò£¬Server½ÓÊÜÀ´ÖÁClientµÄÇëÇóÏûÏ¢²¢Í¬²½»òÒì²½µÄ´¦ÀíËûÃÇ¡£C/S¼Ü¹¹ÓÐÈçϵÄÓŵ㣺
1£¬¿ÉÀ©Õ¹ÐÔ
2£¬ÓÐЧÐÔ£ºÏàͬµÄServer¿ÉÒÔ·þÎñ¶à¸öClient¡£
3£¬°²È«ÐÔ£ºServerºÍClient´æÔÚÓÚµ¥¶ÀµÄ½ø³ÌÖУ¬²¢ÇÒͨ¹ýÏûÏ¢´«µÝ½øÐÐͨÐÅ¡£¾ßÓдíÎóÐÐΪClient²»»áʹËûµÄServer±ÀÀ££¨µ«ÊÇ£¬Server¿ÉÒÔͨ¹ý¿Í»§Ï̵߳ľä±úÀ´ÊǾßÓдíÎóÐÐΪµÄClient²úÉúÑÏÖØ´íÎ󣩡£
4£¬Òì²½ÐÔ£ºÔÚ·þÎñÆ÷Íê³ÉÇëÇóµÄʱºòʹÓÃAO»úÖÆÀ´Í¨ÖªËûµÄClient¡£Í¨¹ýAOÀ´¹ÒÆðÏ̶߳ø²»ÊÇÂÖѯÇëÇóµÄ״̬£¬SymbianOS¼õÉÙÁË´¦Àí¸ÃÇëÇóµÄ´¦ÀíÆ÷ÖÜÆÚ£¬´Ó¶ø½ÚÔ¼Á˵çÔ´£¬Õâ¶ÔÓÚÒƶ¯É豸À´ËµÊǷdz£ÖØÒªµÄ¡£
¶þ£¬Client/Server¼Ü¹¹µÄ´¦ÀíÁ÷³Ì
ClinetºÍServer´¦ÓÚ²»Í¬µÄ½ø³ÌÖУ¬ËûÃÇÎÞ·¨·ÃÎʱ˴˵ÄÐéµØÖ·¿Õ¼ä£¬ËùÒÔËûÃÇʹÓÃÏûÏ¢´«µÝÐÒéÀ´Í¨ÐÅ£¬ÕâÖÖͨÐŵÄÇþµÀ¾Í³ÆΪ»á»°¡£»á»°ÓÉÄں˴´½¨£¬Í¬Ê±Äں˻¹ÔÚËùÓеÄClient/ServerͨÐÅÖг䵱ý½é¡£
·þ Îñ£¬ÌرðÊÇϵͳÌṩµÄ·þÎñ£¬±ÈÈ磺Îļþ·þÎñ£¬´°¿Ú·þÎñºÍ×ÖÌåºÍλͼ·þÎñµÈ¶¼ÊÇÔÚϵͳÆô¶¯µÄʱºò¾ÍÆô¶¯ÁË¡£µ±È»Èç¹ûÊÇ×Ô¼º×öµÄserver¿ÉÒÔÔÚÐèÒªµÄʱ ºò£¬¼´µ±ÓÐclient·¢³öÇëÇóµÄʱºòÔÙÆô¶¯¡£È»ºó·þÎñÆ÷×èÈûÔÚij¸öµãÉÏ£¬µÈ´ýclientÇëÇóµÄµ½À´¡£ÔÚClient·¢³öÒ»¸öÇëÇóºó£¬·þÎñÆ÷»ánewÒ» ¸ö×ӻỰÀ´´¦ÀíÕâ¸öclientµÄÇëÇó£¬È»ºó×Ô¼ºÓÖ¼ÌÐø×èÈûÔÚ¼àÌýÇëÇóµÄµãÉÏ£¬ÒÔÂú×ãÆäËûClientµÄÇëÇó¡£Ã¿¸öClientºÍServerµÄºóÐø½»»¥ ¶¼ÊÇͨ¹ýÁ¬½ÓServerʱ´´½¨µÄSessionÀ´Íê³ÉµÄ¡£
Èý£¬RÀà½éÉÜ
C/S¼Ü¹¹Ãâ²»ÁËҪʹÓÃRÀ࣬ÄÇôʲôÊÇRÀàÄØ£¿ÕâÀïµÄ"R"ÊÇResourceµÄµÚÒ»¸ö×Öĸ£¬ÊÇ×ÊÔ´µÄÒâ˼¡£
1£¬¼ò½é
¾ßÓÐ"R"ǰ׺µÄÀà±íʾij¸ö×ÊÔ´µÄ¿Í»§¶Ë¾ä±ú¡£Ó¦ÓóÌÐòʵ¼ÊÉϲ¢²»ÓµÓÐ×ÊÔ´£¬×ÊÔ´ÓÉÉ豸ÉÏÒ»¸öSymbian OS ·þÎñÆ÷ËùÓµÓУ¬·þÎñÆ÷¹ÜÀí×ÊÔ´µÄʹÓ᣿ͻ§¿ÉÒÔʹÓÃÕâЩ¾ä±ú·ÃÎÊ·þÎñÆ÷¹ÜÀíµÄ×ÊÔ´£¬²¢ÇëÇóʹÓÃËüµÄ¹¦ÄÜ¡£
R ÀàûÓÐÈκι«¹²µÄ»ùÀ࣬ÓÐЩ·Ö¿éµÄÅÉϵÀ࣬±ÈÈ磬ÓÐЩÀàÊÇ´ÓRHandleBaseÅÉÉú—RFs£¬¶øÓеÄʲô¶¼²»ÊÇ—RWindowµÈ¡£Ò»°ãÀ´Ëµ£¬RÀàÊÇ ÔÚÕ»ÉÏʵÀý»¯»òÊÇǶÌ×ÔÚCÀàÖУ¬È»ºóͨ¹ýijÖÖ·½Ê½´ò¿ªËûÃÇ£¨Í¨³£Í¨¹ýÒ»¸ö·½·¨µ÷ÓÃÀ´´ò¿ª£¬ÀýÈçµ÷ÓÃOpen()»òConnect()£©¡£½áÊøʹÓÃËüÃÇʱ£¬ ÓбØҪʹ
Ïà¹ØÎĵµ£º
1.Ö¸ÕëºÍÒýÓÃÓÐʲô·Ö±ð£»Èç¹û´«ÒýÓñȴ«Ö¸Õ밲ȫ£¬ÎªÊ²Ã´£¿Èç¹ûÎÒʹÓó£Á¿Ö¸ÕëÄѵÀ²»ÐÐÂð£¿
(1) ÒýÓÃÔÚ´´½¨µÄͬʱ±ØÐë³õʼ»¯£¬¼´ÒýÓõ½Ò»¸öÓÐЧµÄ¶ÔÏ󣻶øÖ¸ÕëÔÚ¶¨ÒåµÄʱºò²»±Ø³õʼ»¯£¬¿ÉÒÔÔÚ¶¨ÒåºóÃæµÄÈκεط½ÖØи³Öµ£®
(2) ²»´æÔڣΣգ̣ÌÒýÓã¬ÒýÓÃ±Ø ......
ÎÊ£º
ÔÚ¹¹Ôì»òÎö¹¹ÆÚ¼äÄÜʹÓÃÐ麯ÊýÂð£¿
´ð£º
ÄÜ£¬µ«×îºÃ²»ÒªÕâô×ö¡£
Ç°Á½ÌìÔÚ¹«Ë¾ÓÎÏ·ÏîÄ¿¿ª·¢¹ý³ÌÖУ¬ÔÚÎö¹¹º¯ÊýÖв»Ð¡Ðĵ÷ÓÃÁËÐ麯Êý£¬¶øÇÒ»¹ÊǸö´¿Ð麯Êý¡£
ÒòΪһֱÊÇÔÚRleaseģʽϹ¤×÷µÄ£¬µ¼ÖÂϵͳֱ½ÓÖÕÖ¹¿Í»§¶Ë£¬ËäÈ»¿ØÖÆ̨ÓдòÓ¡Õâ¸ö´íÎ󣬵«ÖÕֹ̫¿ì£¬Ò²Ã»¿´µ½¡£Çл»ÔÚDebugϵ÷ÊÔ£¬Ôò»á±¨R6025 -pure vir ......
×î½üÒ»¸öÏîÄ¿ÓÃlua5.1.4ºÍc++ÁªºÏ¿ª·¢¡£ÔÚ¿ª·¢µÄ¿ªÊ¼½×¶ÎÓöµ½ÁËÒ»µãÎÊÌ⣬ÎÊÌâÈçÏ£º
ÓÃÃüÁîÐÐÔËÐУºlua test.lua
lua: error loading modules 'dllforlua' from file './dllforlua.dll':
ÕÒ²»µ½Ö¸¶¨µÄ³ÌÐò¡£
ÒòΪÊǵÚÒ»´ÎʹÓã¬Õâ¸öÎÊÌâÀ§ÈÅÁËÎҺü¸Ìì¡£¾¹ý¶à·¬²âÊÔ£¬·¢ÏÖÈçϹæÂÉ£º
Èç¹ûÓ ......
C³ÌÐòÊÇÓÉÒ»×é»òÊDZäÁ¿»òÊǺ¯ÊýµÄÍⲿ¶ÔÏó×é³ÉµÄ¡£ º¯ÊýÊÇÒ»¸ö×ÔÎÒ°üº¬µÄÍê³ÉÒ»¶¨Ïà¹Ø¹¦ÄܵÄÖ´ÐдúÂë¶Î¡£ÏÂÃæС±àºÍ´ó¼Ò·ÖÏíÏÂCÓïÑÔÖеĺ¯Êý¡£
1. kbhitº¯Êý
kbhitº¯ÊýÊǼì²éµ±Ç°°´Ïµļü£¬ÆäÓ÷¨Îª£ºint kbhit(void);³ÌÐòÀý×ÓÈçÏ£º
#include <conio.h>
int main(void)
{
c ......