Click here to Skip to main content
15,907,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Absolute bloody ADO hell Pin
Michael P Butler17-Sep-01 4:35
Michael P Butler17-Sep-01 4:35 
GeneralRe: Absolute bloody ADO hell Pin
Jeremy Pullicino17-Sep-01 5:29
Jeremy Pullicino17-Sep-01 5:29 
GeneralRe: Absolute bloody ADO hell Pin
Christian Graus17-Sep-01 13:00
protectorChristian Graus17-Sep-01 13:00 
GeneralAbsolute bloody ATL hell Pin
Christian Graus17-Sep-01 2:12
protectorChristian Graus17-Sep-01 2:12 
GeneralRe: Absolute bloody ATL hell Pin
Michael P Butler17-Sep-01 2:35
Michael P Butler17-Sep-01 2:35 
GeneralRe: Absolute bloody ATL hell Pin
Christian Graus17-Sep-01 2:51
protectorChristian Graus17-Sep-01 2:51 
GeneralRe: Absolute bloody ATL hell Pin
Michael P Butler17-Sep-01 3:02
Michael P Butler17-Sep-01 3:02 
GeneralRe: Absolute bloody ATL hell Pin
Christian Graus17-Sep-01 3:10
protectorChristian Graus17-Sep-01 3:10 
If I make it 255 in the constructor, it still comes out as 1. If I make it 255 in the function, it comes out 255. I traced into my function that reads the data:

	try
	{
		records->CursorType = adOpenStatic;
		records->CursorLocation = adUseClient;
		records->Open("SELECT * FROM FileDatabase",
		_variant_t((IDispatch*)m_Connection, true), adOpenKeyset, adLockOptimistic, 
		adCmdUnknown);
	}
	catch(...)//_com_error & e)
	{
//		MessageBox(NULL, e.ErrorMessage(), "", 0);
	}

	records->MoveFirst();

	vector<ISAFileEntry*> vecDatabase;
	
	do
	{
		CComObject<CSAFileEntry>* pFileEntry = NULL;

		CComObject<CSAFileEntry>::CreateInstance(&pFileEntry);

		if (pFileEntry)
		{
			FieldsPtr spFields = records->GetFields();

			string s = (bstr_t) spFields->Item["FileName"]->Value;
			for (string::iterator it = s.begin(); it != s.end(); ++it)
				 if (*it == '?') *it = '\'';
			pFileEntry->m_FileName = s.c_str();
			pFileEntry->m_FileLength = spFields->Item["FileLength"];
			pFileEntry->m_DownloadCount = spFields->Item["TimesDownloaded"];
			pFileEntry->m_LastModified = spFields->Item["LastModified"];
			pFileEntry->m_Width = spFields->Item["Width"];
			pFileEntry->m_Height = spFields->Item["Height"];
			pFileEntry->m_Frames = spFields->Item["Frames"];
			pFileEntry->m_Seconds = spFields->Item["Seconds"];


and when the data comes out of the database and into the pFileEntry, it is already corrupted, they are already all 1's.


Christian

As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.

Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
GeneralRe: Absolute bloody ATL hell Pin
Michael P Butler17-Sep-01 3:15
Michael P Butler17-Sep-01 3:15 
GeneralRe: Absolute bloody ATL hell Pin
Christian Graus17-Sep-01 3:30
protectorChristian Graus17-Sep-01 3:30 
GeneralHandling Button's Events Pin
MAAK17-Sep-01 1:26
MAAK17-Sep-01 1:26 
GeneralRe: Handling Button's Events Pin
Michael P Butler17-Sep-01 2:01
Michael P Butler17-Sep-01 2:01 
QuestionHow do I find out what workgroup/domain a host is in? Pin
Paul Vickery17-Sep-01 0:37
professionalPaul Vickery17-Sep-01 0:37 
AnswerRe: How do I find out what workgroup/domain a host is in? Pin
Michael P Butler17-Sep-01 2:07
Michael P Butler17-Sep-01 2:07 
GeneralRe: How do I find out what workgroup/domain a host is in? Pin
Paul Vickery17-Sep-01 3:20
professionalPaul Vickery17-Sep-01 3:20 
GeneralTicks in menus Pin
Nick Armstrong17-Sep-01 0:30
Nick Armstrong17-Sep-01 0:30 
GeneralRe: Ticks in menus Pin
Rashid Thadha17-Sep-01 0:52
Rashid Thadha17-Sep-01 0:52 
GeneralRe: Ticks in menus Pin
Tomasz Sowinski17-Sep-01 0:54
Tomasz Sowinski17-Sep-01 0:54 
GeneralRe: Ticks in menus Pin
Nick Armstrong17-Sep-01 2:03
Nick Armstrong17-Sep-01 2:03 
GeneralRe: Ticks in menus Pin
Tomasz Sowinski17-Sep-01 2:11
Tomasz Sowinski17-Sep-01 2:11 
Generala siple question about initialisation of pointer Pin
Gérald Mercet17-Sep-01 0:15
Gérald Mercet17-Sep-01 0:15 
GeneralRe: a siple question about initialisation of pointer Pin
Michael P Butler17-Sep-01 2:11
Michael P Butler17-Sep-01 2:11 
GeneralDisplay value of member in 'Variable' window Pin
Bartosz Lizak17-Sep-01 0:05
Bartosz Lizak17-Sep-01 0:05 
GeneralRe: Display value of member in 'Variable' window Pin
Christian Graus17-Sep-01 0:09
protectorChristian Graus17-Sep-01 0:09 
GeneralRe: Display value of member in 'Variable' window Pin
Bartosz Lizak17-Sep-01 0:19
Bartosz Lizak17-Sep-01 0:19 

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.