Hi Venkatesh, Well you can use "long" data type in your COM servers as it is compatible for both VC++ and scripting clients. Other type that works fine is BSTR. sandy Last night i realized i was seeing a dream in my dream.
first_sandy
Posts
-
Basic COM automation doubts, Please help. -
Arrays of IUnknown..Hi Ian, You can create a safe array of variants and then put the array in the variant and pass to the client. Like : SAFEARRAY *pSA =NULL; SAFEARRAYBOUND sabound; sabound.cElements = nCount; //Array size. sabound.lLbound = 0; pSA = SafeArrayCreate(VT_VARIANT, 1, sabound); long nIterator = 0; //in a loop put the values. hr = SafeArrayPutElement(pSA, nIterator, (void *)&vaPutValue); VARIANT vaResult; VariantInit(&vaResult); V_VT(&vaResult) = VT_ARRAY | VT_VARIANT; V_ARRAY(&vaResult) = pSA; return vaResult; At client side, you can write it like: Dim vaDocList as Variant vaDocList = m_pClass.GetArray() 'm_pClass is the reference to co-class. get bounds like nUBound = UBound(vaDocList) nLBound = LBound(vaDocList) in a loop get values in the variables as per ur requirement. i feel it will help you. :-O sandy Last night i realized, i was seeing a dream in my dream.
-
Display name of componentsLike in Visual basic, Open the menu Project->References. In References dialog box the Display names of components are different than their library names. I just want to know how can i change that name in the References dialog box. rgds, rana
-
Display name of componentsThanks Victor, But it does not work. When i register my component, its display name is still "MyComponentLibrary". pls put ur comment .. rgds, Rana
-
Display name of componentsHi, Can any one help me how to change the display name of components. Like in ODL file, the syntax is: [uuid(.......), version(1.0)] library MyComponentLibrary { ....... In this case the display name of my component is "MyComponentLibrary" but i want to change it to "iZ imaging Toolkit 2004 R1.0". Please reply me soon if you have any suggestions. rgds, Rana Dosti ke bhi kuch andaaj hote hai, jagti ankho main bhi kuch khwab hote hai, jaroori nahi ki gum may hi aansu nikle, muskurati ankho main bhi sailaab hote hai...
-
Name of Component ServersHi, Can any help me how can i change the display name of a component. Like in ODL file i have syntax as ... [ uuid(), version(1.0) ] library MyLibrary { ... But i want to display this component as "iZ ImageTool 1.0". Can any one help me to find the MIDL syntax to support names other than the libname. thanks!