Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Incredible functions... may exist ? Pin
Joe Woodbury12-May-04 11:01
professionalJoe Woodbury12-May-04 11:01 
GeneralRe: Incredible functions... may exist ? Pin
Rafael Fernández López12-May-04 11:05
Rafael Fernández López12-May-04 11:05 
GeneralRe: Incredible functions... may exist ? Pin
Joe Woodbury12-May-04 11:26
professionalJoe Woodbury12-May-04 11:26 
GeneralRe: Incredible functions... may exist ? Pin
Rafael Fernández López12-May-04 12:01
Rafael Fernández López12-May-04 12:01 
GeneralRe: Incredible functions... may exist ? Pin
Christian Graus12-May-04 12:17
protectorChristian Graus12-May-04 12:17 
GeneralRe: Incredible functions... may exist ? Pin
Joe Woodbury12-May-04 12:47
professionalJoe Woodbury12-May-04 12:47 
GeneralRe: Incredible functions... may exist ? Pin
Rafael Fernández López13-May-04 4:01
Rafael Fernández López13-May-04 4:01 
GeneralC++ Constructor Pin
act_x12-May-04 9:40
act_x12-May-04 9:40 
I am using MFC and have a class named
class CProfiles :: CPropertyPage
I currently have the default constructor , using which I create an Object of this class at Runtime such as :
<br />
CProfiles *ptr = new CProfiles();

Now i needed to modify this to pass a value that I need
CProfiles *ptr = new CProfiles(12);

I tried to make changes to my class

In the .h file

CProfiles();and in the .cpp file

CProfiles::CProfiles(int type=0) : CPropertyPage(CProfiles::IDD)<br />
{<br />
	//{{AFX_DATA_INIT(CProfiles)<br />
	//}}AFX_DATA_INIT<br />
	dataBuffer=0;<br />
	bufferSize=0;<br />
	loaded = false;	<br />
	// Initialize<br />
	Initialize();<br />
}

This isnt compiling . What am I doing wrong here ?
GeneralRe: C++ Constructor Pin
toxcct12-May-04 9:53
toxcct12-May-04 9:53 
GeneralRe: C++ Constructor Pin
act_x12-May-04 9:56
act_x12-May-04 9:56 
GeneralRe: C++ Constructor Pin
act_x12-May-04 10:01
act_x12-May-04 10:01 
GeneralRe: C++ Constructor Pin
toxcct12-May-04 10:05
toxcct12-May-04 10:05 
Generalsound recording &amp; playback Pin
shoonya12-May-04 9:31
shoonya12-May-04 9:31 
GeneralRe: sound recording &amp; playback Pin
Anthony_Yio12-May-04 16:51
Anthony_Yio12-May-04 16:51 
GeneralRe: sound recording &amp; playback Pin
Marcus Spitzmiller12-May-04 17:58
Marcus Spitzmiller12-May-04 17:58 
GeneralRe: sound recording &amp; playback Pin
Joe Woodbury12-May-04 19:57
professionalJoe Woodbury12-May-04 19:57 
GeneralGet the path of a file Pin
Ruben93812-May-04 7:59
Ruben93812-May-04 7:59 
GeneralRe: Get the path of a file Pin
David Crow12-May-04 8:11
David Crow12-May-04 8:11 
GeneralRe: Get the path of a file Pin
Ruben93812-May-04 8:45
Ruben93812-May-04 8:45 
GeneralRe: Get the path of a file Pin
David Crow12-May-04 8:49
David Crow12-May-04 8:49 
GeneralRe: Get the path of a file Pin
Ruben93812-May-04 11:16
Ruben93812-May-04 11:16 
GeneralRe: Get the path of a file Pin
David Crow13-May-04 2:09
David Crow13-May-04 2:09 
GeneralRe: Get the path of a file Pin
Ruben93812-May-04 11:16
Ruben93812-May-04 11:16 
GeneralRe: Get the path of a file Pin
David Crow13-May-04 2:11
David Crow13-May-04 2:11 
GeneralRe: Get the path of a file Pin
Christopher Lloyd12-May-04 10:30
Christopher Lloyd12-May-04 10:30 

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.