View Full Version : how to create a PROGRAM?????

12-18-2011, 04:48 PM
ok, I have used flash, coded in C++ and C# with other various programs. I have used some IDEs and made simple programs to counts and do simple bull**** functions and I am tired of the basics.

I want to create an application, mainly I want to create an IDE because all of them out there are CRAP. They work great to make a program that counts to 10 and displays it then ends the program. But I want to create an actual program, you know, with the file, edit and all that good stuff up top, a selection cursor, some tools. an ACTUAL software.

I have tried codeblock and opengl just wont work, Im tired of setting stuff up and trying to get ANYTHING to work. the functions keep giving me unknown errors and I cant move ahead at all.

is there a simple way to create a working software application in C++, C#?

visual studios is also complex and makes NO sense. UGH so annoyed....

12-18-2011, 06:30 PM
First step is to find something you want to make, then break it down into smaller piece that you can write and put together... unfortunately every piece of software builds on the basic topics taught by those...

"bull****" functions...[and]...basics

Writing software is no easy task, and your going to have to learn to decipher those "unknown" error messages if your going to succeed....

12-18-2011, 08:25 PM
My favorite use of c# is for making games within the unity 3d game engine. The engine takes care of the rendering, physics, etc letting you think about what classes you need to write to manipulate the objects. If making a 3d game I go with this engine because it's simple and powerful.

For lightweight web apps javascript with jquery and html5 is simple and fun. Can even make multiplayer games using notepad...........with socket IO and node.js libraries...

Autohotkey is another scripting program I love. You can create bots with it, tie into databases, create graphical user interfaces, etc I've even seen a captcha breaker that used image masks to crack captcha which I thought was impossible...It has 2 cool functions called pixelSearch and imagesearch which scan your screen and react when it detects a matching pixel/image. You can compile your script into an exe with custom icon and nobody knows you didn't use visual studio...........

Really you need to just have a desire to make something then figure out what the best tool for that will be....

Examples: C# class for enemy AI:

public class EnemyAI : MonoBehaviour {
public Transform target;
public int moveSpeed;
public int rotationSpeed;
public int maxDistance;
private Transform myTransform;

void Awake() {
myTransform = transform;
void Start () {
GameObject go = GameObject.FindGameObjectWithTag("Player");
target = go.transform;
maxDistance = 1;
// Update is called once per frame
void Update () {
//Look at target
myTransform.rotation = Quaternion.Slerp(myTransform.rotation, Quaternion.LookRotation(target.position - myTransform.position), rotationSpeed * Time.deltaTime);
//Check distance between targets
if(Vector3.Distance(target.position, myTransform.position) > maxDistance) {
//Move toward target
myTransform.position += myTransform.forward * moveSpeed * Time.deltaTime;

Autohotkey code to loot stuff in video games...

IniFile := "C:\loot.txt"
FileGetSize, size, %IniFile%
if (size = "") {
MsgBox Setting up
IniWrite, 1081, %IniFile%, Loot, xdest ; --- destination x pos
IniWrite, 783, %IniFile%, Loot, ydest ; --- destination y pos
} else {
IniRead, xdest, %IniFile%, Loot, xdest ; --- destination x pos
IniRead, ydest, %IniFile%, Loot, ydest ; --- destination y pos
CoordMode, Pixel

$!Lbutton:: ;quick loot -------------------------
MouseGetPos, x1, y1
MouseClickDrag, left, x1, y1, xdest, ydest, 5 ;0 is mouse speed, 0 is instant
MouseMove, x1, y1, 5 ;0 is mouse speed, 0 is instant

$!Rbutton:: ;loot destination ------------------------->
MouseGetPos, xdest, ydest
IniWrite, %xdest%, %IniFile%, Loot, xdest
IniWrite, %ydest%, %IniFile%, Loot, ydest

The way that works ^^ is holding Alt and Right clicking sets a destination location. Then holding alt and LEFT clicking captures the mouses current coordinate on the screen, clicks down, drags to the destination location and releases, then returns the mouse to the location it was before you triggered the macro :)

This is another sample from autohotkey that scans my screen against 30 different images in a game when I press the "=" key. If it finds a match it drags the mouse to that location and clicks, then returns it to where it was before triggering the macro:

MouseGetPos, x1, y1
amount = 1
While GetKeyState("=", "P")
ImageSearch,Px, Py, 40, 40, 1000, 800, C:\Users\Home\Scripts\sign%amount%.bmp
if ErrorLevel = 0
MouseMove, %Px%, %Py%
Sleep, 100
if amount > 30 ;number represents number of signs
amount = 1
MouseMove, x1, y1, 0 ;0 is mouse speed, 0 is instant

Good luck.

12-18-2011, 09:17 PM
Have you ever tried eclipse or Netbeans? They may interest you a bit more.

If you only know the basics, it will be very difficult to create an IDE. For one, you'll need to somehow create a GUI. Then you need to learn about parsing strings for different languages, and likely using system libraries to compile them. Moreover it must be done with relatively efficient algorithms such that it does not take too long to execute a single procedure.

There are other factors one would need to consider, such as using an efficient database for settings, that just makes the process very complicated. Such things do not take a simple 100-500 lines of code that you may have experienced with. The subsystems in itself generally will take more code and knowledge to create.

If you must I suggest you take small steps as theTortoise has suggested. It may be a good idea to start out with learning how to make a GUI, then loading files into "tabs" of the GUI. And from there continue building up on it.

Good luck