0

Well it's not really for commercial use. It's more becuase I'm interested in it. And actualy, I'm really talking about a console program within a GUI program.
I.E: You've got a GUI, but the main window has a section that looks like a console window, and that's where most of the input and output is. I've seen quite a few buinesses using programs like this, and they always interest me because of the speed at which someone (who knows the program) can work. But like I said, I'm doing this more from personal interest, than trying to make a commercial app.

0

I've been wondering about console programming. Not the book example type stuff, but the 'real' console programming. Stuff that seems to use things like ncurses, or something like that I assume. I found a good tutorial on what I'm looking for:
[url]http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles1.html[/url]
but I'm wanting something that goes a little more in depth, or just tells a little more about that.
If I'm making it hard to understand just let me know and I'll revise.

Thanks.

0

Because of some suggestions, I'm going to try to gather some good programming resources in this thread. If you know any good websites, either post them here, or PM me and I'll add them to this post.

[b] Tutorials, Books, Utils, Misc[/b]
[list]
[] [url]http://www.techbooksforfree.com/[/url] (Free Books)
[
] [url]http://www.freeprogrammingresources.com/books.html[/url] (Tutorials)
[] [url]http://programmersheaven.com/[/url] ( tutorials, examples, utils)
[
] [url]http://www.maththinking.com/boat/booksIndex.html[/url] ( books )
[] [url]http://computer.howstuffworks.com/[/url] ( ALL )
[
] [url]http://www.developer.com/[/url]
[] [url]http://programmingtutorials.com/[/url] ( tutorials )
[
] [url]http://www.sysinternals.com/ntw2k/utilities.shtml[/url] (freeware utils)
[] [url]http://www.wotsit.org/[/url] ( file formats )
[
][url]http://www.catb.org/~esr/faqs/hacker-howto.html [/url] ( How to be a hacker )
[/list]

[b] Visual Basic / Basic[/b]
[list]
[
] [url]http://www.freevbcode.com/[/url]
[] [url]http://www.vbtutor.net/vbtutor.html[/url]
[/list]
[b]Java[/b]
[list]
[
] [url]http://java.sun.com/[/url] ( API's, Examples, Tutorials )
[/list]
[b]TCL / TK[/b]
[list]
[] [url]http://tcl.tk[/url] ( Tcl/Tk info, with man pages )
[/list]
[b]Source Code / Examples[/b]
[list]
[
] [url]http://oopsilon.com[/url]
[] [url]http://sf.net[/url]
[
] [url]http://www.planetsourcecode.com[/url]
[/list]
[b]ASM[/b]
[list]
[] [url]http://asmcompo.org[/url] ( ASM Competition )
[
]irc://irc.efnet.co.uk/asm ( ASM on IRC )
[] [url]http://linuxassembly.org/[/url] ( Linux ASM )
[
] [url]http://intel.com/[/url] ( Intel )
[] [url]http://amd.com/[/url] ( ASM Manual )
[
] [url]http://www.madwizard.org[/url] ( x86 ASM )
[] [url]http://win32asm.cjb.net/[/url] ( x86 ASM )
[
] [url]http://www.masm32.com[/url] ( x86 ASM )
[] [url]http://nasm.sourceforge.net/wakka.php?wakka=HomePage[/url] ( x86 ASM )
[/list]
[b]OS Development[/b]
[list]
[
]irc://irc.freenode.com/osdev ( OS/Low Level projects )
[] [url]http://my.execpc.com/~geezer/osd/[/url]
[/list]
[b]Windows Programming / .NET[/b]
[list]
[
] [url]http://www.winprog.net[/url]
[] [url]http://msdn.microsoft.com/[/url]
[
] [url]http://www.codeproject.com[/url]
[/list]
[b]Python[/b]
[list]
[] [url]http://www.python.org/topics/learn/[/url]
[
] [url]http://www.awaretek.com/tutorials.html[/url]
[] [url]http://diveintopython.org/[/url]
[
] [url]http://www.tutorialized.com/tutorials/Python/1[/url]
[] [url]http://www.techtutorials.info/python.html[/url]
[
] [url]http://www.techiwarehouse.com/Python/Python_Tutorial.html[/url]
[/list]
[b]Delphi[/b]
[list]
[] [url]http://www.delphi3000.com[/url]
[
] [url]http://www.delphicity.com[/url]
[] [url]http://www.delphibasics.co.uk/[/url]
[
] [url]http://delphi.about.com/[/url]
[*] [url]http://www.lmc-mediaagentur.de/dpool.htm[/url]
[/list]
[b]C / ...

0

I've got a project going where I need to do some extensive searching, so I decided it would be best to put that code into a new thread. To make it a little more user friendly I decided to pop up a dialog box with a little animated image informing them that it is searching.

The problem lies in the fact that when I do this, the image will not load. I was using a PictureBox to display the image. So then I decided to try and ghettofy it and just set the dialog's backgroundimage property to the image. Which worked just fine.

But since I would like to use a the animated image, I would like to find out why it's not painting properly.

The code I'm using is:
[code]
SearchDialog l_sd = new SearchDialog();
l_sd.Show();

// Search is the method that does all the processing
Thread l_t = new Thread(new ThreadStart(Search));
l_t.Start();
l_t.Join();

l_sd.Close();
[/code]

So Just for kicks I deicded to NOT use a thread to do the work, but the concept was still the same (1. Show Dialog 2. Process stuff 3. Close Dialog) yet I STILL had the same problem. It will only display the picture when I use the BackGroundImage property, not a PictureBox.

The new code looked like:
[code]
SearchDialog l_sd = new SearchDialog();
l_sd.Show();

/*

  • All the searching and crap was here
    */

l_sd.Close();
[/code]

Just to make matters worse, I found out that it won't even display a label. The ...

0

Actually what you should do is add an event handler to either the Load event or the VisibleChanged event. It all depends on if you want the code to execute [b]every[/b]time the form is shown, or [b]only the first[/b] time the form is shown.
Obviously, use Load if you only want the code to execute the first time. Use VisibleChanged if you want the code to execute everytime the form is shown.

0

You could use the Process or ProcessStartInfo classes to call the perl.exe process with the argument being the script.
Then you could use the properties of said classes to see if the script is still running. To actually get info from it, you're probably going to have to write the info to a file then read that file from the C# app when the perl.exe process has finished running.

0

What do you mean? I would just open up something like Visual Studio .NET and start with what I normally call "MainForm" which is the main GUI, then create the main functionality on there and create a main menu with all the different things the user can do, then go down that list implementing them one at a time...

0

Strings are immutable. Meaning you can NEVER change them.
So if I do this:
[code]
String s1 = "Pig";
s1 += "Horse";
[/code]
I've just made 3 permenant strings. I've made "Pig" "Horse" and "PigHorse". All strings are constants, so they will never be changed. When you change a reference to string by reassigning it a new string, you've created a new one. For example:
[code]
String s1 = "Pig";
String s2 = "Horse";
s1 = "Cow";
[/code]
You now have 3 strings, you have "Pig" "Horse" and "Cow".

If you're going to be working with strings, use a stringbuffer. You will gain far more performance by doing that then using string objects.