English
Forum

@GetFileTitle bring different Results ?

 

E.T.
Hi,

have even in a of my Progs check must, the
@GetFileTitle(@Addr(BMP_Pfad$), @Addr(BMP_D$), @Len(BMP_D$))
under different XP-Installationen different values back supply
(others WINs Have I not yet tested), and of course time with expansion
and sometimes without. so heist z.B. a Bilddatei time profane and times profane.bmp.

can it on various. API-versions lying ??
Search time whom View source out, lasts only NEN momentum...

but Maybe has already someone ne idea.

Mario

so, here isser:
CompileMarkSeparation
CLS
Def @GetFileTitle(3) !COMDLG32.DLL, GetFileTitleA
Declare BMP_Pfad$, BMP_D$
BMP_Pfad$ = @LoadFile$(BITMAP EINBINDEN,*.BMP)
Print Komplett : +BMP_Pfad$
BMP_D$ = @Space$(255)
@GetFileTitle(@Addr(BMP_Pfad$), @Addr(BMP_D$), @Len(BMP_D$))
BMP_D$ = @Trim$(BMP_D$)+.bmp
BMP_Pfad$ = @Translate$(BMP_Pfad$,BMP_D$,)
Print Pfad : +BMP_Pfad$
Print Datei : +BMP_D$
waitinput
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
04/05/08  
 



 
04/05/08  
 




E.T.
Do I still same time try...
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
04/05/08  
 




E.T.
@IF: thanks. Klappt Yes fine, too without API.

If one something like even only any halbes year time need, schaut one into Help and takes the, what offered becomes (sometimes grasiert even The Denkfaulheit)

can The unterschiedlichen Rückgaben with the API ( -Version) lying ??

Mario
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
04/05/08  
 




Jörg
Sellmeyer
one can it too so make:
CompileMarkSeparation
or so for ältere versions, if one The SubStr$-Variante bevorzugt:
CompileMarkSeparation
Def CharCount(2) Int(Sub(Len(@$(1)),Len(translate $(@$(1),@$(2),))))
Def VerzeichnisTiefe(1) Int(Sub(Len(@$(1)),Len(Translate$(@$(1),\,))))
Def PfadTeil(2) SubStr$(@$(1),@%(2),\)
before ought to one The Verzeichnistiefe detect
Def DateiName(1) SubStr$(@$(1),Add(VerzeichnisTiefe(@$(1)),1),\)
Def DateiPfad(1) Translate$(@$(1),Add$(\,DateiName(@$(1))),)
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
04/05/08  
 



Jörgs Variante shining me effizienter!
 
04/05/08  
 




Sebastian
Sprenger
Hi,
Mario Patzlaff
can The unterschiedlichen Rückgaben with the API ( -Version) lying ??

No, the depends from the option extensions with known File Types Hide ex (see in the Explorer under Extras > Ordneroptionen > view).
Greeting, Sebastian
 
Profan² 7.0e, XProfan 9, 11.2a, FreeProfan32
Windows Vista Home Premium 32-Bit, 2.8 Ghz, 4 GB RAM
Windows Me, 1.8 Ghz, 256 MB RAM
04/05/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

635 Views

Untitledvor 0 min.
iF06/07/15

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