c++builderÖÐÈçºÎµ÷ÓÃdelphi±àдµÄº¯Êý£¿
ÇëÎÊc++builderÖÐÈçºÎµ÷ÓÃdelphi±àдµÄº¯Êý£¿
ÈçÔÚdelphiÖк¯Êý¶¨ÒåΪ function a(s1:string, s2:string):string;
ÄÇôÔÚc++builder³ÌÐòÖÐÈçºÎ¶¨ÒåÕâÒ»Íⲿº¯ÊýÄØ£¿
Ö±½Ó½«pasÎļþ¼ÓÈ빤³Ì£¬±àÒë³É¹¦ºó£¬»á×Ô¶¯ÐγÉÒ»¸öÍ·Îļþ
±àÒëÒÑͨ¹ý£¬ÇÒincludeÁËhppÎļþ£¬¹Ø¼üÊÇÈçºÎÔÚc++builderÖÐʹÓÃÕâ¸öº¯Êý£¿£¨Ôõô¶¨ÒåÍⲿº¯Êý£¿Ôõôµ÷Óã¿£©
¼ÈÈ»ÒѾÐγÉhppÎļþ£¬Ö±½Ó°´hppÎļþÖеĺ¯ÊýÔÐ͵÷ÓþÍÐÐÁË£¬²»ÐèÒªÔÙ¶¨ÒåÍⲿº¯Êý¡£
C/C++ code:
string a(string s1,string s2) ; //¶¨Ò岿·Ö·ÅÔÚ.hÀïÃæ
Õâ¸ö»¹¿ÉÒÔ»ìºÏ±àÒ룿
¿ÉÊÇÎÒÔÚc++builderÖе÷ÓÃʱ±¨´í£¬Ëµ¸Ãº¯Êýû¶¨Òå?
Edit1->Text="abcdefjgjgalkjg";
Edit2->Text="ads231231232";
Edit3->Text=a(Edit1->Text.c_str(),Edit2->Text.c_str());
1,¿´cbÉú³ÉµÄ.hppÎļþÖеĺ¯ÊýÉùÃ÷.
2,ÔÚÄãµÄ.cppÖмÓÈëÏÂÃæµÄÊÔÊÔ
C/C++ code:
#pragma link filename.dcu // filenameÊÇÄãµÄpasÎļþÈ¥µôÀ©Õ¹ÃûµÄÎļþÃû
1. hppÎļþÖÐÓÐprocedureµÄÉùÃ÷£¬µ«Ã»ÓÐfunctionµÄÉùÃ÷£»
2. ÔÚ.cppÖмÓÈëpragma link filename.dcu // filenameÊÇÄãµ
Ïà¹ØÎÊ´ð£º
C\C++ÈçºÎ¼ÆË㺯ÊýµÄµ¼Êý,±¾ÈËÐÂÊÖ£¬Ïëд¸ö³ÌÐò£¬µ«ÊDz»ÖªµÀÈçºÎÏÂÊÖ£¬»¹Íû¸ßÊÖÖ¸µãÒ»¶þ£¬Ð»¹ý¡£
Õâ¸ö¡¡
¸úº¯ÊýµÄ¾ßÌåÐÎʽÓйذɣ¬ÄѵÀÄãÏë±à³ö¸ö¡°ÍòÄÜ¡±µÄÇ󵼺¯Êý£¿
°³ÉÏѧʱÏë¹ý×Ô¶¯ÍƵ¼¹«Ê½£¬ºóÀ´ ......
ÄÚÈÝÉæ¼°£ºC¡¢C++¡¢STL¡¢VC++¡¢MFC¡¢COM¡¢ATL¡¢WindowsÍøÂç±à³Ì¡¢Êý¾Ý¿â±à³Ì¡¢WindowsÇý¶¯±à³Ì¡¢Èí¼þ¹¤³Ì¡¢Windows²Ù×÷ϵͳ±à³Ì£¬µÈµÈ·½Ãæ¡£
ÏÂÔصØÖ·£ºhttp://www.cctry.com/forumdisplay.php?fid=46
......
RT£º c/c++³ÌÐòÔ±½øͨѶ¿ª·¢ÐÐÒµµÄÌõ¼þ¡£Èç¹ûC/C++³ÌÐòÔ±£¨ÊìÁ·£©
½øͨѶÐÐÒµÐèÒªÄÄ·½±ãµÄ֪ʶÄØ£¿
ÁíÍ⣬һ°ãͨѶÐÐÒµ·½ÃæµÄ¿ª·¢Ê±Linuxƽ̨»¹ÊÇWindowsƽ̨ÄØ£¿
¶¼ÓУ¬¸öÈËϲºÃ
Õâ¸ö£¬ÒªÏò¹ý¶ùÌáÎʲŶÔ^ ......
ÏÖÔÚÎҵijÌÐòÔËÐÐÔÚһ̨php·þÎñÆ÷AÉÏ£¬È»ºóÕą̂php·þÎñÆ÷³ÌÐòÒª°ÑÒ»¶ÎÎÄ×Ö´«¸øB·þÎñÆ÷´¦Àíºó£¬»ñµÃ·µ»ØµÄ´¦Àí½á¹û£¬B·þÎñÆ÷ÊÇÓÃc/c++дµÄ£¬AºÍBÁ½Ì¨·þÎñÆ÷ÈçºÎÁ¼ºÃµÄͨÐŵ÷ÓÃÄØ£¬A£¬BÊÇÔÚͬһ¾ÖÓòÍøÄڵġ£Èç¹ûÊÇÓÃso ......
ÎÒÓÐÒ»¸öC++±àдµÄ±È½Ï´óÐ͵ijÌÐò£¬ÏÖÔÚÏëÒÆÖ²µ½ÍøÒ³ÖС£¿ÉÒÔ×ö³ÉsoʲôµÄ¶¼ÐС£ÇëÎÊÎÒ¸ÃÈçºÎµ÷ÓÃÄØ£¿
Õâ¸öÊÂÇé¹À¼ÆºÜ¶àÈË×ö¹ý£¬Äܸø¸öÉÔ΢¾ßÌåµã¶ùµÄ²½ÖèÂð£¿
лл¡£
¶ÔÁË Íü¼Ç˵ÁË¡£
ÎÒµÄÍøÕ¾ÔÚÒ»¸öÐéÄâ ......