VBX registration is non-functional in VB4 16-bit (VBRegisterModel is a no-op, VBGetModelInfo never called). Native Delphi component avoids all DLL/export/registration issues — compiles directly into the IDE. TKPComm is a TComponent descendant calling the Windows 3.1 comm API directly. Uses RegisterClass/CreateWindow for WM_COMMNOTIFY dispatch with the component instance pointer stored in cbWndExtra. Includes a test application (KPTEST) with send/receive UI built entirely in code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
165 B
ObjectPascal
11 lines
165 B
ObjectPascal
program KPTest;
|
|
|
|
uses
|
|
Forms,
|
|
TestMain in 'TESTMAIN.PAS',
|
|
KPComm in 'KPCOMM.PAS';
|
|
|
|
begin
|
|
Application.CreateForm(TMainForm, MainForm);
|
|
Application.Run;
|
|
end.
|