English
Forum

light WinAPI functions - first Problems

 

Gary12345
Hi,
CompileMarkSeparation
Def @DeleteFile(1),"Kernel32","DeleteFileA"
cls
var filename1$ = "C:\\AdwCleaner[R1].txt"
var test1& = @DeleteFile(filename1$)

While 1

    WaitInput

End
/a>

set me straight on API . and the obrige function shining Nich To functions. Why?

[...] 

have me there plenty read, come however not The Solution. This will presumably one Sammelthema go.

Hello
Gerrit
 
XProfan X2
MfG
Gary12345
02/03/13  
 



Syntaxfehler in line 1: DEF

example for right Syntax:
CompileMarkSeparation
Def @MoveWindow(6) !"USER32","MoveWindow"
>

additionally,

if you a Stringvariable on a API commit ists safer additional addr To
use DeleteFile(addr(filename1$)), in nProcs would this however superfluously.
 
02/03/13  
 




Gary12345
Yes I merks. And I look tausendmal into Help and observe something like not How can something like occur. I work yet plenty To unbedacht. Sorry.

Bye
 
XProfan X2
MfG
Gary12345
02/03/13  
 



no trouble.

If you you with something like to that felt zwölften time same a couple thousand Source
from the disk mowed have then helps the erfahrungsgemäß too nothing -

means anger you not!
 
02/03/13  
 




Gary12345

CompileMarkSeparation
Def @De(1) !"Kernel32","DeleteFileA"
cls
var filename1$ = "C:\\AdwCleaner[R1].txt"
var test1& = @De(addr(filename1$))

While 1

    WaitInput

End
/a>

These API goes still Nich. I have another others API (Messagebox) ausprobiert, The goes.

LG
 
XProfan X2
MfG
Gary12345
02/03/13  
 



then look still something Test1& for a worth holds and GetLastError ( [...]  ) -

mostly is then already clear where the shoe on The Senkel pressing.
 
02/03/13  
 




Gary12345

CompileMarkSeparation
 $H C:\XProfan9\include\WINDOWS.PH
Def @De(1) !"Kernel32","DeleteFileA"
Def GetLastError(0) !"Kernel32","GetLastError"
cls
var filename1$ = "C:\\AdwCleaner[R1].txt"
var test1& = @De(addr(filename1$))
var test2$ = GetLastError(test1&)
print test2$

While 1

    WaitInput

ile


is correct the? I sustain the value 5 back?
 
XProfan X2
MfG
Gary12345
02/03/13  
 



white I what You zurückhältst and asked I you thereafter and GetLastError has
quite none Parameter?
 
02/03/13  
 




Andreas
Miethe


If you The Header-Files already einbindest, then must You The functions not additional define.
CompileMarkSeparation
 $H Windows.ph
cls
var filename1$ = "C:\\AdwCleaner[R1].txt"

If ~DeleteFile(Addr(filename1$))

    Print filename1$+" gelöscht"

else

    Print filename1$+" nicht gelöscht"

Endif

nput
 
XProfan X2
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
02/03/13  
 




Gary12345
spending: Adwarecleaner.txt not deleted. means in this Header-Files are already these functions eingebunden, or How?
 
XProfan X2
MfG
Gary12345
02/03/13  
 



very, You can The PH-Files too open and discover.

here Gibts too which if one time a not parat has: [...] 

Andreas evaluates in its example whom Return Value the function from and prepares
thereafter The suitable spending. If the File not deleted becomes then mach
time to deleteFile one print @WinError$(~getLastError())
 
02/03/13  
 




Andreas
Miethe


gary12345 (03.02.13)

spending: Adwarecleaner.txt not deleted. means in this Header-Files are already these functions eingebunden, or How?


then is the File No or read.

and Yes, into Header-Files are most functions present.
 
XProfan X2
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
02/03/13  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

34.179 Views

Untitledvor 0 min.
Peter Max Müller10/30/14
Tommy10/18/14
KJ10/05/14
Ernst03/10/14
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