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

ÔÚÆÁÄ»ÉÏ»­Í¼µÄC££ÊµÏÖ´úÂë


DllImportËùÔÚµÄÃû×Ö¿Õ¼ä using System.Runtime.InteropServices;
[DllImport("User32.dll")]
        public extern static System.IntPtr GetDC(System.IntPtr hWnd);   
        private void button19_Click(object sender, EventArgs e)
         {
             System.IntPtr    DesktopHandle   =    GetDC(System.IntPtr.Zero);
             Graphics g = Graphics.fromHdc(DesktopHandle);
             g.DrawRectangle(new Pen(Color.Red),new Rectangle(10,10,100,100));
         }


Ïà¹ØÎĵµ£º

cÎļþ²Ù×÷£¬¼æÈݶà×Ö½ÚºÍunicode

ÔÚ<TCHAR.h>Í·ÎļþÀÓÐÕâôһ×é²Ù×÷ÎļþµÄºê
       #define _tfdopen    _wfdopen
      
#define _tfsopen    _wfsopen
      
#define _tfopen     _wfope ......

C³ÌÐòµ÷ÓÃC++º¯Êý

ÕâÖÖÐèÇóÓ¦¸Ã¾ÍûC++³ÌÐòµ÷ÓÃCº¯ÊýÐèÇó¶àÁË.Ä¿Ç°µÄʵÏÖ»ù±¾Ö»ÓÐÒ»Àà·½·¨,¼´Í¨¹ý´¦Àí±»µ÷ÓõÄC++Îļþ.
ÎÄ
Öиø³öµÄÈÔÈ»ÊÇÍêÕûµÄ,¾ßÌåµÄ,µ«ÓÖ×î»ù±¾×î¼òµ¥µÄʵÏÖ,ÖÁÓÚÀíÂÛÐԵĶ«Î÷ÔÚÍøÉϺÜÈÝÒ×ËÑË÷µÄµ½.ÕâÀïÊÇÕë¶Ôµ÷ÓÃC++µÄ³ÉÔ±º¯ÊýµÄʵÏÖ.
aa.h
class AA {
    int i;
    public:
& ......

»ªÎª2005ÕÐƸC±ÊÊÔ


 
2005Ä껪ΪÕÐƸ--CÓïÑÔ±ÊÊÔÊÔÌâ
Ò»¡¢ÅжÏÌ⣨¶ÔµÄдT£¬´íµÄдF²¢ËµÃ÷Ô­Òò£¬Ã¿Ð¡Ìâ4·Ö£¬¹²20·Ö£©
1¡¢ÓÐÊý×鶨Òåint a[2][2]={{1},{2,3}};Ôòa[0][1]µÄֵΪ0¡££¨   T  £©
2¡¢int (*ptr) (),ÔòptrÊÇһάÊý×éµÄÃû×Ö¡££¨   F£¬ ptrΪһ¸öº¯ÊýÖ¸Õë  £©
3¡¢Ö¸ÕëÔÚÈκÎÇé¿öÏ ......

C/C++»ù±¾Êý¾ÝÀàÐÍ

ѧÁËCÈ»ºóC++£¬È»ºóMFC/Windows,È»ºóÊÇC#,ÆäÖÐÊý¾ÝÀàÐͺܶ࣬ÓÉ»ù±¾ÀàÐÍÑÜÉúµÄtypedefÀàÐÍÒ²N¶à¡£ÊìÖª»ù±¾Êý¾ÝÀàÐÍÊÇÎÒÃÇÕýÈ·±í´ïʵ¼ÊÎÊÌâÖи÷ÖÖÊý¾ÝµÄÇ°ÌᣬÒò´ËÎÒ·ÖÀà×ܽáÁËÒ»ÏÂC/C++/Windows /C#»ù±¾Êý¾ÝÀàÐÍ£¬ÒÔ±ãÈÕºó²éÔÄ¡£
         ANSI C/C++»ù±¾Êý¾ÝÀàÐÍ£º
Type
Size ......

C#ÖÐһЩ×Ö·û´®²Ù×÷µÄ³£ÓÃÓ÷¨,c#±àÂëºÍ½âÂë

//»ñµÃºº×ÖµÄÇøλÂë
¡¡¡¡byte[] array = new byte[2];
¡¡¡¡array = System.Text.Encoding.Default.GetBytes("°¡");
int i1 = (short)(array[0] - ''\0'');
¡¡¡¡int i2 = (short)(array[1] - ''\0'');
//unicode½âÂ뷽ʽϵĺº×ÖÂë
¡¡¡¡array = System.Text.Encoding.Unicode.GetBytes("°¡");
¡¡¡¡i1 = (short)(arra ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ