Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Guess what output, and tell me why? Pin
cadinfo10-Sep-02 2:57
cadinfo10-Sep-02 2:57 
GeneralRe: Guess what output, and tell me why? Pin
jhwurmbach10-Sep-02 3:56
jhwurmbach10-Sep-02 3:56 
GeneralRe: Guess what output, and tell me why? Pin
cadinfo10-Sep-02 16:14
cadinfo10-Sep-02 16:14 
GeneralRe: Guess what output, and tell me why? Pin
jhwurmbach10-Sep-02 20:31
jhwurmbach10-Sep-02 20:31 
Questionhow to copy file from dir1 to dir2 in code Pin
ns9-Sep-02 12:20
ns9-Sep-02 12:20 
AnswerRe: how to copy file from dir1 to dir2 in code Pin
Anders Molin9-Sep-02 12:27
professionalAnders Molin9-Sep-02 12:27 
GeneralRe: how to copy file from dir1 to dir2 in code Pin
Anonymous9-Sep-02 14:07
Anonymous9-Sep-02 14:07 
GeneralLocation of entry in database -help!ADO Pin
ns9-Sep-02 12:05
ns9-Sep-02 12:05 
I created a new database using ADOX. When I go to add ecords to it, they are added haphazardly, not in order. THe latest one might be in the middle somewhere...

How do I ensure that they get added in order?
Heres my code:
	try
	{

		ADO::_RecordsetPtr rsBlob (__uuidof(ADO::Recordset) );

		m_pCommand->CommandText="SELECT * FROM tblTest" ;  

		rsBlob->CursorLocation = ADO::adUseClient;
		rsBlob->Open ((IDispatch *) m_pCommand, vtMissing, ADO::adOpenKeyset,
							ADO::adLockOptimistic, -1);

		
		rsBlob->AddNew();
		rsBlob->Fields->Item["A_Image"]->Value = bstrFile;//strmBlob->Read(adReadAll);

///////////////////////////////////////////////////////////////////////////////



		char* charID = new char[strID.GetLength()+1];

		strcpy(charID, strID);

//		AfxMessageBox(charID);

		rsBlob->Fields->Item["MINE_TYPE"]->Value = charID;

		delete[] charID;



		}


Thanks for helping,
ns
GeneralRe: Location of entry in database -help!ADO Pin
Pavel Klocek10-Sep-02 3:20
Pavel Klocek10-Sep-02 3:20 
GeneralQuestion About Classes Pin
Nick Parker9-Sep-02 12:02
protectorNick Parker9-Sep-02 12:02 
GeneralRe: Question About Classes Pin
Christian Graus9-Sep-02 12:27
protectorChristian Graus9-Sep-02 12:27 
GeneralRe: Question About Classes Pin
Nick Parker10-Sep-02 2:58
protectorNick Parker10-Sep-02 2:58 
GeneralRe: Question About Classes Pin
jparsons10-Sep-02 3:05
jparsons10-Sep-02 3:05 
GeneralRe: Question About Classes Pin
Pavel Klocek10-Sep-02 3:23
Pavel Klocek10-Sep-02 3:23 
GeneralRe: Question About Classes Pin
Nick Parker10-Sep-02 7:42
protectorNick Parker10-Sep-02 7:42 
QuestionCan I include like this #include "C:/1.prv"? Pin
ooosawaddee39-Sep-02 11:54
ooosawaddee39-Sep-02 11:54 
AnswerRe: Can I include like this #include "C:/1.prv"? Pin
Christian Graus9-Sep-02 12:28
protectorChristian Graus9-Sep-02 12:28 
QuestionGetDocument() for CDialog? Pin
Brad Jennings9-Sep-02 11:12
Brad Jennings9-Sep-02 11:12 
AnswerRe: GetDocument() for CDialog? Pin
Joaquín M López Muñoz9-Sep-02 11:25
Joaquín M López Muñoz9-Sep-02 11:25 
Generalmem_fun & stl question Pin
Jurgen9-Sep-02 11:00
Jurgen9-Sep-02 11:00 
GeneralRe: mem_fun & stl question Pin
Joaquín M López Muñoz9-Sep-02 11:07
Joaquín M López Muñoz9-Sep-02 11:07 
QuestionCMonthCalCtrl bug? Pin
Deian9-Sep-02 10:55
Deian9-Sep-02 10:55 
AnswerRe: CMonthCalCtrl bug? Pin
adamUK9-Sep-02 12:40
adamUK9-Sep-02 12:40 
GeneralRe: CMonthCalCtrl bug? Pin
Deian10-Sep-02 4:19
Deian10-Sep-02 4:19 
GeneralOpening Access 2000 database from CD !!! Pin
Hadi Rezaee9-Sep-02 10:32
Hadi Rezaee9-Sep-02 10:32 

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.