發表文章

目前顯示的是有「windows 8」標籤的文章

Windows Eclipse C++ with MinGW

1. Install Mingw  http://www.mingw.org/    http://sourceforge.net/projects/mingw/files/latest/download?source=files   2. In MinGW installation Manager    Select mingw-developer-toolkit     mingw32-base mingw32-gcc-g++ msys-base 3. Add c:\mingw\bin to System enviornment Path 4. Download and install CDT http://www.eclipse.org/cdt/downloads.php    Eclipse -> Help -> Install New Software...    Add... //copy the relative URL 5. Configurate Eclipse    1. Windows -> Preferences -> C/C++ -> New CDT Project Wizard -> Makefile Project       Select PE Windows Parser    2. Windows -> Show view -> Make Target   6. Create C++ project 7. In the Make Target windows right click New... 8. Create Make target 9. Run As -> Local C/C++ Application Troubleshooting Compile Error: /mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: canno...

Windows RPC Register in Windows 8

If your application runs in Windows App store, you will meet RPC the old   RpcServerRegisterIf is not work.  When you send from Windows App container, you will get error code: 5 when you are create RPC context. Problem Describe: A : Application in windows App Container. B:  Application in windows A - RPC -> B (not allow) Mainly in Windows App Container is the lowest Integrity, even the low integrity application B can not receive RPC message. The original RPC register in B: {{{ RPC_STATUS status = RpcServerRegisterIf(interfaceHandle, NULL, NULL); if (status!=RPC_S_OK)   {         return FALSE; } status = RpcServerUseProtseqEpW(         (RPC_WSTR)L"ncalrpc", RPC_C_PROTSEQ_MAX_REQS_DEFAULT,           L"BApplicationRPCEndPointName", NULL); if (status)    {       return FALSE; }...