Click here to Skip to main content
16,011,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralISAPI Debugging Pin
Tili19-Mar-02 23:52
Tili19-Mar-02 23:52 
GeneralMy own ListCtrl into CListView Pin
19-Mar-02 23:17
suss19-Mar-02 23:17 
GeneralRe: My own ListCtrl into CListView Pin
Joaquín M López Muñoz19-Mar-02 23:41
Joaquín M López Muñoz19-Mar-02 23:41 
GeneralNeed to remove buttons from a propertysheet Pin
Hans Ruck19-Mar-02 23:20
Hans Ruck19-Mar-02 23:20 
GeneralRe: Need to remove buttons from a propertysheet Pin
Joaquín M López Muñoz19-Mar-02 23:30
Joaquín M López Muñoz19-Mar-02 23:30 
GeneralRe: Need to remove buttons from a propertysheet Pin
Hans Ruck19-Mar-02 23:55
Hans Ruck19-Mar-02 23:55 
Generalgen. a HASH from MAC address Pin
peterchen19-Mar-02 23:09
peterchen19-Mar-02 23:09 
GeneralHelp with probably basic ASSERT Pin
Jason Hooper19-Mar-02 22:59
Jason Hooper19-Mar-02 22:59 
I'm trying to fetch the user of this program's handle from a file when my SDI application loads. I have the following at the end of my CPuppyView::OnInitialUpdate():

if (!pDoc->LoadHandle())
{
	CHandleDlg dlgHandle;

	if (dlgHandle.DoModal() == IDOK)
	{
		CString h;

		dlgHandle.m_cHandle.GetWindowText(h.GetBuffer(65), 65);

		h.ReleaseBuffer();

		strncpy(pDoc->handle, h, 63);
	}
	else 
		return;

	pDoc->SaveHandle();
}

GetDlgItem(IDC_HANDLE)->SetWindowText(pDoc->handle);

Something about this code is ASSERTing, and it's rdiving me nuts. I'm pretty sure it's something to do with the CEdit control I'm using for CHandleDlg::m_cHandle (I know, I know, it sounds a bit like m_cHammer, but I'm pretty sure it's not that). I'm using the VC7 MDE which very sadistically doesn't have the ClassWizard I'm used to. So maybe I've added the CEdit control wrong? Or maybe I'm just missing something in that code that is very obviously wrong.

- Jason
Do you have a Pulse?
SonorkID: 100.611 Jason
GeneralRe: Help with probably basic ASSERT Pin
Joaquín M López Muñoz19-Mar-02 23:11
Joaquín M López Muñoz19-Mar-02 23:11 
GeneralRe: Help with probably basic ASSERT Pin
Jason Hooper19-Mar-02 23:32
Jason Hooper19-Mar-02 23:32 
GeneralRemove Menu Pin
vin19-Mar-02 22:21
vin19-Mar-02 22:21 
Questionjudge two RGB values are same color, one is just darker ?? Pin
19-Mar-02 20:31
suss19-Mar-02 20:31 
AnswerRe: judge two RGB values are same color, one is just darker ?? Pin
Joaquín M López Muñoz19-Mar-02 21:17
Joaquín M López Muñoz19-Mar-02 21:17 
AnswerRe: judge two RGB values are same color, one is just darker ?? Pin
David Wengier19-Mar-02 21:36
David Wengier19-Mar-02 21:36 
GeneralRe: judge two RGB values are same color, one is just darker ?? Pin
Joaquín M López Muñoz19-Mar-02 21:46
Joaquín M López Muñoz19-Mar-02 21:46 
GeneralRe: judge two RGB values are same color, one is just darker ?? Pin
David Wengier19-Mar-02 21:55
David Wengier19-Mar-02 21:55 
AnswerRe: judge two RGB values are same color, one is just darker ?? Pin
Jon Hulatt20-Mar-02 5:12
Jon Hulatt20-Mar-02 5:12 
QuestionSaving Variable as a file? Pin
MarkPQ19-Mar-02 19:27
MarkPQ19-Mar-02 19:27 
AnswerRe: Saving Variable as a file? Pin
Derek Waters19-Mar-02 19:58
Derek Waters19-Mar-02 19:58 
GeneralExcel Automation Pin
phat19-Mar-02 19:25
phat19-Mar-02 19:25 
GeneralRe: Excel Automation Pin
Bill Wilson20-Mar-02 7:31
Bill Wilson20-Mar-02 7:31 
GeneralRe: Excel Automation Pin
phat20-Mar-02 14:31
phat20-Mar-02 14:31 
GeneralRe: Excel Automation Pin
Bill Wilson21-Mar-02 5:26
Bill Wilson21-Mar-02 5:26 
GeneralRe: Excel Automation Pin
Carlos Antollini21-Mar-02 5:43
Carlos Antollini21-Mar-02 5:43 
GeneralBook suggestion Pin
19-Mar-02 18:29
suss19-Mar-02 18:29 

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.