Click here to Skip to main content
15,914,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Undeclared identifier in API Pin
Orjan Westin9-Oct-14 5:06
professionalOrjan Westin9-Oct-14 5:06 
GeneralRe: Undeclared identifier in API Pin
Freak309-Oct-14 22:28
Freak309-Oct-14 22:28 
Your Approach only works as long as you are never required to pass a Param object as paramter or return one. Of course you could work with forward declaration (if you only pass references/pointers), but I would suggest another solution.

Create a libapi.hpp and include the headers in the correct order (i.e. map, string, Param.h, libApi.h). Consumers of your API inlclude the hpp. In the libApi.cpp you include the Param.h before the libApi.h. Then it should work.
The good thing about pessimism is, that you are always either right or pleasently surprised.

GeneralRe: Undeclared identifier in API Pin
Orjan Westin9-Oct-14 23:02
professionalOrjan Westin9-Oct-14 23:02 
QuestionCOM Component Pin
john56329-Oct-14 1:45
john56329-Oct-14 1:45 
AnswerRe: COM Component Pin
«_Superman_»9-Oct-14 2:26
professional«_Superman_»9-Oct-14 2:26 
QuestionC++ MFC Dialog Password encryption Vs2005 [moved] Pin
WinterC7-Oct-14 20:16
WinterC7-Oct-14 20:16 
GeneralRe: C++ MFC Dialog Password encryption Vs2005 Pin
Nelek8-Oct-14 0:08
protectorNelek8-Oct-14 0:08 
AnswerRe: C++ MFC Dialog Password encryption Vs2005 [moved] Pin
Richard MacCutchan8-Oct-14 4:16
mveRichard MacCutchan8-Oct-14 4:16 
RantDoes this line of code bother anyone? Pin
stgagnon7-Oct-14 11:29
stgagnon7-Oct-14 11:29 
GeneralRe: Does this line of code bother anyone? Pin
«_Superman_»7-Oct-14 15:53
professional«_Superman_»7-Oct-14 15:53 
GeneralRe: Does this line of code bother anyone? Pin
stgagnon8-Oct-14 2:36
stgagnon8-Oct-14 2:36 
GeneralRe: Does this line of code bother anyone? Pin
Richard MacCutchan7-Oct-14 22:40
mveRichard MacCutchan7-Oct-14 22:40 
GeneralRe: Does this line of code bother anyone? Pin
stgagnon8-Oct-14 2:38
stgagnon8-Oct-14 2:38 
GeneralRe: Does this line of code bother anyone? Pin
Richard MacCutchan8-Oct-14 2:48
mveRichard MacCutchan8-Oct-14 2:48 
QuestionRe: Does this line of code bother anyone? Pin
CPallini7-Oct-14 23:06
mveCPallini7-Oct-14 23:06 
GeneralRe: Does this line of code bother anyone? Pin
stgagnon8-Oct-14 2:41
stgagnon8-Oct-14 2:41 
AnswerRe: Does this line of code bother anyone? Pin
Stefan_Lang13-Oct-14 3:00
Stefan_Lang13-Oct-14 3:00 
GeneralRe: Does this line of code bother anyone? Pin
Chris Maunder8-Oct-14 3:07
cofounderChris Maunder8-Oct-14 3:07 
QuestionAbout SetFocus in Doc/View Architecture Pin
Drakesal6-Oct-14 5:12
Drakesal6-Oct-14 5:12 
Questionsaving records without database? Pin
Robin Percival Vibar5-Oct-14 20:49
Robin Percival Vibar5-Oct-14 20:49 
AnswerRe: saving records without database? Pin
CPallini5-Oct-14 21:15
mveCPallini5-Oct-14 21:15 
QuestionTLS Callback generates Virus alert Pin
MarkMacro693-Oct-14 22:50
MarkMacro693-Oct-14 22:50 
Questionquine mccluskey method on C/C++ Pin
Reuben Cabrera2-Oct-14 4:08
Reuben Cabrera2-Oct-14 4:08 
GeneralRe: quine mccluskey method on C/C++ Pin
David Crow2-Oct-14 5:13
David Crow2-Oct-14 5:13 
GeneralRe: quine mccluskey method on C/C++ Pin
Reuben Cabrera2-Oct-14 21:38
Reuben Cabrera2-Oct-14 21:38 

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.