C++ (Qt) static MainWindow* instance_;public: static MainWindow* instance() { return instance_; }
C++ (Qt)MainWindow* MainWindow::instance_ = 0;
C++ (Qt) auto ok = ::CopyFileEx(L"d:\\video\\Krym.Put.Na.Rodinu.2015.HDTV.720p.x264.mkv", L"d:\\test.mkv", []( _In_ LARGE_INTEGER TotalFileSize, _In_ LARGE_INTEGER TotalBytesTransferred, _In_ LARGE_INTEGER StreamSize, _In_ LARGE_INTEGER StreamBytesTransferred, _In_ DWORD dwStreamNumber, _In_ DWORD dwCallbackReason, _In_ HANDLE hSourceFile, _In_ HANDLE hDestinationFile, _In_opt_ LPVOID lpData ) -> DWORD { qDebug() << TotalBytesTransferred.QuadPart << "/" << TotalFileSize.QuadPart; return PROGRESS_CONTINUE; }, 0, 0, 0); qDebug("result %d, GetLastError %lu", ok, ::GetLastError());
LPCSTR q=QString("C:\\am74364.dll").toLocal8Bit().data();