Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: execution access permissions Pin
Blake V. Miller24-Nov-05 9:16
Blake V. Miller24-Nov-05 9:16 
QuestionImport Certificate to PKCS 11 token Pin
Rajkishore Patel27-Oct-05 15:44
Rajkishore Patel27-Oct-05 15:44 
AnswerRe: Import Certificate to PKCS 11 token Pin
duyaofei22-Oct-09 23:18
duyaofei22-Oct-09 23:18 
GeneralRe: Import Certificate to PKCS 11 token Pin
na265094527-Mar-11 17:14
na265094527-Mar-11 17:14 
QuestionGet Window below mouse Pin
Andrei B27-Oct-05 15:08
Andrei B27-Oct-05 15:08 
AnswerRe: Get Window below mouse Pin
Andrei B27-Oct-05 15:25
Andrei B27-Oct-05 15:25 
GeneralRe: Get Window below mouse Pin
Trollslayer28-Oct-05 3:32
mentorTrollslayer28-Oct-05 3:32 
QuestionAccess Violation on App InitInstance Pin
NeverFall27-Oct-05 15:07
NeverFall27-Oct-05 15:07 
Hi!

I'm currently making a project in VC++ (MFC) and when suddenly, I encoutered upon this problem. I compiled by program, and tried to execute it. There were no error messages that pop-upped but the app was not running either. So, I debugged the program and stumbled upon an Access Violation on this part:

CxxxxDlg dlg;<br />
m_pMainWnd = &dlg;                  // here<br />
int nResponse = dlg.DoModal();<br />


So, I tried tracing those lines and never got a clue on how to fix it. Until I renewed the project, imported the resources. I ran it and it works well. But, when I added the class the I wrote, the error came up again. I figured out that the error must be in the class. The code in the constructor in the class when the error came up was:

CTristramCore::CTristramCore()<br />
{<br />
	initConstants();<br />
}<br />


I removed the code in the constructor and the error disappeared...

It's really wierd. Does anyone know why it is so? Blush | :O
AnswerRe: Access Violation on App InitInstance Pin
Prakash Nadar27-Oct-05 16:22
Prakash Nadar27-Oct-05 16:22 
GeneralRe: Access Violation on App InitInstance Pin
NeverFall27-Oct-05 16:54
NeverFall27-Oct-05 16:54 
GeneralRe: Access Violation on App InitInstance Pin
kakan27-Oct-05 19:36
professionalkakan27-Oct-05 19:36 
GeneralRe: Access Violation on App InitInstance Pin
prasad_som27-Oct-05 19:43
prasad_som27-Oct-05 19:43 
GeneralRe: Access Violation on App InitInstance Pin
Prakash Nadar27-Oct-05 20:11
Prakash Nadar27-Oct-05 20:11 
GeneralRe: Access Violation on App InitInstance Pin
NeverFall27-Oct-05 20:48
NeverFall27-Oct-05 20:48 
QuestionRe: Access Violation on App InitInstance Pin
Prakash Nadar27-Oct-05 21:24
Prakash Nadar27-Oct-05 21:24 
AnswerRe: Access Violation on App InitInstance Pin
NeverFall27-Oct-05 21:30
NeverFall27-Oct-05 21:30 
GeneralRe: Access Violation on App InitInstance Pin
Prakash Nadar27-Oct-05 22:49
Prakash Nadar27-Oct-05 22:49 
QuestionDialog Question and Combo/List Box Question Pin
LighthouseJ27-Oct-05 12:02
LighthouseJ27-Oct-05 12:02 
AnswerRe: Dialog Question and Combo/List Box Question Pin
Christian Graus27-Oct-05 13:00
protectorChristian Graus27-Oct-05 13:00 
AnswerRe: Dialog Question and Combo/List Box Question Pin
rahulv27-Oct-05 13:05
rahulv27-Oct-05 13:05 
GeneralRe: Dialog Question and Combo/List Box Question Pin
LighthouseJ27-Oct-05 14:24
LighthouseJ27-Oct-05 14:24 
GeneralRe: Dialog Question and Combo/List Box Question Pin
Christian Graus27-Oct-05 15:00
protectorChristian Graus27-Oct-05 15:00 
GeneralRe: Dialog Question and Combo/List Box Question Pin
LighthouseJ27-Oct-05 15:31
LighthouseJ27-Oct-05 15:31 
QuestionBuilding debug version without MSVCP71D.DLL!? Pin
Gunn31727-Oct-05 11:27
Gunn31727-Oct-05 11:27 
AnswerRe: Building debug version without MSVCP71D.DLL!? Pin
Chris Losinger28-Oct-05 4:23
professionalChris Losinger28-Oct-05 4:23 

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.