Click here to Skip to main content
15,843,623 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Load data from database to BCG grid Pin
MrKBA12-May-09 23:37
MrKBA12-May-09 23:37 
GeneralRe: Load data from database to BCG grid Pin
MrKBA13-May-09 23:47
MrKBA13-May-09 23:47 
QuestionAppend BStr Pin
Mogaambo12-May-09 22:23
Mogaambo12-May-09 22:23 
AnswerRe: Append BStr Pin
Madhu Nair12-May-09 22:27
Madhu Nair12-May-09 22:27 
QuestionRe: Append BStr Pin
CPallini12-May-09 22:31
mveCPallini12-May-09 22:31 
AnswerRe: Append BStr Pin
Mogaambo12-May-09 23:26
Mogaambo12-May-09 23:26 
GeneralRe: Append BStr Pin
CPallini12-May-09 23:33
mveCPallini12-May-09 23:33 
GeneralRe: Append BStr Pin
Mogaambo12-May-09 23:36
Mogaambo12-May-09 23:36 
Here is my calling code. value variable is of type BSTR


BSTR GetNewRow()
{
value=GetLoggedInUser();

BSTR strComma=::SysAllocString(L",");
BSTR strNewLine=::SysAllocString(L"\n");

value=StringAppend(value,strComma);

value=StringAppend(value,strCategory);
value=StringAppend(value,strComma);
value=StringAppend(value,strItemName);
value=StringAppend(value,strComma);
value=StringAppend(value,strInstallDate);
value=StringAppend(value,strComma);
value=StringAppend(value,strVersion);
value=StringAppend(value,strComma);
value=StringAppend(value,strValue1);
value=StringAppend(value,strComma);
value=StringAppend(value,strValue2);
value=StringAppend(value,strComma);
value=StringAppend(value,strValue3);
value=StringAppend(value,strNewLine);

::SysFreeString(strComma);
::SysFreeString(strNewLine);

return value;
}

“You will never be a leader unless you first learn to follow and be led.”
–Tiorio

"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

GeneralRe: Append BStr Pin
CPallini13-May-09 0:14
mveCPallini13-May-09 0:14 
GeneralRe: Append BStr Pin
Mogaambo13-May-09 0:54
Mogaambo13-May-09 0:54 
GeneralRe: Append BStr Pin
CPallini13-May-09 1:06
mveCPallini13-May-09 1:06 
GeneralRe: Append BStr Pin
Mogaambo13-May-09 1:19
Mogaambo13-May-09 1:19 
GeneralRe: Append BStr [modified] Pin
CPallini13-May-09 1:39
mveCPallini13-May-09 1:39 
GeneralRe: Append BStr Pin
Mogaambo13-May-09 1:53
Mogaambo13-May-09 1:53 
GeneralRe: Append BStr Pin
CPallini13-May-09 2:33
mveCPallini13-May-09 2:33 
GeneralRe: Append BStr Pin
CPallini13-May-09 3:08
mveCPallini13-May-09 3:08 
GeneralRe: Append BStr Pin
Mogaambo13-May-09 3:37
Mogaambo13-May-09 3:37 
QuestionRe: Append BStr Pin
CPallini13-May-09 3:43
mveCPallini13-May-09 3:43 
AnswerRe: Append BStr Pin
«_Superman_»12-May-09 22:52
professional«_Superman_»12-May-09 22:52 
AnswerRe: Append BStr Pin
KarstenK12-May-09 23:25
mveKarstenK12-May-09 23:25 
GeneralRe: Append BStr Pin
Mogaambo12-May-09 23:28
Mogaambo12-May-09 23:28 
GeneralRe: Append BStr Pin
Rajesh R Subramanian12-May-09 23:37
professionalRajesh R Subramanian12-May-09 23:37 
GeneralRe: Append BStr Pin
KarstenK12-May-09 23:41
mveKarstenK12-May-09 23:41 
GeneralRe: Append BStr Pin
Mogaambo12-May-09 23:51
Mogaambo12-May-09 23:51 
AnswerRe: Append BStr [modified] Pin
Madhu Nair12-May-09 23:55
Madhu Nair12-May-09 23: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.