Iron_Cross 32 Junior Poster

Yeah, C# doesn't support falling through on switch statements ;)

Iron_Cross 32 Junior Poster

So what are you wanting suggestions and guidelines for?! Are you wanting project ideas, general guidelines, what? You have to be more specific and tell us what you want help with.

Iron_Cross 32 Junior Poster

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.

Iron_Cross 32 Junior Poster

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:
http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles1.html
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.

Iron_Cross 32 Junior Poster

Here is the programming FAQ v2.0.1! If you see something to add, let me know and I'll do it. Consider this one a beta, because I'm not near done, but at least I'm further than I've been before :)

http://home.ripway.com/2003-12/42676/ProgrammingFAQv2.0.pdf

Iron_Cross 32 Junior Poster

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.

Tutorials, Books, Utils, Misc

Visual Basic / *Basic

Java

TCL / TK

Source Code / Examples

ASM

OS Development

Windows Programming / .NET

Iron_Cross 32 Junior Poster

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:

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();

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:

SearchDialog l_sd = new SearchDialog();
l_sd.Show();

/*
 * All the searching and crap was here
 */

l_sd.Close();

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

Iron_Cross 32 Junior Poster
int[] x = y = z = new int[10];
// or I THINK this works too
int[] x, y, z = new int[10];
Iron_Cross 32 Junior Poster

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 everytime the form is shown, or only the first 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.

Iron_Cross 32 Junior Poster

What exactly are you wanting to do?

Iron_Cross 32 Junior Poster

I've never actually done that, but I'm guessing you're going to have to create some sort of BinaryStream then create a file out of that, then use the BitMap.LoadFromFile() method to load the picture....I'm not actualy sure though.

Iron_Cross 32 Junior Poster

You have to set the Visible property to false, or call the this.Hide() method.

Iron_Cross 32 Junior Poster

I think you need to invoke a method on a client computer that calls the Directory.GetFolders() (can't remember if it's Directory or DirectoryInfo) method and pass an argument of type SpecialFolder which is an enumeration and contains different values for "Desktop" and the like.

Iron_Cross 32 Junior Poster

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.

Iron_Cross 32 Junior Poster

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...

Iron_Cross 32 Junior Poster

You need to post specifc problems, not just "Help Me". Plus, your deadline is already up, so this is just for future reference.

Iron_Cross 32 Junior Poster

have you ever looked at http://sf.net/ there might some projects there you could join.

Iron_Cross 32 Junior Poster

A programming language derived from C++ (which implies C as well) with focus on Object orientation and a runtime environment.

Iron_Cross 32 Junior Poster

Read about the ProcessInfo and ProcessStartInfo classes. Also, you could check into some of the win32 API functions that might be able to help with this task.

Iron_Cross 32 Junior Poster

It depends, what's your situation? You can use stuff like PInvoke to call stuff from the Win32 API. Or you can add references to COM components and call their methods directly. It all depends on what you want to do.

Iron_Cross 32 Junior Poster

What is the code you're running. I think I might know what your problem is, but I have to see the code you're using to confirm my suspissions.

Iron_Cross 32 Junior Poster

What?
You want to be able to select part of an image so the user can have further usage? Please rephrase ;)

Iron_Cross 32 Junior Poster

You're probably going to want to use C. Since it can be low level or high level. I don't know of any books on the subject though.

Iron_Cross 32 Junior Poster

Something fairly simple woudl be a Chat Bot. Something that you type stuff two and it responds based on your input. You could do it command line, or you could make a swing application.

Iron_Cross 32 Junior Poster

Strings are immutable. Meaning you can NEVER change them.
So if I do this:

String s1 = "Pig";
s1 += "Horse";

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:

String s1 = "Pig";
String s2 = "Horse";
s1 = "Cow";

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.

Iron_Cross 32 Junior Poster

I normally just extract to a temporary folder, like C:\tmp\ then after I install, I just delete all of c:\tmp\
Those files are just install files, so it really doesn't matter where you put them. I wouldn't suggest extracting them to your desktop though, because sometimes there is several thousand files, which would clutter up your desktop :P

Iron_Cross 32 Junior Poster

try:

publicstatic Response Message(string doc)
{
     XmlTextReader textReader = new XmlTextReader(doc);
     XmlDocument xmlDoc = new XmlDocument(); 
     xmlDoc.Load(textReader); 
     return Response.Message(xmlDoc);
}

If that doesn't work, post the xml document you're trying to read.

Iron_Cross 32 Junior Poster

Have you tried msdn.microsoft.com or the .NET SDK Documentation? Both of those provide good explanations...I prefer msdn, but to each his own.

Iron_Cross 32 Junior Poster

Are you wanting to store it as

<somesetting>12</somesetting>
or
<somesetting>1100</somesetting>
?
What I'm asking is, by binary data, are you wanting to write is as binary, or just write it, or write it using something like a binarywriter? If I figure that out, I bet I could help you ;)

Iron_Cross 32 Junior Poster

You're going to need to explain that one a little better :P

Iron_Cross 32 Junior Poster

Java, vb (/me shivers), or maybe .net

It also depends on what the target phone is.

Iron_Cross 32 Junior Poster

This was orginally posted by ShadowBoxer:
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.

Tutorials, Books, Utils, Misc

Visual Basic / *Basic

Java

TCL / TK

Source Code / Examples

ASM

OS Development

Windows Programming / .NET

Iron_Cross 32 Junior Poster
Iron_Cross 32 Junior Poster

Sometimes, sometimes, companies just rename files. So, it might just be finding the correct file that the .exe uses. Search throughout the application folder, and try to find anything resembling the songs, or file store for that program. Then just try playing it.
I've run accross quite a few programs that will rename stuff like .mpg's to .blahblahblah or whatever they want so that user's will not know what that is or that they could actually take it.
This may or may not be the case, because I've never used msuicnow. So I'd suggest calling their help line and getting help ASAP, considering you're a paying customer.

Iron_Cross 32 Junior Poster

You posted this at devshed too :P

What exactly are you wanting to do. Because it vastly depends on what your end goal is, as to determine the best plan of attack.

Iron_Cross 32 Junior Poster

It's just string. It's built in. Using that exact, word for word, example you'll get their ip.

Iron_Cross 32 Junior Poster

Since you know java, I'd find a program that is made in java that you'd like to practice reverse engineering on. Personally, I think it's easiest to practice on programs that you've made because you know what's going on, then when you get better you can move on to other programs. Although, keep in mind this can get illegal. Go download DJ Java Disassembler. You can find it on google. Then you just decomiple programs, and work your way through them. Also keep in mind that they may have used an obfusecator, which would jumble their code. You can also work on just using every feature of a program trying to figure out it's nuances and so on.

Iron_Cross 32 Junior Poster

In the click events of your menu items you just need to call the undo/redo methods of the RichTextBox or TextBox you have on your form....You can also check to see if it's possible to undo or redo in the popup event of your menuitem's parent

For example, if I had a menuitem called miEdit with two child menuitems called miEditUndo and miEditRedo and a RichTextBox called rtbText I'd so this:

The popup event for miEdit:

public void miEdit_Popup(object sender, System.EventArgs e)
{
    if(rtbText.CanUndo)
         miEditUndo.Enabled = true;
    else
         miEditUndo.Enabled = false;
    if(rtbText.CanRedo)
         miEditRedo.Enabled = true;
    else
         miEditRedo.Enabled = false;
}

Then for the click even of the Undo button:

public void miEditUndo_Click(object sender, System.EventArgs e)
{
     rtbText.Undo();
}

Then for the click event of the Redo MenuItem

public void miEditRedo_Click(object sender, System.EventArgs e)
{
     rtbText.Redo();
}

That's how you do it ;)

Iron_Cross 32 Junior Poster

I've never used that namespace but my guess would be there is either some sort of property in that namespace that can tell you, or maybe one of the Application or Environment classes.

You might also have to fire the event yourself. I'm not sure. You just need to go read the SDK Documentation on that namespace for a little while and I'm sure you'll get the feel for it.

Iron_Cross 32 Junior Poster

You don't install the webservice. You just use it in your application. A webservice just takes input and returns a result....it's not something you have to install. You will, however, have to create the webservice on the actual webserver you use. But that won't have the client application

You can create install apps in VS.NET just create a new project of "Installation Project" under the "other" or "Miscellaneous categories.

Iron_Cross 32 Junior Poster

You can use it without writing it back to storage. Just look into the XmlReader and XmlDocument classes. Just don't save it back to the hdd.

Iron_Cross 32 Junior Poster

It's the exact same as if you were doing it on a desktop application. ASP.NET doesn't change anything.

Iron_Cross 32 Junior Poster

Request.ServerVariables["REMOTE_ADDR"].ToString()

Iron_Cross 32 Junior Poster

Search the SDK Documentation for XmlDocument class and for Application Configuration and XmlReader(or Writer) you'll find tons of examples and tutorials ;)

Iron_Cross 32 Junior Poster

Then you're probably going to want VS.NET. It really makes many aspects of programming much less hasslesome, especially when wanting to build quality, professional software. But yes, it is very pricy. You might be able to grab a copy on a student license, depending on how old you are and stuff....
Plus, if you wait until 2005 comes out, you could probably get 2003 for a good deal. And I use 2003, and it's an awesome IDE.

Iron_Cross 32 Junior Poster

Oh, well in that case...Yes the basic (pun intended) keywords have not changed much, but several function calls and member .....
DeFrog777

VB.NET is also much different in declarations. i.e:

'vb6
Dim someVar As SomeObject

'in vb.net
Dim someVar As SomeObject = someValue
Iron_Cross 32 Junior Poster

If you're application consists of of a main form (i.e. one created by using Application.Run(new Form()); ) then closing that form exits the application. Although, if you're doing it programaticly, then I wouldn't use that.

Iron_Cross 32 Junior Poster

I've used #Develop and VS.NET 2003. And there is a world of difference! #Develop is good if you're doing simple tasks, and not in a work environment. If you are at all concerned with scheduels and the like, use VS.NET. I know it's not free or open source, but it's a great product.

Iron_Cross 32 Junior Poster

To print to an actual document you're going to have to use a PrintDocument object, and override the PRINT event. Keep in mind though, that printing to a printer is very tricky at times, it's just like drawing with the 2D API. It's not like writing text to the screen, it's your job as the programmer to make sure all the lines fit and everything like that.

Iron_Cross 32 Junior Poster

C# is also supported by more things. Such as language specific tasks, and ASP.NET. Where as C++.NET isn't.
Not to mention the easy at which you can develope with C#.