Click here to Skip to main content
16,006,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: why these Lex and Yacc programm can't run correctly? Pin
markkuk15-Dec-04 23:55
markkuk15-Dec-04 23:55 
GeneralRe: why these Lex and Yacc programm can't run correctly? Pin
toxcct16-Dec-04 2:14
toxcct16-Dec-04 2:14 
AnswerRe: why these Lex and Yacc programm can't run correctly? Pin
markkuk15-Dec-04 23:57
markkuk15-Dec-04 23:57 
GeneralSetting line low in Serial Comm Pin
CNewbie15-Dec-04 13:37
CNewbie15-Dec-04 13:37 
GeneralVariables and functions in user defined functions Pin
SeanSheehan15-Dec-04 13:33
SeanSheehan15-Dec-04 13:33 
GeneralRe: Variables and functions in user defined functions Pin
mirex16-Dec-04 1:12
mirex16-Dec-04 1:12 
GeneralRe: Variables and functions in user defined functions Pin
SeanSheehan18-Dec-04 11:51
SeanSheehan18-Dec-04 11:51 
GeneralRe: Variables and functions in user defined functions Pin
mirex20-Dec-04 2:57
mirex20-Dec-04 2:57 
Well definately you should not declare those variables, they should be declared (and inserted into sourcecode) when you create them by wizard.

I dont use VC.NET, just a classical VC 6, but it works this way:

I have main dialog, it is a class, it has two sourcefiles, header classfile.h and code classfile.cpp. When I insert a button and add a function to it it creates a function (OnButton1 for example) which is member of the dialog class (it is defined in header and function code outline is inserted into cpp file). If i create a edit box and associate a variable to it its definition is added to header file. (are you sure you added it ? because if you add it and then click 'cancel' button, then changes are lost, you have to click 'Ok' button in the wizard).
So now we have a function which is member of dialog class and a variables which are members of the dialog class. So they should see each other and they should be able to access each other...

if this does not help then please post a build log or project files, where we can see what is the error.
GeneralRe: Variables and functions in user defined functions Pin
toxcct16-Dec-04 2:44
toxcct16-Dec-04 2:44 
GeneralCMDIFrameWnd background Pin
JayMorrison15-Dec-04 11:15
JayMorrison15-Dec-04 11:15 
GeneralRe: CMDIFrameWnd background Pin
*Dreamz15-Dec-04 17:46
*Dreamz15-Dec-04 17:46 
GeneralRe: CMDIFrameWnd background Pin
JayMorrison16-Dec-04 6:21
JayMorrison16-Dec-04 6:21 
GeneralUploaded files are one long line Pin
Jack_pt15-Dec-04 10:38
Jack_pt15-Dec-04 10:38 
Generalresizing tab Pin
act_x15-Dec-04 9:13
act_x15-Dec-04 9:13 
Generalvariables Pin
Timothy Grabrian15-Dec-04 7:55
professionalTimothy Grabrian15-Dec-04 7:55 
GeneralRe: variables Pin
toxcct15-Dec-04 7:58
toxcct15-Dec-04 7:58 
GeneralRe: variables Pin
Timothy Grabrian15-Dec-04 8:03
professionalTimothy Grabrian15-Dec-04 8:03 
GeneralRe: variables Pin
Maximilien15-Dec-04 8:13
Maximilien15-Dec-04 8:13 
GeneralRe: variables Pin
toxcct15-Dec-04 8:14
toxcct15-Dec-04 8:14 
GeneralRe: variables Pin
David Crow15-Dec-04 8:19
David Crow15-Dec-04 8:19 
GeneralRe: variables Pin
Timothy Grabrian15-Dec-04 8:23
professionalTimothy Grabrian15-Dec-04 8:23 
Generalcan't use "new" with gdiplus objects Pin
happycpp15-Dec-04 7:34
happycpp15-Dec-04 7:34 
GeneralRe: can't use "new" with gdiplus objects Pin
David Crow15-Dec-04 8:25
David Crow15-Dec-04 8:25 
GeneralRe: can't use "new" with gdiplus objects Pin
PJ Arends15-Dec-04 9:03
professionalPJ Arends15-Dec-04 9:03 
GeneralRe: can't use "new" with gdiplus objects Pin
David Crow15-Dec-04 9:06
David Crow15-Dec-04 9:06 

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.