01-16-2026, 09:02 AM
QB_SetString is unsafe. QB strings are not null-terminated. You should consider wrapping QB_SetString and adding the null-terminator at the end on the BASIC-side.
Also extern "C" and __declspec(dllexport) is really not required if you are planning to use this just as a header-only library.
You may consider "union" for the numeric types if you do not plan on using unique interger/float/ptr at the same time. That'll save some memory.
Looks good otherwise. Neat stuff.
Also extern "C" and __declspec(dllexport) is really not required if you are planning to use this just as a header-only library.
You may consider "union" for the numeric types if you do not plan on using unique interger/float/ptr at the same time. That'll save some memory.
Looks good otherwise. Neat stuff.

