Page 27 of 104
Posted: Wed May 31, 2006 10:38 am
by sverson
@gonzal
THX for quick answer.
gnozal wrote:
1. You have checked both 'Use SDK instead of Win32.hlp' and 'MSDN' ?
MSDN is disabled:

Do you know a possible reason?
gnozal wrote:
2. For MSDN, jaPBe searches for a "ms-help://ms.msdn" key in "#HKEY_CURRENT_USER, "Software\Microsoft\MSDN\8.0\Help" (not in your screenshot) : could you check this ?
...\MSDN\8.0\Help is empty:
Must i reinstall SDK?

sverson
BTW: THX for keeping jaPBe alive.
Posted: Wed May 31, 2006 11:54 am
by gnozal
@sverson :
- MSDN seems not be installed (no registry entry)
- PSDK seems to be installed (2 registry entries), so jaPBe should use PSDK ... If you have both "ms-help://ms.psdkSVR2003sp1.1033" and "ms-help://ms.psdk.1033", jaPBe uses "ms-help://ms.psdkSVR2003sp1.1033" as requested by users. Maybe it's not correctly installed ?
@other users with SDK : do you have the same problem ?
Posted: Wed May 31, 2006 2:12 pm
by sverson
@gonzal
gnozal wrote:@sverson :
- MSDN seems not be installed (no registry entry)
OK - MSDN is not installed.
gnozal wrote:@sverson :
- PSDK seems to be installed (2 registry entries), so jaPBe should use PSDK ... If you have both "ms-help://ms.psdkSVR2003sp1.1033" and "ms-help://ms.psdk.1033", jaPBe uses "ms-help://ms.psdkSVR2003sp1.1033" as requested by users. Maybe it's not correctly installed ?
I think it was correctly installed - it worked fine until now.
I reinstalled PSDK!
Now it works - sometimes ... ?!?!?
...strange - isn't it?

sverson
Posted: Wed May 31, 2006 2:47 pm
by gnozal
Yes, strange it is

If I understand correctly, jaPBe calls the SDK but the topic is not right ?
If you use win32.hlp, does it work correctly (ie topic found) ?
If you have some spare time, you could compile jaPBe sources in debug mode to see the SDK topic jaPBe calls when you use F1.
File "
Help.pbi" :
Code: Select all
Procedure DisplayHelp(HelpDirectory$, Topic$, HelpType)
;Debug HelpDirectory$+" "+Topic$+" "+Str(HelpType)
Select HelpType
Case 1 ; PureBasic regular command
HelpDirectory$=SearchHelpAlternate(HelpDirectory$)
Select UCase(GetExtensionPart(HelpDirectory$))
Case "HLP": FileName$ =SearchHelpFile(HelpDirectory$, PureBasicPath$+"Help\"+HelpDirectory$);
Case "CHM": FileName$ =SearchHelpFile(HelpDirectory$, PureBasicPath$+"Help\"+HelpDirectory$):Topic$+".html"
Case "TXT": ShellExecute_(MainWin,"open",PureBasicPath$+"Help\"+HelpDirectory$,"","",#SW_SHOWNORMAL)
Case "HTML": ShellExecute_(MainWin,"open",PureBasicPath$+"Help\"+HelpDirectory$,"","",#SW_SHOWNORMAL)
Case "HTM": ShellExecute_(MainWin,"open",PureBasicPath$+"Help\"+HelpDirectory$,"","",#SW_SHOWNORMAL)
Case "PDF": ShellExecute_(MainWin,"open",PureBasicPath$+"Help\"+HelpDirectory$,"","",#SW_SHOWNORMAL)
Default
Topic$ = CheckSpecialCommands(HelpDirectory$,Topic$)+".html"
FileName$ = SearchHelpFile("PureBasic.chm", PureBasicPath$+"PureBasic.chm")
EndSelect
DoAlternateHelpSearch=#False
Case 2 ; Win32 API commands
SDK_do=#False
If SDK_IsAvaiable() And UseSDK
If PlatformSDKObject <> 0
If SDK_DisplayHelp(Topic$)=0 ;<-------------- TOPIC
SDK_Close()
Else
SDK_do=#True
EndIf
Else
SDK_DisplayHelp(Topic$) ;<-------------- TOPIC
SDK_do=#True
EndIf
EndIf
If SDK_do=#False
FileName$ = SearchHelpFile("Win32.hlp",PureBasicPath$+"Win32.hlp")
Else
FileName$ = ""
EndIf
DoAlternateHelpSearch=#False
Default
FileName$ = SearchHelpFile("PureBasic.chm", PureBasicPath$+"PureBasic.chm")
Topic$ = CheckPureBasicKeyWords(PureFunctionHelp$); shared
If Topic$="" And DoAlternateHelpSearch=#False
ok=#True
If Find_DefProc(@PureFunctionHelp$)
If DefProc()\add
If Help_IncludeHelp(PeekS(DefProc()\add))
ok=#False
FileName$=""
EndIf
EndIf
EndIf
If ok And OldToolTipString
a$=PeekS(OldToolTipString)
If Help_IncludeHelp(a$)
FileName$=""
Else
*start=@a$
*buf.BYTE=*start
While AllowedChars(*buf\b &$FF)
*buf+1
Wend
If *start<*buf
DoHelp(PeekS(*start,*buf-*start))
FileName$=""
DoAlternateHelpSearch=#True
EndIf
EndIf
EndIf
Else
DoAlternateHelpSearch=#False
EndIf
EndSelect
If FileName$
OpenHelp(FileName$, Topic$)
EndIf
EndProcedure
The SDK help code is in SDK-Help.pbi
Posted: Wed May 31, 2006 3:29 pm
by sverson
gnozal wrote:Yes, strange it is

If I understand correctly, jaPBe calls the SDK but the topic is not right ?
Yes sometimes - it worked with beep_() and it didn't with GetDesktopWindow_().
gnozal wrote:If you use win32.hlp, does it work correctly (ie topic found) ?
Yes as far as the topic is in win32.hlp.
gnozal wrote:If you have some spare time, you could compile jaPBe sources in debug mode to see the SDK topic jaPBe calls when you use F1.
perhaps tonight...

sverson
Posted: Wed May 31, 2006 3:31 pm
by gnozal
sverson wrote:it worked with beep_() and it didn't with GetDesktopWindow_().
Very stupid question : if you start the SDK manually, you can find GetDesktopWindow ?
Posted: Wed May 31, 2006 4:59 pm
by ts-soft
@sverson
there is a problem, if psdk and framework sdk (older version) installed
Update both and it's should work
Posted: Wed May 31, 2006 8:55 pm
by Sub-Routine
@Sub-Routine : sorry, I could not reproduce the problem.[/quote]
I haven't seen it again, either. jaPBe started up again and is running fine so I am not worried.
BTW, I don't think I chimed in a thank you at you yet, so
Thank You for taking jaPBe to the next level!
Rand
Posted: Wed May 31, 2006 9:02 pm
by Flype
Sub-Routine wrote:I had a jaPBe freeze yesterday. I copied a block (~30 lines), pasted it, accidentally pasted it again, hit Ctrl+Z (undo) and jaPBe froze. Task Manager showed 50% use (I have a dual P4) and I finally had to end the process.
I use the automatic backup and do plenty of saves so I didn't lose much
Rand
confirmed.
i was manipulating the PurePDF source code which is ~2300 lines, and the IDE was slower and slower... after copy/paste a ~50 lines block, jaPBe was frozen and cpu 100% ever and ever.
Posted: Wed May 31, 2006 9:16 pm
by sverson
@gonzal
gnozal wrote:sverson wrote:it worked with beep_() and it didn't with GetDesktopWindow_().
Very stupid question : if you start the SDK manually, you can find GetDesktopWindow ?
Not a stupid question at all!
Yes I found GetDesktopWindow and all other stuff. - - I found! - - Now it`s all dead and gone!
@gonzal & ts-soft
I removed all SDK/MSDN from disk and after re-installing all help is gone!
xxxGB data on Disk - latest SDK and MSDN installed but -
...\MSDN\7.0\Help and
...\MSDN\8.0\Help are empty now!
it's gonna be a funny night

sverson
Posted: Thu Jun 01, 2006 1:49 am
by sverson
SDK is found now

MSDN not!
I uninstalled SDK, MSDN
and Visual Studio.
Then i installed Visual Studio first and then MSDN and SDK.
At this point SDK and MSDN were still disabled in jaPBe.
After manually open MS Platform SDK Document Explorer and manually search for beep, getdesktopwindow, getfocus, ... - F1 works with SDK in jaPBe.
Same procedure with MSDN - all topics found - but MSDN is still disabled in jaPBe.
Well this is no problem for now - F1->SDK is OK - but i'd like to know why ...\MSDN\8.0\Help is not set properly.

sverson
Posted: Thu Jun 01, 2006 8:05 am
by gnozal
sverson wrote:Same procedure with MSDN - all topics found - but MSDN is still disabled in jaPBe.
Well this is no problem for now - F1->SDK is OK - but i'd like to know why ...\MSDN\8.0\Help is not set properly.
jaPBe disables the MSDN checkbox if 'ms-help://ms.msdn' is not foud in '#HKEY_CURRENT_USER, "Software\Microsoft\MSDN\8.0\Help"'. Why you don't have this string after proper installation, I don't know.
Posted: Thu Jun 01, 2006 8:09 am
by gnozal
Flype wrote:confirmed.
i was manipulating the PurePDF source code which is ~2300 lines, and the IDE was slower and slower... after copy/paste a ~50 lines block, jaPBe was frozen and cpu 100% ever and ever.
Could be interesting to start jaPBe in debug mode to see where the code hangs (endless loop ?).
Posted: Thu Jun 01, 2006 8:16 am
by Flype
and how to start jaPBe in debug mode ?
by running the provided source from PB3.94 ?
Posted: Thu Jun 01, 2006 8:54 am
by gnozal
Flype wrote:and how to start jaPBe in debug mode ?
by running the provided source from PB3.94 ?
Yes
But I think I found something.
Coud you test the new beta 3.6.6 ?
Download BETA 3.6.6 [EXE only]
http://people.freenet.de/gnozal/jaPBeForPB400_beta.zip