Seite 7 von 19

Verfasst: 28.03.2006 22:51
von Kiffi
> Is this correct ?

it seems to be OK. We will see... ;-)

Thanks & Greetings ... Kiffi

Verfasst: 28.03.2006 23:26
von ts-soft
Und in den Compileroptionen: SourceFileTextencoding zur Auswahl zwischen Plain Text und UTF8 mit Umschaltung on the fly :wink:

Thanks & Greetings ... Thomas

Verfasst: 29.03.2006 11:48
von gnozal
armada hat geschrieben:generell mal so ne frage...wäre es ohne größeren aufwand möglich japbe auf linux zu portieren...weiß jetzt ja nicht wieviel api darin benutzt wird...hab den source ja nich

die scintilla-engine gibt es ja generell für linux

auf alle fälle wenn du sowas machen könntest wär echt spitze gnozal

mfg
armada
Some Windows API calls in the sources, and I don't use Linux ...

Verfasst: 29.03.2006 11:49
von gnozal
Kiffi hat geschrieben:> Is this correct ?

it seems to be OK. We will see... ;-)

Thanks & Greetings ... Kiffi
Ok, on the todo list.

Verfasst: 29.03.2006 16:55
von remi_meier
You know that there is some new stuff in PB that does this for you?
WriteStringFormat(#Datei, Format) (and other commands)

Verfasst: 30.03.2006 11:06
von gnozal
remi_meier hat geschrieben:You know that there is some new stuff in PB that does this for you?
WriteStringFormat(#Datei, Format) (and other commands)
I know, but jaPBe is written in PB3.94 ... and too big to translate to PB4.00 !

Verfasst: 03.04.2006 10:19
von gnozal
hallodri hat geschrieben:@gnozal

Koennte man MSDN V8 auch noch als Alternative zur win32.chm
einbauen ?
I think both PSDK and MSDN should be available ; could you test the following code (I don't have PSDK nor MSDN ) ? It first looks for MSDN and if not available for PSDK.

Code: Alles auswählen

Procedure SDK_IsAvaiable()
  IsAvaiable = 0
  
  ; PSDK
  If RegCreateKeyEx_(#HKEY_CURRENT_USER, "Software\Microsoft\MSDN\7.0\Help", 0, 0, #REG_OPTION_NON_VOLATILE, #KEY_READ , 0, @NewKey, @KeyInfo) = #ERROR_SUCCESS
    index = 0
    Repeat
      ValueName$ = Space(260)
      ValueNameSize = 260
      ValueData$ = Space(260)
      ValueDataSize = 260
      
      Result = RegEnumValue_(NewKey, index, @ValueName$, @ValueNameSize, 0, @ValueType, 0, 0)      
      
      If Result = #ERROR_SUCCESS And ValueType = #REG_SZ
        
        If Left(LCase(ValueName$),18) = "ms-help://ms.psdk." ; current version: ms-help://MS.PSDK.1033
          PlatformSDKHelpString$ = ValueName$
          IsAvaiable = 1
          
          Break
        EndIf
        
      EndIf
      
      index + 1
    Until Result <> #ERROR_SUCCESS
    
    RegCloseKey_(NewKey)
  EndIf

  If IsAvaiable = 0
    ; MSDN
    If RegCreateKeyEx_(#HKEY_CURRENT_USER, "Software\Microsoft\MSDN\8.0\Help", 0, 0, #REG_OPTION_NON_VOLATILE, #KEY_READ , 0, @NewKey, @KeyInfo) = #ERROR_SUCCESS
      index = 0
      Repeat
        ValueName$ = Space(260)
        ValueNameSize = 260
        ValueData$ = Space(260)
        ValueDataSize = 260
        
        Result = RegEnumValue_(NewKey, index, @ValueName$, @ValueNameSize, 0, @ValueType, 0, 0)      
        
        If Result = #ERROR_SUCCESS And ValueType = #REG_SZ
          
          If Left(LCase(ValueName$),17) = "ms-help://ms.msdn" ; current version: ms-help://MS.PSDK.1033 
            PlatformSDKHelpString$ = ValueName$
            IsAvaiable = 1
          
            Break
          EndIf
        
        EndIf
      
        index + 1
      Until Result <> #ERROR_SUCCESS
    
      RegCloseKey_(NewKey)
    EndIf
  EndIf                 
  
  ProcedureReturn IsAvaiable
EndProcedure

Verfasst: 03.04.2006 11:32
von edel
gnozal hat geschrieben:
hallodri hat geschrieben:@gnozal

Koennte man MSDN V8 auch noch als Alternative zur win32.chm
einbauen ?
I think both PSDK and MSDN should be available ; could you test the following code (I don't have PSDK nor MSDN ) ? It first looks for MSDN and if not available for PSDK.


Ja , das geht, MSDN oeffnet sich bei F1 :allright:

Verfasst: 03.04.2006 11:37
von ts-soft
Bei mir meldet sich NET-Framework SDK mit einer Fehlermeldung :(
Kann man das vielleicht zur Auswahl anbieten?
Ich würde lieber PSDK nutzen weil im NET-Framework gibts kaum Treffer :freak:
Benutze aus diesem Grund schon ein Weilchen nur noch MSDN im Internet.

Verfasst: 03.04.2006 12:34
von gnozal
ts-soft hat geschrieben:Bei mir meldet sich NET-Framework SDK mit einer Fehlermeldung :(
Kann man das vielleicht zur Auswahl anbieten?
Ich würde lieber PSDK nutzen weil im NET-Framework gibts kaum Treffer :freak:
Benutze aus diesem Grund schon ein Weilchen nur noch MSDN im Internet.
Ok, something like that ?

Code: Alles auswählen

Procedure SDK_IsAvaiable() 
  IsAvaiable = 0 
  
  If UseMSDN = #False ; to add in Preferences

    ; PSDK 
    If RegCreateKeyEx_(#HKEY_CURRENT_USER, "Software\Microsoft\MSDN\7.0\Help", 0, 0, #REG_OPTION_NON_VOLATILE, #KEY_READ , 0, @NewKey, @KeyInfo) = #ERROR_SUCCESS 
      index = 0 
      Repeat 
        ValueName$ = Space(260) 
        ValueNameSize = 260 
        ValueData$ = Space(260) 
        ValueDataSize = 260 
      
        Result = RegEnumValue_(NewKey, index, @ValueName$, @ValueNameSize, 0, @ValueType, 0, 0)      
      
        If Result = #ERROR_SUCCESS And ValueType = #REG_SZ 
        
          If Left(LCase(ValueName$),18) = "ms-help://ms.psdk." ; current version: ms-help://MS.PSDK.1033 
            PlatformSDKHelpString$ = ValueName$ 
            IsAvaiable = 1 
            
            Break 
          EndIf 
        
        EndIf 
      
        index + 1 
      Until Result <> #ERROR_SUCCESS 
    
      RegCloseKey_(NewKey) 

  Else

    ; MSDN 
    If RegCreateKeyEx_(#HKEY_CURRENT_USER, "Software\Microsoft\MSDN\8.0\Help", 0, 0, #REG_OPTION_NON_VOLATILE, #KEY_READ , 0, @NewKey, @KeyInfo) = #ERROR_SUCCESS 
      index = 0 
      Repeat 
        ValueName$ = Space(260) 
        ValueNameSize = 260 
        ValueData$ = Space(260) 
        ValueDataSize = 260 
        
        Result = RegEnumValue_(NewKey, index, @ValueName$, @ValueNameSize, 0, @ValueType, 0, 0)      
        
        If Result = #ERROR_SUCCESS And ValueType = #REG_SZ 
          
          If Left(LCase(ValueName$),17) = "ms-help://ms.msdn" ; current version: ms-help://MS.PSDK.1033 
            PlatformSDKHelpString$ = ValueName$ 
            IsAvaiable = 1 
          
            Break 
          EndIf 
        
        EndIf 
      
        index + 1 
      Until Result <> #ERROR_SUCCESS 
    
      RegCloseKey_(NewKey) 
    EndIf 
  EndIf                  
  
  ProcedureReturn IsAvaiable 
EndProcedure