c# µ÷ÓÃwordÎÊÌâ - .NET¼¼Êõ / C#
ÎÒÏÖÔÚÏëÓÃc# µ÷ÓÃwordÎĵµ£¬ÔõôʵÏÖ°¡£¿
ÓÐûÓиßÊÖ¸ø¸öÍêÕûµÄÀý×Ó¡£
¾ÍÊÇʵÏÖÎÒµã»÷ij¸ö°´Å¥£¬È»ºóµ¯³öÒ»¸öword ¶Ô»°¿ò¡£ÌáʾÄã´ò¿ª£¬Ä㿪ºó¾Í¿ÉÒÔ¿´µ½ÍêÕûµÄwordÁË ¡£
C# code:
System.Diagnostics.Process.Start("word·¾¶");
if (openDialog1.ShowDialog()==System.Windows.Forms.DialogResult.OK)
{
System.Diagnostics.Process.Start(openDialog1.FileName);
}
Èç¹ûÖ»ÊÇÒª´ò¿ª£¬ÄãÓÃprocessµ÷ÓÃword³ÌÐò´ò¿ªÖ¸¶¨Îļþ¾ÍºÃÁË¡£
C# code:
Word.Application appWord = new Word.Application();
Word.Document docWord = new Word.Document();
docWord = appWord.Documents.Open("L:\\SWPPP\\SWPPPBookMerge.doc");
¹â´ò¿ªÃ»Ê²Ã´ÒâÒå°¡£¡
ÄãÒª×öʲô£¬ÐèÇó˵Çåµã
¾ÍÊÇ´ò¿ªWORDÎĵµ£¬ÏÔʾÒѾ´æÔÚµÄWORDÎĵµµÄÄÚÈÝ£¡
up
Ôõô°ÑWORDµÄÄÚÈÝǶÈëµ½´°ÌåÖУ¬Ê¹ÓÃʲô¿Ø¼þ°¡£¿
C#
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
¿ÉÄÜÒòΪ¹¤×÷µÄÔÒò ½Ó´¥Êý¾Ý¿âÕâ¿é±È½ÏÉÙ£¬Ö®Ç°¶¼ÊÇ×ö³ÌÐòÕâ¿é£¬Êý¾Ý¿âÕâ¿é¶¼ÓÐרÃŵÄÈËÀ´×ö ·Ö¹¤¶¼ºÜÃ÷ϸ ËùÒÔ¶ÔÊý¾Ý¿âÕâÒ»¿éÍêÈ«²»Á˽⡣ǰ¶Îʱ¼ä È¥ÃæÊÔÁ˼¸¼Ò¹«Ë¾ ¼¸ºõ¶¼ÊÇÔÚÊý¾Ý¿âÕâ¿é¹ÒµôµÄ Á¬¸ö¼òµ¥µÄSQ ......
ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......
ÔھƵê¹ÜÀíϵͳÖÐ,ÓÐÒ»¸ö¶ÔÄÚµÄϵͳ,¹©Ç°Ì¨·þÎñÔ±ºÍ¾ÀíʹÓÃ
»¹ÓÐÒ»¸ö¾ÍÊǶÔÍâ,Èÿͻ§¿ÉÒÔÔÚÍøÉÏÔ¤¶©·¿¼ä,
ËüÃÇÖ®¼äÊÇÔõôͨѶµÄ.?µ±ÎÒÌá½»Ô¤¶©·¿¼äÐÅÏ¢µÄʱºò,
ÔÚ¶ÔÄÚµÄϵͳÖÐ,ÈçºÎÖªµÀÎÒÒѾÌá½»ÁËÐÅÏ¢¹ýÈ¥.Ê¹Ç ......