In Vista: First you must to enable “Administrator” account in your OS. My Computer (right click) –> [Manage] –> [Users and Groups] –> Users –> Administrator –> Properties. Then do the same thing as WinXP do. In WinXP: Method 1: Using TweakUI Power Toy for Windows XP Download TweakUI from here: v2.00 for Windows XP v2.10 for XP SP1 and above Open TweakUI and click “Logon” option in the left pane. Put a checkmark against the option “Show Administrator on Welcome Screen”. Click OK to close TweakUI. Logoff and see if Welcome Screen lists Administrator login. Changes are immediate and you can use the Winkey + L to switch back to Welcome Screen to see Administrator account is listed. ** Method 2 - Manual registry edit Click Start, Run and type Regedit.exe Navigate to the following key: HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows NT CurrentVersion Winlogon SpecialAccounts UserList Use the File,...
If you link code found some error like bellow:
error LNK2019: unresolved external symbol "wchar_t * __stdcall _com_util::ConvertStringToBSTR(char const *)" (?ConvertStringToBSTR@_com_util@@YGPA_WPBD@Z) referenced in function "public: __thiscall _bstr_t::Data_t::Data_t(char const *)" ([??0Data_t@_bstr_t@@QAE@PBD@Z](mailto:??0Data_t@_bstr_t@@QAE@PBD@Z))
>
>
Solve:
Try to link “comsuppwd.lib” in debug AdditionalDependencies. Link “comsuppw.lib” in release AdditionalDependencies.
Reference:
http://msdn2.microsoft.com/en-us/library/t58y75c0.aspx
http://www3.ccw.com.cn/club/essence/200103/532.htm
Reference:
http://msdn2.microsoft.com/zh-TW/library/bt727f1t.aspx
http://msdn.microsoft.com/netframework/programming/64bit/remotedebugging/
Follow the reference for necessary configuration on local project and remote machine’s network settings.
Install the debug package on the remote machine and launch the debug monitor. Under the installation diretory Microsoft Visual Studio 2005vsRemote Debuggerx86
Startup “Visual Studio 2005 Remote Debugger”, and use “No Authentication”(Naive only).
Copy follow folders from local machine if needed.
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c.cat
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c.manifest
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471.cat
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471.manifest
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_66b81908.cat
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_66b81908.manifest
C:WINDOWSWinSxSPoliciesx86_policy.8.0.Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_x-ww_09e017b4
C:WINDOWSWinSxSPoliciesx86_policy.8.0.Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_x-ww_a193936f
C:WINDOWSWinSxSPoliciesx86_policy.8.0.Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_x-ww_6afafa78
C:WINDOWSWinSxSx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c
C:WINDOWSWinSxSx86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471
C:WINDOWSWinSxSx86_Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_66b81908
Copy your debug code in debug machine.
Change your project setting as follow.
**SYMPTOMS
**When you try to register or unregister a COM server, it will pop failed in 0x80029C4A (TYPE_E_CANTLOADLIBRARY).
**CAUSE
**This is cuase by no TLB or missing TLB of this COM DLL.
**RESOLUTION
**If your COM DLL is builded using /notlb. remember use
CComModule::RgisterServer(FALSE);
CComModule::DllUnregisterServer(FALSE);
otherwise, please make sure your TLB is well for register.
REFERENCE
CComModule::RegisterServer; CComModule::UnregisterServer