Re: something to do



On Aug 7, 11:23 am, "¬a\\/b" <a...@xxx> wrote:
where do you think i have to do these questions?
my summer project is to write a new language using assembly and c++

-----------------------------------------------------------
i have the Borland C++Builder Personal edition
and now i have some question for that compiler in windows
xp environment; is it possible to find an answer?

Question 1
i have a name of one function of name "funame" in the file
"fileassembly.obj" that come from
nasmw -fobj fileassembly.asm
[i write something like the word "global funame" in the file .asm]

that name of function is seen from C++ compiler "bcc32" when i write
bcc32 file1.cpp fileassembly.obj

and all this seems ok (in windows console application)

now i would like to build a dll called file1.dll
bcc32 -tWD -v file1.cpp file.obj

what i have to do for make exportable "funame" from that dll?

it seems to write something like
void* __export funname(unsigned f);
in the file file1.cpp is not ok

i suspect there is something i have to write in the fileassembly.asm
[or in the obj file]

Writing DLLs is not complicated. Consult this:
http://webster.cs.ucr.edu/AsmTools/HLA/HLADoc/HTMLDoc/dll.html


---------------------------------------------
Question 2

is there some example of using the ide of Borland C++ compiler for
doing only .res files?

is it possible to
write winmain and control code for windows in nasm assembly with only
windows api
and doing compilation like

bcc32 -tW -v fileAssembly.obj filecpp.obj fileassembly.obj
file.res

Assuming that "filecpp" doesn't contain any winmain overhead, then
this should be possible.


[the last time i tried above line in a windows xp like user [not
administrator] my pc had a reboot :) ]

Is your computer low on memory and the HD almost full??

Nathan.

.



Relevant Pages

  • Re: Compiler directive for win98?
    ... between NT and win98 in a build. ... The compiler doesn't care what version of Windows it's running on. ... you can compile your program on Windows 98 even it if contains calls to NT-only API functions like EnumProcesses. ... When the Tool Help DLL is not present, then the functions in that unit simply return default error values instead of calling the DLL's functions. ...
    (alt.comp.lang.borland-delphi)
  • Re: Redefinition of target errors
    ... compiler instead of the Borland compiler. ... I can't remember if you said your Perl was activestate. ... to find a link or a way to get dmake for Borland. ... The last time I tried to compile a perl module written in C for Windows it was a real PITA. ...
    (perl.dbi.users)
  • Re: Using python23 to develop an extension for an application that has python22 embedded
    ... > Distutils (MS CL non-optimising compiler, MinGW, ... problem using a DLL built with VC6 and another DLL built with VS.NET in the ... same application, but if you were to use a Borland or other compiler, then ...
    (comp.lang.python)
  • Re: Export C++ class from a Borland DLL and use it in Microsoft VC
    ... I have a DLL with its export library wrote in Borland C++ 6. ... This means that C++ code is incompatible between different compilers, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Export C++ class from a Borland DLL and use it in Microsoft VC
    ... I have a DLL with its export library wrote in Borland C++ 6. ... even different compiler version. ...
    (microsoft.public.dotnet.languages.vc)