Waiting for the wind

programming memo in different platforms

「Win32′s Road」分類文章彙整

the programming experience on Windows platform.

windows mysql reset root

發文作者 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 | 已加上的標籤: , , , | 張貼留言 »

VC++ MFC using STL, operator new: ono of the 5 overloads

發文作者 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 | 已加上的標籤: , , , | 張貼留言 »

relationship between CWnd and CWinApp

發文作者 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 | 已加上的標籤: , | 張貼留言 »

power point application objects reference

發文作者 cotton5415 於 九月 25, 2010

http://msdn.microsoft.com/en-us/library/aa141357(office.10).aspx

發表於 Win32's Road | 已加上的標籤: , , , | 張貼留言 »

side-by-side error

發文作者 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 | 已加上的標籤: , | 張貼留言 »

timeGetTime v.s. GetTickCount()

發文作者 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 | 張貼留言 »

about audio capture

發文作者 cotton5415 於 六月 22, 2010

a good disucssion thread
http://social.msdn.microsoft.com/Forums/en/windowspro-audiodevelopment/thread/e725bb7c-607c-410a-a495-9c92987a34c4

http://www.downloadsquad.com/2007/01/15/how-to-enable-wave-out-recording-in-vista/

loopback
http://msdn2.microsoft.com/enus/library/ms679146.aspx

if no stereo mixer on vista
http://lifehacker.com/software/dual-boot/dual-boot-windows-xp-on-a-pre+installed-vista-pc-248936.php

DirectSoundCapture —> end point
mixerXXX api
waveInXXX api

google virtual audio cable, or audio reapter

發表於 Win32's Road | 張貼留言 »

use VC++ generated DLL files in msys

發文作者 cotton5415 於 四月 25, 2010

  1. make your DLL file with export symbols project by VC++, you should have AAA.dll and AAA.lib
  2. to generate libAAA.a for msys or cygwin to use, you should:
    1. generate AAA.def by pexports.exe in msys
      % pexports.exe AAA.dll > AAA.def
    2. generate libAAA.a by dlltool.exe in msys
      % dlltool.exe -D AAA.dll -d AAA.def -l libAAA.a
  3. 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 | 已加上的標籤: , , , , , | 張貼留言 »

blit banchmark on each platform

發文作者 cotton5415 於 四月 2, 2008

ref:

http://www.rocklyte.com/news_20030917.html

發表於 Debian's Road, eee pc's road, Embedded system's Road, Evolutionary Music, Fedora Core 6's Road, MAC OS X's Road, Win32's Road | 張貼留言 »

2d graphic library for Linux GraphicsMagick

發文作者 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 | 張貼留言 »

 
Follow

Get every new post delivered to your Inbox.