Board index » cppbuilder » Unable to execute command 'tasm32.exe'

Unable to execute command 'tasm32.exe'


2006-11-13 07:11:31 AM
cppbuilder55
Hi,
I am using C:\Borland\BCC55\Bin\brcc32.exe and have this warning
Error E2133: Unable to execute command 'tasm32.exe'
tasm32 is in C:\Borland\BCC55\Bin
while compiling this:
------------
#include "dos.h"
void onbeep(int freq)
{
int temp;
long val = ((182 * 65535)/10)/freq;
if (val>65535) val = 65535;
outportb(0x43,0xb6);
outportb(0x42,val & 0xff);
outportb(0x42,val>>8);
temp = inportb(0x61);
temp |= 3;
outportb(0x61,temp);
}
void offbeep(void)
{
int temp = inportb(0x61);
temp &= 0xfc;
outportb(0x61,temp);
}
void main(int argc, char *argv[])
{
onbeep(atoi(argv[1]));
delay(1000);
offbeep();
}
-------------------
--
Thanks for your attention.
Jean Pierre Daviau
 
 

Re:Unable to execute command 'tasm32.exe'

"Québec" < XXXX@XXXXX.COM >wrote in message
Quote
I am using C:\Borland\BCC55\Bin\brcc32.exe and have this warning
Why are you trying to compile C source code with the Resource Compiler?
The C/C++ compiler is bcc32.exe.
Quote
#include "dos.h"
void onbeep(int freq)
{
int temp;
long val = ((182 * 65535)/10)/freq;
if (val>65535) val = 65535;
outportb(0x43,0xb6);
outportb(0x42,val & 0xff);
outportb(0x42,val>>8);
temp = inportb(0x61);
[snip]
The free command line compiler you're using can only create
Win32 programs. The code you show is for 16-bit DOS.
You cannot use outportb/inportb in a Win32 program.
--
Wayne A. King
XXXX@XXXXX.COM