Search found 4 matches

by NEW NicknameFJ
Tue Apr 12, 2016 7:27 pm
Forum: Windows
Topic: Prevent executable running from network share
Replies: 2
Views: 1681

Re: Prevent executable running from network share

Hello bbanelli,

give GetDriveType_() from the WinApi a chance :D

Look here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa364939%28v=vs.85%29.aspx



StartDrive$ = Left(ProgramFilename(),1)
If GetDriveType_(StartDrive$+":\") <> #DRIVE_FIXED
MessageRequester("STOP","Can´t start ...
by NEW NicknameFJ
Sat Oct 17, 2015 5:41 pm
Forum: Coding Questions
Topic: iswindow
Replies: 3
Views: 1208

Re: iswindow

Do it this way:

a=OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)

If IsWindow(0)
Debug "ok"
Else
Debug "not initialised"
EndIf

Repeat
Event = WaitWindowEvent()

If Event = #PB_Event_CloseWindow ; If ...
by NEW NicknameFJ
Fri Oct 02, 2015 3:02 pm
Forum: The PureBasic Editor
Topic: IDE crash (PB 5.40 b7 64 bits) in source Parser
Replies: 1
Views: 2266

Re: IDE crash (PB 5.40 b7 64 bits) in source Parser

Hi Denis,

what have you done before the IDE crash?

See my posting here

http://www.purebasic.fr/english/viewtop ... =4&t=60677

Have you done the same like I did?

Greetings

(NEW) NicknameFJ
by NEW NicknameFJ
Wed Sep 09, 2015 11:28 am
Forum: Coding Questions
Topic: address of string literal, concatenated string
Replies: 10
Views: 2132

Re: address of stliteral, concatenated string

Hello,

Code: Select all

"  Hello, " + "world!"
isn`t a literal string anymore.

Use

Code: Select all

Dummy$ = "  Hello, " + "world!"
debug @Dummy$
NicknameFJ