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)
{
......
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......
ÔھƵê¹ÜÀíϵͳÖÐ,ÓÐÒ»¸ö¶ÔÄÚµÄϵͳ,¹©Ç°Ì¨·þÎñÔ±ºÍ¾ÀíʹÓÃ
»¹ÓÐÒ»¸ö¾ÍÊǶÔÍâ,Èÿͻ§¿ÉÒÔÔÚÍøÉÏÔ¤¶©·¿¼ä,
ËüÃÇÖ®¼äÊÇÔõôͨѶµÄ.?µ±ÎÒÌá½»Ô¤¶©·¿¼äÐÅÏ¢µÄʱºò,
ÔÚ¶ÔÄÚµÄϵͳÖÐ,ÈçºÎÖªµÀÎÒÒѾÌá½»ÁËÐÅÏ¢¹ýÈ¥.Ê¹Ç ......
´ó¼ÒºÃ£¬ÎÒÊÇÐÂÊÖ£¬¸Õ¿ªÊ¼½Ó´¥C/S½á¹¹µÄ³ÌÐò£¬ÏëҪʵÏÖÒ»¸ö·ÖÒ³¹¦ÄÜ£¬´ó¼ÒÓÐûÓкõãµÄ·ÖÒ³¿Ø¼þ»òÕß³ÌÐòÖ®ÀàµÄ£¬µ±È»Ô´³ÌÐò¸üºÃ£¬·ñÔò˵˵Á÷³ÌÒ²¿ÉÒÔ£¬Ð¡Ãü±°¡£¬ÔÚÏߵȡ£¡£¡£¡£
´ó¼Ò°ï°ï棬ллÁË£¬¼±¡£¡£¡£
Ä ......
СµÜ×î½üÔÚÁ˽â¹ØÓÚtiny c µÄÎÊÌâ¡£ÔÚlinuxÏÂ×¼±¸°²×°¡£µ«°²×°Íê³ÉºóÅöµ½ÁËһЩÎÊÌ⡣ϣÍû´ó¼ÒÄܹ»°ïæ½â¾ö¡£ÒÔÏÂÊÇ°²×°Íê³ÉºóµÄÖ´Ðв½Öè¡£
[student@localhost ~]$ tcc -v
tcc version 0.9.25
[student@localhos ......