Wednesday, July 29, 2009

Cannot open include file No such file or directory

error message: Cannot open include file 'xyz.h' No such file or directory
happens when a header file is to be included: eg #include
causes: xyz.h is not in visual studio's include folder.
sol: put xyz.h into include folder at:
"VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\"

one way to locate the "include" folder is to open visual studio 2008 cmd prompt. see pic

for vs c++ 2008 express





for vs2005

header files in Visual studio

Monday, July 27, 2009

map network drive







same as map network drive in resource
comstu\users$\qzha085

Thursday, July 23, 2009

firefox not started ssl_error_ssl_disabled in mac

error description:
when starting firefox following error pops up:
ssl_error_ssl_disabled in mac

then can not log onto gmail, youtube...


cause:
firefox user profile corrupted

fix: delete user profile folder.
Follow instruction from here to locate profile folder in Firefox:


map network drive windows and mac

under windows:
comstu\users$\qzha085

mac:
smb://comstu/users$/qzha085

Tuesday, July 21, 2009

mssql

comman mistakes:
use ` ` around column names
use ' ' around values.
eg.
mySQL="SELECT * FROM USER where `NAME` ='michael'"
eg.

dim str,rsUser
str = CStr("michael")
mySQL="SELECT * FROM USER where `NAME`=' " &str & " ' "

otherwise you get unknow column name michael in where clause

Thursday, July 16, 2009

error:mbstring PHP extension phpmyadmin was not found

Error:
mbstring PHP extension phpmyadmin was not found

Fix:
Add extension=php_mbstring.dll under [mbstring] in php.ini
Restart Apache or IIS

Tuesday, July 7, 2009

How to compile C/C++ source code in windows

need:
when you want to compile source code

overview:
find a source code or write your own(here), then compile and run the output

step:
1 open visual studio command window


2 write simple source code in nodepad
3 compile: cl command
4 run the exe file and test






ref:
http://msdn.microsoft.com/en-us/library/ms235639(VS.80).aspx

#include

int main()
{
std::cout << "This is a native C++ program." << std::endl;
return 0;
}

Saturday, July 4, 2009

Timestamp Filename

Need:
When you want to make a filename to be current time on the system.
Idea:
get time from environment variables DATE and TIME

Example:


Ref:
http://www.dostips.com/DtTipsStringManipulation.php
http://talk.bmc.com/blogs/blog-gentle/anne-gentle/dos-timestamp-tips

Friday, July 3, 2009

Access FTP without "client"

Need:
FTP access file use internet browser, windows explorer

Overview:
enter username and password in (resource explorer or IE or Firefox) address bar

How:
ftp://username:password@ftp.servername.com

Example: