|
yeah you posted that already...
What i mean is the error is saying you are using a type (OrderData) that cannot be found.
I assume it is compiler error?
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
there are this error : Error 1 The type or namespace name 'OrderData' could not be found (are you missing a using directive or an assembly reference?) C:\Program.cs 16 14 ConsoleApplication1
Thank you verry mutch.
|
|
|
|
|
I know, and it means somewhere in your code is the text 'OrderData' and it is being used as a type which is not found
Are you using VisualStudio or something where you can click the error and it shows the related code, if not find the code.
Then post that line of code with a couple of lines of code either side of it so i can see what the issue is.
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
Is it System.Collections.Generic.List or System.Web.UI.MobileControls.List?
If it is former then this is not the way to delcare a List. But in case, you need to check for the namespace mentioned in Form1.cs.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
I'm guessing that your post actually says List<OrderData> _orderDataList;. The < and > symbols get treated as HTML tags if you don't convert them.
Anyhoo - your problem here is that the class that contains this List is in a different namespace to the OrderData class (assuming it's in the same project - you may need to add the OrderData dll if it's in a different assembly). If you put your cursor on the OrderData text you will see a little red rectangle appear under the text - press Shift+Alt+F10 to drop down a menu containing the options on how to fix this - the first one will normally add a using statement to your file to fix this problem.
If the rectangle doesn't appear, you'll manually have to enter it - either by putting using ... at the top, or prepending OrderData with the namespace.
|
|
|
|
|
See Pete's answer, didn't see it before I posted.
Need custom software developed? I do C# development and consulting all over the United States.
If you don't ask questions the answers won't stand in your way.
Doing a job is like selecting a mule, you can't choose just the front half xor the back half so when you ask me to do a job don't expect me to do it half-assed.
|
|
|
|
|
I have a c# class(ab.cs) included in a webservice application.How can I create a class instance inside the webservice(service.cs) class???????
|
|
|
|
|
You use the new keyword to create an instance of a class.
However, that seems to be a too simple answer, so perhaps your problem isn't exactly what you asked for?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
we are unable to create a new instance because we are calling a normal class into a webservice class.....
|
|
|
|
|
No, that is not correct. If you are unable to create an instance, it's not because it's a "normal" class.
Do you get any error message?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Its ok ..The problem is solved
we need to add the classes under App_code...
anyway thnks 4 ur reply....
|
|
|
|
|
Hi All
I am working with datagridview and i have added one column of type
DatagridviewcomboBoxColumn. I have also added some items in it. Till now it is ok but when i run the application and select one of the item from comboBox, it automaticaly adding another combobox below it (I.e. in the next row) but i dont want to add it. i have tried a lot but dont fint any solution how to avoid it. Can anyone tell me how to avoid it.
Thanx in advance.
Nitin
|
|
|
|
|
If you add something to a DataGridView and that something is called a DataGridViewComboBoxColumn , I would expect that all rows would have a ComboBox in that Column.
The clue is in the name.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Dear friends.
i am doing an application to install in the remote machine.
with the help of WMI (Win32_Share) i Create the share in the remote machine.
and paste the setup files.
The problem is My Code works for other os then Vista .
( i am using Vista home basic edition)
in vista the share is created. but i do not have rights to paste the file.
Please tell me how to create share in vista and how to set full rights for everyone user
any idea, or link.
With love
Joe.I
|
|
|
|
|
hello,
i begin with devloppement on pdf sharp, have you some exemples witch explaine how use this library and program with it, thank you verry mutch,
|
|
|
|
|
|
Background:
Iam on writing a little game to get familiar with Managed DirectX.
The logic part (eg. Updating GameObjects World Position) has to be hardware independent,
which means that it will run in a separate thread with an own timer logic.
Implementation
bool gameRunning = true;
while (gameRunning)
{
using (new ExecutionTimer(100))
{
}
}
ExecutionTimer Code:
public class ExecutionTimer : IDisposable
{
private DateTime endTime;
public ExecutionTimer(double milliseconds)
{
this.endTime = DateTime.Now.AddMilliseconds(milliseconds);
}
#region IDisposable Member
public void Dispose()
{
var remainingTime = endTime - DateTime.Now;
if(remainingTime.TotalMilliseconds > 0)
System.Threading.Thread.Sleep((int)remainingTime.TotalMilliseconds);
}
#endregion
}
What do you think about this implementation?
I know that it will create a new instance of ExecutionTimer in every step,
but on the other hand the syntax looks very smooth in my opinion.
Is there any alternative or best practice?
Greetings DustPuppy
|
|
|
|
|
I like it, quite a slick implementation. Wouldn't worry about creating a new ExecutionTimer each timeframe - so what?
Regards,
Rob Philpott.
|
|
|
|
|
what happens if your game logic takes over 100ms?
why not just record time at start of logic and sleep at end if need be, then you dont need to create and dispose a class that really does very little
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
If the logic takes longer than 100 ms your cpu is to slow for the game.
I saw such a behavior in supreme commander for example,
the movement speed of all units was slowed down if there where +XXX Units on my screen,
but in the meanwhile I still had +50 frames.
I just did a performance check with the StopWatch (System.Diagnostics),
Disposing and Creating virtually takes no time in this case.
Greetings DustPuppy
|
|
|
|
|
The Dust Puppy wrote: If the logic takes longer than 100 ms your cpu is to slow for the game.
what i mean is you will end up passing a negative value to the Thread.Sleep funtions, which will cause an exception
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
This case is already handled in the Dispose Method, isnt it?
if(remainingTime.TotalMilliseconds > 0)
System.Threading.Thread.Sleep((int)remainingTime.TotalMilliseconds);
|
|
|
|
|
Correct - just testing you
my mistake, sorry
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
I'm using ZedGraph to draw a PieChart.
You know, A PieChart is composed with several PieItems.
But, I don't know how to determine which pieitem is selected when you click or double click in the ZedGraphControl(Here is a PieChart).
Anyone knows about this?
And samples?
Thanks!
|
|
|
|
|
A quick google shows there are loads of sites with info about zedgraph, including samples. Have you tried any of them?
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|