Creating DLLs in VC for use in VB
-
Hi, We normally create DLLs in VC for all Backend operations and use VB for GUI, use these VC objects and methods to interface with data servers. My question is: In VB, if we open the object browser and see the properties and methods of these libraries, the first line of the panel in the bottom of the object browser states the Function name and Arguements required and the return value type. The second line states that the class is a Member of some XYZ library... The third line simply states method or property But the third line of ohher VB's library like VBA/VBRUN etc has more meaningful messages for each of the functions and properties available in them. Now, how to make the Object Browser display such meaningful messages for my user-defined Dlls classes? I do not know where to define them when creating new classes in my dll? Cheers, Lakshmi
-
Hi, We normally create DLLs in VC for all Backend operations and use VB for GUI, use these VC objects and methods to interface with data servers. My question is: In VB, if we open the object browser and see the properties and methods of these libraries, the first line of the panel in the bottom of the object browser states the Function name and Arguements required and the return value type. The second line states that the class is a Member of some XYZ library... The third line simply states method or property But the third line of ohher VB's library like VBA/VBRUN etc has more meaningful messages for each of the functions and properties available in them. Now, how to make the Object Browser display such meaningful messages for my user-defined Dlls classes? I do not know where to define them when creating new classes in my dll? Cheers, Lakshmi
The "third line" in the VB Object Browser is displaying the help-string for the property or method in question. Help-strings are defined in the component's type-library. The source for the type-library is typically a .idl file (could be .odl if you're using MFC). The ATL wizards that create interfaces assign a default help-string of "property NAME", where NAME is the name of your property. Simply change the contents of this string and recompile your type-library to update the value in the VB (or any other) browser. The idl syntax for help strings is: [helpstring("My Help String")] HRESULT SomeMethod(); Hope this helps! ================== The original message was: Hi,
We normally create DLLs in VC for all Backend operations and use VB for GUI, use these VC objects and methods to interface with data servers.
My question is:
In VB, if we open the object browser and see the properties and methods of these libraries,
the first line of the panel in the bottom of the object browser states the Function name and Arguements required and the return value type.
The second line states that the class is a Member of some XYZ library...
The third line simply states method or propertyBut the third line of ohher VB's library like VBA/VBRUN etc has more meaningful messages
for each of the functions and properties available in them.Now, how to make the Object Browser display such meaningful messages for my user-defined Dlls classes?
I do not know where to define them when creating new classes in my dll?Cheers,
Lakshmi