News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Pstart4 path problems

Started by Wurstwasser, June 24, 2007, 03:32:39 PM

Previous topic - Next topic

Wurstwasser

Hi,

I'm on W2K and a masm32 newbie. I wanted to create a base project with pstart4. In "Set paths", I've set absolute paths to my masm32 installation, which is c:\masm32\. E.g. Path to ml.exe = C:\masm32\bin\ml.exe

After "Create project", this is the output of the cmd box:

Microsoft (R) Windows (R) Resource Compiler, Version 5.00.1823.1 - Build 1823
Copyright (C) Microsoft Corp. 1985-1998. All rights reserved.

Using codepage 1252 as default
Creating rsrc.RES
RC: RCPP -CP 1252 -f T:\Devel\ASM\Test\RCa01004 -g T:\Devel\ASM\Test\RDa01004 -D
RC_INVOKED -D_WIN32 -pc\:/ -E -I. -I .

rsrc.rc.
Writing ICON:1, lang:0x409,     size 744
Writing GROUP_ICON:500, lang:0x409,     size 20.
Writing MENU:600,       lang:0x409,     size 216
Microsoft (R) Windows Resource To Object Converter Version 5.00.1736.1
Copyright (C) Microsoft Corp. 1992-1997. All rights reserved.

Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: Project.asm
Project.inc(15) : fatal error A1000: cannot open file : \masm32\macros\macros.asm

There has been an error while assembling this project.

Drücken Sie eine beliebige Taste . . .


"c:\masm32\macros\macros.asm" exists. The process doesn't seem to know the stuff is on c:\

What can I do or check? Does it need any environment variables?

Thanks for any help.

ragdog

hi wurstwasser :bg

try this
and add in your source \macros\macros.asm



@echo off
set path=\masm32\
set resname=rsrc
set name=DownloadURL

if exist %name%.exe del %name%.exe
if exist %resname%.res del %resname%.res

%path%bin\rc /v %resname%.rc
%path%bin\cvtres.exe /machine:ix86 %resname%.res
%path%bin\ml.exe /c /coff /nologo /I"%path%include" %name%.asm
%path%bin\link.exe /SUBSYSTEM:WINDOWS /OUT:%name%.exe /LIBPATH:"%path%Lib" %name%.obj %resname%.obj

if exist *.obj del *.obj

pause


greets ragdog

Wurstwasser

Well, hmm thx for your answer. What you show me is a batch file for assembling and linking. I'm using Winasm IDE and I have no problem with that.

But what about my specific pstart4.exe problem?

ragdog

add in you Project.asm c:\masm32\macros\macros.asm

Wurstwasser

Quote from: ragdog on June 24, 2007, 04:28:38 PM
add in you Project.asm c:\masm32\macros\macros.asm

Which project.asm? Is that a template file? Well, possibly I'm just too stupid. The c:\masm32\pstart4.exe doesn't create anything because of the mentioned error. I don't know where to add what you're saying. Honestly, I think you're answering a general problem, but not my problem about the c:\masm32\pstart4.exe.

hutch--

Wurstwasser,

As installed the pstart4 code generator already has the paths set correctly. If you create a seperate directory and use pstart4 to create a new project in that directory you not only get the files for the project but a batch file that will build it as well. If you open it in the default editor in MASM32 you can build it from within the editor or from the batch file within the editor.

To build projects within winasm you will need to find out how it works as MASM32 is not designed to run with the specifics of different IDEs provided by different authors. Your problem is with how you configure and run winasm, the Prostart code generator works fine as long as you have not messe up the paths to the appropriate binaries.

This is what you get as a build result fromn the default installation of Prostart.


Microsoft (R) Windows (R) Resource Compiler, Version 5.00.1823.1 - Build 1823
Copyright (C) Microsoft Corp. 1985-1998. All rights reserved.

Using codepage 1252 as default
Creating rsrc.RES
RC: RCPP -CP 1252 -f R:\demo\RCa01896 -g R:\demo\RDa01896 -DRC_INVOKED -D_WIN32
-pc\:/ -E -I. -I . -I H:\sdk\Include\

rsrc.rc.
Writing ICON:1, lang:0x409,     size 744
Writing GROUP_ICON:500, lang:0x409,     size 20.
Writing MENU:600,       lang:0x409,     size 216
Microsoft (R) Windows Resource To Object Converter Version 5.00.1736.1
Copyright (C) Microsoft Corp. 1992-1997. All rights reserved.

Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: Project.asm
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

Volume in drive R is WIN2K_R
Volume Serial Number is 2410-8877

Directory of R:\demo

06/25/2007  11:35a               8,185 Project.asm
06/25/2007  11:35a               2,525 Project.inc
06/25/2007  11:35a                 766 Project.ico
06/25/2007  11:48a               7,198 Project.obj
06/25/2007  11:48a               7,680 Project.exe
               5 File(s)         26,354 bytes
               0 Dir(s)  25,147,572,224 bytes free
Press any key to continue . . .


Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Wurstwasser

I think the problem must be somehow different. What I did now:

1. Create an empty folder c:\test\
2. Create an empty folder t:\test\
3. Prostart with t:\test\ --> error as mentioned above
4. Prostart with c:\test\ --> Works.

Ah now I see, the output folder has to reside on the same drive as masm32 or I have to manually edit files to point to the masm32 dir.