Click here to Skip to main content
15,917,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: COM Port data transfer Pin
Santanu Lahiri24-Mar-03 20:20
Santanu Lahiri24-Mar-03 20:20 
GeneralMessage Handling in Controls instead of Dialog Pin
brigham_young24-Mar-03 13:00
brigham_young24-Mar-03 13:00 
GeneralRe: Message Handling in Controls instead of Dialog Pin
bryce24-Mar-03 14:03
bryce24-Mar-03 14:03 
GeneralRe: Message Handling in Controls instead of Dialog Pin
Alin Negru24-Mar-03 22:02
Alin Negru24-Mar-03 22:02 
QuestionAdd Custom Controls To A Dialog??? Pin
brigham_young24-Mar-03 12:12
brigham_young24-Mar-03 12:12 
AnswerRe: Add Custom Controls To A Dialog??? Pin
Dave Bryant24-Mar-03 12:17
Dave Bryant24-Mar-03 12:17 
GeneralRe: Add Custom Controls To A Dialog??? Pin
brigham_young24-Mar-03 12:18
brigham_young24-Mar-03 12:18 
GeneralLearning to use an API Pin
trimtrom24-Mar-03 12:09
trimtrom24-Mar-03 12:09 
Hello,
I am a beginner trying to understand how to use an API (in this case HtmlHelp). I am not sure how to call an API method: I want to call a method HtmlHelp(...), which has four arguments, and I can see this in Intellisense if I put two colons before the methodname:

::HtmlHelp(HWND hwndCaller, LPCSTR pszFile, UINT uCommand, DWORD dwData) ;

However, all the examples I read show the method being called without the two colons, yet with four arguments. What does this mean?? Does this relate to namespaces?? When I take away the colons, the Intellisense shows only the CWinApp method:

virtual void HtmlHelp(DWORD_PTR dwData, UINT nCmd = 0x000F);

with two arguments. When I use the ::HtmlHelp(...) with four arguments, I get the following error message:

LPSEmail error LNK2019: unresolved external symbol _HtmlHelpA@16 referenced in function "public: int __thiscall CMainFrame::OnHelpInfo(struct tagHELPINFO *)" (?OnHelpInfo@CMainFrame@@QAEHPAUtagHELPINFO@@@Z)

I have placed the htmlhelp.lib file in the lib directory, and the htmlhelp.h at the top of this class. So what have I done wrong?? Do I need the colons??

Sincerely,
Trimtrom

GeneralRe: Learning to use an API Pin
Dave Bryant24-Mar-03 12:15
Dave Bryant24-Mar-03 12:15 
QuestionWhen do I initialize a CListView? Pin
Jonah Bishop24-Mar-03 11:51
Jonah Bishop24-Mar-03 11:51 
AnswerRe: When do I initialize a CListView? Pin
Ravi Bhavnani24-Mar-03 12:04
professionalRavi Bhavnani24-Mar-03 12:04 
GeneralRe: When do I initialize a CListView? Pin
Jonah Bishop24-Mar-03 15:00
Jonah Bishop24-Mar-03 15:00 
Generalcolor palette Pin
mstacey24-Mar-03 11:43
mstacey24-Mar-03 11:43 
GeneralRe: color palette Pin
_Theo_24-Mar-03 22:25
_Theo_24-Mar-03 22:25 
GeneralString replace Pin
act_x24-Mar-03 11:42
act_x24-Mar-03 11:42 
GeneralRe: String replace Pin
Nick Parker24-Mar-03 12:09
protectorNick Parker24-Mar-03 12:09 
GeneralRe: String replace Pin
Dave Bryant24-Mar-03 12:13
Dave Bryant24-Mar-03 12:13 
GeneralRe: String replace Pin
act_x25-Mar-03 4:15
act_x25-Mar-03 4:15 
GeneralRe: String replace Pin
Dave Bryant25-Mar-03 9:04
Dave Bryant25-Mar-03 9:04 
GeneralCHTMLWebBrowser ActiveX is not appearing in a property page! Pin
Anonymous24-Mar-03 9:05
Anonymous24-Mar-03 9:05 
GeneralRe: CHTMLWebBrowser ActiveX is not appearing in a property page! Pin
Ravi Bhavnani24-Mar-03 9:25
professionalRavi Bhavnani24-Mar-03 9:25 
GeneralCComboBox and scrollbars. Pin
ns24-Mar-03 7:36
ns24-Mar-03 7:36 
GeneralRe: CComboBox and scrollbars. Pin
Ravi Bhavnani24-Mar-03 8:25
professionalRavi Bhavnani24-Mar-03 8:25 
Generalthanks Pin
ns24-Mar-03 8:31
ns24-Mar-03 8:31 
GeneralRe: CComboBox and scrollbars. Pin
PJ Arends24-Mar-03 10:35
professionalPJ Arends24-Mar-03 10:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.