Posts
 
Reputation
Joined
Last Seen
Ranked #971
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
43% Quality Score
Upvotes Received
16
Posts with Upvotes
15
Upvoting Members
12
Downvotes Received
23
Posts with Downvotes
17
Downvoting Members
16
10 Commented Posts
~74.1K People Reached
About Me

I'm a very difficult person to describe because I'm all over the place. If I could sum me up into one word it would be insane. I'm an incredibly vibrant person. I love surfing, playing guitar, programming, photography, video games, skating, snowboarding,…

PC Specs
To be honest, I don't pay attention to this with Windows operating systems, only on Macintosh. I don't…
Favorite Tags

163 Posted Topics

Member Avatar for skatamatic

I don't really play too much with sockets, but I read over the source and it was a good read. :D Thanks for posting, I'll archive it in my forms kit with credit to you. :)

Member Avatar for Alejandro_8
6
9K
Member Avatar for ddanbe

Why not use Type.GetMethods to get just the methods instead of searching for keywords in the file. I took a second to write an example (though not as detailed as yours) it can be modified to implement with opening a specific file. private void button1_Click(object sender, EventArgs e) { ListMethods(typeof(int)); …

Member Avatar for JOSheaIV
0
425
Member Avatar for lxXTaCoXxl

I am trying to figure out how to convert hexadecimal values into mips instructions but I am not having any luck. From my understanding you have to first break the value down to machine level (binary) and then use that result to determine the instruction by converting each section of …

0
281
Member Avatar for lxXTaCoXxl

I am trying to find ways to get the hex data from a file opened in a windows form using the open file dialog. I've done some reading and have found that .NET Framework used to have a byte viewer component built into System.Design that was a quick standard way …

Member Avatar for cgeier
0
234
Member Avatar for tinstaafl
Member Avatar for lxXTaCoXxl

I realized that I haven't released any snippets in a while so I figured while I was working on some interesting projects of my own that I would release one that I recently decided to write because I don't see the algorithm out there in C# very often. This snippet …

Member Avatar for lxXTaCoXxl
0
449
Member Avatar for kavi4u

Use your form's key down event instead of the text box. Then tell which text box to focus when a different key is pressed. [code]//pseudo not acutal code; private void this_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Left) leftBox.Focused = true; else if (e.KeyCode == Keys.Right) rightBox.Focused = true; …

Member Avatar for vaynenick
0
2K
Member Avatar for lxXTaCoXxl

Okay so I know how to close the application completely but when I have multiple forms it tends to mess up my main form and cause bugs when I close my secondary forms. Can anyone help me with this problem? [CODE]// The bug I get is in Program.cs and it …

Member Avatar for padillian
0
2K
Member Avatar for lxXTaCoXxl

The snippet provided will cover the basics of an on screen keyboard; the only things it doesn't have are numbers, symbols, and extra keys. This will give you the fundementals to build off of. It's written using Microsoft's XNA Framework, however it should be fairly simple to port over to …

Member Avatar for lxXTaCoXxl
0
265
Member Avatar for lxXTaCoXxl

These are just some of the more useful #define statements I've used in C++. These are some of the statements you'll use the most (in the case of template<typename T> when you use it, you use it a lot!). So I figured I'd post it for others, even though a …

Member Avatar for sepp2k
-4
270
Member Avatar for lxXTaCoXxl

I've been given a homework assignment in which I have to create a linked list, then store 25 random integers within it, after I've stored the values I have to find the sum of these 25 numbers, and then the floating point average of them. So for the most part …

Member Avatar for histrungalot
0
207
Member Avatar for lxXTaCoXxl

I'm trying to convert a number to a string then back to a number to perform math, then back to a string to return it to the user. I don't understand the problem because this is how my friend did it (that I can remember and it worked for him). …

Member Avatar for NathanOliver
0
238
Member Avatar for lxXTaCoXxl

I'm out of practice on my C++ and have kind of picked up a new hobby; it turns out that I like creating electronic devices. Particularly amplifiers and sound to light kits. Stuff like that; the problem is that determining the amount of resistance a resistor on an old creation …

Member Avatar for NathanOliver
0
208
Member Avatar for lxXTaCoXxl

It's been a while since I've posted anything; I've been really busy. I was just sworn into the Marine Corps, and just finished making my own 5x5x5 LED cube. Now I'm wanting to get a little programatical with what I did in the real world. Basically I'm needing to find …

Member Avatar for nmaillet
0
133
Member Avatar for king03

The problem seems to be that you're not initializing the Form; either that or Form1 is in another namespace by accident (highly unlikely but can happen). To resolve this try: Form1 f1 = new Form1(); f1.Show(); # Hope it helps, # Jamie

Member Avatar for james6754
0
106
Member Avatar for lxXTaCoXxl

Just a couple basic static mathematical helper methods that I've found useful for game development. Feel free to add some in replies for future visitors. I will do another post later this week with advanced helper methods from trig and calc. I will also do a geometry helper class as …

Member Avatar for skatamatic
0
159
Member Avatar for lxXTaCoXxl

I think this is the first actual discussion thread of code on a coder's website I've actually ever seen, and I'm the one posting it. (HA!) So basically; I got bored and found a website called Project Euler. It has a bunch of "mathematical" problems to solve. Eight pages and …

Member Avatar for Momerath
0
170
Member Avatar for Erwin_Rosyid

Okay, reading over your source code there are a few things I can point out to you that you might be interested in for shortening the amount of line's you'll have overall. 1) Since you're requiring access to Form1 in Form2 you can create a variable of Form1 in Form2 …

Member Avatar for Erwin_Rosyid
0
128
Member Avatar for lxXTaCoXxl

Figured I've been working on material for a while and would throw these up for everyone that needs them in the future to use. It's very simple implementation; if I get enough people asking me to, I will write the methods for each of the instructions so you don't have …

Member Avatar for skatamatic
0
280
Member Avatar for lxXTaCoXxl

I had a small problem with collision detection starting out with XNA 4.0 so I figured I'd release a simple snippet that helps with two different types of collision detection; Per-Pixel and Rectangular. To use simply copy and paste the snippet into your current source, or you could put it …

Member Avatar for tpb_rocpile
0
248
Member Avatar for king03

Square is defined again inside of another .cs file and needs to be renamed. Although, if you're writing this with XNA you should really switch your project type over to Windows Game type. @Momerath: When designing games it's good practice to create your own objects, plus the Rectangle class inside …

Member Avatar for lxXTaCoXxl
0
148
Member Avatar for lxXTaCoXxl

I'm trying to upgrade my class library to my current mathematical skill set and am having trouble with multi-term polynomials, especially those I where I don't know how many terms the user will be putting in. I know that the formula for the first derivative of a polynomial is ax^n …

Member Avatar for lxXTaCoXxl
0
300
Member Avatar for lxXTaCoXxl

I'm trying to upgrade my class library to my current mathematical skill set and am having trouble with multi-term polynomials, especially those I where I don't know how many terms the user will be putting in. I know that the formula for the first derivative of a polynomial is ax^n …

Member Avatar for lxXTaCoXxl
0
145
Member Avatar for lxXTaCoXxl

I'm writing a basic application that needs to know the mathematical relationship between a jal and its address. For example: jal $000a2000 = 0x0c028800 So my question is how would I get this value mathematically? I've been pondering ways to do it all week and every route I took to …

Member Avatar for lxXTaCoXxl
0
117
Member Avatar for henri18

Create a for loop that will evaluate each card in the hand using switch logic. For example: int[] ThreeOfAKind = new int[3]; for (int i = 0; i < 3; i++) { for (int x = 0; x < 7; x++) { if (i >= 1) ThreeOfAKind[i] = ThreeOfAKind[i - …

Member Avatar for Lerner
0
484
Member Avatar for LestTurk

A pong game requires (like any other game) planning. Even though it is the simplest game to write, it can be frustrating if you don't aquire knowledge on how the game works. I know, I know, you're thinking what more can be to it than just the ball moving around, …

Member Avatar for lxXTaCoXxl
-1
619
Member Avatar for king03

I agree with @skatamatic on this topic. If you must write a Tetris clone then start by learning the framework. You'll need to know how to load Textures (I use PNG but BMP works just as well) then you'll need to learn how to manipulate the texture (using keyboard and …

Member Avatar for lxXTaCoXxl
0
2K
Member Avatar for nthabiJacq

First you must tell the computer how to calculate a perfect number, if I remember correctly you're meaning prime which simply means it's only divisible by itself and 1. So create a list of integers then add each prime as it finds it. Hope it helps. List<int> Primes = new …

Member Avatar for lxXTaCoXxl
0
228
Member Avatar for lxXTaCoXxl

I'm having trouble with my some output in hexadecimal math. The subtraction overload seems to work fine, but when I add an address to another it goes all wierd on me. :( Here is a sample output: 00000000 + 0000055c = 0000000c // Incorrect 000a0000 + 00000180 = 000a000000000080 // …

Member Avatar for skatamatic
0
121
Member Avatar for jigglymig

Try removing the try catch block: private void linkLabel1_Click(object sender, LinkLabelLinkClickedEventArgs e) { Process.Start("http://www.website.com"); linkLabel1.LinkVisited = true; } If that doesn't work then switch over the event to the simple clicked event: linkLabel1.Click += new EventHandler(linkLabel1_Click); private void linkLabel1_Click(object sender, EventArgs e) { Process.Start("http://www.website.com"); linkLabel1.LinkVisited = true; } It's probably …

Member Avatar for lxXTaCoXxl
0
113
Member Avatar for king03

Pong, Breakout, Space Invaders, Pacman, Asteroids - Best games to learn the framework with. If you need help just ask, I'm very talented with XNA. I've been studying it for 2 years now.

Member Avatar for seslie
0
121
Member Avatar for lxXTaCoXxl

I get tired of having to google this simple line of code all the time. My problem with memorizing it is that I switch back and forth between C# and C++ all the time, and the way you overload operators in each is different. So once I learn one again, …

0
174
Member Avatar for king03

For a bi-dimensional game you would not be using .fpx files. You will be using texture files: .jpg, .jpeg, .png, .bmp, .gif, .pxr, and so on. The blocks in a tetris game are mainly just made using multiple block images. For example, the L shape would be 3 blocks down …

Member Avatar for lxXTaCoXxl
0
271
Member Avatar for lxXTaCoXxl

Nevermind, thanks for anyone that read but I fixed the problem and don't want the source code visible to the public so if someone can please remove this post. Sorry for the secretivity, but it's kind of a promotional project.

-1
71
Member Avatar for lxXTaCoXxl

I realize I haven't released anything in a while so I figure I'll just type a basic set of things for you all to use or learn from. All of the following requires XNA Framework, but can be easily ported over to .NET Framework for use with forms applications. The …

0
123
Member Avatar for lxXTaCoXxl

I'm having trouble calculating the Nth root of a given value. I don't understand what's going wrong in the algorithm, but the values are incredibly close. Only off by about 0.78891 for small values, and about 0.52 for larger ones. So any help with this is appreciated; I don't want …

Member Avatar for Momerath
0
159
Member Avatar for lxXTaCoXxl

I'm not sure if I remember how to do the Quadratic Formula because I haven't had to use it since I learned about it back in '05. So I did a little research on how the formula works and from what I understand the formula is: [code] // -b +- …

Member Avatar for skatamatic
0
301
Member Avatar for lxXTaCoXxl

I'm wondering how to make my custom user type able to be added and subtracted from the same types. For example: [code]public class CustomType { public float x; public float y; public CustomType(float x, float y) { this.x = x; this.y = y; } } public class test : Form …

Member Avatar for skatamatic
0
159
Member Avatar for lxXTaCoXxl

Okay basically I have a class that manages sound and it's volume is a floating point value with 1.00f being 100% and 0.00f being 0%. So the math is done in low values. Allowing more precise calculations. Anyways, I'm adding and subtracting from the value by 0.05f as per the …

Member Avatar for skatamatic
0
172
Member Avatar for rfrapp

That's a massive algorithm. Okay, well I don't know if you have to generate an algorithm for it or not, but if you don't I believe the ToString method still works in C++. [code=C++]myDecimalValue->ToString("x");[/code] I'm not 100% sure on it, but that's what we use in C# because it's simpler; …

Member Avatar for rfrapp
0
3K
Member Avatar for lxXTaCoXxl

My project for my C++ class is to develop an application that will help me out in my programming life, and since I constantly have to use a calculator to determine the values in free fall acceleration I decided to write an application to do it for me. I was …

Member Avatar for DeanMSands3
0
868
Member Avatar for Falcon25

&& is the and operator; the way it works is the value it returns is true when both sides of it are true, and only when both sides are true, any other time it returns false. || is the or operator; I forget how it returns until I'm actually using …

Member Avatar for Falcon25
0
147
Member Avatar for shandoosheri

you can do this in several ways... You can use this.hide or like kam said minimize it at load, and there a few more ways as well. Sorry for the bad spelling and grammar but I'm on my touchpad lol this.visible = false; all ways of doing this will all …

Member Avatar for NetDeveloper
0
256
Member Avatar for lxXTaCoXxl

I have a homework assignment due this week and am fairly new to C++. Don't have a book so I can't really go on anything other than the video material and power point slides my teacher provides. I have 98% of the assignment done, however I'm encountering logic problems. I'm …

Member Avatar for lxXTaCoXxl
0
107
Member Avatar for jasbun

Create your picture boxes, and set their background images to the correct images. That's the solution I would use with the way you've phrased your question. If this is not what you want then please try clarifying your problem.

Member Avatar for lxXTaCoXxl
-1
99
Member Avatar for Rajbeer

We have no control over when the destructor is called, because the times it is called are determined by the garbage collector. In a general sense the garbage collector reads for items that are not being currently used by the application. When it considers an item is ready to be …

Member Avatar for lxXTaCoXxl
-2
150
Member Avatar for techunk

I would recommend posting this question on the MSDN forums, the wait time is shorter for important matters like this. All of the higher knowledge level people on this forum are rarely online. You have people like Thines01, momerath, and ddanbe (not sure if all spelling is correct sorry guys) …

Member Avatar for skatamatic
0
723
Member Avatar for lxXTaCoXxl

If I remember correctly from C# to C++ the following should convert into the second following. I need to create a console application that will output the physical address of the main interface on a user's computer. This in my experience seems to always be the second interface in the …

Member Avatar for DeanMSands3
0
533
Member Avatar for jackbauer24

If he's interested in game development or just general software development, C++ and C# are good places to start. For game development I'd suggest using XNA Framework (Available at Dreamspark to all students of colleges so if someone in the family is in college have them give you their information …

Member Avatar for jbennet
0
553
Member Avatar for s3ttt

I wouldn't use WriteAllLines all though it sounds as if it would be useful. I would simply create a foreach loop that goes through the lines of text in 'ta' and writes it to the fie. [code]foreach (string line in ta.Text) { //Put writing code here }[/code] But that's just …

Member Avatar for thines01
0
192

The End.