hello friends Somebody knows the command to compile a DLL( v 1.76? of hla).
///////////////////////////////
unit MyDll;
#include ( "w.hhf" );
static
Procedure dll(Instance:dword;reason:dword; reserved :dword);
? ? ? ? ? ?@stdcall; @external("_dll@12");
procedure dllFunc1 (dw:dword); @stdcall; @external("_dllfunc1@4") ;
Procedure dll(Instance:dword;reason:dword; reserved :dword); @nodisplay;
begin dll;
mov(Instance, eax);
if (reason = w.DLL_PROCESS_ATTACH) then
endif;
mov (true,eax);
end dll ;? ? ? ?
procedure dllFunc1(dw:dword); @nodisplay;
begin dllFunc1;
mov (eax,dw);
end dllFunc1;
end MyDll;
//////////////////////////////////
C:\hla\Project\dll>fhla -w mydll.hla
flat assembler? version 1.56
2 passes, 368 bytes.
POLINK: error: Unresolved external symbol '_HLAMain'.
POLINK: fatal error: 1 unresolved external(s).
Error returned by polink = 1
///////////////////////////////
unit MyDll;
#include ( "w.hhf" );
static
Procedure dll(Instance:dword;reason:dword; reserved :dword);
? ? ? ? ? ?@stdcall; @external("_dll@12");
procedure dllFunc1 (dw:dword); @stdcall; @external("_dllfunc1@4") ;
Procedure dll(Instance:dword;reason:dword; reserved :dword); @nodisplay;
begin dll;
mov(Instance, eax);
if (reason = w.DLL_PROCESS_ATTACH) then
endif;
mov (true,eax);
end dll ;? ? ? ?
procedure dllFunc1(dw:dword); @nodisplay;
begin dllFunc1;
mov (eax,dw);
end dllFunc1;
end MyDll;
//////////////////////////////////
C:\hla\Project\dll>fhla -w mydll.hla
flat assembler? version 1.56
2 passes, 368 bytes.
POLINK: error: Unresolved external symbol '_HLAMain'.
POLINK: fatal error: 1 unresolved external(s).
Error returned by polink = 1
Hi OberonHla,
see makefile in folder C:\hla\examples\HLA.dll
see makefile in folder C:\hla\examples\HLA.dll
Wattttttttt??
ok, download HLA Examples/Sample Code
HLA.dll folder in hlaexamples.zip contains sample code to make a dll
HLA.dll folder in hlaexamples.zip contains sample code to make a dll
thanks friends...