發表文章

目前顯示的是 7月, 2025的文章

Marshalling II

圖片
Updated on July 29,2025  #include <iostream> namespace Chen { int My_Console_Main(const wchar_t* comment); } int main() {     std::cout << "Hello World!\n";     return Chen::My_Console_Main(L"Startup project with =====> MFC"); } Updated on July 29,2025  #include "Windows.h" #include "shlwapi.h" #include "Psapi.h" #include "stdexcept" #include "stdarg.h" #include "stdio.h" #define AfxLoadLibrary  LoadLibraryW #define AfxFreeLibrary  FreeLibrary    #if defined(_M_AMD64) && defined(_WIN64) && defined(_CONSOLE) && \     _MSVC_LANG >= 201703L  #include "TestParameter.h" namespace Chen {     int My_Console_Main(const wchar_t* comment); #define CreationInstance_clsid  OLESTR("91DD12FD-4DBD-4B83-AC40-439E3B6393A1") #define CreationInstance_iid    OLESTR("85927839-0BB2-423B-97D6-89A2D4002519") #ifdef _DEBUG     const LPCWSTR MyDllname =     ...