Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
Want to earn prizes for clicking online advertisements? Join Rewards1.com.
|
|
|
#9461 - 03/19/02 03:47 AM
starting a program
|
Junior Member
Registered: 03/10/02
Posts: 8
Loc: Online
|
I don't think I was clear with my last post. Let me see if I can be more clear. When you write a program how do you do it? Is DOS the most compatable way to write a program? I have an MASM32 compiler but don't I want to write in Dos first and then compile it? If you were to write a program in C++ How would you start? Could you start it in DOS? If you could, can you show me how you would do it and could you also indicate how you would space your lines for each part of the program? You don't just type this: program new;#include("stdlib.hhf");begin new; stdout.put("start new program",nl);end new; Don't worry about what the program is, if I wrote that as one line what would happen? Would it seperate itself into the: start/header/body/end ? Spacing appears to be the same for most languages. I would assume that the program will not work if the format is incorrect. Can you give me a sample of how you would write a small program in DOS and how you would go about each step? I hope this makes my question more clear. If you could would you also give an example of how you would write one in a compiler (Assembly MASM32 or C++) if you could. Thanx intrigued
|
|
Top
|
|
|
|
Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
|
|
#9463 - 03/19/02 04:29 AM
Re: starting a program
|
UGN Elder
Registered: 03/01/83
Posts: 55
Loc: Iowa
|
most compiler have a gui interface which you can just load though normal windows. Even my old old borland c++ compiler has a windows app. Then you just write the code in that program, and hit compile, the compiler does the rest.
Skull,
_________________________
Trust me, if i started killing people, there'd None of you left
|
|
Top
|
|
|
|
#9464 - 03/19/02 05:12 AM
Re: starting a program
|
Junior Member
Registered: 03/10/02
Posts: 8
Loc: Online
|
If you use C++ what do you do? Can you open a DOS window?
|
|
Top
|
|
|
|
#9466 - 03/19/02 07:16 AM
Re: starting a program
|
Junior Member
Registered: 03/10/02
Posts: 8
Loc: Online
|
The reason why I'm asking these questions is because I don't own a copy of C++ or VB. I'm trying to learn High level Assembly. I'm trying to check the install to make sure that it works. Everything checks out in Command.com when I test them seperatly but when I try to compile to test the whole system out I get an error saying - compiling hw.hla to hw.asm
- using command line [hlaparse -v -sm hw.hla]
- HLA (High Level Assembler) Parser
- Version 1.30 Build 4452 (prototype)
- File: hw.hla
- Could not open hw.hla
- Assembling hw.asm via [ml/c/coff/Cp hw.asm]
- Microsoft (R) Macro Assembler Version 6.14.8444
- Copyright (C) Microsoft Corp 1981-1997. All rights reserved.
- Assembling: hw.asm
- MASM :fatal error A1000: cannot open file : hw.asm
- Linking via [link-subsystem:console @hw.link-out:hw.exe C:\hla\hlalib\hlalib.lib hw.obj]
- Microsoft (R) Incremental Linker Version 5.12.8078
- Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
- LINK : fatal error LNK1104: cannot open file hw.link
Any help, I would be greatful. Thanx intrigued
|
|
Top
|
|
|
|
#9468 - 03/19/02 12:18 PM
Re: starting a program
|
Member
Registered: 03/02/02
Posts: 109
|
http://spiff.tripnet.se/~iczelion/ You may as well get one of these IDEs and look around the webboard. Ah yes, and download the DOCUMENTATION for masm. That should make it a lot easier.
_________________________
"There is no end. There is no beginning. There is only the infinite passion of life." --Fellini
|
|
Top
|
|
|
|
#9469 - 03/19/02 01:21 PM
Re: starting a program
|
DollarDNS Owner
Registered: 03/04/02
Posts: 1273
Loc: OH, USA
|
It appears you don't know how to use your HLA compiler correctly and the program is unable to find the files you require. High Level Assembly is a good choice though if you're starting to learn assembly. However, it is strongly recommended you learn C or C++ or spankin awful VC++ before learning ANY assembly. If you are wanting to go hardcore like that, here's your best choice (assuming you use windows). It's free. http://www.cs.virginia.edu/~lcc-win32/ If you choose to download that and have any questions, feel free to ask them in the C/C++ forum. You'll find example LCC programs (currently 2) at my site. http://serialcoders.sytes.net
|
|
Top
|
|
|
|
#9470 - 03/19/02 08:12 PM
Re: starting a program
|
Junior Member
Registered: 03/13/02
Posts: 61
|
hehe, you got high ambitions. but tryin to learn assembly if you don't even know how to write a simple c++ app is simply not gonna work. don't listen to everything those SuperL337 h4x0rs tell you on IRC or some stupid tutorial. you gotta learn the basics first.
|
|
Top
|
|
|
|
|
Registered: 03/02/02
Posts: 134
|
|
2198 Members
46 Forums
24883 Topics
60053 Posts
Max Online: 1567 @ 04/25/10 10:20 AM
|
|
|
0 registered (),
330
Guests and
249
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|