flat assembler
Message board for the users of flat assembler.

Index > Heap > Howto assembly a project bcc32.exe v5

Author
Thread Post new topic Reply to topic
semiono



Joined: 31 Aug 2007
Posts: 176
Location: section '.code' executable
semiono
Help! I wish to tune two raritet campilers to work - bcc32.exe and dcc32.exe
I don't know what is switches need to compile GUI projects.
bcc32 -tW something.cpp is not enaugh.
I see into project.bpr and see blah-blah content. Very Happy
Please, have anybody experiense?

I have both full distributives BCB and DELPHI, but i want to keep it without IDE.
And i need two examples minimal win32 window project in c++ and pascal to test it.

_________________
Memory=8388608
Post 11 Nov 2010, 16:07
View user's profile Send private message ICQ Number Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
I don't see any problems with dcc32?

Quote:
C:\Program Files (x86)\Borland\Delphi5\Bin>dcc32.exe E:\_projekt\delphi\email\em
ail.dpr
Borland Delphi Version 13.0 Copyright (c) 1983,99 Inprise Corporation
E:\_projekt\delphi\email\email.dpr(41)
42 lines, 0.19 seconds, 31160 bytes code, 2805 bytes data.

_________________
This is a block of text that can be added to posts you make.
Post 12 Nov 2010, 03:34
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
Code:
program api;
uses
   windows,
   messages;

var
   mesg:msg;
   window:wndclass;
   hwindow:hwnd;

function windowproc(hWnd:THandle;aMSG:Cardinal;wParam:Cardinal;lParam:Integer):Integer; stdcall;
begin
   case amsg of
      wm_destroy:
         PostQuitMessage(0);
   end;
   windowproc:=DefWindowProc(hwnd,aMSG,wParam,lParam);
end;

begin
   window.style:=cs_hredraw or cs_vredraw;
   window.lpfnWndProc:=@windowproc;
   window.cbClsExtra:=0;
   window.cbWndExtra:=0;
   window.hInstance:=hinstance;
   window.hIcon:=loadicon(0,idi_application);
   window.hCursor:=loadcursor(0,idc_arrow);
   window.hbrBackground:=GetStockObject(white_BRUSH);
   window.lpszMenuName:=nil;
   window.lpszClassName:='1';

   registerclass(window);

   hwindow:=createwindow('1','Hello, World!',ws_overlappedwindow or ws_visible,
                         262,186,500,400,0,0,hinstance,nil);

   showwindow(hwindow,sw_show);
   updatewindow(hwindow);

   while getmessage(mesg,0,0,0) do
   begin
      translatemessage(mesg);
      dispatchmessage(mesg);
   end;
end.    


Quote:
C:\Program Files (x86)\Borland\Delphi5>dcc32 E:\_projekt\delphi\api\api.dpr
Borland Delphi Version 13.0 Copyright (c) 1983,99 Inprise Corporation
E:\_projekt\delphi\api\api.dpr(46)
47 lines, 0.02 seconds, 11452 bytes code, 1493 bytes data.

_________________
This is a block of text that can be added to posts you make.
Post 12 Nov 2010, 03:44
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
semiono



Joined: 31 Aug 2007
Posts: 176
Location: section '.code' executable
semiono
Yes, it's really work! My problem has been that I try to compile the PAS files.
dcc32 compiles DPR directlly! Ok, I don't know it Very Happy
...hmm... Maybe bcc32 Builder with BPR workly the same?...
Thanks!...
And thanks for api example!
Post 13 Nov 2010, 15:41
View user's profile Send private message ICQ Number Reply with quote
semiono



Joined: 31 Aug 2007
Posts: 176
Location: section '.code' executable
semiono
No! bpr is not available to compile as bcc32. Confused
Post 13 Nov 2010, 17:33
View user's profile Send private message ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.