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

VC++ÓëflashÖ®¼äµÄÊý¾Ý½»»¥

ÎÒÔÚVCÀï¼ÓÈëÕâ¸öocx¿Ø¼þ."Shockwave Flash Object£¬ÇëÎÊÎÒÒªÏëÔÚvc·¢ËÍ×Ö·û´®¸øflashÀïÃæµÄÎı¾¿ò¸ÃÔõô´«£¿VCÓÖÈçºÎ»ñÈ¡µ½flashÎı¾ÀïµÄÖµ£¿Íû´ó¼Ò¶à¶àÖ¸½Ì£¡


¿ÉÒÔÓÃCallfunction
Ö÷³ÌÐò¶Ë:

flash1.LoadMovie(0,Application.StartPath+"\showstring.swf");
CString temp="Helloworld";
flash1.CallFunction("<invoke name=\"test\" returntype=\"xml\"><arguments><string>" + temp + "</string></arguments></invoke>");
ÆäÖеÄtextÊÇÔÚFLASH¶Ë×¢²áµÄ·½·¨£¬<string>" + temp + "</string>ÖеÄtempÊÇÄã´«¹ýFLASH¶ËµÄ²ÎÊý£¬Ò²¾ÍÊÇÄãÏë´«¹ýÈ¥µÄ²ÎÊý,Èç¹ûÄãÏë´«¶à¸ö²ÎÊý£¬Äã¿ÉÒÔÌí¼Ó¶à¸ö<string></string>½Úµã£¬Öмä·ÅÉÏÄãÒª´«¹ýÈ¥µÄ²ÎÊý£¬×¢ÒâÒ»µãµÄÊÇ£¬<string>" + temp + "</string>£¬tempÓë+ºÅÖ®¼äÒª¿Õ¸ñ£¬·ñÔòÄã´«²»¹ýÈ¥£¬»¹Òª×¢Ò⣬ÔÚFLASH¶ËÒªÓõ½Ò»¾ä»°À´×¢²á text·½·¨£¬
ÈçÏ£º
flash.external.ExternalInterface.addCallback("test", this, test);
·ñÔò£¬VC¶Ë¾Íµ÷Óò»µ½µÄ

flash¶Ë:
¢ÙÌí¼ÓÒ»¸öÎı¾¿òtext_txtÒÔÏÔʾЧ¹û»òÓÃtrace("call: "+result+"")
¢ÚActionScript´úÂëΪ,ÆäÖÐresultÖ»ÊDzÎÊý,¶øÖ÷³ÌÐò¶ËʹÓÃASµÄº¯Êýʱ²»ÐèÒª¹ØÐIJÎÊýÃû,Ö»ÓÐÖªµÀÓвÎÊý¸öÊý,»ò²ÎÊýλÖÃ
function test(result:Object):Void{
  test_txt.text=result;
}
flash.external.ExternalInterface.addCallback("test", this, test);


Ïà¹ØÎÊ´ð£º

ÓÃC»òC++ÈçºÎ±àдÇó½â3Dħ·½³ÌÐò - C/C++ / C++ ÓïÑÔ

ÇëÎÊÓÃC»òC++ÈçºÎ±àдÇó½â3Dħ·½µÄ³ÌÐò£¬¸Ã´ÓºÎ¿ªÊ¼£¿
лл¸÷룬°ïæÌáµã½¨Òé°É¡£

http://www.mofang.net/code/176/182/6581.html

ÎÒÖ»ÄÜÍ»ÆÆ60Ã룡°¦¡£

ÎÒ¸Õ¹ý40Ãë

googleµÄandroidÖÐÓиöOpenGL ES + ......

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

C/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý - C/C++ / C++ ÓïÑÔ

´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......

flashÏÔʾ·¾¶ÉèÖõÄÎÊÌâ - Java / Web ¿ª·¢

ÎÒÔÚ¿ª·¢¹ý³ÌÖÐÓöµ½ÕâÑùÒ»¸ö²¿Ìâ,ÏÂÃæÊÇÒ»¸öjsÎļþ,ÅäÖõÄÊÇÒ»¸öflash,µ«Êǵ±ÎÒÔÚÓÃÒ»¸öhtmlÒ³ÃæÏÔʾµÄʱºò,·¢ÏÖÕâ¸öhtmlÎļþ±ØÐëºÍÕâ¸öjsÎļþÔÚͬһ¸öÎļþ¼ÐÏÂ,·ñÔò¾ÍÎÞ·¨ÏÔʾ,µ«ÊÇÎÒµÄhtmlÒ³ÃæºÍ´æjs µÄµØ·½¶¼ÊÇ· ......

cÓïÑÔʵÏÖlinux timeÏà¹Øº¯Êý - C/C++ / CÓïÑÔ

ÏÖÔÚÐèÒªÔÚÒ»¸öǶÈëʽϵͳÖÐʵÏÖʱ¼äº¯Êý£¬±àÒëÆ÷δÌṩtime¿âº¯Êý£¬ÇëÎÊ´ó¼ÒÈçºÎÓÃcÓïÑÔʵÏÖʱ¼äº¯Êý°¡£¿
ÄêÔÂÈÕʱ·ÖÃë µ½ ÕûÊýÃ루´Ó1970Ä꿪ʼ£© Ö®¼äµÄÏà¹Øת»»°¡
ÀàËÆmktime ºÍlocaltimeµÄ¹¦ÄÜ£¬Ð»Ð»
mktime ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ