473,785 Members | 2,434 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
Nov 16 '05 #1
2 1384
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...

"Leon Gorbaty [Bentley]" <le**********@b entley.com> wrote in message
news:OS******** ******@TK2MSFTN GP12.phx.gbl...
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

Nov 16 '05 #2
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.St ring, 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

"Leon Gorbaty [Bentley]" <le**********@b entley.com> wrote in message
news:eq******** ******@TK2MSFTN GP10.phx.gbl...
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...

"Leon Gorbaty [Bentley]" <le**********@b entley.com> wrote in message
news:OS******** ******@TK2MSFTN GP12.phx.gbl...
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


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1991
by: Cindy Liu | last post by:
Hi, I have a VS.Net project that has a resource file set as embedded resource. To compile the project via VS, I have no problem. But our build system uses compiler command, not VS.Net. How to set a resource file as embedded resource in the command line? Thanks in advance!!! Cindy
1
4159
by: Scott Smith | last post by:
Several attributes and interface methods I'm using refer to resources (such as strings or icons) by a numeric ID. This was the only way to refer to resources in unmanaged code (C++, for example), but I'm writing in C# now, and it seems that resources are named with string identifiers. Visual Studio doesn't seem to like resource names such as "100", so I'm wondering how this could work. Is it absolutely necessary for me to have a...
1
4030
by: Namratha Shah \(Nasha\) | last post by:
Hi All, This is a resource file generation tool which converts an xml based resource formats to .net resource file i.e. (.resources) and vice-versa. Today we will see how we will generate ==> .txt files from .resources or .resx files. ==> .resources files from text or .resx files.
2
829
by: JollyK | last post by:
Hello friends, In a large asp.net project, I don't think it is a good idea for having one common resource file containing all localized strings for the whole application. I think a better approach would be to have individual resx files for each form/user control. My main problem is having difficulties in naming my resource file. For example, suppose I have a web form called Items.aspx. I want to have a resource file for it and name it...
1
1227
by: Lucvdv | last post by:
In an app that was working, all I did was specify an icon for the main form (through the form designer) and recompile it. Result: MissingManifestResourceException After digging around, I found that the compiler generates .resource files in the debug build of the application, for all forms except the main one (form1). The .resx file (with the icon in it) exists in the source directory,
8
2458
by: Fred* | last post by:
Hello, I'm using Visual C# 2005 Express. if I create a new "application windows" project and run it (F5), it works well. (an empty window is launched..) as soon as I set the build action to embedded resource, I can't run it anymore because I got an error on 'WindowsApplication1.Form1.Dispose(bool)'..
12
5278
by: TS | last post by:
i have a need to possibly enable mutli language support. What benefit do i get by using a resource file instead of a custom xml solution? thanks!
2
8728
by: steve | last post by:
I have the following routine for retrieving error message strigs from a resource file which is embedded in the project. But when it is called I get the error messsage "Could not find any resources.." shown underneath the code. The error message indicates that it is looking for resource ResourceExceptions.resource which is not what was embedded in the code by Visual Studio. The resource file is ResourceExceptions.resx. If I try to change...
8
14949
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to cut and paste code that MSDN recommends for playing a simple wav file from inside an embedded file, like presumeably the 'resources' file .resx is. I want to embed the .wav file in a 'resource file' since I don't want the user storing the file on...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10325
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.