Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

first_sandy

@first_sandy
About
Posts
6
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Basic COM automation doubts, Please help.
    F first_sandy

    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.

    COM c++ com testing tools

  • Arrays of IUnknown..
    F first_sandy

    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.

    COM c++ csharp com sysadmin data-structures

  • Display name of components
    F first_sandy

    Like 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

    COM help tutorial announcement

  • Display name of components
    F first_sandy

    Thanks Victor, But it does not work. When i register my component, its display name is still "MyComponentLibrary". pls put ur comment .. rgds, Rana

    COM help tutorial announcement

  • Display name of components
    F first_sandy

    Hi, 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...

    COM help tutorial announcement

  • Name of Component Servers
    F first_sandy

    Hi, 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!

    COM help question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups