|
you discovered the space bar now? usually you have a newline where we put a space...
|
|
|
|
|
Yes, just more proof that (in the C family of languages) spaces and newlines are interchangable and generally unimportant (to the compiler).
|
|
|
|
|
Thank you Sauro Viti.
That worked !!!
|
|
|
|
|
Thank you for explaining.
I got your point.
and the code from "Sauro Viti" worked fine
|
|
|
|
|
I have some class that derived from class queue ( generic namespace ) and i need to implement the IConable Interface.
Each object on the queue is implament the IClonable interface also.
Im not sure that my clone impementation of the queue derived class is the right way ...
The code:
<code>
public object Clone()
{
derivedFromQueueCollection retCollection = new derivedFromQueueCollection();
lock( this )
{
ObjectOnQueue[] arr = ToArray();
for( Int32 i = arr.Length ; i > 0 ; i-- )
{
retCollection.Enqueue( arr[ i ].Clone() as ObjectOnQueue);
}
}
return retCollection;
}
</code>
modified on Wednesday, August 25, 2010 9:36 AM
|
|
|
|
|
|
|
Rather than having the same question asked 3 times, why not stick with 1?
|
|
|
|
|
|
and you probably won't until you tidy up all of your duplicate posts!
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
I'm sorry, but the answer today[^] is INFEASIBLE
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
|
Well spotted!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
c# code for instal my font to client machine when my setup run
SuresPanneer
|
|
|
|
|
|
I don't see anything particularly wrong with the question, but apart from there being no code it seems OK to me
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
How about:
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
?
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.
|
|
|
|
|
|
I hesitated about clicking on "bad question" since yours is clearly no question, but in the end I did.
Seriously, if you can't be bothered to phrase a proper question, how can you expect others to phrase a proper answer?
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Hi fellows,
I created a "Class Library project" in Visual Studio and added a "Windows Applications" project to the same solution. The problem is that I added a referece to the Class Library dll file to my Windows appication project and I don't see images. Images resides in the ClassLibrary project.
What i want is that when a dll class is reference in any project and instiantated. It should display image that is define in it's assembly.
Thanks in advance
|
|
|
|
|
We would need to see how you are embedding/retrieving the images in the class library and how you are exposing them to other apps.
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
I have two projects in one solution. What I want to do is that whenever I instantiate CusomPicture class it should show a picture that is inside this project class.
How could i tell the ProjectB CustomPicture class that upon its run look for Logo.gif inside its own project.
Project A
using CustomPicture;
private void Form1_Load(object sender, EventArgs e)
{
CustomPicture cp = new CustomPicture();
}
Project B
public class CustomPicture
{
public customPicture()
{
PictureBox.Image=new Bitmap("Logo.gif");
}
}
|
|
|
|
|
Goto ProjectB properties and select Resources. Add a resource file if prompted then drag and drop the files into there. Depending on how you want to package the images you may want to set their BuildAction properties to EmbeddedResource .
Your constructor would then be something like:
PictureBox.Image = Properties.Resources.Logo;
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
Hi all,
I have been given the task to compare various algorithms that convert GPS-coordinates to 2D-coordinates (on a local map, for example the college building).
First of all I think the "algorithm" term is used a bit loosely, it probably won't be just one algorithm but the combination of UTM (Transverse Mercator), WGS84 (geodetic system) and then probably converting to cartesian coordinates ?
I need some help with this because I don't really know where to start on this one. My aim is to build a commandline tool in C# where I can measure the precision of the "algorithm" and the time covered for the result to be calculated. The researcher that gave me the assignment said that I had to look which "algorithms" where the most precise and which were the fastest (to look if it was possible to use it in realtime).
Another question: How do I calculate how precise the result is ? For this you would need to have the precise coordinates to compare the results of the "algorithm" with right ?
I'm sorry if I'm talking jibberish or I should've prepared more myself, but I'm a bit clueless at this point. I don't necessairily need someone to make this but I would like some tips or some clearing up from people who have dealt with this before.
Thanks in advance.
|
|
|
|
|
Sounds like an interesting assignment. I haven't done such things, however here are a few general ideas:
- use Google; it is my prime source of all kinds of information.
- make sure you read some of the related CodeProject articles; try a search for "GPS" in the CodeProject search box. You may be surprised.
- I would opt for a graphic representation of the outcome when comparing several sets of formulae (algorithms); maybe use different shapes for each of the formulae, and different colors for each of the tests. You might see patterns that you would never discover using a console app.
|
|
|
|