Click here to Skip to main content
15,894,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: excel automation not starting Pin
David Crow23-Sep-09 4:46
David Crow23-Sep-09 4:46 
AnswerRe: excel automation not starting Pin
prithaa23-Sep-09 4:54
prithaa23-Sep-09 4:54 
QuestionRe: excel automation not starting Pin
David Crow23-Sep-09 4:57
David Crow23-Sep-09 4:57 
AnswerRe: excel automation not starting Pin
prithaa23-Sep-09 5:08
prithaa23-Sep-09 5:08 
GeneralRe: excel automation not starting Pin
David Crow23-Sep-09 5:11
David Crow23-Sep-09 5:11 
GeneralRe: excel automation not starting Pin
prithaa23-Sep-09 5:14
prithaa23-Sep-09 5:14 
GeneralRe: excel automation not starting Pin
David Crow23-Sep-09 5:19
David Crow23-Sep-09 5:19 
GeneralRe: excel automation not starting Pin
prithaa23-Sep-09 5:26
prithaa23-Sep-09 5:26 
GeneralRe: excel automation not starting Pin
David Crow23-Sep-09 5:31
David Crow23-Sep-09 5:31 
GeneralRe: excel automation not starting Pin
prithaa23-Sep-09 5:35
prithaa23-Sep-09 5:35 
Questionbuild a c++ app in managed c++ ide Pin
SummerBulb23-Sep-09 2:36
SummerBulb23-Sep-09 2:36 
AnswerRe: build a c++ app in managed c++ ide Pin
Nuri Ismail23-Sep-09 2:44
Nuri Ismail23-Sep-09 2:44 
GeneralRe: build a c++ app in managed c++ ide Pin
SummerBulb23-Sep-09 3:06
SummerBulb23-Sep-09 3:06 
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 

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.