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

C / C++ / MFC

 
GeneralRe: Strange problem with errno modification while using sprintf call. Pin
Gajendra Sharma23-Mar-09 21:51
Gajendra Sharma23-Mar-09 21:51 
QuestionCan I add an AVI file as a resource in VS 2005? Pin
Erik16-Mar-09 21:05
Erik16-Mar-09 21:05 
AnswerRe: Can I add an AVI file as a resource in VS 2005? Pin
Jijo.Raj16-Mar-09 22:03
Jijo.Raj16-Mar-09 22:03 
QuestionIn the Function when Caller is change Type the Function solution will go change Pin
jeansea16-Mar-09 21:03
jeansea16-Mar-09 21:03 
AnswerRe: In the Function when Caller is change Type the Function solution will go change Pin
Jijo.Raj16-Mar-09 22:18
Jijo.Raj16-Mar-09 22:18 
GeneralRe: In the Function when Caller is change Type the Function solution will go change Pin
jeansea16-Mar-09 23:42
jeansea16-Mar-09 23:42 
GeneralRe: In the Function when Caller is change Type the Function solution will go change Pin
Jijo.Raj17-Mar-09 1:30
Jijo.Raj17-Mar-09 1:30 
GeneralRe: In the Function when Caller is change Type the Function solution will go change Pin
jeansea17-Mar-09 7:06
jeansea17-Mar-09 7:06 
Sorry


My English is Poor Poke tongue | ;-P



I Mean When Caller Type Change the Function Body will Be change also


i just want to know have any best way to solve this situation but

overloading



<br />
#include<iostream><br />
#include<vector><br />
<br />
using namespace std;<br />
<br />
int m_nType = 0x00000000;<br />
<br />
vector<string> m_vVoidName;<br />
<br />
bool VoidRedRole = false;<br />
<br />
<br />
void  SetOption(int Type)<br />
{<br />
		m_nType|=Type;<br />
}<br />
<br />
void  SetOption(string VoidName)<br />
{<br />
		m_vVoidName.push_back(VoidName);<br />
}<br />
<br />
void  SetOption(bool ToVoid)<br />
{<br />
		VoidRedRole = ToVoid;<br />
}<br />


you see it ,the Funtion Body isn't same ,i use overloading to solve


any other ways?

hope this description could help you


thank you all the same;P
GeneralRe: In the Function when Caller is change Type the Function solution will go change Pin
Stuart Dootson17-Mar-09 8:52
professionalStuart Dootson17-Mar-09 8:52 
QuestionCppUnit 1.12.1 compile error Pin
Sreedevi Jagannath16-Mar-09 19:25
Sreedevi Jagannath16-Mar-09 19:25 
AnswerRe: CppUnit 1.12.1 compile error Pin
Member 47566756-Aug-09 5:50
Member 47566756-Aug-09 5:50 
Questionhow to scroll client area of Dialog Pin
hemlat16-Mar-09 19:06
hemlat16-Mar-09 19:06 
AnswerRe: how to scroll client area of Dialog Pin
Hamid_RT16-Mar-09 19:50
Hamid_RT16-Mar-09 19:50 
QuestionChanging the Length of String from 8-Bits to 16-Bits Number Pin
Neelesh K J Jain16-Mar-09 11:33
Neelesh K J Jain16-Mar-09 11:33 
AnswerRe: Changing the Length of String from 8-Bits to 16-Bits Number Pin
CPallini16-Mar-09 11:43
mveCPallini16-Mar-09 11:43 
QuestionRe: Changing the Length of String from 8-Bits to 16-Bits Number Pin
led mike16-Mar-09 11:54
led mike16-Mar-09 11:54 
QuestionAnimated Vs html based websites Pin
llp00na16-Mar-09 8:56
llp00na16-Mar-09 8:56 
AnswerRe: Animated Vs html based websites Pin
led mike16-Mar-09 9:15
led mike16-Mar-09 9:15 
GeneralRe: Animated Vs html based websites Pin
llp00na16-Mar-09 9:23
llp00na16-Mar-09 9:23 
GeneralRe: Animated Vs html based websites Pin
CPallini16-Mar-09 11:10
mveCPallini16-Mar-09 11:10 
AnswerRe: Animated Vs html based websites Pin
Stuart Dootson16-Mar-09 9:23
professionalStuart Dootson16-Mar-09 9:23 
GeneralRe: Animated Vs html based websites Pin
llp00na16-Mar-09 9:27
llp00na16-Mar-09 9:27 
GeneralRe: Animated Vs html based websites Pin
Stuart Dootson16-Mar-09 9:33
professionalStuart Dootson16-Mar-09 9:33 
GeneralRe: Animated Vs html based websites Pin
llp00na16-Mar-09 9:39
llp00na16-Mar-09 9:39 
GeneralRe: Animated Vs html based websites Pin
led mike16-Mar-09 11:39
led mike16-Mar-09 11:39 

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.