Click here to Skip to main content
15,886,199 members
Home / Discussions / COM
   

COM

 
AnswerRe: Problem in Passing 1d array from VC++ to VB Pin
lafleon9-Feb-07 11:10
lafleon9-Feb-07 11:10 
AnswerRe: Problem in Passing 1d array from VC++ to VB Pin
lafleon9-Feb-07 11:19
lafleon9-Feb-07 11:19 
QuestionEnumerate menu item identifiers of MS-Office apps. Can anybody help Pin
San24687-Feb-07 23:13
San24687-Feb-07 23:13 
QuestionPassing 3d string array from VC++ to VB Pin
georgekjolly7-Feb-07 3:43
georgekjolly7-Feb-07 3:43 
AnswerRe: Passing 3d string array from VC++ to VB Pin
prasad_som7-Feb-07 18:35
prasad_som7-Feb-07 18:35 
GeneralRe: Passing 3d string array from VC++ to VB Pin
georgekjolly7-Feb-07 19:49
georgekjolly7-Feb-07 19:49 
GeneralRe: Passing 3d string array from VC++ to VB Pin
prasad_som7-Feb-07 20:06
prasad_som7-Feb-07 20:06 
GeneralRe: Passing 3d string array from VC++ to VB(Please Consider) Pin
georgekjolly8-Feb-07 1:17
georgekjolly8-Feb-07 1:17 
Hai Prasad,

Sorry for again disturbing u .. It is an assignment for me from a company ,If I am clearing this I will get Job there...

Please Just See my assignment of String to the 3d array is in Right way ,Programme I have given below..

STDMETHODIMP CTestMacroInterface::ProcessStringArray(SAFEARRAY *ppOutputArray)
{

SAFEARRAYBOUND aDim[3]
aDim[0].lLbound = 0;
aDim[0].cElements = 3;
aDim[1].lLbound = 0;
aDim[1].cElements = 3
aDim[2].lLbound = 0;
aDim[2].cElements = 3

HRESULT hr;
BSTR HUGEP *pbstr;
*ppOutputArray=SafeArrayCreate(VT_BSTR , 3, aDim);


if (*ppOutputArray==NULL)
{
Messagebox("Null");
}
else
hr=SafeArrayAccessData(*ppOutputArray,(void HUGEP**)&pbstr

/*******************************************************************

Now I need to store my data 3 dimensionaly data is

FirstName LastName Job
Ram Lakhan Engineer
Dipu Das Merchant
Vinu Lal Bussiness

a[0][0] = "Ram" , a[0][1] = "Lakhan" , a[0][2] = "Engineer"

a[1][0] = "Dipu" , a[1][1] = "Das" , a[1][2] = "Merchant"

a[2][0] = "Vinu" , a[2][1] = "Lal" , a[2][2] = "Bussiness"


**************************************************************/

// Here I have assigned my values, Is this the correct way of assigning values ??


pbstr[0] = SysAllocString(OLESTR("Ram")); // for a[0][0]
pbstr[1] = SysAllocString(OLESTR("Dipu")); // for a[1][0]
pbstr[2] = SysAllocString(OLESTR("Vinu")); // for a[2][0]

pbstr[3] = SysAllocString(OLESTR("Lakhan")); // for a[0][1]
pbstr[4] = SysAllocString(OLESTR("Das")); // for a[1][1]
pbstr[5] = SysAllocString(OLESTR("Lal")); // for a[2][1]


pbstr[6] = SysAllocString(OLESTR("Engineer")); // for a[0][2]
pbstr[7] = SysAllocString(OLESTR("Merchant")); // for a[1][2]
pbstr[8] = SysAllocString(OLESTR("Bussiness")); // for a[2][2]



SafeArrayUnaccessData(*ppOutputArray);


}


Thanks
George
AnswerRe: Passing 3d string array from VC++ to VB(Please Consider) Pin
prasad_som8-Feb-07 1:40
prasad_som8-Feb-07 1:40 
GeneralRe: Passing 3d string array from VC++ to VB(Please Consider) Pin
georgekjolly8-Feb-07 4:55
georgekjolly8-Feb-07 4:55 
QuestionRemotely Starting a Process Pin
abhiramsss7-Feb-07 3:01
abhiramsss7-Feb-07 3:01 
QuestionImplement IDispEventSimpleImpl Interface to Handle Event, Function calls two times Pin
Shyam Gaikwad5-Feb-07 19:39
Shyam Gaikwad5-Feb-07 19:39 
Questionabout COM Pin
joyce_pro5-Feb-07 15:22
joyce_pro5-Feb-07 15:22 
AnswerRe: about COM Pin
host285-Feb-07 16:04
host285-Feb-07 16:04 
QuestionATING Network module Pin
Member 35534024-Feb-07 19:27
Member 35534024-Feb-07 19:27 
Questionunable to read app.config settings from COM Pin
tarunpal4-Feb-07 14:49
tarunpal4-Feb-07 14:49 
AnswerRe: unable to read app.config settings from COM Pin
Krish - KP7-Feb-07 20:21
Krish - KP7-Feb-07 20:21 
QuestionLocking keyboard and mouse of a computer in the same LAN using Java Pin
Sara_fjr4-Feb-07 2:32
Sara_fjr4-Feb-07 2:32 
QuestionVB6 call .net Dll Pin
vtalau1-Feb-07 22:49
vtalau1-Feb-07 22:49 
AnswerRe: VB6 call .net Dll Pin
host287-Feb-07 14:55
host287-Feb-07 14:55 
QuestionReceiving COM events without TYPELIB Pin
Aleksey.Andreev1-Feb-07 21:50
Aleksey.Andreev1-Feb-07 21:50 
QuestionRe: Receiving COM events without TYPELIB Pin
Roger Stoltz5-Feb-07 11:42
Roger Stoltz5-Feb-07 11:42 
AnswerRe: Receiving COM events without TYPELIB Pin
host285-Feb-07 16:07
host285-Feb-07 16:07 
QuestionOpening Word in ASP.NET Pin
dspyank1-Feb-07 6:13
dspyank1-Feb-07 6:13 
QuestionLocal server lifetime query Pin
User 2155971-Feb-07 1:21
User 2155971-Feb-07 1:21 

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.