Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to change a variable to hexadecimal format ??? Pin
22-Jul-01 23:29
suss22-Jul-01 23:29 
AnswerRe: How to change a variable to hexadecimal format ??? Pin
jerry0davis22-Jul-01 23:39
jerry0davis22-Jul-01 23:39 
GeneralThank you . But I didn't want to print it . I only want to save it in a file Pin
23-Jul-01 6:48
suss23-Jul-01 6:48 
GeneralRe: Thank you . But I didn't want to print it . I only want to save it in a file Pin
markkuk23-Jul-01 11:48
markkuk23-Jul-01 11:48 
GeneralAbout how to delete object Pin
prog758422-Jul-01 23:04
prog758422-Jul-01 23:04 
GeneralRe: About how to delete object Pin
Christian Graus23-Jul-01 0:28
protectorChristian Graus23-Jul-01 0:28 
GeneralRe: About how to delete object Pin
Hrishi23-Jul-01 11:16
Hrishi23-Jul-01 11:16 
GeneralOut of memory Pin
Hadi Rezaee22-Jul-01 21:50
Hadi Rezaee22-Jul-01 21:50 
Hi all,
I'm writing program about database.
In my database i have 3 tables:

CDINFO, PERSON, GETGIVE

And i have 3 fields in CDINFO table:

FILMNAME ---> Text
FILMCODE ---> Integer
COUNT ---> Integer

I'm using of three objects of CDaoRecordset for opening each table ...
Now, i want to add new record in CDINFO:

COleVariant var;
char *szFilm = new char[50];
var.vt = VT_INT;


GetDlgItemText(IDC_EDIT1, szFilm, 50);
var.intVal = GetDlgItemInt(IDC_EDIT2);


m_rsCDINFO->AddNew();
m_rsCDINFO->SetFieldValue("FILMCODE", var);
m_rsCDINFO->SetFieldValue("FILMNAME", szFilm);
m_rsCDINFO->SetFieldValue("COUNT", var);
m_rsCDINFO->Update();

SetDlgItemText(IDC_EDIT1, "");
SetDlgItemText(IDC_EDIT2, "");

delete[] szFilm;

This code have not any error or warning, but when i'll running this code, program indicate to me error about: "Out of memory" !!!
Please tell me, what is my wrong ?


My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html

Hadi Rezaie
GeneralUse Image in Dll Pin
22-Jul-01 21:11
suss22-Jul-01 21:11 
QuestionHow can I get TextToSpeech API's? Pin
22-Jul-01 21:04
suss22-Jul-01 21:04 
AnswerRe: How can I get TextToSpeech API's? Pin
Mark Terrano30-Jul-01 14:14
Mark Terrano30-Jul-01 14:14 
GeneralWho know CHM help file format Pin
inforix22-Jul-01 20:37
inforix22-Jul-01 20:37 
GeneralRe: Who know CHM help file format Pin
Reid23-Jul-01 13:46
Reid23-Jul-01 13:46 
Generallearn visual c++ Pin
22-Jul-01 20:22
suss22-Jul-01 20:22 
GeneralRe: learn visual c++ Pin
Christian Graus23-Jul-01 0:35
protectorChristian Graus23-Jul-01 0:35 
GeneralRe: learn visual c++ Pin
Ahmad27-Jul-01 9:04
Ahmad27-Jul-01 9:04 
GeneralRe: learn visual c++ Pin
Christian Graus27-Jul-01 13:40
protectorChristian Graus27-Jul-01 13:40 
GeneralPassing Strings and arrays Pin
22-Jul-01 17:22
suss22-Jul-01 17:22 
GeneralRe: Passing Strings and arrays Pin
Michael Dunn22-Jul-01 17:26
sitebuilderMichael Dunn22-Jul-01 17:26 
GeneralOpening up Serial Ports in WinNT Pin
Nik Vogiatzis22-Jul-01 17:01
Nik Vogiatzis22-Jul-01 17:01 
GeneralRe: Opening up Serial Ports in WinNT Pin
Joaquín M López Muñoz22-Jul-01 20:20
Joaquín M López Muñoz22-Jul-01 20:20 
GeneralNo Untitled in Title bar. Pin
Steve Klinger22-Jul-01 13:38
Steve Klinger22-Jul-01 13:38 
GeneralRe: No Untitled in Title bar. Pin
Hrishi23-Jul-01 11:20
Hrishi23-Jul-01 11:20 
QuestionCListCtrl? Pin
22-Jul-01 13:02
suss22-Jul-01 13:02 
AnswerRe: CListCtrl? Pin
Reid22-Jul-01 18:56
Reid22-Jul-01 18:56 

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.