Click here to Skip to main content
15,914,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with complex number types. Pin
Carlos Antollini17-May-02 19:21
Carlos Antollini17-May-02 19:21 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 1:45
oRion18-May-02 1:45 
GeneralRe: Help with complex number types. Pin
Mike Nordell17-May-02 23:58
Mike Nordell17-May-02 23:58 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 1:32
oRion18-May-02 1:32 
GeneralRe: Help with complex number types. Pin
Mike Nordell18-May-02 2:07
Mike Nordell18-May-02 2:07 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 2:37
oRion18-May-02 2:37 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 2:43
oRion18-May-02 2:43 
Questiona error has been throwed out when I add records into database? Pin
white jungle17-May-02 18:21
white jungle17-May-02 18:21 
I use ACCESS file as my database,but when I add a record into it,it throw error as follow:
invalid character or specs (NULL).
what cause this error occured? and how to solve it?
(I use MFC ODBC )
the program code as follow:
sqltext.Format ("select * from example");
pRS->Open (AFX_DB_USE_DEFAULT_TYPE,sqltext,CRecordset::dynamic);
pRS->AddNew();
//开始读文件
long length=filedata.GetLength ();
HGLOBAL hData=GlobalAlloc(GHND,length);
pRS->m_filename=filename;
pRS->m_filelength=length;
pRS->m_filedata.m_dwDataLength=length;
pRS->m_filedata.m_hData=GlobalLock(hData);
filedata.ReadHuge (pRS->m_filedata.m_hData,length);
pRS->SetFieldDirty (&pRS->m_filedata);
pRS->SetFieldNull (&pRS->m_filedata,FALSE);
pRS->Update ();
pRS->Close ();
GlobalUnlock(hData);
GlobalFree(hData);
filedata.Close ();

Don't look at me in that way!
AnswerRe: a error has been throwed out when I add records into database? Pin
Maxwell Chen17-May-02 18:31
Maxwell Chen17-May-02 18:31 
GeneralRe: a error has been throwed out when I add records into database? Pin
white jungle17-May-02 18:44
white jungle17-May-02 18:44 
GeneralRe: a error has been throwed out when I add records into database? Pin
Maxwell Chen17-May-02 19:02
Maxwell Chen17-May-02 19:02 
GeneralRe: a error has been throwed out when I add records into database? Pin
white jungle17-May-02 19:11
white jungle17-May-02 19:11 
GeneralRe: a error has been throwed out when I add records into database? Pin
Maxwell Chen17-May-02 19:20
Maxwell Chen17-May-02 19:20 
AnswerRe: a error has been throwed out when I add records into database? Pin
Alexandru Savescu17-May-02 22:22
Alexandru Savescu17-May-02 22:22 
GeneralRe: a error has been throwed out when I add records into database? Pin
white jungle18-May-02 0:28
white jungle18-May-02 0:28 
AnswerRe: a error has been throwed out when I add records into database? Pin
Maxwell Chen18-May-02 7:56
Maxwell Chen18-May-02 7:56 
Generalabout DCT & IDCT Pin
storein17-May-02 16:22
storein17-May-02 16:22 
GeneralRe: about DCT & IDCT Pin
storein18-May-02 22:13
storein18-May-02 22:13 
GeneralClass View Pin
Francisco Moraes17-May-02 14:40
Francisco Moraes17-May-02 14:40 
GeneralRe: Class View Pin
Amit Dey17-May-02 15:00
Amit Dey17-May-02 15:00 
GeneralRe: Class View Pin
Francisco Moraes18-May-02 2:44
Francisco Moraes18-May-02 2:44 
GeneralRe: Class View Pin
Francisco Moraes18-May-02 3:49
Francisco Moraes18-May-02 3:49 
GeneralTwo Errors LNK2001 and LNK1120 Pin
Dee17-May-02 13:18
Dee17-May-02 13:18 
GeneralRe: Two Errors LNK2001 and LNK1120 Pin
Christian Graus17-May-02 13:50
protectorChristian Graus17-May-02 13:50 
Generalunace.dll Pin
carrie17-May-02 13:11
carrie17-May-02 13:11 

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.