Mein Problem ist, dass die Exe-Dateien die Ich erstellt habe nicht geladen werden können bzw. sie schließen sich sofort wieder.
Was habe ich Falsch gemacht?
Ich erstelle meine Sachen mit dem Visual Designer, wenn ich fertig bin auf Projekt und dann auf PureBasic-Editor.
Dann habe ich zwei Dateien:
1.) GeneratedMainFile mit dem Code:
Code: Alles auswählen
; PureBasic Visual Designer v3.95 build 1485 (PB4Code)
IncludeFile "GeneratedIncludeFile.pb"
2.)GeneratedIncludeFile mit dem Code:
Code: Alles auswählen
; PureBasic Visual Designer v3.95 build 1485 (PB4Code)
;- Window Constants
;
Enumeration
#Window_0
#Window_1
#Window_2
EndEnumeration
;- Gadget Constants
;
Enumeration
#ProgressBar_0
#String_0
EndEnumeration
Procedure Open_Window_0()
If OpenWindow(#Window_0 , 216, 0, 600, 300, "New window ( 0 )", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
If CreateGadgetList(WindowID(#Window_0 ))
ProgressBarGadget(#ProgressBar_0, 50, 145, 435, 40, 0, 10)
EndIf
EndIf
EndProcedure
Procedure Open_Window_1()
If OpenWindow(#Window_1 , 236, 20, 600, 300, "New window ( 1 )", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
If CreateGadgetList(WindowID(#Window_1 ))
StringGadget(#String_0, 90, 125, 400, 55, "ABC123", #PB_String_Password)
EndIf
EndIf
EndProcedure
Procedure Open_Window_2()
If OpenWindow(#Window_2, 256, 40, 600, 300, "New window ( 2 )", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
If CreateGadgetList(WindowID(#Window_2))
EndIf
EndIf
EndProcedure