Click here to Skip to main content
15,910,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: delete operator Pin
Cedric Moonen16-May-08 4:39
Cedric Moonen16-May-08 4:39 
AnswerRe: delete operator Pin
jeron116-May-08 4:40
jeron116-May-08 4:40 
AnswerRe: delete operator [modified] Pin
CPallini16-May-08 4:42
mveCPallini16-May-08 4:42 
AnswerRe: delete operator Pin
David Crow16-May-08 5:00
David Crow16-May-08 5:00 
GeneralRe: delete operator Pin
iayd16-May-08 12:41
iayd16-May-08 12:41 
QuestionDebug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus16-May-08 4:01
panzerdivisionmarkus16-May-08 4:01 
AnswerRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
Gary R. Wheeler17-May-08 1:09
Gary R. Wheeler17-May-08 1:09 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus18-May-08 21:35
panzerdivisionmarkus18-May-08 21:35 
It's possible that I missed to redeclare some of the chars to TCHARs and messed up the sizing. Thanks for the tip, I'll have to check on that. But I don't understand why the GetModuleFileName casues an assetion when AFX_MANAGE_STATE(AfxGetStaticModuleState()) is used. As far as I can see that error shouldn't depend on any TCHAR/char mismatch.

Cctm::Cctm(void)
:m_lock("Cctm::lock")
{
  AFX_MANAGE_STATE(AfxGetStaticModuleState());

  m_initialized=FALSE;
  m_session=NULL;
  m_sModuleStatus[0]=0;
  m_iApprovedModuleStatus = 0;
  m_sActivityStatus[0]=0;
  m_iApprovedActivityStatus = 0;
  m_showCode=TRUE;
  m_moduleTypes=NULL;
  m_usedDisplayMasks=0;
  m_dbinfo=NULL;

  std_functions_init();

  //path to the DLL
  HINSTANCE l = afxCurrentResourceHandle;
  CString sFile;
  GetModuleFileName(AfxGetResourceHandle(), sFile.GetBuffer(_MAX_PATH + 1), _MAX_PATH);


Or could it have something to do with the sFile.GetBuffer(_MAX_PATH + 1)? Could that cause some wierd behaviout now when it's unicode?
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
Gary R. Wheeler19-May-08 0:12
Gary R. Wheeler19-May-08 0:12 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus19-May-08 23:30
panzerdivisionmarkus19-May-08 23:30 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
Gary R. Wheeler20-May-08 0:07
Gary R. Wheeler20-May-08 0:07 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus20-May-08 0:57
panzerdivisionmarkus20-May-08 0:57 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus20-May-08 1:14
panzerdivisionmarkus20-May-08 1:14 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
Gary R. Wheeler20-May-08 11:44
Gary R. Wheeler20-May-08 11:44 
AnswerRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus21-May-08 23:03
panzerdivisionmarkus21-May-08 23:03 
Questionproblem in migrating from VC6 to VC2005 Pin
ptr_Electron16-May-08 3:54
ptr_Electron16-May-08 3:54 
AnswerRe: problem in migrating from VC6 to VC2005 Pin
led mike16-May-08 4:17
led mike16-May-08 4:17 
Questionradiobuttons,vc++ Pin
Mohanraj D16-May-08 3:48
Mohanraj D16-May-08 3:48 
AnswerRe: radiobuttons,vc++ Pin
CPallini16-May-08 3:54
mveCPallini16-May-08 3:54 
AnswerRe: radiobuttons,vc++ Pin
toxcct16-May-08 4:03
toxcct16-May-08 4:03 
AnswerRe: radiobuttons,vc++ Pin
David Crow16-May-08 4:58
David Crow16-May-08 4:58 
GeneralRe: radiobuttons,vc++ Pin
Hamid_RT16-May-08 7:32
Hamid_RT16-May-08 7:32 
GeneralRe: radiobuttons,vc++ Pin
David Crow16-May-08 7:56
David Crow16-May-08 7:56 
GeneralRe: radiobuttons,vc++ Pin
Hamid_RT16-May-08 18:11
Hamid_RT16-May-08 18:11 
AnswerRe: radiobuttons,vc++ Pin
Hamid_RT16-May-08 18:12
Hamid_RT16-May-08 18:12 

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.