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

cµ÷ÓÃapi´ò¿ªÎļþ¶Ô»°¿ò

#include <windows.h>
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd )
{
OPENFILENAME ofn;
//ÔÚÄÚ´æÖпª±ÙÒ»¿é¿Õ¼ä£¬´æ·ÅÓû§Ñ¡È¡µÄÎļþÃû
char szFile[MAX_PATH];//MAX_PATHÊÇϵͳ¶¨ÒåµÄÒ»¸öºêֵΪ260£¬Windows²Ù×÷ϵͳÎļþ·¾¶µÄ×î´ó³¤¶È
ZeroMemory(&ofn,sizeof(ofn));//½«Õâ¸ö½á¹¹Ìå±äÁ¿¶¨ÒåΪ0
ofn.lStructSize = sizeof(ofn);//»ñÈ¡½á¹¹ÌåµÄ´óС
ofn.lpstrFile = szFile;//szFileÊÇÒ»¸ö×Ö·ûÊý×飬ÄÇôszFileÕâ¸öÃû×־ʹú±íÕâ¸ö×Ö·ûÊý×éµÄÊ×µØÖ·ÕâÊÇÒ»¸öÖ¸ÕëµÄÓ¦Ó㬰ѽÓÊÕÑ¡ÔñÎļþÃûµÄÊý×éµÄµØÖ·´«µÝµ½GetOpenFileNameº¯ÊýÖС£
ofn.lpstrFile[0] = TEXT('\0');//Ч¹ûµÈ¼ÛÓÚZeroMemory(szFile,sizeof(szFile));
ofn.nMaxFile = sizeof(szFile);
ofn.lpstrFilter = TEXT("ËùÓÐÎļþ(*.*)\0*.*\0Text(*.TXT)\0*.TXT\0");
ofn.nFilterIndex = 1;//ĬÈÏÑ¡ÔñµÄ¹ýÂËÆ÷£¬Ë÷Òý´Ó1¿ªÊ¼

// Ö¸Ïò½ÓÊÕÑ¡ÔñµÄÎļþµÄÎļþÃûºÍÀ©Õ¹ÃûµÄ»º³å£¨²»´ø·¾¶ÐÅÏ¢£©¡£Õâ¸ö³ÉÔ±¿ÉÒÔÊÇNULL¡£
ofn.lpstrFileTitle = NULL;
//Ö¸¶¨lpstrFileTitle»º³åµÄ´óС£¬ÒÔTCHARsΪµ¥Î»¡£¶ÔÓÚANSI°æ±¾£¬ÊÇ×ֽڵĸöÊý£»¶ÔÓÚUnicode°æ±¾£¬ÊÇ×ֽڵĸöÊý¡£Èç¹ûlpstrFileTitleÊÇNULL£¬Õâ¸ö³ÉÔ±±»ºöÂÔ¡£
ofn.nMaxFileTitle = 0;
//Ö¸ÏòÒÔ¿Õ×Ö·û½áÊøµÄ×Ö·û´®£¬¿ÉÒÔÔÚÕâ¸ö×Ö·û´®ÖÐÖ¸¶¨³õʼĿ¼¡£
ofn.lpstrInitialDir = NULL;
ofn.Flags = OFN_EXPLORER |OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;//OFN_PATHMUSTEXIST·¾¶±ØÐë´æÔÚ£¬OFN_FILEMUSTEXISTÎļþ±ØÐë´æÔÚ
if (GetOpenFileName(&ofn))
{
MessageBox(NULL,szFile,"",MB_OK);
}
return 0;
}


Ïà¹ØÎĵµ£º

ÓÃCдµÄ3DÃÔ¹¬

          Boss˵£¬Òª¿´OpenGL£¬¿´ÁË¿ìÒ»¸öÔ£¬×ÜËã³öÁ˸öÏñÑùµÄ¶«Î÷£¬ÓÃCдÁ˸ö3DÃÔ¹¬£¬
ËäȻֻÓÐ350ÐÐ
       ´úÂ룬²»¹ý±ßѧ±ßд£¬×ã×ãдÁËÒ»ÖÜʱ¼ä£¬»¹ÊÇСÓгɾ͸еģ¬»î»î»î£¡
         &n ......

ceo,cfo,cooȫϵÁеÄcϵÁУ¬ºÜÓÐÒâ˼£¬À´Ñ§Ï°Ò»Ï°É

CEO
CEO£¨Chief Executive Officer£©£¬¼´Ê×ϯִÐй٣¬ÊÇÃÀ¹úÈËÔÚ20ÊÀ¼Í60Äê´ú½øÐй«Ë¾ÖÎÀí½á¹¹¸Ä¸ï´´ÐÂʱµÄ²úÎËüµÄ³öÏÖÔÚijÖÖÒâÒåÉÏ´ú±í׎«Ô­À´¶­Ê»áÊÖÖеÄһЩ¾ö²ßȨ¹ý¶Éµ½¾­Óª²ãÊÖÖС£
ÔÚÎÒ¹ú£¬CEOÕâ¸ö¸ÅÄî×îÔç³öÏÖÔÚһЩÍøÂçÆóÒµÖС£ÔÚÄÇÀCEOÍùÍùÊÇ×Ô·âµÄ£¬Ò²ºÜÉÙÓÐÈËÈ¥Ñо¿ÕâÒ»³Æν¶ÔÆóÒµµ½µ×Òâζ×Åʲô¡£µ ......

»ªÎª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¡¢Ö¸ÕëÔÚÈκÎÇé¿öÏ ......

CRT (C run time library)

Ò» ²úÉú ÔËÐÐʱ¿âÊdzÌÐòÔÚÔËÐÐʱËùÐèÒªµÄ¿âÎļþ£¬Í¨³£ÒÔLIB»òDLLÐÎʽÌṩ¡£ CÔËÐÐʱ¿â¾ÍÊÇC run-time library£¬µ®ÉúÓÚ20ÊÀ¼Í70Äê´ú£¬ÊÇC¶ø·ÇC++ÓïÑÔÊÀ½çµÄ¸ÅÄC³ÌÐòÔËÐÐʱÐèÒªÕâЩ¿âÖеĺ¯Êý¡£ C ÓïÑÔÊÇËùνµÄ¡°Ð¡Äںˡ±ÓïÑÔ£¬¾ÍÆäÓïÑÔ±¾ÉíÀ´ËµºÜС£¨²»¶àµÄ¹Ø¼ü×Ö£¬³ÌÐòÁ÷³Ì¿ØÖÆ£¬Êý¾ÝÀàÐ͵ȣ©¡£ËùÒÔ£¬CÓïÑÔÄں˿ª·¢³ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ