Tlbexp.exe case-sensitive method case

I have a rather strange problem. I am exporting an interface from a C # library to COM. I have included the "register with COM" parameter, so it calls tlbexp.exe to create a type of libs.

We use the camel case in the names of our methods, and I noticed that the exported type library modifies these methods that match the class name in the case of Pascal ...

eg

interface IFoo
{
void randomClass()
}

class RandomClass
{
}

The exported IFoo in type lib defines IFoo-> RandomClass () instead of IFoo-> randomClass ()

Any ideas on what causes this and how to stop it?

+5
source share
1 answer

COM , "RandomClass" "randomClass" . ( , .NET PascalCasing .)

, , , , !

, tlbexp /names, .

tlbexp, , :

RandomClass
SomeOtherIdentifier

:

tlbexp MyAssembly.dll /names=MyNames.txt

tlbexp , .

+6

All Articles