Another question I thought for sure would have been asked before, but I don't see it in the "Related Questions" list.
Could you C++ developers please give us a good description of what RAII is, why it is important, and whether or not it might have any relevance to other languages?
I do know a little bit. I believe it stands for "Resour...
Guys I'm having major trouble understanding recursion at school. Whenever the prof is talking about it I seem to get it but as soon as I try it on my own it completely blows my brains. I was trying to solve Towers of Hanoi all night and completely blew my mind. My textbook has only about 30 pages in recursion so it is not too useful. Doe...
.NET 3.5
Visual Studio 2008 Team Edition
I have an XML file that I've added to an assembly via the Resources tab of the project's properties; and have marked the Access Modifier as public. While running in debug mode, there are no problems referencing the assembly and the embedded resource in another project, i.e.,
XElement errorMap =...
I'm taking Fortran 90 class, and I'm looking for any good websites about Fortran.
Does anyone know any?
...
I'm trying to store an empty Access database (.mdb) as a resource in my application. I then want to write it out the file system and populate it with table definitions, etc. The problem I'm having in Visual Studio 2005 and my C# application is with not being able to access the resource stored in the same assembly (which I would have th...
Hi,
I have a Global string in my App.xaml I want to uses in a UserControl xaml how do I reference it?
<Application.Resources>
<sys:String x:Key="Assembly">Zpg</sys:String>
</Application.Resources>
I also have a valiable in the UserControl Resources do I use this in a simila way in the xaml?
<UserControl.Resources>
<sys:String...
Hello.
How to avoid having embeded metadata everywhere in source code(.as or .mxml)?
I have found two approaches:
1. Embed everything in css. But it is kind of difficult to extract from there:
var soundCSSClassDec:CSSStyleDeclaration = StyleManager.getStyleDeclaration("MySound");
var MySoundClass:Class = (soundCSSClassDec.getSt...
There seems to be two different approaches. ASP.NET framework gives us an easy way to localize pages by putting UI strings in resources, like UserProfile.en.resx, UserProfile.fr.resx etc.
The other approach is to put all strings in separate tables in the database then use some custom mechanisms to retrieve them accodring to the currentl...
I've just started learning Java as part of my uni course, and am so far really liking it. I did a quick search to try and find a Java Community online, but haven't really had any luck. I was looking for something along the lines of gotoandlearn.com and www.kirupa.com like the flash communities have.
Can anyone recommend a good starting...
I've got an XML file storing an array of shorts in my resources. I need to assign this array, but Android API only provides a way to get array of ints (getResources.getIntArray()). I've ended up getting an array of ints and converting it to array of shorts later, but that's hardly ideal.
Is there a way to get an array of shorts from And...
I believe lots of us have been presented with a challenge to check manually through hundreds of string constants to check which ones are used and which are not (orphans). Although I do not have that many yet in my current project, I still find it difficult already to do a code review and check for dropped constants manually.
Is there an...
I am looking for a simple text file that contains all the words in a moderm dictionary.
I play a game called scramble, and would like to create a program that takes an input of letters and will tell me what kind of words could be made out of the combination of letters.
DNOC
DCIA
ELRJ
IIOT
Circle, Cocain,...
I am programming an mp3 application, and I have it so it starts on start up. However when looking at it in msconfig it says manufacturer is unknown. How can I make it say "daxsoft"?
Is there a a way to do this without a .rc file?
...
I follow the instructions here http://stackoverflow.com/questions/90697/how-to-create-and-use-resources-in-c-net-vs-2008/90699#90699
However when i do Properties.Resources.Name; I get "The name 'Properties' does not exist in the current context". Its driving me nuts bc i tried multiple things and googled and could not find a solution.
...
Hi,
I am using c# (visual studio 2008) to try and access business logic in an excel spreadsheet.
I have the following class.. (feel free to criticise if I am doing this wrong - I am java developer normally - this is my first c# application.)
public class SpreadSheetClass
{
// apologies for any typo's code written in place, not cop...
Do I need to manually call close() when I use a std::ifstream?
For example in the code:
std::string readContentsOfFile(std::string fileName) {
std::ifstream file(fileName.c_str());
if (file.good()) {
std::stringstream buffer;
buffer << file.rdbuf();
file.close();
return buffer.str();
}
throw std::runt...
I know we can do something like this:
Class.class.getResourceAsStream("/com/youcompany/yourapp/module/someresource.conf")
to read the files that are packaged within our jar file.
I have googled it a lot and I am surely not using the proper terms; what I want to do is to list the available resources, something like this:
Class.class....
Hi
My blackberry application has some mp3 files bundled with the application. I want to add these files from the app to a folder in the sdcard or a folder in my phone memory through program.
How can I do this? Is it possible?
Thanks.
...
So a using statement automatically calls the dispose method on the object that is being "used", when the using block is exited, right?
But when is this necessary/beneficial?
For example let's say you have this method:
public void DoSomething()
{
using (Font font1 = new Font("Arial", 10.0f))
{
// Draw some text here
...
I am building a client-server based solution; client being a desktop application and the server being a web application.
Basically, I need to monitor the performance and resource utilization of the client, which is a .NET 2.0 based Windows Desktop application.
The most important thing I need to monitor is the network resources the clie...