Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUse MFC inside win32 Pin
daydremer8-Jun-05 16:10
daydremer8-Jun-05 16:10 
GeneralRe: Use MFC inside win32 Pin
Christian Graus8-Jun-05 16:11
protectorChristian Graus8-Jun-05 16:11 
GeneralVFW and Capturing Image While Dialog is Minimized Pin
User 127828-Jun-05 15:45
User 127828-Jun-05 15:45 
GeneralHelp with compile error Pin
nombrecinq8-Jun-05 14:07
nombrecinq8-Jun-05 14:07 
GeneralRe: Help with compile error Pin
mark novak8-Jun-05 14:56
mark novak8-Jun-05 14:56 
GeneralRe: Help with compile error Pin
nombrecinq8-Jun-05 14:59
nombrecinq8-Jun-05 14:59 
GeneralRe: Help with compile error Pin
mark novak8-Jun-05 15:22
mark novak8-Jun-05 15:22 
Generalpointer question Pin
jee858-Jun-05 11:05
sussjee858-Jun-05 11:05 
Hi,
I new to programming...Pls bare with me for this is really a basic question in pointers..
In my program I have a global variable
char *gz_Nos[10];
I need to assign some strings(like '000001','000002'...) to this array in one of my function and check the values in other function..
so I did as follows..ie my .cpp

char *gz_Nos[10];
mycalss::myclass(){}
mycalss::~myclass(){}
int myclass::func1()
{
char t_str[MAX_STRLEN];
for(i=0;i<2;i++)
{

wsprintf(t_str,"00000%d",i+1);
gz_Nos[i]=t_str;

}
return 1;
}
int myclass::func2()
{
char *sz_no;
int i=0;
.....
sz_no = "000001"

for(i=0;i<2;i++)
{
if(sz_no == gz_Nos[i])
{
MessageBox(0,"Error","Error",MB_OK) ;
return 0;
}
}
}

But here I couldnt see the value of gz_Nos[i] in func2..I am calling func1 first and then func2.And also in func1 if I display the value of gz_Nos[0] it displays '000002'. Where am I going wrong...
Thanks a lot.
GeneralRe: pointer question Pin
mark novak8-Jun-05 14:54
mark novak8-Jun-05 14:54 
GeneralIActiveDesktop Pin
neliocc8-Jun-05 10:43
neliocc8-Jun-05 10:43 
GeneralRe: IActiveDesktop Pin
mark novak8-Jun-05 15:29
mark novak8-Jun-05 15:29 
GeneralRe: IActiveDesktop Pin
neliocc8-Jun-05 16:50
neliocc8-Jun-05 16:50 
GeneralRe: IActiveDesktop Pin
ThatsAlok8-Jun-05 18:51
ThatsAlok8-Jun-05 18:51 
GeneralQuestion RE. CriticalSection Pin
Budric B.8-Jun-05 10:26
Budric B.8-Jun-05 10:26 
GeneralRe: Question RE. CriticalSection Pin
Blake Miller8-Jun-05 11:21
Blake Miller8-Jun-05 11:21 
GeneralRe: Question RE. CriticalSection Pin
Axter8-Jun-05 18:52
professionalAxter8-Jun-05 18:52 
GeneralRe: Question RE. CriticalSection Pin
Bob Stanneveld8-Jun-05 20:53
Bob Stanneveld8-Jun-05 20:53 
GeneralRe: thanks Pin
Budric B.9-Jun-05 3:13
Budric B.9-Jun-05 3:13 
GeneralSHBrowseForFolder question Pin
Lynsen8-Jun-05 10:18
Lynsen8-Jun-05 10:18 
GeneralRe: SHBrowseForFolder question Pin
mark novak8-Jun-05 15:20
mark novak8-Jun-05 15:20 
GeneralCreating ODBC source Pin
Richard Jones8-Jun-05 9:50
Richard Jones8-Jun-05 9:50 
GeneralRe: Creating ODBC source Pin
Tom Archer8-Jun-05 10:10
Tom Archer8-Jun-05 10:10 
GeneralRe: Creating ODBC source Pin
Richard Jones9-Jun-05 2:24
Richard Jones9-Jun-05 2:24 
GeneralFont Style in CListCtrl Pin
RickyC8-Jun-05 9:32
RickyC8-Jun-05 9:32 
GeneralRe: Font Style in CListCtrl Pin
mark novak8-Jun-05 15:00
mark novak8-Jun-05 15:00 

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.