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

C / C++ / MFC

 
AnswerRe: Simple Mapi Vs Extended Mapi Pin
Stuart Dootson1-Jun-09 2:48
professionalStuart Dootson1-Jun-09 2:48 
QuestionWindows Forms Application C++ .net 2003 Pin
wael_r1-Jun-09 1:47
wael_r1-Jun-09 1:47 
AnswerRe: Windows Forms Application C++ .net 2003 Pin
56789012341-Jun-09 2:48
56789012341-Jun-09 2:48 
AnswerRe: Windows Forms Application C++ .net 2003 Pin
Stuart Dootson1-Jun-09 2:51
professionalStuart Dootson1-Jun-09 2:51 
GeneralRe: Windows Forms Application C++ .net 2003 Pin
wael_r1-Jun-09 3:28
wael_r1-Jun-09 3:28 
GeneralRe: Windows Forms Application C++ .net 2003 Pin
Stuart Dootson1-Jun-09 3:30
professionalStuart Dootson1-Jun-09 3:30 
GeneralRe: Windows Forms Application C++ .net 2003 Pin
wael_r1-Jun-09 19:52
wael_r1-Jun-09 19:52 
GeneralRe: Windows Forms Application C++ .net 2003 Pin
Stuart Dootson1-Jun-09 20:45
professionalStuart Dootson1-Jun-09 20:45 
wael_r wrote:
in the first form1 i put "test fff;"


If you put test fff; in the form, then it's a member of the form class. So, you'd need to access it using an instance of the first form.

If you want to share fff across all instances of form1 and form2, then you could make fff a static (or class-wide) member[^] of form1 - like this:

class Form1
{
  // Other stuff
  public: static test fff;
};


In Form1, you need to have a definition for fff (hte above is just the declaration like this:

test Form1::fff = { 1, 2 };


In form2, you can access it like this (I'm doing it in the constructor):

Form2::Form2()
{
  this->other_variable = Form1::fff.i;
}


Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionChange Toolbar background color Pin
Pryabu1-Jun-09 1:14
Pryabu1-Jun-09 1:14 
QuestionRegQueryValueEx giving wrong value in xp but right in vista Pin
VCProgrammer1-Jun-09 0:57
VCProgrammer1-Jun-09 0:57 
AnswerRe: RegQueryValueEx giving wrong value in xp but right in vista Pin
«_Superman_»1-Jun-09 1:13
professional«_Superman_»1-Jun-09 1:13 
QuestionRe: RegQueryValueEx giving wrong value in xp but right in vista Pin
CPallini1-Jun-09 1:34
mveCPallini1-Jun-09 1:34 
QuestionString obtained from getwindowtext(); Pin
johnjitu1-Jun-09 0:56
johnjitu1-Jun-09 0:56 
QuestionRe: String obtained from getwindowtext(); Pin
CPallini1-Jun-09 1:00
mveCPallini1-Jun-09 1:00 
AnswerRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 2:35
johnjitu1-Jun-09 2:35 
QuestionRe: String obtained from getwindowtext(); Pin
«_Superman_»1-Jun-09 1:11
professional«_Superman_»1-Jun-09 1:11 
AnswerRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 2:18
johnjitu1-Jun-09 2:18 
GeneralRe: String obtained from getwindowtext(); Pin
CPallini1-Jun-09 2:35
mveCPallini1-Jun-09 2:35 
GeneralRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 3:27
johnjitu1-Jun-09 3:27 
AnswerRe: String obtained from getwindowtext(); Pin
David Crow1-Jun-09 3:13
David Crow1-Jun-09 3:13 
GeneralRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 3:33
johnjitu1-Jun-09 3:33 
GeneralRe: String obtained from getwindowtext(); Pin
David Crow1-Jun-09 3:43
David Crow1-Jun-09 3:43 
GeneralRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 3:48
johnjitu1-Jun-09 3:48 
QuestionBehaviour of CreateThread compared to AfxBeginThread Pin
sunny_vc1-Jun-09 0:10
sunny_vc1-Jun-09 0:10 
AnswerRe: Behaviour of CreateThread compared to AfxBeginThread Pin
Naveen1-Jun-09 0:41
Naveen1-Jun-09 0:41 

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.