UGN Security

starting a program

Posted By: intrigued

starting a program - 03/19/02 03:47 AM

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
Posted By: Gremelin

Re: starting a program - 03/19/02 04:06 AM

C++ or VB for programming..
Posted By: Skull

Re: starting a program - 03/19/02 04:29 AM

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.

Posted By: intrigued

Re: starting a program - 03/19/02 05:12 AM

If you use C++ what do you do? Can you open a DOS window?
Posted By: Snake

Re: starting a program - 03/19/02 06:41 AM

Go learn c++ before you ask those sorts of questions. heh. c++ can do alot, and if you use it right you wont need to open a DOS window.
Posted By: intrigued

Re: starting a program - 03/19/02 07:16 AM

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 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 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
Any help, I would be greatful. Thanx intrigued
Posted By: Gremelin

Re: starting a program - 03/19/02 08:16 AM

lol... well lets see, you can PURCHASE a copy, or you can use kazaa to download it, however we do not reccommend it.

We reccommend using either VB or C++ (VC++ is included with VB6 Studio Enterprise.
Posted By: thebluegiant

Re: starting a program - 03/19/02 12:18 PM

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.
Posted By: SilentRage

Re: starting a program - 03/19/02 01:21 PM

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.

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.
Posted By: AK

Re: starting a program - 03/19/02 08:12 PM

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.
© 2018 UGN Security Forum