Click here to Skip to main content
15,923,789 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Exe in debug/release don't work outside VS ! Pin
ArunKumar Yalamarthy29-Sep-05 2:42
ArunKumar Yalamarthy29-Sep-05 2:42 
Questiondifference betwwen static & dynamic in MFC Pin
bujji_bec25-Sep-05 20:50
bujji_bec25-Sep-05 20:50 
AnswerRe: difference betwwen static & dynamic in MFC Pin
Neagoe Gabriel26-Sep-05 3:57
Neagoe Gabriel26-Sep-05 3:57 
Questionconvert interbase database file into sql server Pin
briju23-Sep-05 23:25
briju23-Sep-05 23:25 
QuestionInterlockedExchange64 and .NET assembly permission issues. Pin
mikanu23-Sep-05 7:39
mikanu23-Sep-05 7:39 
NewsRe: InterlockedExchange64 and .NET assembly permission issues. Pin
mikanu28-Sep-05 5:17
mikanu28-Sep-05 5:17 
QuestionEndReceiveFrom problem Pin
toto567822-Sep-05 20:54
toto567822-Sep-05 20:54 
QuestionADO RecordSets Pin
budidharma22-Sep-05 17:27
budidharma22-Sep-05 17:27 
I'm just learning ADO Recordsets with C++ and am have encountered a problem I can't figure out.

cout << setw(width) << setiosflags(ios::left) << "Player ID" << setw(width) << "Player Name" << endl;

while(!recordset->ADOEOF)
{
// Display the value stored in field "screen_name"
_variant_t name;
_variant_t id;

name = recordset->Fields->GetItem(L"screen_name")->GetValue();
id = recordset->Fields->GetItem(L"player_id")->GetValue();
cout << setw(width) << static_cast<char *="">(_bstr_t(id.bstrVal));
cout << setw(width) << static_cast<char *="">(_bstr_t(name.bstrVal)) << endl;
recordset->MoveNext();
};

recordset->Close();

I can display the data fine, if I remove the line that displays the "player_id". player_id is the primary key. The name field displays fine. However, if I try and query another field and store that in a variable, it gives me an error as well.

Is there a problem with using the recordset->FieldsGetItem()->GetValue() syntax more than once in a row?
I can't seem to find a decent tutorial on working with the recordset.

Also, is there a method for retrieving all the fields and storing them in an array?

Thanks.
QuestionReading Excel on Unix using C++ Pin
Tanz22-Sep-05 12:15
Tanz22-Sep-05 12:15 
QuestionVC++ 6.0 Database Programming Pin
budidharma22-Sep-05 3:49
budidharma22-Sep-05 3:49 
AnswerRe: VC++ 6.0 Database Programming Pin
John M. Drescher22-Sep-05 5:14
John M. Drescher22-Sep-05 5:14 
GeneralRe: VC++ 6.0 Database Programming Pin
budidharma22-Sep-05 5:57
budidharma22-Sep-05 5:57 
GeneralRe: VC++ 6.0 Database Programming Pin
John M. Drescher22-Sep-05 6:51
John M. Drescher22-Sep-05 6:51 
GeneralRe: VC++ 6.0 Database Programming Pin
budidharma22-Sep-05 6:06
budidharma22-Sep-05 6:06 
GeneralRe: VC++ 6.0 Database Programming Pin
John M. Drescher22-Sep-05 6:09
John M. Drescher22-Sep-05 6:09 
GeneralRe: VC++ 6.0 Database Programming Pin
budidharma22-Sep-05 6:42
budidharma22-Sep-05 6:42 
GeneralRe: VC++ 6.0 Database Programming Pin
John M. Drescher22-Sep-05 7:02
John M. Drescher22-Sep-05 7:02 
GeneralRe: VC++ 6.0 Database Programming Pin
budidharma22-Sep-05 7:23
budidharma22-Sep-05 7:23 
QuestionWinforms in C++ .Net Pin
luniyasun22-Sep-05 3:32
luniyasun22-Sep-05 3:32 
Questionopen and close() crash on linux Pin
bonosa21-Sep-05 4:14
bonosa21-Sep-05 4:14 
QuestionRandom number generator Pin
bulgaa20-Sep-05 21:27
bulgaa20-Sep-05 21:27 
AnswerRe: Random number generator Pin
RichardS21-Sep-05 5:58
RichardS21-Sep-05 5:58 
QuestionUsing typedef with an array Pin
vnngoc15620-Sep-05 17:09
vnngoc15620-Sep-05 17:09 
AnswerRe: Using typedef with an array Pin
Christian Graus20-Sep-05 18:48
protectorChristian Graus20-Sep-05 18:48 
AnswerRe: Using typedef with an array Pin
RichardS21-Sep-05 5:55
RichardS21-Sep-05 5:55 

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.