ethereal1m's Profile User Rating: -----

Reputation: 3 Apprentice
Group:
Contributors
Active Posts:
208 (0.12 per day)
Joined:
30-June 09
Profile Views:
3,327
Last Active:
User is offline Feb 16 2014 09:10 PM
Currently:
Offline

Previous Fields

Dream Kudos:
50

Latest Visitors

Icon   ethereal1m has not set their status

Posts I've Made

  1. In Topic: source information is missing from the debug information for this buil

    Posted 10 Feb 2014

    I guess, I just curious on how my code and windows create MessageBox (The code passes garbage characters, I need to know where they came from, but that's another issue. I figure out that the garbage characters are collected by g_SetDialogStrings_Ex). The first attachment shows the call stack before I got the message.

    AfxDlgProc is calling:
    BOOL CDemo_LockSDKDlg::OnInitDialog()
    {
    	CDialog::OnInitDialog();
    
    	// Set the icon for this dialog.  The framework does this automatically
    	//  when the application's main window is not a dialog
    	SetIcon(m_hIcon, TRUE);			// Set big icon
    	SetIcon(m_hIcon, FALSE);		// Set small icon
    	g_SetDialogStrings_Ex(this,IDD);
     
    	char cbuf[20];
        
         CTime m_Date = CTime::GetCurrentTime() + CTimeSpan( 1, 0, 0, 0 );
    	m_strCheckoutTime.Format(_T("%04d-%02d-%02d"),m_Date.GetYear(),m_Date.GetMonth(),m_Date.GetDay());
    	m_strCheckoutTime +=" 12:00:00";
        _getLocalTimeStr(cbuf);
        m_strCheckinTime = cbuf; 	
    	m_strRoomNo = _T("001.002.0028");
    	UpdateData(FALSE);
    	return TRUE;  // return TRUE  unless you set the focus to a control
    }
    
    

    And return to to AfxDlgProc after get executed (call stack is described in the second attachment).
  2. In Topic: source information is missing from the debug information for this buil

    Posted 10 Feb 2014

    @Gwatt,
    no, the procedure is called by a object that has CDialog as a parent. The debug session is still on, but it only shows "Source Not Available" screen.

    @Skydiver,
    I already enabled Symbol Download, but it doesn't fix the problem.
  3. In Topic: Problem with Character Set

    Posted 9 Feb 2014

    C++, sir.. so how to allocate the memory properly...?
  4. In Topic: error LNK2019: unresolved external symbol with CString

    Posted 9 Feb 2014

    Very goooddd....fantastic
  5. In Topic: Problem with Character Set

    Posted 9 Feb 2014

    Hi,
    looks like the following external function:
    int __stdcall	TP_ReadGuestCard(TCHAR *card_snr,TCHAR *room_no, TCHAR *checkin_time, TCHAR *checkout_time);
    
    

    fills the variables card_snr, room_no, and so on with garbage characters (or that what the solution thinks). By the way, the project itself is set to Unicode character.

    So how can I fix this?

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

ethereal1m hasn't added any friends yet.

Comments

ethereal1m has no profile comments yet. Why not say hello?