在 2025-10-19 14:48, Yan-Jie Wang 写道:
It seems that the behavior depends on the library being linked. When linking with vccomsup.lib, std::bad_alloc propagates to the caller. However, when linking with comsuppw.lib as suggested in <https://learn.microsoft.com/en-us/cpp/cpp/convertbstrtostring?view=msvc-170>, _com_error will be raised.
Oh right, I think it's acceptable too. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
