English
C ++ Forum

DLL-export

 
- Page 1 -


>> produce of DLLs from Profan²/XProfan-Codes

an Description, How one functions export have I unfortunately not found. an short explanation would nice.
 
07/24/05  
 



 
- Page 1 -


thanks first for Info with the Help , I have only in the Versionhistorie geschaut. my otherwise functioning Testcode slopes I here time ran. Please rename in zipper.

5 kB
Hochgeladen:07/25/05
Downloadcounter254
Download
 
07/25/05  
 




Fernando
Santos
Hello Sebastian

have attempts with your example a DLL to create, it'll a dll with the size of about 350KB
generiert and if I try the beispielprogramm to start appear The Message the The namedll.inc not found becomes. I must somehow something wrong make, or???

greeting

Pedro
 
Innovative Produkte für Aufzüge
07/25/05  
 



Prf2CPP created at produce the DLL too another dazugehörige Includedatei. These ought to in the same directory lying as PRF which The Includedatei needed. copy The created Include means in your Programmierverzeichnis.

salvo, iF.
 
07/25/05  
 



Hello Sebastian,
code ausserhalb of Proceduren becomes the DLLMain() added. so can I means globale Deklarationen perform. this corresponds to Yes vaguely AttachThread(), now missing me but the Gegenstück DetachThread() to that automatischen straighten up and memory enable. On the what with FreeDLL happens have I Yes otherwise no influence.
becomes Perhaps only seldom used, however if a Umsetzung no large Problems bereitet would it still beautiful if you this yet install could
 
07/26/05  
 




Sebastian
König
[quote:32e8acf1bc]Hello Sebastian,
code ausserhalb of Proceduren becomes the DLLMain() added. so can I means globale Deklarationen perform. this corresponds to Yes vaguely AttachThread(), now missing me but the Gegenstück DetachThread() to that automatischen straighten up and memory enable. On the what with FreeDLL happens have I Yes otherwise no influence.
becomes Perhaps only seldom used, however if a Umsetzung no large Problems bereitet would it still beautiful if you this yet install could[/quote:32e8acf1bc]
Hello Thomas,

is correct, such a thing would really meaningfully. time see, How I the best umsetze... what hold You a manner CleanUp-procedure, which - if present - automatically at Entladen the DLL called becomes?

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
07/27/05  
 



Hello Sebastian,
very soetwas my I. Perhaps ought to too The Main optinal in a DLLProc laid go can (because of the Übersichtlichkeit). Z.B.:
DLLProc DLL_Init,0
DLLProc DLL_End,0

ought to still on it hingewiesen go, thats functions automatically carryed out and be not called go can.

would be cool if you the in anybody shape to assimilate could
 
07/27/05  
 




Sebastian
König
[quote:ea11fb37e0]very soetwas my I. Perhaps ought to too The Main optinal in a DLLProc laid go can (because of the Übersichtlichkeit). Z.B.:
DLLProc DLL_Init,0
DLLProc DLL_End,0

ought to still on it hingewiesen go, thats functions automatically carryed out and be not called go can.

would be cool if you the in anybody shape to assimilate could[/quote:ea11fb37e0]
Hello Thomas,

I consider yet, How I the best resolve... one so, the others so gefällt me neither - but two different Opportunities to Initalisierung are sooner verwirrend, think I.

somehow bid itself the area the Hauptprogramms too really on... my favorisierte idea is therefore in the momentum, both on the equal place to house and the Hauptprogramm at Loading and Entladen the DLL aufzurufen. to distinction would I then a new Profan2Cpp-specific Systemvariabele to introduce. so could the then looks:
what hold You (and who otherwise mitliest ) of it?

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
07/27/05  
 



@Sebastian: make it as on the Reibungslosesten expires.

in the Endeffekt behaupte I is it alike How the whole dealt becomes.

i'd warscheinlich simply determine: If a DLL export go should - so must following 2 Procedures in the View source present his. dllproc DllInit and dllproc dllexit. means a One- and Ausstiegsprozedur. How You, the then intern regelst ought to into area your experience entrapments - with which You entscheidest what best functions.

salvo, iF.
 
07/27/05  
 



DLLCode ausserhalb of Procedures feel so did i sooner as unüblich. I schließe me first iFs suggestion on, though in the Endeffekt is me The Syntax not so important, only The Possibility counts
 
07/27/05  
 



 
- Page 2 -



Sebastian
König
I have it now so made How supra described - means with %DLLInit. Gefällt me really best and let itself too on the simplest umsetzen .

is one little on Delphi angelehnt, if I me not crazy. there becomes too the code in the Hauptteil (between begin and end.) at loading carryed out, but to that straighten up should one still a extra procedure create... (and the pleased me Yes not...)

however, I hope, as it now is any to some extent pleased .

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
07/27/05  
 



Hello Sebastian,
is it correctly., the The Systemvariable always ausgewertet go must?
CompileMarkSeparation
 $DLL

DLLProc Addiere, 2

    parameters a%, b%
    return a% + b%

EndProc

If %DLLInit

    MessageBox("DLL wurde geladen", "DLL-Test",64)

Else

    MessageBox("DLL wurde entladen", "DLL-Test",64)

EndIf

functions Erwartungsgemäß
CompileMarkSeparation
 $DLL

DLLProc add, 2

    parameters a%, b%
    return a% + b%

ENDPROC

MessageBox("DLL watts geladen", "DLL-Test",64)

Ifnot %DLLInit

    MessageBox("DLL watts entladen", "DLL-Test",64)

EndIf

here had I do not expects, the The first Messagebox 2x appear.

Nochwas: Autocompress-Plugin power jedesmal before the pack a Messagebox, The true before not there.
 
07/28/05  
 




Sebastian
König
[quote:f157a845ad]is it correctly., the The Systemvariable always ausgewertet go must?
[...]
Nochwas: Autocompress-Plugin power jedesmal before the pack a Messagebox, The true before not there.[/quote:f157a845ad]
Hello Thomas,

Yes, %DLLInit ought to always (if something initialized or aufgeräumt go must) quizzed go. it'll always the complete Hauptprogramm called - goes indeed not differently, there everything together in a function alights.

The MessageBox with AutoCompress is a Debug-spending (installed around the thing with %1 To korriegieren), The I inadvertently not removes have - sorry! becomes in the next Beta naturally lane his .

MfG

Sebaitian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
07/28/05  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

9.185 Views

Untitledvor 0 min.
PETER195609/06/15
gerd10/27/13
liveFamilie06/06/12
funkheld03/29/12
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie