Click here to Skip to main content
15,913,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: debugging VS6.0 C (not ++)... how to view entire array contents? Pin
krmed31-Jul-06 10:22
krmed31-Jul-06 10:22 
GeneralRe: debugging VS6.0 C (not ++)... how to view entire array contents? Pin
Jesse Evans31-Jul-06 11:16
Jesse Evans31-Jul-06 11:16 
GeneralRe: debugging VS6.0 C (not ++)... how to view entire array contents? Pin
Jesse Evans31-Jul-06 11:18
Jesse Evans31-Jul-06 11:18 
AnswerRe: debugging VS6.0 C (not ++)... how to view entire array contents? Pin
Zac Howland31-Jul-06 10:37
Zac Howland31-Jul-06 10:37 
GeneralRe: debugging VS6.0 C (not ++)... how to view entire array contents? Pin
Jesse Evans31-Jul-06 11:26
Jesse Evans31-Jul-06 11:26 
AnswerRe: debugging VS6.0 C (not ++)... how to view entire array contents? Pin
Michael Dunn31-Jul-06 18:07
sitebuilderMichael Dunn31-Jul-06 18:07 
QuestionReading And Writting Files to Access Database using ADO [modified] Pin
Christopher Stratmann31-Jul-06 8:36
Christopher Stratmann31-Jul-06 8:36 
AnswerRe: Reading And Writting Files to Access Database using ADO Pin
Zac Howland31-Jul-06 8:45
Zac Howland31-Jul-06 8:45 
chris175 wrote:
CFile cf;
if (cf.Open(s_file.c_str(),CFile::modeCreate|CFile::modeWrite) == FALSE)
{
eh.Initialize();
eh.Set(__FUNCTION__,__FILE__,__LINE__,EHTYPE_ERROR,"Failure to open and create the file '%s' to write data to.",s_file.c_str());
return false;
}
LPSTR buffer = (LPSTR)GlobalLock(m_lb_FileData.m_hData);
cf.WriteHuge(buffer,m_lb_FileData.m_dwDataLength); // Failure here.
GlobalUnlock(m_lb_FileData.m_hData);
cf.Close();


The failure is actually happening on the bold line. If GlobalLock fails, it returns NULL. When that happens, you should call GetLastError to see what the problem is.

How big is this block of memory you are writing out?


If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: Reading And Writting Files to Access Database using ADO Pin
Christopher Stratmann31-Jul-06 10:56
Christopher Stratmann31-Jul-06 10:56 
GeneralRe: Reading And Writting Files to Access Database using ADO Pin
Zac Howland31-Jul-06 11:16
Zac Howland31-Jul-06 11:16 
GeneralRe: Reading And Writting Files to Access Database using ADO Pin
Christopher Stratmann31-Jul-06 23:50
Christopher Stratmann31-Jul-06 23:50 
GeneralRe: Reading And Writting Files to Access Database using ADO Pin
Zac Howland1-Aug-06 3:46
Zac Howland1-Aug-06 3:46 
GeneralRe: Reading And Writting Files to Access Database using ADO Pin
Christopher Stratmann1-Aug-06 4:22
Christopher Stratmann1-Aug-06 4:22 
GeneralRe: Reading And Writting Files to Access Database using ADO Pin
Zac Howland1-Aug-06 4:40
Zac Howland1-Aug-06 4:40 
GeneralRe: Reading And Writting Files to Access Database using ADO Pin
Christopher Stratmann1-Aug-06 7:58
Christopher Stratmann1-Aug-06 7:58 
GeneralRe: Reading And Writting Files to Access Database using ADO Pin
Christopher Stratmann4-Aug-06 2:09
Christopher Stratmann4-Aug-06 2:09 
Questionwininet issue Pin
EpicYeti31-Jul-06 8:20
EpicYeti31-Jul-06 8:20 
AnswerRe: wininet issue Pin
Zac Howland31-Jul-06 9:11
Zac Howland31-Jul-06 9:11 
GeneralRe: wininet issue Pin
EpicYeti31-Jul-06 9:52
EpicYeti31-Jul-06 9:52 
GeneralRe: wininet issue Pin
Zac Howland31-Jul-06 9:57
Zac Howland31-Jul-06 9:57 
GeneralRe: wininet issue Pin
EpicYeti31-Jul-06 10:25
EpicYeti31-Jul-06 10:25 
GeneralRe: wininet issue Pin
Lucky the code machine23-Feb-08 5:55
Lucky the code machine23-Feb-08 5:55 
QuestionProblems with Dialog Buttons Pin
kitty531-Jul-06 6:34
kitty531-Jul-06 6:34 
AnswerRe: Problems with Dialog Buttons Pin
toxcct31-Jul-06 6:40
toxcct31-Jul-06 6:40 
GeneralRe: Problems with Dialog Buttons Pin
Zac Howland31-Jul-06 6:45
Zac Howland31-Jul-06 6:45 

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.