记录一下吧.
付完了首付 基本口袋里就空了!!
在襄樊买了房子
最近这里被炒的很火,但是相对上海, 还是 一般般...
7000一平米
不想写太多,, 希望早点还完贷款!!!
0x1 问题原因
笔记本放在宾馆, 出门的时候, 忘了关闭, 回来看看 电脑异常关闭了, 打开自己的vmware, 报错了
VMware Workstation 不可恢复错误: (vmx)
0x2 解决方法
*.vmss文件 有一个暂停的符号.
直接删除这个文件 就可以了, 删除暂停的状态, 启动系统即可!!!
// 20171228_01.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
#include "resource.h"
HWND hEdit1;
HWND hEdit2;
HWND hEdit3;
HWND hEdit4;
HANDLE hThread1;
HANDLE hThread2;
HANDLE hThread3;
HANDLE hThread4...
关键技术: 创建两个事件 CreateEvent, 创建一个事件 CreateEvent 是无法解决问题的
// 20171228_01.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <windows.h>
CRITICAL_SECTION cs;
DWORD g_Number = 0;
int g_Max = 10;
HAND...
CreateEvent 的官方定义如下:
HANDLE WINAPI CreateEvent(
_In_opt_ LPSECURITY_ATTRIBUTES lpEventAttributes, //安全属性
_In_ BOOL bManualReset, //设置信号复位方式为自动恢复为无信号状态(FALSE)还是手动恢复为无信号状态(TRUE)
_In_  ...
// 20171227_01.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "resource.h"
#include <stdio.h>
#include <windows.h>
HWND hEdit_hong;
HWND hEdit1;
HWND hEdit2;
HWND hEdit3;
int HongNum = 0;
HANDLE hThead_Main;
HANDLE hMutex;
DWOR...
// 20171227_01.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "resource.h"
#include <stdio.h>
#include <windows.h>
HWND hEdit_hong;
HWND hEdit1;
HWND hEdit2;
HWND hEdit3;
int HongNum = 0;
HANDLE hThead_Main;
CRITICAL_SECTION cs;
...
1 使用HWND
查找窗口:
HWND h_wnd = ::FindWindow(_T("MainForm"), NULL);
1
创建窗口:
HWND hwnd = WindowEx::Create(NULL, L"", WS_POPUP, WS_EX_TOOLWINDOW);
1
2 使用HANDLE
单例运行:
bool SingletonRun(const wchar_t *application)
{
assert(application);
if (applicati...
// 20171226_02.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "resource.h"
#include <stdio.h>
#include <windows.h>
HWND hEdit;
CRITICAL_SECTION cs1;
CRITICAL_SECTION cs2;
DWORD WINAPI ThreadProc1(
LPVOID lpParameter // thread data...
// 20171226_02.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "resource.h"
#include <stdio.h>
#include <windows.h>
HWND hEdit;
CRITICAL_SECTION cs;
DWORD WINAPI ThreadProc1(
LPVOID lpParameter // thread data
)
{
TCHAR numStr[10...