Click here to Skip to main content
15,867,756 members
Home / Discussions / COM
   

COM

 
GeneralPlacement of CoInitializeEx call! Pin
rajandpayal27-Feb-08 5:34
rajandpayal27-Feb-08 5:34 
GeneralRe: Placement of CoInitializeEx call! Pin
User 21559727-Feb-08 8:48
User 21559727-Feb-08 8:48 
GeneralClass Object Release Pin
swjam26-Feb-08 19:51
swjam26-Feb-08 19:51 
GeneralRe: Class Object Release Pin
ThatsAlok26-Feb-08 22:12
ThatsAlok26-Feb-08 22:12 
GeneralRe: Class Object Release Pin
User 21559727-Feb-08 8:50
User 21559727-Feb-08 8:50 
GeneralRe: Class Object Release Pin
John M. Drescher7-Mar-08 23:03
John M. Drescher7-Mar-08 23:03 
GeneralVisual C++ Excel Addin causes Excel to crash Pin
ssaddi25-Feb-08 18:24
ssaddi25-Feb-08 18:24 
GeneralRe: Visual C++ Excel Addin causes Excel to crash Pin
Ernest Laurentin5-Mar-08 7:19
Ernest Laurentin5-Mar-08 7:19 
Hi Sukant,
Looking at your code, I would say that createStringArrayVariant should change a little.
Create your safe array as ::SafeArrayCreate(VT_BSTR, 1, &bound);.
I am saying this because your MyClass_LoadVals seems to expect that. Also, it is much easier to use:
CComBSTR str = parr.GetAt(index);
than your call to SafeArrayAccessData
Anyway, my guess is your data has been destroyed. CComVariant var; is not really necessary, use parr.Attach(ValIds.parray);
You should detach it as well.

God bless,
Ernest Laurentin

GeneralUsing C# managed DLL in C++ unmanaged code Pin
dany_ch20-Feb-08 23:26
dany_ch20-Feb-08 23:26 
AnswerRe: Using C# managed DLL in C++ unmanaged code Pin
ritz12344-Mar-08 23:10
ritz12344-Mar-08 23:10 
QuestionTrouble with using COM in Window Service Pin
kamal.chauhan18-Feb-08 21:14
kamal.chauhan18-Feb-08 21:14 
GeneralRe: Trouble with using COM in Window Service Pin
Garth J Lancaster18-Feb-08 21:45
professionalGarth J Lancaster18-Feb-08 21:45 
GeneralRe: Trouble with using COM in Window Service Pin
kamal.chauhan18-Feb-08 22:25
kamal.chauhan18-Feb-08 22:25 
QuestionHow to get Recycle Bin Files/folders name Pin
john563213-Feb-08 2:29
john563213-Feb-08 2:29 
GeneralExcel.WorksheetFunction.RTD - Did anyone know how to retrieve data programmatically from rtd server with callback function Pin
bangbangbigolo11-Feb-08 10:07
bangbangbigolo11-Feb-08 10:07 
GeneralReleasing Interface Pin
john56328-Feb-08 0:42
john56328-Feb-08 0:42 
GeneralRe: Releasing Interface Pin
CPallini8-Feb-08 4:41
mveCPallini8-Feb-08 4:41 
GeneralPlease need some help - Multiple Interface - activex control Pin
sv147-Feb-08 22:29
sv147-Feb-08 22:29 
GeneralProblem inregistring Com Class. Pin
Royaltvk7-Feb-08 20:08
Royaltvk7-Feb-08 20:08 
GeneralRe: Problem inregistring Com Class. Pin
User 2155978-Feb-08 0:48
User 2155978-Feb-08 0:48 
GeneralRe: Problem inregistring Com Class. Pin
Royaltvk18-Feb-08 18:23
Royaltvk18-Feb-08 18:23 
QuestionCoCreateInstance failing Pin
KellyR7-Feb-08 9:26
KellyR7-Feb-08 9:26 
GeneralRe: CoCreateInstance failing Pin
Royaltvk7-Feb-08 19:02
Royaltvk7-Feb-08 19:02 
QuestionRe: CoCreateInstance failing Pin
CPallini7-Feb-08 23:09
mveCPallini7-Feb-08 23:09 
GeneralRe: CoCreateInstance failing Pin
KellyR8-Feb-08 4:00
KellyR8-Feb-08 4:00 

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.