网上讨论的也很多了.我想问这个问题肯定会被人笑成不能再菜的菜niao,是的,我是菜niao,现在想学习VC,我学过其他的一些语言,我知道那些都有manual or reference,像java在sun上有个api reference.其他的一些语言也有类似的,php有的也有.不知我对msdn的理解是不是也是一个帮助档,或是api reference or manual.第二个问题是:我想问一下的是msdn(指机子上装的msdn)和msdn online(www.microsoft.com/msdn)有什么区别.
www.microsoft.com/msdn 上的那个search都查到得吗?我能上网的情况下,有没有必要装一个msdn在机子上.下面我举个例子:
比如我要查关于AfxMessageBox这个函数的用法,知道它的参数,功能之类.
我在msdn online(http://search.microsoft.com/search/results.aspx?qu=AfxMessageBox&View=msdn&st=b&c=4&s=1&swc=4)里查了以下的内容:我选择了第二个结果:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_afxmessagebox.asp
AfxMessageBox
int AfxMessageBox( LPCTSTR lpszText, UINT nType = MB_OK, UINT nIDHelp = 0 );int AFXAPI AfxMessageBox( UINT nIDPrompt, UINT nType = MB_OK, UINT nIDHelp = (UINT) -1 );Return ValueZero if there is not enough memory to display the message box; otherwise one of the following values is returned: IDABORT The Abort button was selected.
IDCANCEL The Cancel button was selected.
IDIGNORE The Ignore button was selected.
IDNO The No button was selected.
IDOK The OK button was selected.
IDRETRY The Retry button was selected.
IDYES The Yes button was selected.
If a message box has a Cancel button, the IDCANCEL value will be returned if either the ESC key is pressed or the Cancel button is selected. If the message box has no Cancel button, pressing the ESC key has no effect.The functions AfxFormatString1 and AfxFormatString2 can be useful in formatting text that appears in a message box.ParameterslpszTextPoints to a CString object or null-terminated string containing the message to be displayed in the message box.nTypeThe style of the message box. Apply any of the message-box styles to the box. nIDHelpThe Help-context ID for the message; 0 indicates the application's default Help context will be used.nIDPromptA unique ID used to reference a string in the string table.ResDisplays a message box on the screen. The first form of this overloaded function displays a text string pointed to by lpszText in the message box and uses nIDHelp to describe a Help context. The Help context is used to jump to an associated Help topic when the user presses the Help key (typically F1).The second form of the function uses the string resource with the ID nIDPrompt to display a message in the message box. The associated Help page is found through the value of nIDHelp. If the default value of nIDHelp is used (­ 1), the string resource ID, nIDPrompt, is used for the Help context. For more information about defining Help contexts, see the article Help Topics in Visual C++ Programmer's Guide and Technical Note 28. Example// A simple message box, with only the OK button.
AfxMessageBox("Simple message box.");// A message box that uses a string from a string table
// with yes and no buttons and the stop icon.
// NOTE: nStringID is an integer that contains a valid id of
// a string in the current resource.
AfxMessageBox(nStringID, MB_YESNO|MB_ICONSTOP);See Also CWnd::MessageBox
这样查是否正确?msdn library 是否就是msdn的核心?还有中文的网站的那个msdn怎么什么查不到,我查的也是英文.是不是没有的,还是为什么?
以上问题是一个想进入VC这个殿堂的菜niao恳请各位大侠高手前辈指个路?以后可能还会有很多问题麻烦大家,先谢谢了!
www.microsoft.com/msdn 上的那个search都查到得吗?我能上网的情况下,有没有必要装一个msdn在机子上.下面我举个例子:
比如我要查关于AfxMessageBox这个函数的用法,知道它的参数,功能之类.
我在msdn online(http://search.microsoft.com/search/results.aspx?qu=AfxMessageBox&View=msdn&st=b&c=4&s=1&swc=4)里查了以下的内容:我选择了第二个结果:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_afxmessagebox.asp
AfxMessageBox
int AfxMessageBox( LPCTSTR lpszText, UINT nType = MB_OK, UINT nIDHelp = 0 );int AFXAPI AfxMessageBox( UINT nIDPrompt, UINT nType = MB_OK, UINT nIDHelp = (UINT) -1 );Return ValueZero if there is not enough memory to display the message box; otherwise one of the following values is returned: IDABORT The Abort button was selected.
IDCANCEL The Cancel button was selected.
IDIGNORE The Ignore button was selected.
IDNO The No button was selected.
IDOK The OK button was selected.
IDRETRY The Retry button was selected.
IDYES The Yes button was selected.
If a message box has a Cancel button, the IDCANCEL value will be returned if either the ESC key is pressed or the Cancel button is selected. If the message box has no Cancel button, pressing the ESC key has no effect.The functions AfxFormatString1 and AfxFormatString2 can be useful in formatting text that appears in a message box.ParameterslpszTextPoints to a CString object or null-terminated string containing the message to be displayed in the message box.nTypeThe style of the message box. Apply any of the message-box styles to the box. nIDHelpThe Help-context ID for the message; 0 indicates the application's default Help context will be used.nIDPromptA unique ID used to reference a string in the string table.ResDisplays a message box on the screen. The first form of this overloaded function displays a text string pointed to by lpszText in the message box and uses nIDHelp to describe a Help context. The Help context is used to jump to an associated Help topic when the user presses the Help key (typically F1).The second form of the function uses the string resource with the ID nIDPrompt to display a message in the message box. The associated Help page is found through the value of nIDHelp. If the default value of nIDHelp is used (­ 1), the string resource ID, nIDPrompt, is used for the Help context. For more information about defining Help contexts, see the article Help Topics in Visual C++ Programmer's Guide and Technical Note 28. Example// A simple message box, with only the OK button.
AfxMessageBox("Simple message box.");// A message box that uses a string from a string table
// with yes and no buttons and the stop icon.
// NOTE: nStringID is an integer that contains a valid id of
// a string in the current resource.
AfxMessageBox(nStringID, MB_YESNO|MB_ICONSTOP);See Also CWnd::MessageBox
这样查是否正确?msdn library 是否就是msdn的核心?还有中文的网站的那个msdn怎么什么查不到,我查的也是英文.是不是没有的,还是为什么?
以上问题是一个想进入VC这个殿堂的菜niao恳请各位大侠高手前辈指个路?以后可能还会有很多问题麻烦大家,先谢谢了!
解决方案 »
- 关于BugReport程序的问题
- 基于CFormView的多文档程序,页面切换时闪烁得厉害,请问怎么才能消除晃动?
- MFC做控件,属性的持久化问题,高手请进!!
- 有两个资源文件,里面是不同的语言版本,我应该如何全部编译到一个程序里面?
- Win95下怪问题(Windows2000, 98, NT都没有这个问题),请高手帮忙
- 刷新的问题!
- 为什么有的程序右键菜单可以连续弹出,而有的却不能?
- 第二天学习VC,呵呵~~~~`大家多多关照。
- COM怎么入门?
- java是不支持指针的,如果我用vc编写了一个com,有一个接口用到了指针,java怎么调用.
- 请问哪里有VC++6.0的下载地址呀
- 一个类似瑞星杀毒的SDK界面程序!在线等!40!
我连一句命令也写不出来
^^
我想问一下的是msdn(指机子上装的msdn)和msdn online(www.microsoft.com/msdn)有什么区别.
你的是老的,网上是新的, 你可以上网,我还是建议安装一下MSDN
还有很多例程、很多不错的article,
当然,还有PlatformSDK。
//---------
MSDN是比简单的API Reference更加详细的文档,是一个不可多得的并且是很全的知识库。