NO

Recent Posts

Pages: [1] 2 3 ... 10
1
General discussions / What help systems are used with poide?
« Last post by TimoVJL on December 12, 2017, 02:14:03 pm »
I am just curious ;)

What help systems are used with poide?

If you have Visual Studio, there is frankie's Add-In for it  8)

Other options ?
Windows Help Viewer HV2 is partially open for PellesC ;)
TLWHView system can help you ;)

Or Help2 Viewer is for H2 help.
2
Work in progress / Re: TLWHView alpha
« Last post by TimoVJL on December 12, 2017, 11:47:48 am »
Thanks.

From older dev14 someone can load help some other languages too.

From dev15 i downloaded a 'All Book Listings.htm' and parsed it ;)
Code: [Select]
#define UNICODE
#define _UNICODE
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <wchar.h>
#include <tchar.h>
#include <stdio.h>

int ReadRows(TCHAR *szFile, int nLen)
{
HANDLE hFrom;
TCHAR *pMem, *pP1, *pP2, *pStart, *pEnd, *pServer;
DWORD nMax, nRead;

hFrom = CreateFile(szFile, GENERIC_READ, FILE_SHARE_READ,
NULL, OPEN_EXISTING, FILE_FLAG_SEQUENTIAL_SCAN, NULL);
if (hFrom == INVALID_HANDLE_VALUE)
return 1;

nMax = GetFileSize(hFrom, NULL);
//pMem = LocalAlloc(LPTR, nMax + 2);
pMem = HeapAlloc(GetProcessHeap(), 0, nMax + 2);
ReadFile(hFrom, pMem, nMax, &nRead, NULL);
CloseHandle(hFrom);
*((BYTE*)pMem+nMax)=0;

pServer = 0;
int nFile = 0;
pStart = _tcsstr((WCHAR*)pMem, TEXT("<span class=\"name\">Windows Desktop App Development"));
if (!pStart) return 2;
pP2 = _tcsstr(pStart, TEXT("</span>"));
if (pP2) {
*pP2++ = 0;
//wprintf(pStart+19);
_tprintf(TEXT(";%ls\n"), pStart+19);
pP1 = pP2;
} else pP1 = pStart;
if (pP1)
{
do {
pP1 = _tcsstr(pP1, TEXT("<span class=\"name\">v2Windows Desktop App Development"));
if (!pP1) break; // done
pP2 = _tcsstr(pP1, TEXT("</span>"));
pP1 = _tcsstr(pP1, TEXT("<a class=\"current-link\""));
if (pP1)
{
pP2 = _tcsstr(pP1, TEXT("</a>"));
//if (!pP2) pP2 = _tcsstr(pP1, TEXT("\r\n"));
if (pP2)
{
TCHAR *pP3, *pP4;
*pP2 = 0;
pP3 = _tcsstr(pP1, TEXT("/v2Windows"));
if (pP3) *pP3++ = 0; // cut server / file
if (!pServer) {
pServer = pP1 + 30;
_tprintf(TEXT("[Server]\nURL=%ls/\n[Files]\n"), pServer);
}
pP4 = _tcsstr(pP3, TEXT("\">v2Windows")); // cut file name
if (pP4) *pP4 = 0;
nFile++;
_tprintf(TEXT("File_%d=%ls"), nFile, pP3);
//_tprintf(pP1 + 24);
//wprintf(pP1 + 40);
//printf(" ");
pP1 = pP2 + 1; // past null
} else pP1++;
_tprintf(TEXT("\n"));
} else break;
} while (pP1);
printf("\n");
}

//LocalFree(pMem);
HeapFree(GetProcessHeap(), 0, pMem);

return 0;
}

int main(int argc, char **argv)
{
ReadRows(TEXT("All Book Listings.htm"), 0);
return 0;
}

So now we have barebones for help system ;)
The parser for index file needs fixing to avoid some unusable keywords.
If someone is interest, it is possible to share some source code for it :-\

EDIT: this logic cut half of them:
Code: [Select]
do {
pP1 = strstr(pP2, "<meta name=\"Microsoft.Help.F1\" content=\"");
if (pP1) {
pP2 = strstr(pP1, "\" />");
if (pP2) {
char *pKw = pP1 + 40;
*pP2++ = 0;
char *pP3 = strchr(pP1 + 40, ':'); // COM Ix::M
char *pP4 = strchr(pP1 + 40, '.'); // COM Ix.M
char *pP5 = strchr(pP1 + 40, '/'); // xxx/
//if (!pP3 && !pP4) {
//if (*pKw && *pKw != ' ' && !pP3)
if (*pKw && *pKw != ' ' && !pP3 && !pP4 && !pP5)
AddIndexInfo(db1, pKw, szHtm, nFileId, nPkgId, nHelpId);
//}
pP1 = pP2 + 4; // past null and 4 spaces
}
} else break;
} while (pP1);
3
Work in progress / Re: TLWHView alpha
« Last post by frankie on December 11, 2017, 05:24:06 pm »
Found  :).
Accessing the catalogs base https://services.mtps.microsoft.com/ServiceAPI/catalogs/ you'll get a list of available catalogs and related links embedded in <href>.
Following them you'll get a sub-index with all available locals. Each local will download the corresponding language XML contents file. I.e. this is the catalogs list for DEV15 under en-us local.
4
Work in progress / Re: TLWHView alpha
« Last post by frankie on December 11, 2017, 01:18:48 pm »
Timo I meant how get the list of available help files from MS servers (the list that you put in the file "URLDownloadToFile.ini")..
When you open MS HlpView on the manage contents tab, it shows all help books downloaded and those availeble on MS servers.
5
Work in progress / Re: TLWHView alpha
« Last post by TimoVJL on December 11, 2017, 01:07:38 pm »
Viewer use commandline option / for F1 keyword to search using index file.
For example /MessageBox locates info for it.

For my tests i start viewer with index files and after that i use F1 in poide.

I haven't decided where is the best place for index-files :-\
Perhaps an option in ini-file  :-\
6
Work in progress / Re: TLWHView alpha
« Last post by frankie on December 11, 2017, 11:47:18 am »
Great  :)
The only point to handle better is how add search for helps (not handwritten list) and search for updates  ;)
7
Work in progress / TLWHView alpha
« Last post by TimoVJL on December 10, 2017, 11:43:32 pm »
TLWHView is a Windows Help Viewer (HV2).
It can work as a help viewer for PellesC in some point.

Usage:
 Create folder like C:\temp\MSDN\
 Download help cabs with URLDownloadToFile.exe to folder C:\temp\MSDN\
 Unpack cabs with UnpackCabs.exe to folder C:\temp\MSDN\msh
 Index .mshc files with Create_TLWHelpIdxMZ.exe "C:\code\MSDN\msh\v2Windows Desktop App Development_en-us_vs.85_"
 Modify TLWHView.ini line Path=C:\temp\MSDN\msh\

After that viewer might work, as it needs indexes for F1 keywords.
It is not a general viewer for help files.

Program uses:
 BrowserApp to view html
 TinyCDB for indexes
 miniz for zip handling

Indexing program come with source, so someone can clean code, like miniz unused code.

Code: [Select]
@REM DoIt.cmd
URLDownloadToFile.exe
UnpackCabs.exe
Create_TLWHelpIdxMZ.exe "C:\temp\MSDN\msh\v2Windows Desktop App Development_en-us_vs.85_"
pause

EDIT 2017-12-12: TLWHViewPrjBin_a4.zip, PathIdx for location for index files.
New option PathIdx in TLWHView.ini/TLWHView64.ini
Code: [Select]
[mshc]
Path=C:\code\MSDN-2017\msh\
PathIdx=C:\code\MSDN-2017\TLWHView
notice that basename for index files, in example TLWHView
8
Windows questions / Re: Change ip on the go
« Last post by alderman on December 09, 2017, 08:49:11 pm »
I live in a free country. The reason for changing ip is that my ip will be closed in the firewall after 5-10 downloads. After ip closed i need to change ip to get free download again. There is no illegal download without just a website that does not want me to download as often as I want. I do not use the downloaded outside my computer.
Nothing personal my post was just a description for anonymous IP tunneling  :).
Quote
;)
Anyway now I have understood (I hope so) what you mean.
Read this article, it shows how to renew IP address with your provider, and if you have a static IP you can use the internal MS router. In the latter case you connect to your final destination through an external proxy server, that assign you a different IP renewable.
I will look closer to the link since.
I have installed VPN on my computer. It works well.
Have tried to turn it off and turn it on again: New ip!

I entered code in my application that turns off and turns on the VPN client.
It's good to start the VPN client from the computer program, but when I turn it off, there was a problem I could not solve:

- A dialog box appears asking if I want to turn off (Yes) or not turn off (No).

I have to send a message as "Click" on the button (Yes) through my computer program. I have not managed to do that after a few hours of work. Here's what the shutdown code looks like:

Code: [Select]
HWND hwnd_G_window;
do
{
hwnd_G_window = FindWindow(NULL,"VPN-name");
if(hwnd_G_window != NULL)
{
PostMessage(hwnd_G_window, WM_CLOSE,0,0);
}
else
{
//Som error message
}

}while(hwnd_G_window != NULL);


What does the code look like and then click (Yes) in the dialog?
9
Windows questions / Re: Change ip on the go
« Last post by frankie on December 09, 2017, 06:04:11 pm »
I live in a free country. The reason for changing ip is that my ip will be closed in the firewall after 5-10 downloads. After ip closed i need to change ip to get free download again. There is no illegal download without just a website that does not want me to download as often as I want. I do not use the downloaded outside my computer.
Nothing personal my post was just a description for anonymous IP tunneling  :).
Anyway now I have understood (I hope so) what you mean.
Read this article, it shows how to renew IP address with your provider, and if you have a static IP you can use the internal MS router. In the latter case you connect to your final destination through an external proxy server, that assign you a different IP renewable.
10
Windows questions / Re: Change ip on the go
« Last post by alderman on December 08, 2017, 06:27:55 pm »
There are software that downloads entire domains with all that exists without being stopped by the domain's firewall. How do they do it?
Pages: [1] 2 3 ... 10