|
Never mind - I need to get my brain back into gear here. Basically, what you have is an optimisation problem - effectively you've got a matrix MxN, where M represents the number of objects and N represents the accesses. What you could do is create a sparse matrix, whereby you would put the value in and the time you last access time for each accessed object. Now, every so often you will want to iterate over this list and remove those objects that haven't been accessed since the last collection. At this point, you have a sparse matrix.
|
|
|
|
|
Bingo
[Except I just thought of a way, way faster way of doing it using some stats we keep elsewhere. I know - unfair posing a problem and not telling you about the ace up my sleeve ]
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Chris Maunder wrote: I know - unfair posing a problem and not telling you about the ace up my sleeve
Never mind - I got to dust off some of my old optimisation skills, back from my life writing realtime optimizers.
|
|
|
|
|
Hi all, I'm new here, so if my question is not ok for this site, just delete it.
I am having a project, and actually I don't know from where to begin with it.
I'm supposed to make an mobile application(for PDA), which consists of several pages. Moving from one page to another should be done with buttons like "forward", or "back", or some kind of a menu button. Along with this mobile application, I should make a database(with merge replication options) in which images and text will be stored. Some of the mobile application's pages will be filled with the text and the images from the database.
The tools for making the mobile application and the database are respectively Visual Studio 2008(C#) and SQL Server 2005.
My knollages about C# and SQL Server are 0.
If someone is willing to tell me just where should I start from, I'll be very gratefull!
P.S. I'm not trying to ask for someone to do my project, I'm just asking for some kind of guidence.
|
|
|
|
|
new_t wrote: My knollages about C# and SQL Server are 0.
I totally respect that you're asking for help and not for someone to do the project. However, it does seem to me that if you know absolute zero about this, it sounds like you're going to need a LOT of guidance for your first ever project to be something of this complexity. Moving between forms is easy, I would imagine that depending on how many forms there are, you'd create controls to represent each form and move through them, or just create forms in the usual way ( that is, you create an instance, initialise it, and tell it to show itself ).
I'm sure there's an embedded SQL Server for PDA. SQL is not that hard, that part should be reasonably easy. The big question, based on your comments, is, do you know anything about programming at all ? i.e. are you coming from C++, or VB, or is this your first ever programming task ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
new_t wrote: My knollages about C# and SQL Server are 0. If someone is willing to tell me just where should I start from, I'll be very gratefull!
You don't need guidance, you need to hire a programmer.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Sunday, June 15, 2008 9:50 AM
|
|
|
|
|
if you want to learn c# start with the basic. open this site www.homeandlearn.co.uk. maybe this could help you on your problem..
ignore this message if this doesnt help you..
|
|
|
|
|
Without information about your previous experience your question is pointless.
I give you some examples:
1. Hard experience with C++, MFC – you will need from at least 6 months to start
swimming in the deep with C#, not only to “make things barely working”.
2. Serious background with Delphi VCL and/or JAVA plus some NET experience – at least 3 months till you start creating C# reasonable code.
3. Previous experience with Oracle and PLSQL give you chances to get into the swing of the MS SQL Server for a short time.
4. No previous programming experience at all – in this case I have pity on your client. You should try your skills in the brain surgery also.
The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.
modified on Monday, June 16, 2008 10:28 AM
|
|
|
|
|
hello sir,
i have got a problem that i dont understand how to solve it.
i am using c# form with a textbox . i have set localization =true and
language =urdu. my computer has arabic script installed. now when i run
my form the textbox language still is english.unless i press left+shift+ctrl. is there any way that when i run my app. the text box
will ready to accept unicode character like urdu.
when i set default language to urdu work fine .but i dont want to
change default language because it changes application default language
to urdu.
please help me .this type of project is new to me and i dont now how to
overcome this problem
thanks in advance
modified on Sunday, June 15, 2008 9:06 AM
|
|
|
|
|
I think there's no other way to do this.. as u want to use english on other programs on your computer and for your this software u want to use urdu..
U have to manually set the default language.
|
|
|
|
|
hi
i need an article about Using MSMQ Triggers (practical). i was searched on internet and found many article about this, but all of those in Windows NT 4.0 or 2000, whereas, i need in windows xp. also i need to an artcile that Using MSMQ in Workgroup computers on the network, can anyBody help me ?
thanks.
|
|
|
|
|
I used to do it but now I completely forgot
So, how do you include say a StackPanel in your C# Windows Application form??
Many thanks
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Put it inside a ElementHost control.
|
|
|
|
|
jamie550 wrote: Put it inside a ElementHost control.
What, how where
Please clarify
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Put a ElementHost on your form. If it is called host, then you would do:
StackPanel s=new StackPanel();
host.Child=s;
s.Children.Add( first control you want);
s.Children.Add( second control);
etc...
|
|
|
|
|
Sorry but doh!
What are all these??
Where can I find this mighty ElementHost, what is it?? is it a control?? and how can I access those wpf controls by simply type their names?? I cant just type StackPanel, do I need to reference some class/interface first?? what is it??
Hey, thanks mate!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
The ElementHost is a control. It it located in WindowsFormIntegration.dll
StackPanel and most other WPF controls are in PresentationFramework.dll, but you also need PresentationCore.dll and WindowsBase.dll
|
|
|
|
|
Thanx jamie but all the dlls you just mentioned are disabled and cant be imported
What do I do now
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Are you targeting at least .NET Framework 3.0?
There should be a tooltip describing the problem.
|
|
|
|
|
Hey jamie,
Thanks buddy, I'm fine now
Thanks for staying with me 'till the end, your great man
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
You're patience is astonishing, and pleased he thanked you for you effort.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Hey erfi,
Thanks, I'm fine now
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
I hope the idiot who's voting my every post down in this thread knows the answer to my question!!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
i am familiar with asp.net,i never used delegate but when i go interview they asking about delegate where do u use in your project, i am unable to said answer bcoz i never used can any one tell where really delegate is necessary in real time where actually used delegate
i want real time application development use of delegate, i know that concept how it works.
This is haneef.............................................................
|
|
|
|