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;
}
Ïà¹ØÎĵµ£º
Boss˵£¬Òª¿´OpenGL£¬¿´ÁË¿ìÒ»¸öÔ£¬×ÜËã³öÁ˸öÏñÑùµÄ¶«Î÷£¬ÓÃCдÁ˸ö3DÃÔ¹¬£¬
ËäȻֻÓÐ350ÐÐ
´úÂ룬²»¹ý±ßѧ±ßд£¬×ã×ãдÁËÒ»ÖÜʱ¼ä£¬»¹ÊÇСÓгɾ͸еģ¬»î»î»î£¡
&n ......
CEO
CEO£¨Chief Executive Officer£©£¬¼´Ê×ϯִÐй٣¬ÊÇÃÀ¹úÈËÔÚ20ÊÀ¼Í60Äê´ú½øÐй«Ë¾ÖÎÀí½á¹¹¸Ä¸ï´´ÐÂʱµÄ²úÎËüµÄ³öÏÖÔÚijÖÖÒâÒåÉÏ´ú±í׎«ÔÀ´¶Ê»áÊÖÖеÄһЩ¾ö²ßȨ¹ý¶Éµ½¾Óª²ãÊÖÖС£
ÔÚÎÒ¹ú£¬CEOÕâ¸ö¸ÅÄî×îÔç³öÏÖÔÚһЩÍøÂçÆóÒµÖС£ÔÚÄÇÀCEOÍùÍùÊÇ×Ô·âµÄ£¬Ò²ºÜÉÙÓÐÈËÈ¥Ñо¿ÕâÒ»³Æν¶ÔÆóÒµµ½µ×Òâζ×Åʲô¡£µ ......
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¡¢Ö¸ÕëÔÚÈκÎÇé¿öÏ ......
Ò» ²úÉú ÔËÐÐʱ¿âÊdzÌÐòÔÚÔËÐÐʱËùÐèÒªµÄ¿âÎļþ£¬Í¨³£ÒÔLIB»òDLLÐÎʽÌṩ¡£ CÔËÐÐʱ¿â¾ÍÊÇC run-time library£¬µ®ÉúÓÚ20ÊÀ¼Í70Äê´ú£¬ÊÇC¶ø·ÇC++ÓïÑÔÊÀ½çµÄ¸ÅÄC³ÌÐòÔËÐÐʱÐèÒªÕâЩ¿âÖеĺ¯Êý¡£ C ÓïÑÔÊÇËùνµÄ¡°Ð¡Äںˡ±ÓïÑÔ£¬¾ÍÆäÓïÑÔ±¾ÉíÀ´ËµºÜС£¨²»¶àµÄ¹Ø¼ü×Ö£¬³ÌÐòÁ÷³Ì¿ØÖÆ£¬Êý¾ÝÀàÐ͵ȣ©¡£ËùÒÔ£¬CÓïÑÔÄں˿ª·¢³ö ......