Click here to Skip to main content
15,902,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Not able to connect to the database Pin
Madhu Nair12-May-09 23:44
Madhu Nair12-May-09 23:44 
GeneralRe: Not able to connect to the database Pin
vital_parsley200013-May-09 4:19
vital_parsley200013-May-09 4:19 
AnswerRe: Not able to connect to the database Pin
Madhu Nair13-May-09 19:45
Madhu Nair13-May-09 19:45 
AnswerRe: Not able to connect to the database [modified] Pin
Madhu Nair13-May-09 20:03
Madhu Nair13-May-09 20:03 
AnswerRe: Not able to connect to the database Pin
David Crow13-May-09 3:17
David Crow13-May-09 3:17 
QuestionLoad data from database to BCG grid Pin
MrKBA12-May-09 21:56
MrKBA12-May-09 21:56 
AnswerRe: Load data from database to BCG grid Pin
Madhu Nair12-May-09 22:14
Madhu Nair12-May-09 22:14 
GeneralRe: Load data from database to BCG grid Pin
MrKBA12-May-09 22:27
MrKBA12-May-09 22:27 
RantRe: Load data from database to BCG grid Pin
Rajesh R Subramanian12-May-09 22:32
professionalRajesh R Subramanian12-May-09 22:32 
GeneralRe: Load data from database to BCG grid Pin
MrKBA12-May-09 22:37
MrKBA12-May-09 22:37 
GeneralRe: Load data from database to BCG grid Pin
MrKBA13-May-09 22:47
MrKBA13-May-09 22:47 
QuestionAppend BStr Pin
Mogaambo12-May-09 21:23
Mogaambo12-May-09 21:23 
AnswerRe: Append BStr Pin
Madhu Nair12-May-09 21:27
Madhu Nair12-May-09 21:27 
QuestionRe: Append BStr Pin
CPallini12-May-09 21:31
mveCPallini12-May-09 21:31 
AnswerRe: Append BStr Pin
Mogaambo12-May-09 22:26
Mogaambo12-May-09 22:26 
GeneralRe: Append BStr Pin
CPallini12-May-09 22:33
mveCPallini12-May-09 22:33 
GeneralRe: Append BStr Pin
Mogaambo12-May-09 22:36
Mogaambo12-May-09 22:36 
GeneralRe: Append BStr Pin
CPallini12-May-09 23:14
mveCPallini12-May-09 23:14 
GeneralRe: Append BStr Pin
Mogaambo12-May-09 23:54
Mogaambo12-May-09 23:54 
GeneralRe: Append BStr Pin
CPallini13-May-09 0:06
mveCPallini13-May-09 0:06 
GeneralRe: Append BStr Pin
Mogaambo13-May-09 0:19
Mogaambo13-May-09 0:19 
GeneralRe: Append BStr [modified] Pin
CPallini13-May-09 0:39
mveCPallini13-May-09 0:39 
GeneralRe: Append BStr Pin
Mogaambo13-May-09 0:53
Mogaambo13-May-09 0:53 
GeneralRe: Append BStr Pin
CPallini13-May-09 1:33
mveCPallini13-May-09 1:33 
GeneralRe: Append BStr Pin
CPallini13-May-09 2:08
mveCPallini13-May-09 2:08 
I made a silly error in my code, now fixed (please see again the posted snippet).
It should be OK now, the following test runs fine:
BSTR dest = SysAllocString(L"Hi ");
BSTR s1,s2,s3,s4;
s1 = SysAllocString(L"People, ");
s2 = SysAllocString(L"How do ");
s3 = SysAllocString(L"you ");
s4 = SysAllocString(L"do?");
HRESULT hr;
hr = StringAppend(&dest, s1);
hr = StringAppend(&dest, s2);
hr = StringAppend(&dest, s3);
hr = StringAppend(&dest, s4);

MessageBoxW(dest, L"Info");

SysFreeString(s1);
SysFreeString(s2);
SysFreeString(s3);
SysFreeString(s4);
SysFreeString(dest);


Smile | :)

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]

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.