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

C / C++ / MFC

 
QuestionWorking on Buttons Pin
RNarayan23-Oct-08 18:42
RNarayan23-Oct-08 18:42 
AnswerRe: Working on Buttons Pin
Prasann Mayekar23-Oct-08 19:59
Prasann Mayekar23-Oct-08 19:59 
AnswerRe: Working on Buttons Pin
SandipG 23-Oct-08 20:01
SandipG 23-Oct-08 20:01 
AnswerRe: Working on Buttons Pin
Alan Balkany24-Oct-08 4:15
Alan Balkany24-Oct-08 4:15 
QuestionDoubt regarding Private bytes(VM Size) Pin
Rinu_Raj23-Oct-08 8:07
Rinu_Raj23-Oct-08 8:07 
AnswerRe: Doubt regarding Private bytes(VM Size) Pin
Baltoro23-Oct-08 12:06
Baltoro23-Oct-08 12:06 
QuestionVisibility of members of owner class Pin
Radek7223-Oct-08 7:04
Radek7223-Oct-08 7:04 
AnswerRe: Visibility of members of owner class Pin
Richard Andrew x6423-Oct-08 7:07
professionalRichard Andrew x6423-Oct-08 7:07 
GeneralRe: Visibility of members of owner class Pin
Radek7223-Oct-08 8:11
Radek7223-Oct-08 8:11 
GeneralRe: Visibility of members of owner class Pin
Richard Andrew x6423-Oct-08 8:16
professionalRichard Andrew x6423-Oct-08 8:16 
AnswerRe: Visibility of members of owner class Pin
CPallini23-Oct-08 7:39
mveCPallini23-Oct-08 7:39 
Questiontutorial help Pin
jonig1923-Oct-08 3:38
jonig1923-Oct-08 3:38 
AnswerRe: tutorial help Pin
CPallini23-Oct-08 3:49
mveCPallini23-Oct-08 3:49 
AnswerRe: tutorial help Pin
Richard Andrew x6423-Oct-08 3:51
professionalRichard Andrew x6423-Oct-08 3:51 
GeneralRe: tutorial help Pin
Mark Salsbery23-Oct-08 4:42
Mark Salsbery23-Oct-08 4:42 
GeneralRe: tutorial help Pin
led mike23-Oct-08 5:23
led mike23-Oct-08 5:23 
Questionget pixel color Pin
rakesh528323-Oct-08 3:35
rakesh528323-Oct-08 3:35 
Questionget pixel color Pin
rakesh528323-Oct-08 3:34
rakesh528323-Oct-08 3:34 
AnswerRe: get pixel color Pin
CPallini23-Oct-08 3:48
mveCPallini23-Oct-08 3:48 
QuestionEM_AUTOURLDETECT , how to set the hyper link text color? Pin
YaronNir23-Oct-08 3:29
YaronNir23-Oct-08 3:29 
QuestionHow to declare global variable in MFC dialog based application? Pin
sn00pi23-Oct-08 2:42
sn00pi23-Oct-08 2:42 
AnswerRe: How to declare global variable in MFC dialog based application? Pin
CPallini23-Oct-08 3:09
mveCPallini23-Oct-08 3:09 
GeneralRe: How to declare global variable in MFC dialog based application? Pin
sn00pi23-Oct-08 5:31
sn00pi23-Oct-08 5:31 
GeneralRe: How to declare global variable in MFC dialog based application? Pin
CPallini23-Oct-08 6:06
mveCPallini23-Oct-08 6:06 
GeneralRe: How to declare global variable in MFC dialog based application? Pin
sn00pi23-Oct-08 8:02
sn00pi23-Oct-08 8:02 
hi,

here is it the oglMFCDialog.cpp code which is the dialog, when the user enter word, after click on button, the button function as below:

m_sText2 = m_sText;
m_sText = " ";

CString str = m_sText2;


int NumOfWords=0;
CString Word[20];

int c=0;
CString word;

int curPos= 0;
word = str.Tokenize(",.?% #",curPos);
while (word != "")
{

Word[NumOfWords]= word;
NumOfWords = NumOfWords + 1;
word = str.Tokenize(",.?% #",curPos);

}
COpenGLControl::COpenGLControl();



here is OpeGLControl.cpp file for OpenGL rendering,

COpenGLControl::COpenGLControl()
{
int NumOfWords;
CString Word;

static int t=0;
for(int a=0;a<NumOfWords; a++)
{
for(int c=0;c<NumOfFramesLoad;c++)
{
if(c == NumOfFramesLoad - 1)
{
g_3DModel[t] = g_3DModel[0];
}

else
{
string ObjFile[100];

char g ='0'+ c;
ObjFile[t] = Word[a] + g + ".obj";
........
........


The global variable i define in the OpenGLControl.h

extern int NumOfWords;
extern CString Words[20];


Those i need to used this 2 variables .cpp file i have declare them. Hope to hear from you soon. thank you.

regards,
sn00pi

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.