Click here to Skip to main content
15,895,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using DC in added class (outside CView class) Pin
AglaiaMasaki23-Feb-09 18:01
AglaiaMasaki23-Feb-09 18:01 
GeneralRe: Using DC in added class (outside CView class) Pin
Code-o-mat23-Feb-09 21:32
Code-o-mat23-Feb-09 21:32 
QuestionEcecution SQL into Visual C++ STUDIO 2008 Pin
durban223-Feb-09 1:29
durban223-Feb-09 1:29 
QuestionCComboBox and control Modeless [modified] Pin
durban223-Feb-09 1:26
durban223-Feb-09 1:26 
QuestionRe: CComboBox and control Modeless Pin
David Crow23-Feb-09 3:13
David Crow23-Feb-09 3:13 
JokeRe: CComboBox and control Modeless Pin
CPallini23-Feb-09 3:19
mveCPallini23-Feb-09 3:19 
QuestionHow to convert color EMF spool file to grayscale or Black /white spool file? Pin
GAJERA23-Feb-09 0:26
GAJERA23-Feb-09 0:26 
QuestionHow to get a value (in C++ code) returned by a Stored procedure? Pin
PankajB22-Feb-09 23:58
PankajB22-Feb-09 23:58 
Hi there.

Incase a stored precedure returns a set of records, then I can read the same by below code...

while(!recordset-> EndOfFile)
{
_variant_t var;
var = recordset->Fields->GetItem(L"TestName")->GetValue();
var = recordset->Fields->GetItem(L"TestID")->GetValue();
//std::cout << static_cast<char *>(_bstr_t(var.bstrVal))<< std::endl;
recordset->MoveNext();
}


Now, incase a stored precedure retunrs only a single value, lets say a hardcoded value "100", then how can I get that.
My main problem is, I am not aware of the column type, so how to read this returned value? please suggest.

Thanks
PanB
QuestionRe: How to get a value (in C++ code) returned by a Stored procedure? Pin
CPallini23-Feb-09 0:14
mveCPallini23-Feb-09 0:14 
AnswerRe: How to get a value (in C++ code) returned by a Stored procedure? Pin
PankajB23-Feb-09 0:23
PankajB23-Feb-09 0:23 
GeneralRe: How to get a value (in C++ code) returned by a Stored procedure? Pin
PankajB23-Feb-09 0:35
PankajB23-Feb-09 0:35 
QuestionI have a problem with Cyrillic Characters in C++ MFC (Visual Studio 6) Pin
micutzu22-Feb-09 23:49
micutzu22-Feb-09 23:49 
AnswerRe: I have a problem with Cyrillic Characters in C++ MFC (Visual Studio 6) Pin
Code-o-mat23-Feb-09 0:31
Code-o-mat23-Feb-09 0:31 
QuestionSetfont not working properly in Wizard Mode property Sheet. Pin
Le@rner22-Feb-09 23:35
Le@rner22-Feb-09 23:35 
AnswerRe: Setfont not working properly in Wizard Mode property Sheet. Pin
Iain Clarke, Warrior Programmer23-Feb-09 4:31
Iain Clarke, Warrior Programmer23-Feb-09 4:31 
QuestionHow to make the buttons as high as the toolbar control? Pin
kcynic22-Feb-09 22:37
kcynic22-Feb-09 22:37 
QuestionDifference between MS C++ and "normal" C++? Pin
Megidolaon22-Feb-09 22:32
Megidolaon22-Feb-09 22:32 
AnswerRe: Difference between MS C++ and "normal" C++? Pin
«_Superman_»22-Feb-09 22:37
professional«_Superman_»22-Feb-09 22:37 
AnswerRe: Difference between MS C++ and "normal" C++? Pin
CPallini22-Feb-09 22:45
mveCPallini22-Feb-09 22:45 
AnswerRe: Difference between MS C++ and "normal" C++? Pin
Megidolaon23-Feb-09 0:06
Megidolaon23-Feb-09 0:06 
GeneralRe: Difference between MS C++ and "normal" C++? Pin
CPallini23-Feb-09 0:16
mveCPallini23-Feb-09 0:16 
GeneralRe: Difference between MS C++ and "normal" C++? Pin
tyr200023-Feb-09 1:02
tyr200023-Feb-09 1:02 
GeneralRe: Difference between MS C++ and "normal" C++? Pin
kamalesh8223-Feb-09 1:27
kamalesh8223-Feb-09 1:27 
GeneralRe: Difference between MS C++ and "normal" C++? Pin
grassrootkit23-Feb-09 1:39
grassrootkit23-Feb-09 1:39 
GeneralRe: Difference between MS C++ and "normal" C++? Pin
toxcct23-Feb-09 1:44
toxcct23-Feb-09 1:44 

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.