|
are you driven by shear laziness????
Take a look at all the articles on codeproject, surely there must be an article here that will inspire you to come with an idea for your project.
Plus you got .NET Framework 3.5 the wealth of new stuff in it surely could be of some incentive to try something new. Have a look at the blogs of all the folks at MSDN, some of these guys come up with really cool prototype applications that utilise the new framework in their spare time.
Think outside the square is the only advice I can give.
|
|
|
|
|
I am not sure why he's asking the same question over again. I don't understand why he doesn't ask his professors/instructors for advice. Isn't that what they are there for?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
maybe he has issues with his professors/instructors, who knows
|
|
|
|
|
Could be the case, but still, he should be able to think of a project on his own.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
that's true as well. This also examplifies how little the OP takes an interest in software development.
How hard is it to type ".NET WPF" in Google and you get a gazillion hits on what people are doing with WPF.
This is one of the problems at CP I have noticed, you get these moronic posts where anyone reading has to be a clairvoyant to decipher what the OP has written and are just too lazy to google.
|
|
|
|
|
ekynox wrote: This is one of the problems at CP I have noticed, you get these moronic posts where anyone reading has to be a clairvoyant to decipher what the OP has written and are just too lazy to google.
Yes, and unfortunately it has seemed like it has been getting really bad lately
ekynox wrote: How hard is it to type ".NET WPF" in Google and you get a gazillion hits on what people are doing with WPF?
It must be really hard. I mean if one is interested in WPF, just look at Josh Smith or Sacha Barber's works they've published here. Those guys are something else
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello,
I need to throttle a running thread based on the cpu usage that the thread is currently using.
My main problem is that my machine has 4 cpu's and I don't know how to figure out which cpu my thread is executing on. (The other cpu's will be used for other queued thread work items, so I can't just look at total cpu usage.)
My goal is to poll for cpu usage > 60 % on the current thread and then call thread.sleep until cpu usage returns below that level.
I assume that I'll need to use a performance counter to do this.
int processorInstance = 'need to figure out what to set this to.'
System.Diagnostics.PerformanceCounter c = new System.Diagnostics.PerformanceCounter("Processor", "% Processor Time", processorInstance.ToString());
Thanks,
Brad
|
|
|
|
|
I think there is a way to set the thread affinity (at least through Task Manager), not sure how it can be done programmatically. If it can be done in Task Manager, I don't see why it couldn't be done in a program...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I've worked around my problem for now with a well placed thread.sleep for now.
Thread affinity looks like the right path to take though. Thanks for the advice.
|
|
|
|
|
Tune us all in if you find anything good
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello everybody ,
Is there a way to avoid using the standard OpenFileDialog control in Visual Studio.NET 2005 and still be able to produce the same information using C#? I mean, if I wish to create a different user interface yet display the same information regarding drive lists, directory lists and the list of files under various folders. How can I achieve this ?
Thanks and regards.
Milkyway.Andromeda@indiatimes.com
|
|
|
|
|
You can use the classes in the System.IO namespace to get information about drives, directories and files.
The DriveInfo.GetDrives method, for example, returns an array of DriveInfo objects that represent the available logical drives in the system.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
Thanks a lot for the guidance. . I got the idea as well as where to look for.
As a matter of fact, I was thinking if there might be some classes available that can be used. Thank you once again.
Milkyway.Andromeda@indiatimes.com
|
|
|
|
|
Make your own dialog. Just look up "directory browser" in the search bar of this website, there are plenty of good examples.
Mark.
Find a job you like and you will never have to work a day in your life. -
|
|
|
|
|
Thank you very much . Making my own dialog was what I was thinking.
Good wishes to you all.
Milkyway.Andromeda@indiatimes.com
|
|
|
|
|
Hello everyone,
I have created an Windows Application using .NET Framework2 and everything works fine under WIndows XP Operating System. When I run the Windows Application under Windows Vista, there are some issue and it doesn't work as good as it should. The main problem comes from the part that the Windows Application needs to connect to a remote database and populate DataTable on the Windows Application with data from remote database.
This is the code that I am using to populate the DataTable by data from remote database after the connection has been stablished.
OdbcCom = new System.Data.Odbc.OdbcCommand("USE MyDatabaseName;", OdbcCon);<br />
OdbcCom.ExecuteNonQuery();<br />
<br />
OdbcAd = new System.Data.Odbc.OdbcDataAdapter("SELECT * FROM " + MyTableName + ";", OdbcCon);<br />
<br />
myds = new DataSet();<br />
<br />
OdbcAd.Fill(myds, MyTableName);<br />
<br />
myTable = new DataTable();<br />
<br />
myTable = myds.Tables[MyTableName];
I was wondering if anyone have faced the same problem or if anyone knows anything about it.
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
I had a similar problem with Windows XP 64 bits.
Then I discovered that XP 64 bits has no support for ODBC.
It may be your case.
Charles.
|
|
|
|
|
Hi!
Is there a function that handles duplicate characters such as 2 spaces in a word, the one who transform:
yyyy tttt
to:
yyyy tttt
Or do i need to create it?
Thanks
|
|
|
|
|
|
Did you mean the join function?
I am sorry, but i could not find something like this.
Can you please help?
|
|
|
|
|
So you didn't see the method called Replace?
The one for replacing one thing with another? Like replacing two spaces with one?
|
|
|
|
|
I did see it, but the 2 spaces was an example, what about 3,,5,7,9,23,45,49,76,78.
This is what i ment when asking if there is a function, or i need to write my own algorithm for that.
Thanks for your help
|
|
|
|
|
ytubis wrote: yyyy tttt
to:
yyyy tttt
I dont see any difference
As for white space trimming, you can handle it as follows
string strVar = "Your text goes here";
string TrimmedString = strVar.Trim();
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Maybe i should have be more specific in my example, but i ment:
yyy tttt
to:
yyy ttt
|
|
|
|
|
Hello,
Do you want the second part of the string as long (same Char count) as the first?
And is there allways one whitespace in between?
All the best,
Martin
|
|
|
|