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

C³ÌÐò´«¸øC#³ÌÐòÊý¾Ý°üµÄÎÊÌâ.

ÎÊÌâ: C#³ÌÐòÀïÃæ¿ÉÒÔÊÕµ½C³ÌÐò´«À´µÄÊý¾Ý°ü.µ«ÊÇÿ´ÎÖ»ÓÐÒ»¸öBYTE.ÎÞÂÛC³ÌÐòÀïÃæÊý¾Ý°ü³¤¶È´óСÊǶàÉÙ.

·½°¸:

ÏòC³ÌÐò´«µÝÒ»¸öº¯ÊýÖ¸Õë(C#ÖÐΪίÍÐ)¹ýÈ¥¡£

C#ÀïÃ涨ÒåÒ»¸öÏìÓ¦Êý¾Ý°üµÄ·½·¨£¬½«´Ë·½·¨·â×°ÔÚίÍÐÖУ¬´«¸øC³ÌÐò£¬

C³ÌÐòÄÇÀïÊÕµ½Êý¾Ý°üʱ¼´¿Éµ÷Óø÷½·¨¡£

C#Æô¶¯CµÄ·þÎñ-->C#ÏòC³ÌÐò×¢²áº¯ÊýÖ¸Õë-->C·þÎñÔÚÊʵ±µÄʱºò»Øµ÷C#×¢²áµÄ¸Ã·½·¨

C#³ÌÐò
public delegate void dele_newPacket(Byte[] packet);

public static void newPacket(Byte[] packet)
{}

[DllImport("Win32-Server-DLL.dll", EntryPoint = "start_delegate")]
        public static extern void start_delegate(dele_newPacket packet);

CS_Console_1.Program.dele_newPacket packet = CS_Console_1.Program.newPacket;

CS_Console_1.Program.start_delegate(packet);

C´úÂë:

void (_stdcall *dele_func)(BYTE* );//È«¾Ö±äÁ¿

void start_delegate(void(_stdcall *start_address )( BYTE* ) )
{
      printf("start_delegate call start:\n");
      dele_func = start_address;
      (*dele_func)((BYTE*)packet);//packet×ÊÇ1024BYTE
      printf("start_delegate call end:\n");
}

Ö»ÒªÊý¾Ý°üÕýÈ·´«ÈëC#³ÌÐò¾Í¿ÉÒÔÁË,ÔÚC#ÀïÃæ½øÐÐÊý¾Ý°ü´¦Àí. Çë°ïæ°¡.



Ïà¹ØÎÊ´ð£º

CÈí¼þ תÕý¹¤×ʶàÉÙºÏÊÊ£¿

µØµãÔÚÉîÛÚÄÏɽ
¡¡¡¡×öCÈí¼þ¡£ÊÔÓÃ2K£¬²»ÖªµÀתÕý¸ø¹«Ë¾Ì¸¶àÉÙºÏÊÊ°¡£¿
¡¡¡¡ÁíÍ⣬±¾ÈËС±¾£¬Ó¢ÓïÁù¼¶£¬ÊÔÓÃÈý¸öÔ±íÏÖµÃÒ²ËãÖÐÉÏˮƽ¡£µ«ÊÇÏÖÔÚ»¹²»ÄÜ×öÏîÄ¿¡£ÁíÍâ±ÏҵѧУûÓÐÃûÆø¡£
¡¡¡¡×ªÕý¸ø¹«Ë¾Ì¸¶àÉ ......

²ËÄñÇó½â:cͼÐÎÎÊÌâ

#include <stdio.h>
#include <graphics.h>
void main()
{
  int x0,y0,x1,y1,driver,mode,i;
  driver=VGA;
  mode=VGAHI;
  initgraph(&driver,&mode,&qu ......

C#µ÷Óà C DLLÎÊÌ⣬¶®µÄÀ´ÇÀ·ÖÁË

//C ½Ó¿Ú
extern "C"
{
  TESSDLL_API int __cdecl GetTessText(const char *imagefile, char *text);  
}
//ÎÒÔÚC#ÖÐÉùÃ÷
//µ÷ÓÃC DLL Öеĺ¯Êý
[DllImport("OCRapi.dll&quo ......

ÈçºÎ×Ô»ælistview,×ö±í¸ñµÄ±íÍ·¡£(C/SDK)

ÎÒÏëÓÃc/sdk listviewµÃµ½ÏÂÃæµÄЧ¹û£¬ÓÐÈË˵×ö±íÍ·ÐèÒª×Ի棬´´½¨Ê±»¹Òª¼ÓLVS_OWNERDRAWFIXEDÀàÐÍ£¬È»ºó´¦Àí¸¸´°¿ÚµÄWM_DRAWITEMÏûÏ¢¡£

ÄÄλÄÜ°ï°ïæ¸ø¸öÀý×Ó´úÂ룿 ×îºÃÊÇC/SDKµÄ¡£

ÎÒÐèÒªµÃµ½ÕâÑùµ ......

c,c++Á¬½Ómysql ÕÒ²»µ½Í·²¿Îļþ£¨ÐÂÊÖ£©

±àÒëÆ÷£ºC-Free4
mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓá£
×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£
Íü¸ßÊÖÖ¸µãÒ»¶ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ