BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unable to execute command 'tasm32.exe'

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools)
View previous topic :: View next topic  
Author Message
Québec
Guest





PostPosted: Mon Nov 13, 2006 5:11 am    Post subject: Unable to execute command 'tasm32.exe' Reply with quote



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 >> Cool;
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
--
Easyphp1.8 with Apache1.3.24
Server version: Apache/2.0.55
Server built: Oct 9 2005 19:16:56
DEVC++, borland 5.5
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
http://www.jeanpierredaviau.com
Back to top
Wayne A. King
Guest





PostPosted: Mon Nov 13, 2006 5:37 am    Post subject: Re: Unable to execute command 'tasm32.exe' Reply with quote



"Québec" <Once (AT) WasEno (DOT) ugh> wrote in message
news:4557aa25$1 (AT) newsgroups (DOT) borland.com...

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 >> Cool;
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
waking (AT) idirect (DOT) com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.