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

extern "C"µÄʹÓÃ

1.ÔÚc³ÌÐòµ÷ÓÃc³ÌÐòºÍc++³ÌÐòµ÷ÓÃc++³ÌÐòʱ£¬²»Éæ¼°¡£
2.ÔÚc³ÌÐòµ÷ÓÃc++³ÌÐòʱ£¬C++µÄÍ·ÎļþÐèÌí¼Óextern "C"£¬µ«ÊÇÔÚCÓïÑÔÖв»ÄÜÖ±½ÓÒýÓÃÉùÃ÷ÁËextern "C"µÄ¸ÃÍ·Îļþ£¬Ó¦¸Ã½ö½«CÎļþÖн«C++Öж¨ÒåµÄextern "C"º¯ÊýÉùÃ÷ΪexternÀàÐÍ¡£
3.ÔÚc++³ÌÐòµ÷ÓÃc³ÌÐòʱ£¬ÔÚ°üº¬CÓïÑÔÍ·Îļþ£¨¼ÙÉèΪcExample.h£©Ê±£¬Ðè½øÐÐÏÂÁд¦Àí£º
extern "C"
{
££include "cExample.h"
}


Ïà¹ØÎĵµ£º

eclipse IDE for CµÄ¿ª·¢¹¤¾ß

Ï°¹ßÓÃRAD7,ËùÒÔÓÃÆðÀ´eclipse for C ûÓÐÎÊÌâ¡£
ÏÂÔØeclipse3.5:
°²×°£ºmingw£¨Èç¹ûÓÃC++, ¾ÍҪѡÉÏg++£©
°²×°£ºmsys
°²×°ºó£¬ÒªÉèÖÃһϻ·¾³±äÁ¿£º
ÔÚpathÀïÃæ¼ÓÈëmingwºÍmsysµÄbinĿ¼·¾¶¡£È磺c:\mingw\bin;c:\msys\bin
´ò¿ªeclipseн¨Ò»¸öc  project!
È»ºó¾Í¿ÉÒÔÓÃÁË,ÒòΪËüÒѾ­°ïÄãÕÒµ½ÁËGCC make ÁË¡£ ......

C/S½á¹¹Web»¯£¬ÆƳýERP·Ö²¼Ä£Ê½Æ¿¾±

2009Ä꣬¾­¼ÃΣ»úÁýÕÖϵÄÖйú¹ÜÀíÈí¼þÐÐÒµ£¬ÓëÍùÄêÏà±È¾²Ä¬ÁËÐí¶à¡£²»¾ÃÇ°£¬SAPÖйúÑо¿Ôº×ܲÃÜÇÏé÷ëÅúÆÀ¹ú²úÈí¼þ¼¼Êõ»¹Í£ÁôÔÚ10ÄêÇ°¿Í»§¶Ë(Clien/Server)¼Ü¹¹Ë®Æ½£¬Òý·¢Òµ½çÒ»³¡´óÂÛÕ½¡£ÄÇôÖйú¹ÜÀíÈí¼þ¼¼ÊõÊÇ·ñÕæµÄÒѾ­Âäºó?
¡¡¡¡C/SÓ¦ÓÃÈÔÓÐÓÅÊÆ
¡¡¡¡ÄÇôÖйú¹ÜÀíÈí¼þ¼¼ÊõÊÇ·ñÒѾ­Âäºó?
¡¡¡¡C/S½á¹¹³ÌÐòÓëB/S(Web) ......

ÈçºÎÀí½âcºÍc++ µÄ¸´ÔÓÀàÐÍÉùÃ÷

int main(int argc, char* argv[])
    {
    /**//* ************************************************************
            Ö¸Õë
    **************************************************************/ ......

C#µ÷ÓÃC DLL

ÔÚºÏ×÷¿ª·¢Ê±£¬C#ʱ³£ÐèÒªµ÷ÓÃC++DLL£¬µ±´«µÝ²ÎÊýʱʱ³£Óöµ½ÎÊÌ⣬ÓÈÆäÊÇ´«µÝºÍ·µ»Ø×Ö·û´®ÊÇ£¬ÏÖ×ܽáһϣ¬·ÖÏí¸ø´ó¼Ò£º
VC++ÖÐÖ÷Òª×Ö·û´®ÀàÐÍΪ£ºLPSTR,LPCSTR, LPCTSTR, string, CString, LPCWSTR, LPWSTRµÈ
µ«×ªÎªC#ÀàÐÍÈ´²»ÍêÈ«Ïàͬ¡£
Ö÷ÒªÓÐÈçϼ¸ÖÖת»»£º
½«stringתΪIntPtr£ºIntPtr System.Runtime.InteropServ ......

EclipseÏÂÀûÓÃVC±àÒëÆ÷±àдC/C++³ÌÐò

°²×°eclipse-cpp-galileo-win32.zip
ÒÔÏÂÊÇ×îÐÂeclipse cpp ¿ª·¢IDE
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-cpp-galileo-SR1-win32.zip
ÉèÖÃmake³ÌÐò
ÉèÖÃbinary parser
н¨Ò»¸öC++¹¤³Ì
±àдͷÎļþ
 
±àдʵÏÖ
 
¸ÄдMakefile ¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ