IDE Tool: Display MS PlatformSDK help for API commands

Working on new editor enhancements?
freak
PureBasic Team
PureBasic Team
Posts: 5950
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

IDE Tool: Display MS PlatformSDK help for API commands

Post by freak »

Hi all,

I really don't like that Win32.hlp file, that the IDE uses to display the WinAPI
help. It is too old and uncomplete to be of real use.
So i went searching for a solution to plug the MS PlatformSDK documentation
into my development environment, and here's whyt i came up with:

A small tool (for IDE tools menu) that displays the PSDK help for the keyword
under the cursor just like with Win32.hlp. (only with a different shortcut: the
one you assign to the tool)

get it at my site:
http://freak.purearea.net/tools/

read the description on the top of the file for more info.

It works fine here, if you have any problems, let me know.

Timo
quidquid Latine dictum sit altum videtur
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: IDE Tool: Display MS PlatformSDK help for API commands

Post by PB »

> A small tool (for IDE tools menu) that displays the PSDK help for the
> keyword under the cursor just like with Win32.hlp

Download size (for the Core PSDK file): 179.4 MB -- d'oh! :(
I assume it's really worth the download time (7 hours) ?
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

I would really enjoy this addon, but I get a general protection error in:

Code: Select all

SendMessage_(RichEdit, #EM_GETLINE, Line, *Buffer)
Even if I use OnError handling, I get the same result. Using Win98 SE. I've checked the handle, it's correct, *Buffer size is correct, too (enough space), so I don't know where the problem could be.
El_Choni
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

i Think, that the problem is, that this line request, that a other process (IDE-Process, DLL-RichEdit) should write into your Process. And this is forbitten.
freak
PureBasic Team
PureBasic Team
Posts: 5950
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

GPI:
> i Think, that the problem is, that this line request, that a other process
> (IDE-Process, DLL-RichEdit) should write into your Process. And this is
> forbitten.

I know that, but it worked fine here, so i used it.

El_Choni:
Windows 98 doesn't seem to like to copy the text across the processes, like
Windows 2000 here does, so i came up with a different solution.

The zip file on my site now contains a _w98 file, that works different.
You have to add "%TEMPFILE" (including the " 's) as Command line parameter
to the tools optione. If the tool gets the temp filename as commandline,
it will use that to get the text, and not the #EM_GETLINE method.

Please test it, and tell me if it works.

btw: I originally wrote this to be directly compiled with the IDE. If
Fred is ok with that, i will at it directly for the next release, so no such
tricks are needed anymore. (also, it can be used with F1 then)

Timo
quidquid Latine dictum sit altum videtur
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

freak, nice idea, but make the path configurable, not everybody has the stuff installed in the same place
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
freak
PureBasic Team
PureBasic Team
Posts: 5950
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

what path??

If you mean the registry path, i think that should be the same everywhere.
If it is different for your system, please tell me what it is.
I want to make it work on all systems.

Timo
quidquid Latine dictum sit altum videtur
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

euh, to the sdk? or am i lost now?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
freak
PureBasic Team
PureBasic Team
Posts: 5950
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

there is no path to the sdk.

the sdk uses it's own *protocol* type of thing:
ms-help:// and so on...

This is the MSHelp 2.0 format. The tool reads the base string for that
from the registry, but there is no physical path to the files needed.
dexplore.exe will handle that.

Timo
quidquid Latine dictum sit altum videtur
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

I can't test it until Monday, sorry. Maybe there's someone else with Windows 98 and PSDK who can test it?
El_Choni
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

The remote-controll of the sdk works (only the index-tab is complet empty). I haven't test the plugin, but i change and include the code in jaPBe, and there it works.

When freak/fred or somebody else add this code directly in the ide, it will work on win98se. But please make this optional. On my system the SDK don't load fast, win32.hlp and msdn are much faster.
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

On my system the SDK don't load fast
Same here, but even then, I prefer the PSDK to the Win32.hlp file. Once it's opened for first time, it shows the help quite fast.
El_Choni
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

@freak: the tool works fine now, thanks a lot for it.
El_Choni
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: IDE Tool: Display MS PlatformSDK help for API commands

Post by NoahPhense »

Hey Timo,

Hmm, I have the whole SDK sitting right here waiting to be installed. But I'm not sure I want it in.. what are the benefits (besides api).. does it function like MSDN Library?

like such:
http://msdn.microsoft.com/library/defau ... istbox.asp


If I was looking at this code.

Code: Select all

ListViewGadget(1, 10,10,280,280,#LBS_SORT | #LBS_NOINTEGRALHEIGHT | #LBS_HASSTRINGS)
..and I wanted to know the LBS_SORT information.

Does the SDK install that kind of information?

- np
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

You won't regret installing it, unless you have little HD room left. Apart from the huge help docs, it includes some tiny but useful tools and all the C headers you may need:

Image[/img]
El_Choni
Post Reply