News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#11
Work in progress / USB microscope
Last post by TimoVJL - Today at 11:08:54 AM
https://www.lidl.de/p/crivit-usb-digitalmikroskop/p100395031

This device didn't have any software with it's package, nor links for them.

Windows 7 DirectX can show this device, but i can't find an old  WebCAM code right now.

That device works in Windows 1x, but those apps aren't so good.

That device isn't allowed use by children under 8 years.

Perhaps more to come later.

Translation with Deepl
CRIVIT USB Digital Microscope

Features

    High-quality zoom lens with up to 1000x magnification
    With USB interface for direct transfer to your computer monitor
    Includes software for high-quality photo and video recording
    Dimmable ring light with 8 neutral white LEDs for optimal illumination
    Flexible use – handheld or via adjustable mini stand with practical clip mount
    1.36 m connection cable with USB-C plug incl. USB-A adapter
    Included accessories: mini stand, storage box, instructions
    Windows software in English, German, French, Spanish, Italian, Portuguese
    MacOS software in English
    Not suitable for children under 8 years of age

Translated with DeepL.com (free version)
#12
Assembly discussions / Re: File downloader
Last post by TimoVJL - Today at 09:59:02 AM
Quote from: John Z on Yesterday at 03:26:58 PMIt works perfectly in Win 7 PRO.  Pro versions contain more intrinsic features than
other versions.  I still get security updates for Win 7 PRO too.  :)

John Z
What version is that a schannel.dll and is in register TLS 1.3 ?

I have dll 6.1.7601.24545 2020-01-03, that support TLS 1.2

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2
#13
Assembly discussions / Re: File downloader
Last post by Vortex - Yesterday at 08:33:45 PM
Hi Timo,

Thanks for your code.

DownloadFile.exe http://www.pellesc.de/favicon.ico favicon.ico
This did not work on my Windows 7 Home Premium Sp1 64-bit
#14
Assembly discussions / Re: File downloader
Last post by John Z - Yesterday at 03:26:58 PM
Quote from: TimoVJL on Yesterday at 07:24:01 AMDownloadFile.exe http://www.pellesc.de/favicon.ico favicon.icoA https:// won't work in Windows 7, as missing TLS 1.3 support

Thanks for the link Timo!

It works perfectly in Win 7 PRO.  Pro versions contain more intrinsic features than
other versions.  I still get security updates for Win 7 PRO too.  :)

John Z
#15
Assembly discussions / Re: File downloader
Last post by TimoVJL - Yesterday at 07:24:01 AM
DownloadFile.exe http://www.pellesc.de/favicon.ico favicon.icoA https:// won't work in Windows 7, as missing TLS 1.3 support

A bit more code in C
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <wininet.h>
#pragma comment(lib, "wininet.lib")

#define BLOCK_SIZE 1024

int GetHTTPFile(TCHAR *szUrl, TCHAR *szFile)
{
    HINTERNET hInet;
    char aBuffer[BLOCK_SIZE];
    hInet = InternetOpen(TEXT(""), 0, 0, 0, 0);
    if (hInet) {
        HINTERNET hUrl= InternetOpenUrl(hInet, szUrl, 0, 0, 0, 0);
        if (hUrl) {
            HANDLE hFile = CreateFile(szFile,GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_FLAG_SEQUENTIAL_SCAN, NULL);
            DWORD dwRead, dwWritten;
            do {
                if (!InternetReadFile(hUrl, &aBuffer, BLOCK_SIZE, &dwRead)) break;
                WriteFile(hFile, aBuffer, dwRead, &dwWritten, NULL);
            } while(dwRead);
            CloseHandle(hFile);
            InternetCloseHandle(hUrl);
        }
        InternetCloseHandle(hInet);
    }
    return 0;
}

int main(int argc, char **argv)
{
    GetHTTPFile("http://www.pellesc.de/favicon.ico", "favicon.ico");
    return 0;
}
#16
Assembly discussions / Re: File downloader
Last post by John Z - December 17, 2025, 10:58:58 PM
Quote from: Vortex on December 15, 2025, 07:36:59 PMAttached is the 64-bit version.

I can test on Win 7 PRO, but I need to know a location and file to try to download ....

John Z
#17
Assembly discussions / Re: File downloader
Last post by Vortex - December 17, 2025, 01:31:19 PM
You would probably have to install some hotfixes on Windows 7 and do some registry tweakings. Better is WinHTTP.

ChatGPT suggests :

You must install these (even if Win7 is "fully patched"):

Update   Purpose
KB3140245   Adds TLS 1.1 / 1.2 support to WinINet
KB3055973   SChannel improvements
#18
Assembly discussions / Re: File downloader
Last post by TimoVJL - December 17, 2025, 01:25:54 PM
Windows 7 WinInet just don't support latest TLS version.
#19
Assembly discussions / Re: File downloader
Last post by Vortex - December 16, 2025, 08:53:33 PM
Hi Timo,

Probably, I need to rewrite the application employing WinInet functions.
#20
User contributions / Re: Simple resizer Library
Last post by John Z - December 16, 2025, 03:02:12 PM
Resizer 1.2.0.1
Implemented DeferWindowPos for improved display smoothness
Implemented ASPECT_LOCK which when TRUE will maintain the W to H ratio
of the Dialog when resizing.  When active, resizing is accomplished by
dragging the top or bottom edge which will then automatically adjust
the Dialog width.  Not perfect but works - a notable issue is the mouse
position can appear to the right of the Dialog - off of the Dialog
Implemented MAX_FONT_SIZE to limit font growth when AUTO_SIZE is used if desired

Improved the Form_resize code to minimize time spent.

Still some glitching when LIMIT_SHRINK active and user tries to drag
smaller -

-------------
Zsizer_Demo -
Added menu selection for Options testing to simplify testing, but still
need to modify zsizerlib.h manually for testing optional overrides -

-------------
Resizer distributed with the PellesC package can't be built with the ppj files provided. Looks like a custom installation Pelle uses for development.  So attached is the same resizer with common paths and ppj's for building it yourself. No code change of course.
-------------
Files attached contain code, exe's, and .lib's


John Z