Go Back   BWHacks > Development > Programming

Programming General non-hacking related programming.

Reply
 
LinkBack Thread Tools

Old 09-01-2006, 01:10 AM   #41 (permalink)
Dyndrilliac

Blessed
 
Dyndrilliac's Avatar
 
Join Date: Jun 2005
Location: Jacksonville, FL, USA
Posts: 2,506
Dyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant future
Send a message via MSN to Dyndrilliac
Default

The .NET Framework is similar to Java's API Framework. It's basically a windows-universal language. It's designed to be OO, and RAD capable. C++.NET and VB.NET are the only .NET languages that can access both the .NET Framework, and the Win32 API.

The Win32 API ("I" as in "eye", Application Programming Interface) is available on all Windows Operating systems. However, some features available on the NT/Vista platform are unavailable on legacy systems (DOS, Windows 3.x, Win9X/Me). To find out more information about anything related to a Microsoft product, goto MSDN. There's a link for it in the Guide thread, linked in my sig.

Assembled binary modules (*.exe, *.dll, *.lib) and their handling systems are written with machine code. Assembler languages are compiled into machine code.

You can program game hacks in Assembler.
Dyndrilliac 15 0FF11|\|3   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement


Old 09-01-2006, 01:18 AM   #42 (permalink)
Crystatic

Deviant
 
Join Date: Aug 2006
Posts: 44
Crystatic is on a distinguished road
Default

-What is .NET useful for?
-Will Windows XP programs run on Vista?
-I was talking about writeing a program using pure machine code, no ASM knowledge whatsoever. This is possible, right?
Crystatic 15 0FF11|\|3   Reply With Quote

Old 09-01-2006, 03:49 AM   #43 (permalink)
Dyndrilliac

Blessed
 
Dyndrilliac's Avatar
 
Join Date: Jun 2005
Location: Jacksonville, FL, USA
Posts: 2,506
Dyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant future
Send a message via MSN to Dyndrilliac
Default

.NET can do just about everything. Although, it is primarily for RAD using strict OO paradigms (Commercial applications of all sorts). Although, system drivers/games/gamehacks are best left to a compiled language with access to the core API of your OS.

Yes, Vista will support legacy software. However, this forum is inappropriate for this topic.

No. Writing software straight by scratch using a Hex-editor or other unicode data reader is impossible. If you were a software developement God, you might be able to make a HelloWorld application after years of painstaking work converting the Assembly code you know nothing about into Hex and transcribing it into a file using the Portable Executable format. And, when you get done with that project, you'll run the program and after days of debugging lines of hex you'd come to the realization that your code is using the wrong byte order for your machines architecture and you'll have to start all over again.

Please use google before posting in the forums. The questions which you ask could be answered by a simple Google query.
Dyndrilliac 15 0FF11|\|3   Reply With Quote

Old 09-03-2006, 04:19 AM   #44 (permalink)
Loser777
Geeky Azn d00d

Enlightened
 
Loser777's Avatar
 
Join Date: Oct 2005
Location: Irvine, California
Posts: 3,036
Loser777 is a glorious beacon of lightLoser777 is a glorious beacon of lightLoser777 is a glorious beacon of light
Send a message via AIM to Loser777 Send a message via Skype™ to Loser777
Default

Just a quickie... I've started learning C++ and when compiling my first few programs with bloodshed... The program will execute... but it closes immediately after it runs: ex: I will have it print some text... but the window will close right after execution...(I know it isn't a program error because if I include code at the end for user input, the windows stays open and the program functions correctly)-The program will then close after recieving input. Anyone know a way around this?
__________________
MY PSP
Teamliquid PowerRank:
1. Sea[Shield] 6. Kal 2. Jaedong 7. Luxury[GsP] 3. By.Flash 8. JulyZerg 4. BeSt[HyO] 9. Lomo[fOu] 5. fOrGG_V_ 10. Hwasin

Loser777 15 0FF11|\|3   Reply With Quote

Old 09-03-2006, 04:46 AM   #45 (permalink)
Dyndrilliac

Blessed
 
Dyndrilliac's Avatar
 
Join Date: Jun 2005
Location: Jacksonville, FL, USA
Posts: 2,506
Dyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant future
Send a message via MSN to Dyndrilliac
Default

Sleep(unsigned long), getch(void), system("pause").

Those all work. It's better to use a control loop instead of having to force a pause though.
Dyndrilliac 15 0FF11|\|3   Reply With Quote

Old 09-03-2006, 06:31 AM   #46 (permalink)
attilathedud

Disciple
 
attilathedud's Avatar
 
Join Date: Nov 2005
Location: Maryland
Posts: 562
attilathedud is a jewel in the rough
Send a message via AIM to attilathedud Send a message via MSN to attilathedud Send a message via Yahoo to attilathedud
Default

cin.get() and getchar() put at the end of the program will also work.
__________________
I love all of you, in a completely gay way.
attilathedud 15 0FF11|\|3   Reply With Quote

Old 09-03-2006, 12:37 PM   #47 (permalink)
Dyndrilliac

Blessed
 
Dyndrilliac's Avatar
 
Join Date: Jun 2005
Location: Jacksonville, FL, USA
Posts: 2,506
Dyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant future
Send a message via MSN to Dyndrilliac
Default

But were those functions designed with that functionality? No. It's a bad idea to use functions to do things that they were not designed to do.
Dyndrilliac 15 0FF11|\|3   Reply With Quote

Old 09-04-2006, 09:29 PM   #48 (permalink)
Loser777
Geeky Azn d00d

Enlightened
 
Loser777's Avatar
 
Join Date: Oct 2005
Location: Irvine, California
Posts: 3,036
Loser777 is a glorious beacon of lightLoser777 is a glorious beacon of lightLoser777 is a glorious beacon of light
Send a message via AIM to Loser777 Send a message via Skype™ to Loser777
Default

Quote:
Originally Posted by Dyndrilliac View Post
Sleep(unsigned long), getch(void), system("pause").

Those all work. It's better to use a control loop instead of having to force a pause though.
Ok... but I found out that this was caused by a return 0; statement... So dumb.
__________________
MY PSP
Teamliquid PowerRank:
1. Sea[Shield] 6. Kal 2. Jaedong 7. Luxury[GsP] 3. By.Flash 8. JulyZerg 4. BeSt[HyO] 9. Lomo[fOu] 5. fOrGG_V_ 10. Hwasin

Loser777 15 0FF11|\|3   Reply With Quote

Old 09-04-2006, 10:16 PM   #49 (permalink)
Dyndrilliac

Blessed
 
Dyndrilliac's Avatar
 
Join Date: Jun 2005
Location: Jacksonville, FL, USA
Posts: 2,506
Dyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant future
Send a message via MSN to Dyndrilliac
Default

Thats absurd. Every function has to return, otherwise the basepointer gets corrupted.
Dyndrilliac 15 0FF11|\|3   Reply With Quote

Old 09-04-2006, 11:25 PM   #50 (permalink)
Loser777
Geeky Azn d00d

Enlightened
 
Loser777's Avatar
 
Join Date: Oct 2005
Location: Irvine, California
Posts: 3,036
Loser777 is a glorious beacon of lightLoser777 is a glorious beacon of lightLoser777 is a glorious beacon of light
Send a message via AIM to Loser777 Send a message via Skype™ to Loser777
Default

Quote:
Originally Posted by Dyndrilliac View Post
Thats absurd. Every function has to return, otherwise the basepointer gets corrupted.
No, a return 0; at the end of the program...
__________________
MY PSP
Teamliquid PowerRank:
1. Sea[Shield] 6. Kal 2. Jaedong 7. Luxury[GsP] 3. By.Flash 8. JulyZerg 4. BeSt[HyO] 9. Lomo[fOu] 5. fOrGG_V_ 10. Hwasin

Loser777 15 0FF11|\|3   Reply With Quote

Old 09-05-2006, 02:20 AM   #51 (permalink)
Dyndrilliac

Blessed
 
Dyndrilliac's Avatar
 
Join Date: Jun 2005
Location: Jacksonville, FL, USA
Posts: 2,506
Dyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant future
Send a message via MSN to Dyndrilliac
Default

You fool, you know nothing. Every program MUST have a method(function,proc) that serves as the entry point for the program. This is usually Main() or the like. Every method returns a value. Period. End of discussion. However, most languages allow you to create void methods or sub-routines which don't require you to specify a value, and return null automatically, with compiler automated basepointers and stack frames and the like.

As I said, the return statement is irrelevant to your issue. Whoever told you that should be shot. You have two options: Forced pauses and control loops.

Control loops represent the usual methods for multi-threaded applications and event driven code (the best kind). Forced pauses are the usual methods for crappy JMP-based unmodular badly written code. The choice is clear.
Dyndrilliac 15 0FF11|\|3   Reply With Quote

Old 09-05-2006, 05:11 AM   #52 (permalink)
Loser777
Geeky Azn d00d

Enlightened
 
Loser777's Avatar
 
Join Date: Oct 2005
Location: Irvine, California
Posts: 3,036
Loser777 is a glorious beacon of lightLoser777 is a glorious beacon of lightLoser777 is a glorious beacon of light
Send a message via AIM to Loser777 Send a message via Skype™ to Loser777
Default

Quote:
Originally Posted by Dyndrilliac View Post
You fool, you know nothing. Every program MUST have a method(function,proc) that serves as the entry point for the program. This is usually Main() or the like. Every method returns a value. Period. End of discussion. However, most languages allow you to create void methods or sub-routines which don't require you to specify a value, and return null automatically, with compiler automated basepointers and stack frames and the like.

As I said, the return statement is irrelevant to your issue. Whoever told you that should be shot. You have two options: Forced pauses and control loops.

Control loops represent the usual methods for multi-threaded applications and event driven code (the best kind). Forced pauses are the usual methods for crappy JMP-based unmodular badly written code. The choice is clear.
Eh.. I know nothing.. that is true... I just said I was starting to learn. -eidt taking out return 0 didn't fix it.. I guess I will try the loop then.
__________________
MY PSP
Teamliquid PowerRank:
1. Sea[Shield] 6. Kal 2. Jaedong 7. Luxury[GsP] 3. By.Flash 8. JulyZerg 4. BeSt[HyO] 9. Lomo[fOu] 5. fOrGG_V_ 10. Hwasin

Loser777 15 0FF11|\|3   Reply With Quote

Old 09-05-2006, 06:02 AM   #53 (permalink)
Dyndrilliac

Blessed
 
Dyndrilliac's Avatar
 
Join Date: Jun 2005
Location: Jacksonville, FL, USA
Posts: 2,506
Dyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant futureDyndrilliac has a brilliant future
Send a message via MSN to Dyndrilliac
Default

Next time don't contradict me unless you have a guarentee that you are right. I wont hesitate to argue over a topic that I am intimately familiar with.
Dyndrilliac 15 0FF11|\|3   Reply With Quote

Old 09-05-2006, 08:12 AM   #54 (permalink)
Palomino
Retired Staff Member

Zealot
 
Palomino's Avatar
 
Join Date: Jul 2004
Location: NSW, Australia
Posts: 756
Palomino has disabled reputation
Default

Quote:
Originally Posted by Dyndrilliac View Post
C++.NET and VB.NET are the only .NET languages that can access both the .NET Framework, and the Win32 API.
Hrm, I'm quite sure you can use attributes in all .net langs to access functions in dlls, including win32 api (the .net core even nicely marshals arguments and return types)
That being said, managed c++ and c# are the only langs which can use pointers natively(c# via the unsafe keyword)
__________________
"Cryptography is a pointless science. It does not matter how securely a message is encrypted, there are always ways of getting around it. It is all just a question of effort, unscrupulousness and bribes. On this note, I want to conclude my book. I hope you had fun reading it." - Klaus Schmeh
((λ (x) (x x)) (λ (x) (x x)))
Palomino 15 0FF11|\|3   Reply With Quote