English
C ++ Forum

MKDir trouble

 

Georg
Hovenbitzer
Hello Sebastian,

following code functions unfortunately not to the Übersetzen, it'll no directory laid out !
Getestet have I it with the Profan2Cpp Version 1.5.9f-pre1.
CompileMarkSeparation
Declare Makepfad$
Cls
Randomize
MakePfad$ = $TempDir + "\" + @Str$(@Rnd(1000))
MkDir MakePfad$

WhileNot %Key = 2

    WaitInput

EndWhile

CompileMarkSeparation
Def CreateDirectory(2) !"kernel32.dll","CreateDirectoryA"
Declare Makepfad$
Declare way#
Cls
Randomize
MakePfad$ = $TempDir + "\" + @Str $(@Rnd(1000))
Dim way#,(@Len(MakePfad$) + 1)
Clear way#
String way#,0 = MakePfad$
CreateDirectory(way#,0)
Dispose way#

WhileNot %Key = 2

    WaitInput

EndWhile

End
 
Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a)
11/30/06  
 




Sebastian
König
Hello Georg,

I have it straight tested - by me functions too the first code: The directories go ordnungsgemäß prepares... though have I a idea, where evtl. the trouble lying can: $TempDir has already a Backslash end, so it with the + \ then two are - is the evtl . on manchen Systemen a problem?

MfG

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




Georg
Hovenbitzer
Hello Sebastian,

what about me I thought had yet something for you

you have right, in the MKDir Variante must one whom omit, then works it too to the Übersetzen.
 
Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a)
11/30/06  
 




Sebastian
König
OK, super! nevertheless strange, that it by me withal semidetached-Backslash functions... Perhaps have I to 1.5.9f yet something on the MkDir-Implementierung changed - i'm me now none More sure...
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
11/30/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

3.435 Views

Untitledvor 0 min.

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