Joeb
Joeb

Reputation:

What are underscored symbols in a VB DLL?

I have a C++ app in VS2005 and import a VB DLL. IntelliSense shows me all the symbols in the DLL as expected but it also shows all (or nearly all) of them again with an underscore prefix (no @s in them though). Why is this? What are the differences between the underscored items and the normal items?

Upvotes: 1

Views: 299

Answers (4)

Jacob Krall
Jacob Krall

Reputation: 28835

Are the symbols properties? If so, these might just be the private variables backing the properties.

Upvotes: 0

QAZ
QAZ

Reputation: 4930

Check out this wiki article on Name Mangling for an indepth look:

http://en.wikipedia.org/wiki/Name_mangling

Upvotes: 0

tragomaskhalos
tragomaskhalos

Reputation: 2753

Assuming you're talking VB6, the leading underscore version _Klass is the Vb-generated default interface for the class Klass. This site has a nice explanation: http://www.15seconds.com/issue/040721.htm

Upvotes: 4

Omar Kooheji
Omar Kooheji

Reputation: 55770

In (some) c# coding standards the underscore prefix denotes a private variable, that might explain it... is it VB or VB.Net?

Upvotes: 0

Related Questions