Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: build a c++ app in managed c++ ide Pin
Nuri Ismail23-Sep-09 3:24
Nuri Ismail23-Sep-09 3:24 
GeneralRe: build a c++ app in managed c++ ide Pin
SummerBulb23-Sep-09 4:12
SummerBulb23-Sep-09 4:12 
QuestionInsert blank line in text file Pin
choramale_vs23-Sep-09 2:30
choramale_vs23-Sep-09 2:30 
AnswerRe: Insert blank line in text file Pin
Roger Allen23-Sep-09 2:41
Roger Allen23-Sep-09 2:41 
QuestionCopy Large string to VARIANT data type Pin
Pryabu23-Sep-09 1:20
Pryabu23-Sep-09 1:20 
AnswerRe: Copy Large string to VARIANT data type Pin
theCPkid23-Sep-09 1:32
theCPkid23-Sep-09 1:32 
AnswerRe: Copy Large string to VARIANT data type Pin
KarstenK23-Sep-09 1:58
mveKarstenK23-Sep-09 1:58 
AnswerRe: Copy Large string to VARIANT data type Pin
CPallini23-Sep-09 2:19
mveCPallini23-Sep-09 2:19 
The following code runs 'exception-free' on my system:
#include <windows.h>
void main()
{
  char lpszitems[2500];
  wchar_t wchItems[2500];
  memset(lpszitems, 'A', 2499);
  lpszitems[2499]= '\0';
  int n =MultiByteToWideChar(CP_ACP, 0, lpszitems, -1, wchItems,
    2500);

  if (n==0)
  {
    DWORD dw = GetLastError();
    int k=5;
  }

  VARIANT * lpList, vt;
  lpList = &vt;
  VariantInit(lpList);
  lpList->vt = VT_BSTR;
  lpList->bstrVal = SysAllocString(wchItems);

}


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]

Questionone doubt Pin
programmer20223-Sep-09 0:59
programmer20223-Sep-09 0:59 
AnswerRe: one doubt Pin
Maximilien23-Sep-09 1:09
Maximilien23-Sep-09 1:09 
AnswerRe: one doubt Pin
theCPkid23-Sep-09 1:40
theCPkid23-Sep-09 1:40 
AnswerRe: one doubt Pin
KarstenK23-Sep-09 1:55
mveKarstenK23-Sep-09 1:55 
AnswerRe: one doubt Pin
jon_fallon23-Sep-09 2:25
jon_fallon23-Sep-09 2:25 
GeneralRe: one doubt Pin
Nuri Ismail23-Sep-09 3:02
Nuri Ismail23-Sep-09 3:02 
AnswerRe: one doubt Pin
Richard MacCutchan23-Sep-09 3:02
mveRichard MacCutchan23-Sep-09 3:02 
QuestionRotate Metafile displayed in a Static Control Pin
Erik22-Sep-09 23:47
Erik22-Sep-09 23:47 
QuestionWhy Messagebox display twice It's Urgent Pin
jadhavjitendrar22-Sep-09 22:59
jadhavjitendrar22-Sep-09 22:59 
AnswerRe: Why Messagebox display twice It's Urgent [modified] PinPopular
CPallini22-Sep-09 23:39
mveCPallini22-Sep-09 23:39 
AnswerRe: Why Messagebox display twice It's Urgent Pin
theCPkid23-Sep-09 1:25
theCPkid23-Sep-09 1:25 
AnswerRe: Why Messagebox display twice It's Urgent Pin
David Crow23-Sep-09 4:41
David Crow23-Sep-09 4:41 
QuestionHow to write mic data to .wav file ? Pin
Souldrift22-Sep-09 22:18
Souldrift22-Sep-09 22:18 
AnswerRe: How to write mic data to .wav file ? Pin
Souldrift22-Sep-09 22:39
Souldrift22-Sep-09 22:39 
QuestionString split functionality Pin
NarVish22-Sep-09 21:07
NarVish22-Sep-09 21:07 
AnswerRe: String split functionality Pin
chandu00422-Sep-09 21:09
chandu00422-Sep-09 21:09 
AnswerRe: String split functionality Pin
Hamid_RT22-Sep-09 21:30
Hamid_RT22-Sep-09 21:30 

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.