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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Creating DLLs in VC for use in VB

Creating DLLs in VC for use in VB

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
2 Posts 2 Posters 13 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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

    N 1 Reply Last reply
    0
    • L Lost User

      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

      N Offline
      N Offline
      Nick Hodapp
      wrote on last edited by
      #2

      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 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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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