English
Forum

EXE instance handle

 

Nico
Madysa
OK, the following:

I have to Kurzem my Program a small ListBox hinzu gefügt. In your should any EXEn (vornehmlich Additional tools To my Program) in the same Ordner How my Program showing. dial is a EXE from, becomes moreover your Logo and a short Description displayed. Images and Strings are as Ressourcen into EXEn eingelagert. now the trouble:

with Draufklick call I the suitable Program with WinExec on, sustain his Instanzhandle and ziehe with Create(hPic) and ExtString$() The things out, The I custom.
The problem: it came weder Image yet String. I probierte The thing in the suitable Program self with %hInstance - Image and String came.

my question now:
can it his, that WinExec quite no Instanzhandle back supply?
And if not, How war I it then?
 
Nico Madysa
09/29/06  
 




Rolf
Koch
you have you The question with the Instancehandle already answers and was even here already öfters described:
Winexec supply only whom Error Code back
 
09/29/06  
 



[quote:e25ce0ex4c=Nico Madysa]
my question now:
can it his, that WinExec quite no Instanzhandle back supply?
And if not, How war I it then?[/quote:e25ce0ex4c]
so is it. so functions not!
the Instanzhandle the application is the lever the Prozesserzeugenden Moduls in the jeweiligen Process.

look you times the API LoadLibraryEx on, The helps you moreover. TNT might there ditto well for you his, so You The thing understand..
 
09/29/06  
 



UseDLL ought to functions, simply The Exe instead of of/ one DLL indicate. the Result kannste benefit, habs with Profan now not tested, but if not goes, use The ~LoadLibraryA API
 
09/29/06  
 




Nico
Madysa
@A. Hötker: TNT is definitiv nothing for me, though not from dislike, sonern because I windows ME Have.

@A. Hötker and TS-Soft: thanks for speedy response. ought to UseDLL not functions, I will The API try. (Hehe, the reimt itself.)
 
Nico Madysa
09/29/06  
 



so, the might help...
CompileMarkSeparation
Def @LoadLibraryEx(3) !"KERNEL32","LoadLibraryExA"
Windowstyle 31+512
Windowtitle "LoadLibraryEx"
Window 0,0-640,440
Declare Module$,LADEN%,Handle_OF_MODULE&
LET Laden%=$2 Mal testen, sonst $1
Usermessages $10
LET Module$=@LOADFILE$("Ein Modul laden","DLL-Module|*.DLL|OCX-Module|*.OCX|Programme|*.EXE|Alle Dateien|*.*")

IF Module$<>""

    LET Handle_OF_MODULE&=@LoadLibraryEx(@ADDR(Module$),0,LADEN%)
    Print Handle_OF_MODULE&

endif

While %UMESSAGE<>$10

    Waitinput

wend

 
09/29/06  
 




Nico
Madysa
OK, thanks, probier I.
 
Nico Madysa
09/29/06  
 



[quote:c0fd4ace4f=Nico Madysa]@A. Hötker: TNT is definitiv nothing for me, though not from dislike, sonern because I windows ME Have.
[/quote:c0fd4ace4f]
some functions (How z.B. the Scannen of Prozessspeicher stranger processes or The Taskmannagerfunktionen) walk too under ME.
 
09/29/06  
 




Nico
Madysa
I see , again what learnt.
time see, whether I there take off me Interessantes find will be.
 
Nico Madysa
09/29/06  
 




Nico
Madysa
OK, thanks all, the trouble is too for API-Fürchter How me simply clarified.

one must not LoadLibraryEx grab, UseDLL goes too.
(I had the trouble almost forget, there I had with nem LoadFile-dialog from slip ne EXE chosen and the
then me UseDLL opened, functions without Error).
 
Nico Madysa
10/09/06  
 



Well, Andreas has a predilection for complicated
 
10/09/06  
 



[quote:1fc9eb0811=TS-Soft]Well, Andreas has a predilection for complicated [/quote:1fc9eb0811]
can I of I do not insist - sooner in the contrary. I have mere integrally gladly always little more Opportunities as the remainder the mankind
attempt time with Usedll XP The User32 Windows98 To loading - and then mach the time with LoadLibraryEx .

 
10/09/06  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.267 Views

Untitledvor 0 min.
RudiB.08/28/22
AndreasS01/06/19
Pauli01/11/14
Donnie03/30/13

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