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

C / C++ / MFC

 
AnswerRe: In Window forms application C++ Pin
fanronghua1-Jun-09 19:25
fanronghua1-Jun-09 19:25 
QuestionTyping in Unicode language Pin
Benjamin Bruno1-Jun-09 3:32
Benjamin Bruno1-Jun-09 3:32 
QuestionSNMP development Pin
Jim Crafton1-Jun-09 3:25
Jim Crafton1-Jun-09 3:25 
AnswerRe: SNMP development Pin
Joe Woodbury1-Jun-09 8:19
professionalJoe Woodbury1-Jun-09 8:19 
GeneralRe: SNMP development Pin
Jim Crafton1-Jun-09 8:26
Jim Crafton1-Jun-09 8:26 
QuestionCRichEditCtrl on CMDIChildWnd and to capture mouse control Pin
prithaa1-Jun-09 2:48
prithaa1-Jun-09 2:48 
AnswerRe: CRichEditCtrl on CMDIChildWnd and to capture mouse control Pin
prithaa2-Jun-09 23:41
prithaa2-Jun-09 23:41 
QuestionSimple Mapi Vs Extended Mapi Pin
Anil Kumar.Arvapalli1-Jun-09 2:44
Anil Kumar.Arvapalli1-Jun-09 2:44 
AnswerRe: Simple Mapi Vs Extended Mapi Pin
CPallini1-Jun-09 2:46
mveCPallini1-Jun-09 2:46 
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 

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.