#include
#include
#include
#pragma comment(lib, "Shell32.lib")
using namespace std;
class MyClass
{
public:
MyClass() {
cout p1(new MyClass);
unique_ptr p2 = make_unique();
}
{
int* pI = new int();
unique_ptr up(pI);
}
// array
{
unique_ptr p(new char[100]);
strcpy(p.get(), "Hello World!");
cout p(static_cast(malloc(100)), free);
strcpy(p.get(), "malloc world!");
cout file(fopen("myfile.txt","r"),fclose);
// do something
}
// Win32
{
int argc;
unique_ptr
arg(::CommandLineToArgvW(L"aaa.exe a b \"c d e f\"", &argc), ::LocalFree);
for(int i=0 ; i
In current Internet environment, every PC is assigned a private IP. If global IP is…
__file__ is the script file itself. From python3.9 above, it is an absolute path, otherwise…
You need to clear these two flags IMF_DUALFONT and IMF_AUTOFONT to keep font unchanged.
I don't know what is going wrong but... How to fix it Open the solution…
Create a break point that hits when CreateProcess was called Enter a Function Breakpoint Enter…