VB,C#ʹÓÃVCµÄ.libºÍ.hÎļþ
——————————————————————————————————
ÔÚc#ÖÐÈçºÎʹÓÃÒÔÇ°c++µÄ.lib¿âºÍ.hÍ·Îļþ
zhujiang_1977£¨Öì½£©
ÎÒÔø¾Óöµ½¹ýÀàËƵÄÎÊÌ⣬ÎҵĽâ¾ö·½·¨ÊÇ£¬ÓÃVC½«“ÒÔÇ°c++µÄ.lib¿âºÍ.hÍ·Îļþ”±àÒë³ÉCOM£¬ÔÙÔÚC#ÖÐʹÓ㬽á¹ûÊǹ¦ÄÜÉÏ´óÌ嶼¿ÉÒÔʵÏÖ£¬µ«ÊÇËÙ¶ÈÉÏÉÔ΢ÓÐЩÂý¡£
fa2002£¨·çÏèÍòÀ
ÎÒд¹ý2¸öVCµÄ½Ó¿ÚÁ¬½Ó³ÌÐò£¬Ã»COMʲôÊ£¬ÎÒ½¨ÒéÄãµ½MSDNÖÐÑ°ÕÒ"·âËÍ´¦Àí" ¿´¿´MSµÄ½¨Òé·½·¨ÔÙ˵¡£
zeaing£¨£©
ÄãµÄÎÊÌâÊǸöºÜ´óµÄÎÊÌ⣬ǣÉæµ½´úÂëµÄÖØÓá¢COM DLLµÄÖØÓá¢Win32 API DLLµÄÖØÓ㬵ȵȡ£Ö»ÄܸøÄãһЩ½¨Ò飺
1£©´úÂ뼶ÖØÓÃÊÇ×ö²»µ½µÄ¡£C++µÄ´úÂë²»ÄÜÖ±½ÓÓÃÔÚC#ÖС£
2£©ÄãÌáµ½Á˺ܶàÏÖÓеÄÀà¿â£¬ÀýÈçOpenGL¡¢DirectXµÈµÈ¡£ÕâЩÀà¿â£¬¶¼ÊÇÒÔDLLÐÎʽ³öÏֵģ¬ÒªÃ´ÊÇWin32 API DLL£¬ÒªÃ´ÊÇCOM DLL¡£ÎÞÂÛÊÇÄÄÒ»ÖÖ£¬¶¼¿ÉÒÔÔÚC#ÀïÃæͨ¹ýInteroperationÖØÓá£ÍøÉÏÓкܶàDLLImportºÍCOM InteropµÄÀý×ÓºÍÎĵµ¡£
3£©Èç¹ûÐèÒªÖØÓÃ.libºÍ.h£¬¾ÍÐèÒªÇø±ðÇé¿ö¶Ô´ý¡£Èç¹û.libÊÇ´¿´âµÄAPIº¯Êý¿â£¬ÄÇ¿ÉÒÔ°Ñ.libºÍ.h±àÒë³É.dll£¬¾Í¿ÉÒÔÔÚC#ÀïÃæͨ¹ýDLLImportÀ´ÖØÓá£Èç¹û.libºÍ.hÀïÃæÓÐ×Ô¶¨µÄÀ࣬¾Í±È½ÏÂé·³£¬×îºÃÊÇ°ÑÔ´Âë¿Ù³öÀ´£¨Èç¹ûûÓÐÔ´Â룬¾Í×Ô¼ºÔÙÔÚÍâÃæ°üÒ»²ã×Ô¼ºµÄÀࣩ£¬È»ºóÓÃCOMµÄ·½·¨ÖØаüװһϣ¬ÔÙ±àÒë³ÉDLL£¬ÕâÑù¾Í¿ÉÒÔÔÚC#ÀïÃæÓÃCOM InteropÀ´ÖØÓá£
unmanaged codeÊÇÒ»¸öºÜ´óºÜ´óµÄ»°Ì⣬½¨ÒéÄãÂýÂýÌå»áÂýÂý×êÑУ¬Ç°Ãæzhujiang_1977, fa2002ºÍ Muf¸øµÄ½¨Ò鶼ºÜÓвο¼¼ÛÖµ¡£Ö»ÓжÔWin32 API DLL¡¢COMÒÔ¼°.NETÖеÄInteroperation¶¼ÒѾÊìϤÁË£¬²ÅÄÜÈÚ»á¹áͨµÄ´¦Àí´úÂëÖØÓõÄÎÊÌâ¡£Ò»¿ÚÊdzԲ»Ï´óÅÖ×ӵġ£
Çë½ÌC++DLLµÄÎÊÌ⣬ÎÒÓÐÒ»¸ö.hºÍ.libÎļþ£¬ÇëÎÊÄÜÉú³ÉDLLÎļþÂð£¿
popy007£¨Twinsen£©
½¨Á¢Ò»¸öDLLµÄ¹¤³Ì£¬°Ñ.hºÍ.libÎļþµ¼Èë½ø¹¤³Ì£¬È»ºóÄ㽨Á¢Ò»Ð©×Ô¼ºµÄ·½·¨£¬Ã¿Ò»¸ö·½·¨ºÍ.hºÍ.libÖеÄÒ»¸ö·½·¨¶ÔÓ¦£¬²¢°Ñÿһ¸öºóÕß·â×°µ½Ò»¸ö¶ÔÓ¦µÄÇ°Õß¡£×îºó£¬µ¼³öDLLºó£¬Äã¿ÉÒÔʹÓÃ×Ô¼º±àдµÄ·½·¨£¬¶øÕâ·½·¨·â×°µÄ¶¼Ê
Ïà¹ØÎĵµ£º
дÁËÒ»¸övbµÄ³ÌÐò£¬ÓÃÀ´°ÑÔÀ´Ð´µÄ¼¸¸övbºÍvcµÄ³ÌÐòÕûºÏÆðÀ´¡£¾ÍÊÇʹÓÃShellº¯Êý¡£½á¹û·¢ÏÖ£¬vcµÄ³ÌÐò¿ÉÒԺܺõÄÏÔʾ£¬µ«vbдµÄÈ´Ò»ÔËÐоÍ×îС»¯ÁË¡£×Ðϸ²é¿´ÁËÒ»ÏÂÒÔÏÂÎÄÕ£¬²Å·¢ÏÖÔÀ´shellº¯ÊýµÄĬÈÏÏÔʾģʽÊÇwindowstyleÊǵÈÓÚvbMinimizedFocus¡£È»ºó¾ÍÊÇÖ±½Ó¼ÓÉÏÒ»¸övbNormalFocus¡£Ò»ÇÐok!
vbµÄs ......
http://www.Experts-Exchange.com: ·Ç³£ºÃµÄÎÊÌâ ÌÖÂÛÇø£¬¸ßÊÖÊý²»¾¡£¬¶øÇÒÕâÀïµÄÈ˺ÜÓÐרҵ¾«Éñ£¬²»»áÌÖÂÛһЩºÍ³ÌÐòÎÞ¹ØÓÖÎÞÁĵÄÎÊÌâ¡£²»¹ýÏëÒª±ðÈË°ïÄã ½â¾öÎÊÌ⣬×Ô¼ºÒ²ÒªÓÐÕæ³ÏµÄ̬¶È¡£
http://www.Codeguru.com/vb: ÓÐÃûµÄÔ´ÂëÌÖÂÛÕ¾ µã£¬ÌصãÊÇÔÚÿ¸öÔ´ÂëÏÂÃ涼¿ÉÒÔ¸úÌûÌÖÂÛ¡£
http://www.planet-source-code.co ......
¼òµ¥
ÔÚGlobal.asaÎļþÖмÓÈëÈçϵĴúÂ룺
Java´úÂë
1. <SCRIPT LANGUAGE="VBScript" RUNAT="Server">
2.
3. Sub Application_OnStart
4.
5. 'µ±·þÎñÆ÷¿ªÆôʱ£¬ÉèÖÃÔÚÏßÓû§¼ÆÊýÆ÷Ϊ0
6. Application("ActiveUsers") = 0
7.
......
ÕýÔÚ¿ª·¢Ð¡ÃØÊéϵͳ²¢²»¶ÏÌá¸ßÆäÖÇÄÜˮƽ,ÆäÖÐÓõ½µÄÊǽű¾Ö§³ÖµÄ¼¼Êõ
ËäÈ»Õⲿ·Ö²»ÊôÓÚ³õѧÕßʹÓÃ,È»¶øÓÐЩÈËÏëѧÕâ¸ö¶«¶«,ÕâÀï¾Í·¢~~~²¼³öÈ¥°É!
н¨Ò»¸ö±ê×¼exe¹¤³Ì(Standard EXE);
"¹¤³Ì"(Project)-->"²¿¼þ"(Components)
Ñ¡¶¨"Microsoft Script Control 1.0" ,λÖÃÊÇC:\WINDOWS\system32\msscript.ocx
Ìí ......
javaÖÐʹÓöþά Êý×é
ognNf_v
public class Array2D...{
m@EvM)y0e2r
s
public static void main(String[] args)...{JAVAÖÐÎÄÕ¾ÉçÇøÃÅ»§ ~j!lSR^ z5bR5O
int myInt[][]=new int[5][10];
@XH3ao\
  ......