File language property

T

Trevor Hardwick

Hi

Can you tell me why setting the assembly culture attribute to "" gives me
"Language Neutral" for the file language property when viewed through
windows explorer but creating an interop assembly for a com component gives
me "Invariant Language (Invariant Country)" even after I have updated the
manifest culture property for the interop?

Regards
 
K

Kevin Yu [MSFT]

Hi Trevor,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
P

Peter Huang [MSFT]

Hi

When we generate the interop assembly(Whether or not we use the IDE or the
tlbimp directly), the tool tlbimp will check the type library version and
locale information are also propagated to the assembly. By default the
locale will be language Neutral. ( I make a simple test with a vb6 com dll)


So what is the setting in your com typelibrary, you may try to check the
typelibrary of your com library.
the locale setting is similar with the article below.
lcid(0x9)

http://support.microsoft.com/kb/143258/EN-US/
How To Create Constants and DLL Declarations in a Type Library

You may try to check yours to see if what is that in your case.

Best regards,

Perter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
T

Trevor Hardwick

Hi

Thanks for looking at the problem. I've created a simple vb6 activeX dll.
When I reference that dll from a c#.net project an interop is created that
has the language property set as I described (language invariant).

I've zipped the activeX dll and the interop that was create by visual studio
and attached them to this reply. For your information I am working on
Windows XP with SP2.

Regards
 
P

Peter Huang [MSFT]

Hi,

Thank you for your reponse.
I can not reproduce the problem based on your sample. Also based on my
test, the same dll will display different value in two OSs.
In windows xp sp2, the language will be Invariant Language (Invariant
Country), while in windows 2003 we will get Language Neutral. But they
should mean the same locale id(because they are the same file) 0.

If you still have any concern, please feel free to post here.

Best regards,

Perter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
P

Peter Huang [MSFT]

Hi

I am glad that help you.

Best regards,

Perter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top