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

c# ÑéÖ¤Âë×é¼þ ¿Évb£¬asp£¬netµ÷ÓÃ

      ½ñÌ칫˾ҪÇóÓÃC#д¸öÑéÖ¤Âë×é¼þ£¬ÈÃasp¿ÉÒÔµ÷Óã¬ÔÚÍøÉÏÕÒÁËÒ»¶Ñ×ÊÁÏ£¬ÖÕÓÚ¸øÎÒ¸ø¸ã³öÀ´ÁË£¬ÒòΪ±¾È˵ÚÒ»´Îд×é¼þ£¬Ò²ÊǵÚÒ»´Î·¢±íÎÄÕ£¬ËùÓпÉÄÜ˵µÄ²»ÊǺܺ㬴ó¼ÒÇë¼ûÁ¡£
      csdnÉÏÓÐÕâôƪÎÄÕ£¬Ïëѧϰд×é¼þµÄ¿ÉÒÔÈ¥¿´¿´£ºhttp://blog.csdn.net/KimmKing/archive/2008/12/04/3445233.aspx£¬ÒòΪ±¾È˾ÍÊÇ·ÂÕÕÕâ¸öдµÄÑéÖ¤Âë×é¼þ£¬ÒòΪÅÂÉÏÃæµÄÎÄÕ¶ªÊ§£¬ÎÒ¾ÍÔÚÕâÀï¼òµ¥ËµÏ´´½¨µÄ¹ý³Ì£º
1¡¢´´½¨Ò»Àà¿â
2¡¢ÊµÏÖÒ»¸öÀࣨ¾ßÌå´úÂëÏÂÃæÏêд£©
3¡¢¸øÎļþÇ©Ãû
·½·¨£ºÑ¡Ôñ¿ªÊ¼²Ëµ¥ÖÐVistual StudioĿ¼ÏµÄVistual Studio ToolsϵÄVistual Studio ÃüÁîÌáʾ¡£Ê¹ÓÃsn -k c:\myKey.snkÉú³ÉÇ©ÃûÎļþ¡£ÔÚÏîÄ¿ÉÏÓÒ¼ü£¬µã»÷ÊôÐÔ£¬Ñ¡ÔñÇ©Ãû£¬Ñ¡ÖÐΪ³ÌÐò¼¯Ç©Ãû£¬Ñ¡ÔñmyKey.snkÎļþ¡£
 
4¡¢Éú³É½â¾ö·½°¸
 ÔÚÏîĿĿ¼µÄ\TestCom\bin\DebugÖпÉÒÔÕÒµ½TestCom.dll
5¡¢Éú³ÉtlbÀà¿â
ÔÚVisual StudioÃüÁîÌáʾ·ûÏ£¬Çл»µ½´ËĿ¼¡£
ÊäÈëtlbexp TestCom.dll /out:TestCom.tlb
6¡¢×¢²áÀàÐÍ¿â
ÊäÈëregasm TestCom.dll /tlb: TestCom.tlb /codebase£¬½«ÀàÐÍ¿âµ¼Èëµ½×¢²á±í¡£Ìáʾ³É¹¦×¢²áÁËÀàÐÍ£¬ËµÃ÷²Ù×÷³É¹¦£¬´ËʱTestCom .dll¿ÉÒÔ×÷Ϊһ¸öcomÀ´Ê¹Óá£
7¡¢Ìí¼Ódllµ½GAC
ÊäÈëgacutil /i TestCom.dll£¬½«´Ë.net³ÌÐò¼¯Ìí¼Óµ½GAC¡£
ÕâÑù´´½¨×é¼þµÄËùÓй¤×÷¾ÍÍê³ÉÁË¡£Ê£ÏµľÍÊǵ÷ÓÃÁË
ÔÚvbºÍnetÀïÃæµ÷Ó㺵¼Èëdll£¬ÊµÀý»¯¶ÔÏó¾Í¿ÉÒÔʹÓÃÁË
£¨Dim a As New TestCom.Class1£©a.·½·¨
£¨TestCom.Class1 aa = new TestCom.Class1£¨£©£©aa.·½·¨
ÔÚaspµ÷Óãº
<%
SET s = CreateObject("TestCom.Class1")
s.test()
%>
 
ÒÔÉϾÍÊÇÎÒÕÒµ½µÄ´´½¨×é¼þµÄ×ÊÁÏ£¬ÄÇôÏÖÔھͿªÊ¼±àдÑéÖ¤Âë×é¼þµÄ´úÂë°É
Ê×ÏȱàдÀà¿â£º
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Drawing;
using System.Security;
namespace TestComs
{
[ComVisible(true)]
public interface iClass1
{
string DoCode(int num);
byte[] DoImg(string code);
}
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.AutoDual)]
public class Class1 : iClass1
{
private double PI2;
public Class1()
{
PI2 = 6.


Ïà¹ØÎĵµ£º

VB»ñÈ¡Íø¿¨MACµØÖ·´úÂë

Option Explicit
Private Const NCBASTAT = &H33
Private Const NCBNAMSZ = 16
Private Const HEAP_ZERO_MEMORY = &H8
Private Const HEAP_GENERATE_EXCEPTIONS = &H4
Private Const NCBRESET = &H32
Private Type NCB
ncb_command As Byte
ncb_retcode As Byte
ncb_lsn As Byte
ncb_num As Byte ......

vb ´®¿ÚͨѶ

MSComm¿Ø¼þÌṩÁËÁ½ÖÖ´¦ÀíͨÐŵķ½Ê½£ºÒ»ÖÖΪʼþÇý¶¯·½Ê½£¬¸Ã·½Ê½Ï൱ÓÚÒ»°ã³ÌÐòÉè¼ÆÖеÄÖжϷ½Ê½¡£µ±´®¿Ú·¢Éúʼþ»ò´íÎóʱ£¬MSComm¿Ø¼þ»á²úÉúOnCommʼþ£¬Óû§³ÌÐò¿ÉÒÔ²¶»ñ¸Ãʼþ½øÐÐÏàÓ¦´¦Àí¡£±¾ÎĵÄÁ½¸öÀý×Ó¾ù²ÉÓø÷½Ê½¡£ÁíÒ»ÖÖΪ²éѯ·½Ê½£¬ÔÚÓû§³ÌÐòÖÐÉè¼Æ¶¨Ê±»ò²»¶¨Ê±²éѯ MSComm¿Ø¼þµÄijЩÊôÐÔÊÇ·ñ·¢Éú±ä»¯£¬´Ó¶øÈ ......

aspÐÔÄܲâÊÔ±¨¸æ

ÔÚ·þÎñÆ÷ÉÏÉú³É¶¯Ì¬ÄÚÈÝÊÇʹÓÃASP×îÖ÷ÒªµÄÔ­ÒòÖ®Ò»£¬ËùÒÔÎÒÃÇÑ¡ÔñµÄµÚÒ»¸ö²âÊÔÏîÄ¿ÊÇÈ·¶¨°Ñ¶¯Ì¬ÄÚÈÝ·¢Ë͵½Ó¦´ðÁ÷ʹÓÃʲô·½·¨×îºÃ¡£»ù±¾µÄÑ¡ÔñÓÐÁ½ÖÖ£¨ÒÔ¼°ËüÃǵÄһЩ±ä»¯£©£ºÊ¹ÓÃÄÚǶASP±ê¼Ç£¬Ê¹ÓÃResponse.WriteÓï¾ä¡£
¡¡¡¡ Ϊ²âÊÔÕâЩ²»Í¬µÄ·½·¨£¬ÎÒÃÇ´´½¨ÁËÒ»¸ö¼òµ¥µÄASPÒ³Ã棬ҳÃæÏȶ¨ÒåһЩ±äÁ¿È»ºó°ÑËüÃDzåÈëµ½±í¸ ......

aspÊý×éËæ»úÅÅÐò

Õâ¶Î´úÂëµÄ¹¦ÄÜÊÇ£º½«Ò»¸öÊý×é´òÂÒ˳Ðò£¬ÏÔʾ³öÀ´£¬ÈÃÿһ´ÎÏÔʾµÄ˳Ðò¶¼²»Ò»Ñù¡£
<%
Dim tt
tt=Split("1,2,3,4,5,6",",")
'Ëæ»úÅÅÐò  
leng=UBound(tt)
randomize  
for ii=0 to leng-1  
 b=int(rnd()*leng)  
 temp=tt(b)  
 tt(b ......

javaµÄQnameÔÚC#ÖжÔÓ¦µÄÊÇʲô

Ê×ÏÈÁ˽âÒ»ÏÂʲôÊÇQname
ÏÂÃæÊÇһƪдµÄ±È½ÏºÃµÄ¹ØÓÚQnameµÄ½éÉÜ£º
http://blog.csdn.net/fbysss/archive/2007/06/24/1664076.aspx
¿É¼ûQnameÖ÷ÒªÊÇ´¦ÀínamesapceµÄ£¬ÊÇÖ¸¾ßÓÐÌض¨Ç°×ºµÄxml element¡£¶øÇÒQname¾ÍÊÇQualifiedNameµÄËõд£¬ËùÒÔQnameÔÚC#ÖжÔÓ¦µÄÓ¦¸ÃÊÇXmlQualifiedNameÕâ¸öÀà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ