C# µ÷Óà c++ dll µÄһЩÎÊÌâ×ܽá
1.c++µÄµ½´¦º¯ÊýÖ»ÒªÔÚº¯ÊýÉêÃ÷µÄʱºò¼Ó¸öµ¼³ö¹Ø¼ü×־ͿÉÒÔÁË
2.²ÎÊýÀàÐÍÎÊÌâ,
Ò»°ãµÄc++ÖÐchar * ¶ÔÓ¦ c#ÖеÄstring
¶øc++ÖÐ char **ÀàÐ͵IJÎÊý¶ÔÓ¦c#ÖÐ ref string ÕâÖÖÒ»°ã¶¼ÊÇÓÃÀ´·µ»Ø×Ö·û´®µÄ!
3.º¯ÊýÈë¿ÚÎÊÌâ,Ò»°ã»á³öÏÖ "ÕÒ²»µ½Èë¿Úµã" Õâ¸öÎÊÌâ²»ÊÇÓÉÄãÒýÆðµÄ,¶øÊÇϵͳ×Ô¼º°ÑÃû×Ö¸ÄÁË,¸Ä³ÉʲôÑùµÄÃû×Ö½¨ÒéÄãÓÃeXeScope ´ò¿ªdll¿´¿´ÀïÃæµÄÈ«³Æ,±ÈÈçÎÒ´ÓÍøÉÏÏÂÔصÄÒ»¸ödllµÄµ¼³ö·½·¨Áбí
µ¼³ö, CryptoPP32.dll
ÐòÁÐ µØÖ· Ãû×Ö
00000001 100489D0 ?Base64DecodeFile@CryptoPP32@@YA_NPBD0@Z
00000002 1004FAC0 ?Base64DecodeString@CryptoPP32@@YA_NPBDPAPAD@Z
00000003 100488E0 ?Base64EncodeFile@CryptoPP32@@YA_NPBD0@Z
00000004 1004F960 ?Base64EncodeString@CryptoPP32@@YA_NPBDPAPAD@Z
00000005 10045EB0 ?FreeString@CryptoPP32@@YAXPAD@Z
00000006 10048800 ?GunzipFile@CryptoPP32@@YA_NPBD0@Z
00000007 10048720 ?GzipFile@CryptoPP32@@YA_NPBD0H@Z
00000008 10048E30 ?HMAC_SHA1_DecryptFile@CryptoPP32@@YA_NPBD00@Z
00000009 10048B90 ?HMAC_SHA1_DecryptString@CryptoPP32@@YA_NPBD0PAPAD@Z
0000000A 10048D40 ?HMAC_SHA1_EncryptFile@CryptoPP32@@YA_NPBD00@Z
0000000B 1004B540 ?HMAC_SHA1_EncryptString@CryptoPP32@@YA_NPBD0PAPAD@Z
0000000C 10048AB0 ?HexDecodeFile@CryptoPP32@@YA_NPBD0@Z
0000000D 1004FE10 ?HexDecodeString@CryptoPP32@@YA_NPBDPAPAD@Z
0000000E 1004B3D0 ?HexEncodeFile@CryptoPP32@@YA_NPBD0@Z
0000000F 1004FC20 ?HexEncodeString@CryptoPP32@@YA_NPBDPAPAD@Z
00000010 1004C260 ?RSAES_OAEP_DecryptString2@CryptoPP32@@YA_NPBD0PAPAD@Z
00000011 1004CD60 ?RSAES_OAEP_DecryptString@CryptoPP32@@YA_NPBD00000000PAPAD@Z
00000012 1004C4C0 ?RSAES_OAEP_DecryptString@CryptoPP32@@YA_NPBD0PAPAD@Z
00000013 1004B780 ?RSAES_OAEP_EncryptString2@CryptoPP32@@YA_NPBD0PAPAD0@Z
00000014 1004C790 ?RSAES_OAEP_EncryptString@CryptoPP32@@YA_NPBD00PAPAD0@Z
00000015 1004BCF0 ?RSAES_OAEP_EncryptString@CryptoPP32@@YA_NPBD0PAPAD0@Z
00000016 10049220 ?RSAES_OAEP_GenKeyFiles@CryptoPP32@@YA_NPBD0I0@Z
00000017 100498E0 ?RSAES_OAEP_GenKeyStrings@CryptoPP32@@YA_NPAPAD0IPBD@Z
00000018 1004DDB0 ?RSAES_PKCS_DecryptString2@CryptoPP32@@YA_NPBD0PAPAD
Ïà¹ØÎĵµ£º
1.¾²Ì¬³ÉÔ±ºÍ·Ç¾²Ì¬³ÉÔ±µÄÇø±ð£¿
2.const ºÍ static readonly Çø±ð£¿
3.extern ÊÇʲôÒâ˼£¿
4.abstract ÊÇʲôÒâ˼£¿
5.internal ÐÞÊηûÆðʲô×÷Óã¿
6.sealed ÐÞÊηûÊǸÉʲôµÄ£¿
7.override ºÍ overload µÄÇø±ð£¿
8.ʲôÊÇË÷ÒýָʾÆ÷£¿
9.new ÐÞÊηûÊÇÆðʲô×÷Óã¿
10.this ¹Ø¼ü×ֵĺ¬Ò壿
11.¿ÉÒÔʹÓóéÏóº¯Ê ......
ΪʲôҪʹÓÃC#·ºÐÍ?
ΪÁËÁ˽âÕâ¸öÎÊÌ⣬ÎÒÃÇÏÈ¿´ÏÂÃæµÄ´úÂ룬´úÂëÊ¡ÂÔÁËһЩÄÚÈÝ£¬µ«¹¦ÄÜÊÇʵÏÖÒ»¸öÕ»£¬Õâ¸öÕ»Ö»ÄÜ´¦ÀíintÊý¾ÝÀàÐÍ£º
public class Stack
{
private int[] m_item;
public ......
ʼþ(event)£¬Õâ¸ö´Ê¶ù¶ÔÓÚ³õѧÕßÀ´Ëµ£¬ÍùÍù×ÜÊÇÏÔµÃÓÐЩÉñÃØ£¬²»Ò×Ū¶®¡£¶øÕâЩ¶«Î÷È´ÍùÍùÓÖÊDZà³ÌÖг£ÓÃÇҷdz£ÖØÒªµÄ¶«Î÷¡£´ó¼Ò¶¼ÖªµÀwindowsÏûÏ¢´¦Àí»úÖƵÄÖØÒª£¬ÆäʵC#ʼþ¾ÍÊÇ»ùÓÚwindowsÏûÏ¢´¦Àí»úÖƵģ¬Ö»ÊÇ·â×°µÄ¸üºÃ£¬Èÿª·¢ÕßÎÞÐëÖªµÀµ×²ãµÄÏûÏ¢´¦Àí»úÖÆ£¬¾Í¿ÉÒÔ¿ª·¢³öÇ¿´óµÄ»ùÓÚ ......
ͨ¹ý·´É䣬µÃµ½Õë¶Ôijһö¾ÙÀàÐ͵ÄÃèÊö¡£
ö¾ÙµÄ¶¨ÒåÖмÓÈëÃèÊö
using System;
using System.Collections;
namespace Ahnlab.ApplicationServices
{
public sealed partial class SysEnums
{
#region ϵͳ¹ÜÀíÄ£¿éµÄö¾ÙÐÅÏ¢
/// <summary>
/// ÔÚÏß²»Á¼Åâ³ ......
ÏëÌá¸ßc#±à³Ìˮƽ£¿ÏÂÃæÕâ50Ìõ¾Ñé²»¿É²»¶Á£¡
Ìá¸ßC#±à³ÌˮƽµÄ50¸öÒªµã
1.×ÜÊÇÓÃÊôÐÔ (Property) À´´úÌæ¿É·ÃÎʵÄÊý¾Ý³ÉÔ±
2.ÔÚ readonly ºÍ const Ö®¼ä£¬ÓÅÏÈʹÓà readonly
3.ÔÚ as ºÍ Ç¿ÖÆÀàÐÍת»»Ö®¼ä£¬ÓÅÏÈʹÓà as ²Ù×÷·û
4.ʹÓÃÌõ¼þÊôÐÔ (Conditional Attributes) À´´úÌæÌõ¼þ±àÒëÓï¾ä #if
5.×ÜÊÇΪ×Ô¶¨Ò ......