LizR 171 Posting Virtuoso

yep the problem was the "and" :)

LizR 171 Posting Virtuoso

as Rapture says the first thing is to write down all the things you need, put them in groups and order them and then using the skills you must have been taught so far (or it wouldnt be a final project) try and work out some classes and code.

LizR 171 Posting Virtuoso

I think the OP is trying to write an app to detect what language any other app was written in.

LizR 171 Posting Virtuoso

As I said, you need to look at the selected information..

LizR 171 Posting Virtuoso

only in the sense of your server can say "I want data now" and your client can do the sending..
but again as its connectionless theres no guarentee the client would get it over UDP and no guarentee even if the client responds that the server would get it

LizR 171 Posting Virtuoso

Id suggest finding a thesis project that is less contraversial.

LizR 171 Posting Virtuoso

As a side comment, Im not sure how logging an IM is going to ever form part of a thesis, however, surely writing a new IM that takes the current one and improves on it by adding the functionality you want is a far better use of all as users can then log, should they want, in a legal and healthy manner.

LizR 171 Posting Virtuoso

I can, but to be honest, your thesis doesnt make it a legal thing.

LizR 171 Posting Virtuoso

No it wouldnt, however, this sounds distinctly like a keylogger which is unfair and illegal and bad practice in many ways, there are ways to do it, but, Id be interested in the business justification of it before parting with anything like how to start doing it

LizR 171 Posting Virtuoso

Yep homework or not, we arent a free set of programmers to do everyones coding for them, we volenteer to try and help you sort your own coding dilemas :)

LizR 171 Posting Virtuoso

Try looking at the selectedIndex item

LizR 171 Posting Virtuoso

On which line?

LizR 171 Posting Virtuoso

OK, so, whats the problem you have?
The most important thing to understand is that UDP is connectionless.. so theres no guarantee it is received.

LizR 171 Posting Virtuoso

Its part of Crystal reports, and should be copyright, if its in their redistributable part, then you would have it supplied with crystal reports, marked as such

LizR 171 Posting Virtuoso

There are many examples within MSDN which help, please give some code that you're having issues with and we will assist, as per http://www.daniweb.com/forums/announcement61-2.html

LizR 171 Posting Virtuoso

OK, well. a thread is the right answer, keeping processing and your UI apart is a wise move as any major delay for whatever reason in your processing will mess up the UI if you dont get it right.

Make a simple app.
Have an app that you enter the number of threads you want to run, and have it do something along the lines of:

wait a random amount between 0 and 2 seconds
start at 1 and through to say 50 output to a label on the form its current value

so, then when you click a button after entering how many threads you want, you create the labels, pass the label to the thread, and now you can update it as it goes..

Now apply it with the processing required in your app

LizR 171 Posting Virtuoso

Best way to do that would be to have a "onCompleted" event you have for your thread, and then all threads are done (having counted them up) you know to finalise all work is done. (using the deligates and invoke code previously provided)

LizR 171 Posting Virtuoso

Pythagoras' theorum, unless you are using XNA

capture point 1, and point 2, and using pythagoras, work out the length of the other side.

LizR 171 Posting Virtuoso

Long as you add the items in turn to a list/array so you end up with

1
+
2
=

then you can work through easily.

LizR 171 Posting Virtuoso

Surely it has an equivelent of "My documents"?

LizR 171 Posting Virtuoso

3d is always worse in terms of processing power. Complicated algorithums to decide what you can see round what, shadows of things, interactions between things, etc is complex, 2d you have flat things that are either in front of behind, and in terms of xna can be achieved by using levels for the drawing call so you draw in order from back to front the spritebatch does its "thing" and basically the framework ends up making 1 image which is sent to draw rather than tons of different bits.

LizR 171 Posting Virtuoso

Check the reader stream and the writer stream, msdn has examples for using both

LizR 171 Posting Virtuoso

But as long as they descend from the same base ansestor you could do it, and using code similar to that, and like what I gave you

LizR 171 Posting Virtuoso

Probably but you could probably do it based around the code I gave but I havent needed to go deeper than that

LizR 171 Posting Virtuoso

Its an instance of my class so its defined as the base class.

LizR 171 Posting Virtuoso

Thats good, although I did go to read the other parts of the tutorial and all came up as content not found on MS' website, oh well.. Perhaps I caught them at an off moment.

LizR 171 Posting Virtuoso

XNA is just a framework, it has a lot of options and the only obligation to MS is if you want to put your stuff on the xnacreators website.

I would suggest you download the latest SDK as its quite possible the routines you're after were not finalised or in the version you have. As 2005 is quite a while back now.

LizR 171 Posting Virtuoso

First things first, did you install the latest directx sdk?

At which line item does it complain?
It has to be said they dont mention anything about adding references, and I can see why this could leave you a little high and dry.

Also not aided by clicking on the links to the othersections coming back to me as content not found.

Im assuming it was complaining for Microsoft.Samples.DirectX.UtilityToolkit, if so, its likely theres some DLL in that samples area you need to add to make the reference wake up..

Also, have you considered XNA which also uses directX but has a lot of it wrapped up for you.

LizR 171 Posting Virtuoso

Yes. You can walk through the classes/structs etc of an application and then create instances.

For example

Assembly a = null;
            AssemblyName n = new AssemblyName("mynamespace");
            a = Assembly.Load(n);
            Type[] ts = a.GetTypes();

            foreach (Type t in ts)
            {
                
                if (t.Name == "MyClass")
                {
                    newcmd = (MyClass)Activator.CreateInstance(t);

                }
            }

Will go through your code and make an instance of "MyClass" theres probably a quicker way but I took that from some of my code I use to walk through and make instances of all things derrived from a specific class.

LizR 171 Posting Virtuoso

Whats the actual error you get? (And do you have read/write permissions on the database)

LizR 171 Posting Virtuoso

Windows drawing is reasonably fast, you may want to take a look at XNA as an alternative however.

LizR 171 Posting Virtuoso

Failing that any errors you're getting on compile or run would help us help you

LizR 171 Posting Virtuoso

Ok but how are you confused?
You have a number, you know how many lines for your triangle you need to show.

What bit are you confused on? If you want to say "all of it" to this, Id suggest a chat with your professor as you clearly cant have understood what he would have told you - its not uncommon for things to seem to make sense till you come to do them, but he needs to know you dont understand.

No ones gonna write it for you, guiide you, make suggestions, but so far

LizR 171 Posting Virtuoso

As long as the lines are unique you would need to either use a dictionary and sort an array/list of those characters being the key to the dictionary, OR, you need to write your own sort routine.

LizR 171 Posting Virtuoso

Firstly, welcome, please read http://www.daniweb.com/forums/announcement61-2.html

Secondly.
Im assuming your professor has tried to teach you some programming techniques, and a little about the c# language.

What code do you have so far, and whats causing you a problem?

LizR 171 Posting Virtuoso

use the datasource of the text box and assign the field to the text box it will be automatic

LizR 171 Posting Virtuoso

Create a class, the "tostring" of the class to be the link you want in the listbox, other options to include maybe the full link to the item etc, then in the onlick get your selected item, and use the full link

LizR 171 Posting Virtuoso

You could check in the onlinck of the listbox if the item is marked as "HTML LINK" or such and then run the link if it is?

LizR 171 Posting Virtuoso

I dont see why you'd be having a problem the following

List<String> lines = textBox1.Text.Split('\n').ToList();
            lines.Sort();
            textBox2.Text = String.Join("\n", lines.ToArray());

With

"a cat
a bat
a mat"

put into textbox1, sorted it correctly

LizR 171 Posting Virtuoso

Try this - just to prove to yourself how it can work.
Create yourself a new app
on your first form drop a button, textbox and a label
Create a second form (its going to need EXACTLY the same code as form 1, but it will prove a point)
drop another button, textbox and label
Create a new class
set the class call it keepsafe to static
put a private static string of value
put a public static property to read/set Value
in form 1 button click if textbox is empty, take content of keepsafe.Value in label
do the same for form 2
in form 1 button click if textbox isnt empty, set keepsafe.Value to the value of the text box
do the same for form2
in your form1 Load event create a copy of form2 you dont need to keep a reference so dont worry about form level variables..

Now

Run your app

enter text in form 1, see when you click the button on form2 it shows, same if you do it the other way round..

note you also NEVER made an instance of keepsafe.. it was always there.

LizR 171 Posting Virtuoso

As you will have read from the stickies you should be at least coming in with some sign of having a go first - take a read from other posts, google a bit, if nothing else get to a point where you've read your xml in as a usable form.

LizR 171 Posting Virtuoso

No. Static means you cant make instances, its created at the start, and dies at the end, but like "Colors.White" is available everywhere.

LizR 171 Posting Virtuoso

What do you have so far?

LizR 171 Posting Virtuoso

Make the second form a local variable to your main form, so it remains accessible and obviously you wouldnt necessarily need to make new instances of it if you need to show it more than once..

Or, a better way would be to have private variables on your main form, that you assign an event to your second forms close so that it updates on closing the form, and remembers those settings until you change them

LizR 171 Posting Virtuoso

Then I dont understand why you cant have a static class which is availble then throughout all the application.

LizR 171 Posting Virtuoso

Because the form is local to the create button

LizR 171 Posting Virtuoso

Of course you can, people were doing that long before .net came around

LizR 171 Posting Virtuoso

Err, if its YOUR delphi app, why not just write some hooks for your c# app to call in to? Also why mix 2, if you want a delphi app why not combine what you now nee with what you have? and ask in a delphi forum?

LizR 171 Posting Virtuoso

Nothing means it has to have an API you can use, in fact, .net is one of the few things that gives you a better chance, but, not of controlling the app already running (unless you launch it)

The browser in the middle may have an API you can call as it is almost certainly an instance of IE (TWebbrowser) but, you cant necessarily get at it.

Why not just "send keys" what you want, and cut and paste etc

LizR 171 Posting Virtuoso

It depends a lot on the app you're working with.

You can send keys to an app and act that way, however, its not always possible to be sure of the starting point.

Some apps have API calls defined which you can use to tell them things.