How to include an embedded (i18n) Resource.resx in MCPP Project?

  • Thread starter Leon Gorbaty [Bentley]
  • Start date
L

Leon Gorbaty [Bentley]

I'm surprised not to find this option under Add>New item, etc. It gives you
an option for a *.rc Resource file, but not a typical .NET resource. If I
add one manually, I don't see any way of specifying it to be an embedded
resource.

Anyone know?

Kind thanks in advance,

Leon
 
L

Leon Gorbaty [Bentley]

I should specify that I'm interested in .NET v1.0, as I just found out that
the 'normal' mechanism is available in 1.1(2003) for vc projects - in older
version there doesn't seem to be the options...
 
D

Doug Forster

Hi Leon,

In the c# world the only way I found was to copy a resx file from a form to
get the correct header and replace all the data elements with my own like:

<data name="mydata" type="System.String, mscorlib">
<value>
mystring
</value>
</data>

and just add the file to the project (Add existing item). It was
incorporated into the assembly automatically. Use ResourceManager to get the
data out again. Haven't ever worked with MC++ so I don't know if this would
work there, but that's what I would try first.

Cheers

Doug Forster
 

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