Click here to Skip to main content
15,881,380 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MS Word document creating Pin
Igor IP15-Sep-09 2:02
professionalIgor IP15-Sep-09 2:02 
GeneralRe: MS Word document creating Pin
Stuart Dootson15-Sep-09 2:36
professionalStuart Dootson15-Sep-09 2:36 
GeneralRe: MS Word document creating Pin
Igor IP15-Sep-09 3:48
professionalIgor IP15-Sep-09 3:48 
QuestionCDaoRecordset Problem.. Pin
jadhavjitendrar15-Sep-09 1:19
jadhavjitendrar15-Sep-09 1:19 
AnswerRe: CDaoRecordset Problem.. Pin
CPallini15-Sep-09 2:11
mveCPallini15-Sep-09 2:11 
AnswerRe: CDaoRecordset Problem.. Pin
ramana.g15-Sep-09 21:59
ramana.g15-Sep-09 21:59 
Question_variant_t to CString Pin
rdop15-Sep-09 0:05
rdop15-Sep-09 0:05 
AnswerRe: _variant_t to CString Pin
CPallini15-Sep-09 0:21
mveCPallini15-Sep-09 0:21 
I suppose you need the string representation of the _variant_t value.
You've to properly format a CString object, depending on the value of the vt member of the encapsulated VARIANT struct. For instance
CString str;
_variant_t v1;

v1 = 0.53;


switch (v1.vt)
{
  //...
case VT_R8:
  str.Format(_T("%g"), v1.dblVal);
  break;
  //...
}

MessageBox(str, _T("Variant value"));


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 0:30
professionalStuart Dootson15-Sep-09 0:30 
QuestionRe: _variant_t to CString Pin
CPallini15-Sep-09 2:07
mveCPallini15-Sep-09 2:07 
AnswerRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 2:43
professionalStuart Dootson15-Sep-09 2:43 
GeneralRe: _variant_t to CString Pin
rdop15-Sep-09 0:33
rdop15-Sep-09 0:33 
QuestionRe: _variant_t to CString Pin
CPallini15-Sep-09 2:08
mveCPallini15-Sep-09 2:08 
AnswerRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 0:28
professionalStuart Dootson15-Sep-09 0:28 
GeneralRe: _variant_t to CString Pin
rdop15-Sep-09 1:09
rdop15-Sep-09 1:09 
GeneralRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 1:53
professionalStuart Dootson15-Sep-09 1:53 
GeneralRe: _variant_t to CString Pin
rdop15-Sep-09 2:07
rdop15-Sep-09 2:07 
GeneralRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 2:27
professionalStuart Dootson15-Sep-09 2:27 
GeneralRe: _variant_t to CString Pin
Randor 15-Sep-09 3:50
professional Randor 15-Sep-09 3:50 
GeneralRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 4:44
professionalStuart Dootson15-Sep-09 4:44 
GeneralRe: _variant_t to CString Pin
rdop15-Sep-09 18:07
rdop15-Sep-09 18:07 
AnswerRe: _variant_t to CString Pin
Randor 15-Sep-09 1:23
professional Randor 15-Sep-09 1:23 
Questionfwstsrv.obj : error LNK2019: unresolved external symbol "public: int Pin
Vetukuri Raju14-Sep-09 23:48
Vetukuri Raju14-Sep-09 23:48 
AnswerRe: fwstsrv.obj : error LNK2019: unresolved external symbol "public: int Pin
Stuart Dootson15-Sep-09 0:33
professionalStuart Dootson15-Sep-09 0:33 
GeneralRe: fwstsrv.obj : error LNK2019: unresolved external symbol "public: int [modified] Pin
Vetukuri Raju15-Sep-09 0:58
Vetukuri Raju15-Sep-09 0:58 

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.