Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFile input/output help Pin
eric_tran24-Sep-06 2:50
eric_tran24-Sep-06 2:50 
AnswerRe: File input/output help Pin
Eytukan24-Sep-06 3:16
Eytukan24-Sep-06 3:16 
AnswerRe: File input/output help Pin
singersinger24-Sep-06 3:22
singersinger24-Sep-06 3:22 
AnswerRe: File input/output help Pin
eric_tran24-Sep-06 4:20
eric_tran24-Sep-06 4:20 
GeneralRe: File input/output help Pin
eusto24-Sep-06 5:17
eusto24-Sep-06 5:17 
GeneralRe: File input/output help Pin
eric_tran24-Sep-06 5:26
eric_tran24-Sep-06 5:26 
GeneralRe: File input/output help Pin
eusto24-Sep-06 6:06
eusto24-Sep-06 6:06 
QuestionAccess violation problem Pin
singersinger24-Sep-06 2:44
singersinger24-Sep-06 2:44 
hello,

i have a 2 classes each have a couple of functions and variable

the problem is: when i want to access a variable from class B inside a function in class A

it come up with Unhandled Exception says:

unhandled exception in "program name": 0xC0000005: Access Violation

 <br />
<br />
class A<br />
<br />
{<br />
<br />
  ////////<br />
<br />
B* p_channel;<br />
<br />
  /////////<br />
<br />
inline BOOL StartIVR(){ p_channel->m_started = TRUE;  // error occur here}  <br />
<br />
  ///////<br />
<br />
}<br />
<br />
class B<br />
<br />
{<br />
<br />
  /////////<br />
<br />
 BOOL      m_started ;<br />
<br />
  ///////<br />
<br />
}<br />
<br />


also any other access to any member in class B will result with the same exception

plz if anybody have any idea abt what's goin' on with this code, feel free to tell me :=)

thnx alot for ur time and concern
QuestionRe: Access violation problem Pin
Eytukan24-Sep-06 3:34
Eytukan24-Sep-06 3:34 
AnswerRe: Access violation problem Pin
Eytukan24-Sep-06 3:41
Eytukan24-Sep-06 3:41 
AnswerRe: Access violation problem Pin
Jörgen Sigvardsson24-Sep-06 14:32
Jörgen Sigvardsson24-Sep-06 14:32 
GeneralRe: Access violation problem Pin
singersinger24-Sep-06 21:46
singersinger24-Sep-06 21:46 
GeneralRe: Access violation problem Pin
Eytukan24-Sep-06 23:13
Eytukan24-Sep-06 23:13 
AnswerRe: Access violation problem Pin
Hamid_RT24-Sep-06 18:07
Hamid_RT24-Sep-06 18:07 
GeneralRe: Access violation problem Pin
Eytukan24-Sep-06 18:35
Eytukan24-Sep-06 18:35 
GeneralRe: Access violation problem Pin
Hamid_RT24-Sep-06 22:16
Hamid_RT24-Sep-06 22:16 
GeneralRe: Access violation problem Pin
Eytukan24-Sep-06 23:07
Eytukan24-Sep-06 23:07 
GeneralRe: Access violation problem Pin
Hamid_RT24-Sep-06 23:32
Hamid_RT24-Sep-06 23:32 
AnswerRe: Access violation problem Pin
singersinger24-Sep-06 22:37
singersinger24-Sep-06 22:37 
Questionusing Visual Studio to build C/C++ projects with dependencies Pin
George_George24-Sep-06 2:32
George_George24-Sep-06 2:32 
AnswerRe: using Visual Studio to build C/C++ projects with dependencies Pin
Eytukan24-Sep-06 3:23
Eytukan24-Sep-06 3:23 
GeneralRe: using Visual Studio to build C/C++ projects with dependencies Pin
George_George25-Sep-06 3:16
George_George25-Sep-06 3:16 
AnswerRe: using Visual Studio to build C/C++ projects with dependencies Pin
cmk24-Sep-06 9:56
cmk24-Sep-06 9:56 
GeneralRe: using Visual Studio to build C/C++ projects with dependencies Pin
George_George25-Sep-06 3:12
George_George25-Sep-06 3:12 
AnswerRe: using Visual Studio to build C/C++ projects with dependencies Pin
PJ Arends24-Sep-06 9:58
professionalPJ Arends24-Sep-06 9:58 

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.