Author Topic: open file  (Read 5436 times)

03.jose

  • Guest
open file
« on: June 03, 2012, 02:30:00 PM »
hello
I need to do a program in masm32 I open files with extention txt and let me copy their contents if the file is too long I put a scroll bar, so as does the acrobat with pdf (for example)

another question, using the theme, any know how to run an exe file from masm32?, I do not want to open it in binary

dedndave

  • Member
  • *****
  • Posts: 8734
  • Still using Abacus 2.0
    • DednDave
Re: open file
« Reply #1 on: June 03, 2012, 04:05:09 PM »
that's a lot to swallow for a new asm programmer   :P
opening the file and reading it is pretty easy
starting another program is pretty easy, too
displaying the text in a scroll window takes a little work

i suggest you start by installing the masm32 package
read the install page, first, though...
http://masm32.com/installation.htm
http://masm32.com/masmdl.htm

once you have it installed, there are many examples in the \masm32\examples folder

Vortex

  • Member
  • *****
  • Posts: 1703
Re: open file
« Reply #2 on: June 03, 2012, 06:34:56 PM »
another question, using the theme, any know how to run an exe file from masm32?, I do not want to open it in binary

Hi Jose,

Welcome to the forum.

Could you be a little more specific?

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4805
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: open file
« Reply #3 on: June 03, 2012, 07:38:21 PM »
Jose,

I get the idea that you do not have a background in low level programming and sad to say writing Windows applications in MASM is not entry level stuff but reasonably advance programming by people who already have experience in writing Windows software. To give you some chance of succeeding it would be better for you to learn a simpler language format with a compiler than to try and learn MASM as your first language.

If you need it later you can always return to it but at the moment you would not succeed as you don't know enough about writing ow level Windows code.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

dedndave

  • Member
  • *****
  • Posts: 8734
  • Still using Abacus 2.0
    • DednDave
Re: open file
« Reply #4 on: June 03, 2012, 11:00:46 PM »
well - he may have prior experience - hard to say from his post
Iczelion's tutorials will get him through a scrolling text window
probably cover everything else he wants to do, too
but - there are something like 30 tutorials

if he understands bits and bytes, memory and registers, he can get there with some effort

03.jose

  • Guest
Re: open file
« Reply #5 on: June 04, 2012, 10:35:37 AM »
thanks for your answers, yes i can read/open the file txt but not can select the text in that file to the copy.

@hutch-- is true i don't have a background in low level programming, but I am a student and my teacher asked me in MASM32

@dedndave yes i have seen Iczelion's tutorials in which I have relied for my homework and i will review the examples of the program

dedndave

  • Member
  • *****
  • Posts: 8734
  • Still using Abacus 2.0
    • DednDave
Re: open file
« Reply #6 on: June 04, 2012, 11:29:26 AM »