「Win32′s Road」分類文章彙整
the programming experience on Windows platform.
發文作者 cotton5415 於 四月 28, 2011
http://dev.mysql.com/doc/mysql-windows-excerpt/5.0/en/resetting-permissions-windows.html
1. stop mysql service.
2. edit a file abcd.sql
UPDATE mysql.user SET Password=PASSWORD(‘MyNewPass’) WHERE User=’root’;
FLUSH PRIVILEGES;
3. mysqld.exe –console –init-file=abcd.sql
4. new root password = MyNewPass
發表於 mysql's Road, web programming, Win32's Road | 已加上的標籤: mysql root, mysql windows, windows mysql, windows mysql root | 張貼留言 »
發文作者 cotton5415 於 四月 28, 2011
http://social.msdn.microsoft.com/Forums/zh-CN/visualcpluszhchs/thread/b93ed7fe-c328-4901-bd3a-7e742e499775/
http://support.microsoft.com/kb/317799
發表於 Win32's Road | 已加上的標籤: MFC STL, MFC STL operator new, VC++ MFC STL, VC++ STL | 張貼留言 »
發文作者 cotton5415 於 九月 25, 2010
In general there are [[at least]] the following places where you can put
data and code:
the app (CWinAPP derived class)
the main frame window class
the document window class
the document class.
http://support.microsoft.com/kb/309309
發表於 Power Point Automation's Road, Win32's Road | 已加上的標籤: ppt, ppt automation | 張貼留言 »
發文作者 cotton5415 於 九月 25, 2010
http://msdn.microsoft.com/en-us/library/aa141357(office.10).aspx
發表於 Win32's Road | 已加上的標籤: automation, PowerPoint, PowerPoint automation, ppt | 張貼留言 »
發文作者 cotton5415 於 九月 14, 2010
Download and install this to the running computer
Or,
build your application by /MTD or /MT ( Project Properties \ C++ \code generate )
發表於 Win32's Road | 已加上的標籤: side-by-side, vc++ 2005 | 張貼留言 »
發文作者 cotton5415 於 八月 23, 2010
referenced from http://www.gamedev.net/community/forums/topic.asp?topic_id=126327
first, timeGetTime is a win32 function, not a c one.
second, timeGetTime is much more accurate than GetTickCount (1 ms vs 50 ms resolution).
third, GetTickCount takes less time to execute.
fourth, nice use of the $. (stolen from Stoffel)
use GetTickCount if 50 ms resolution is acceptable because it has less overhead, and timeGetTime if you need more precise timing. remember to call timeBeginPeriod and timeEndPeriod to obtain 1 ms resolution on nt.
發表於 Win32's Road | 張貼留言 »
發文作者 cotton5415 於 四月 25, 2010
- make your DLL file with export symbols project by VC++, you should have AAA.dll and AAA.lib
- to generate libAAA.a for msys or cygwin to use, you should:
- generate AAA.def by pexports.exe in msys
% pexports.exe AAA.dll > AAA.def
- generate libAAA.a by dlltool.exe in msys
% dlltool.exe -D AAA.dll -d AAA.def -l libAAA.a
- remember to re-define AAAAPI_EXPORTS as blank which is generated by VC++ in AAA.h as you create the export symbol project.
#define AAAAPI_EXPORTS __declspec(dllimiport)
--> #define AAAAPI_EXPORTS
or you will get the link error:
error LNK2001: unresolved external symbol __imp__FUNC
發表於 msys's Road, Win32's Road | 已加上的標籤: cotton5415, dll, msys dll, msys imp__, msys vc++, msys __imp__ | 張貼留言 »
發文作者 cotton5415 於 三月 27, 2008
it’s a branch of imageMagick 5.xxxx
reference:
http://www.graphicsmagick.org/www/api.html
發表於 Debian's Road, eee pc's road, Fedora Core 6's Road, MAC OS X's Road, web programming, Win32's Road | 張貼留言 »