use nmake from command prompt console window
*********************************************
If you open the command prompt console window from within the IDE by
using the menu item:
Tools->Visual Studio 2008 Command Prompt
============================================================================
The compiler has to know the path(s) to the header files (such as stdio.h).
There are a number of ways this can be specified. Normally it is specified
via an environment variable - INCLUDE=
The linker also has to know the path(s) to the lib files to be linked.
Again, there are a number of ways this can be specified.
Normally it is specified via an environment variable - LIB=
If you open the command prompt console window from within the IDE by
using the menu item:
Tools->Visual Studio 2008 Command Prompt
these environment variables will be set up for you automatically.
The file vcvars32.bat is where these are configured for 32-bit builds.
It's in the VC++ bin directory.
You can also specify the include file directory via the /I switch when
invoking cl.exe - type cl /? to see all of the options available. Note
the linker options as well.
As a self-professed "absolute beginner" you would be well-advised to
use the IDE for doing your programming. It will configure many things
for you - especially if you use the supplied project templates. There
are many things you have to consider when building using the command
line tools, which most beginners won't be able to cope with initially.
- Wayne
Thursday, March 18, 2010
Friday, February 19, 2010
[Work] how to make windows 7 search file contents
How to Make Windows 7 Search File Contents
http://www.wikihow.com/Make-Windows-7-Search-File-Contents
1. Click the Start button and in the search box at the very bottom type "search" then choose the result "Change How Windows Searches"
2.
2
Choose the "Advanced" button just below the list of indexed locations.
3.
3
Activate the "File Types" tab in the Advanced Options window.
4.
4
After windows populates the file type list, locate the extension that you want it to look into in the future.
* If the extension is not listed, enter your desired file extension, such as ".php" into the input box at the bottom and click Add.
5.
5
Once your extension is highlighted, change the indexing property to "Index Properties and File Contents" and click OK, close the Indexing options.
6.
6
Try your search again and your expected results will appear.
http://www.wikihow.com/Make-Windows-7-Search-File-Contents
1. Click the Start button and in the search box at the very bottom type "search" then choose the result "Change How Windows Searches"
2.
2
Choose the "Advanced" button just below the list of indexed locations.
3.
3
Activate the "File Types" tab in the Advanced Options window.
4.
4
After windows populates the file type list, locate the extension that you want it to look into in the future.
* If the extension is not listed, enter your desired file extension, such as ".php" into the input box at the bottom and click Add.
5.
5
Once your extension is highlighted, change the indexing property to "Index Properties and File Contents" and click OK, close the Indexing options.
6.
6
Try your search again and your expected results will appear.
Monday, January 18, 2010
[work] miktex repository
make a local repository directory
for example, localtex
put two files in the folder
miktex-zzdb1-2.6.tar.bz2
miktex-zzdb2-2.6.tar.bz2
download the necessary packages for local installation
http://tug.ctan.org/tex-archive/systems/win32/miktex/tm/packages/
for example, localtex
put two files in the folder
miktex-zzdb1-2.6.tar.bz2
miktex-zzdb2-2.6.tar.bz2
download the necessary packages for local installation
http://tug.ctan.org/tex-archive/systems/win32/miktex/tm/packages/
Saturday, January 16, 2010
[work] ruby search convert files
require 'find'
require "FileUtils"
require "ftools"
def pfm2exr(dirname)
sum=0
Find.find(dirname) do |f|
if(f[f.length()-4..f.length()]==".pfm")
puts f
fnew=f[0..f.length()-4]+"exr"
cmdline="D:/proj/pfm2exr/Release/pfm2exr.exe -in \""+f+"\" -out \""+fnew+ "\" -precision 1"
puts cmdline
system("#{cmdline}")
puts "delete"+f
File.delete(f)
end
end
sum
end
if ARGV.length != 1
puts "ruby pfm2exr.rb\n"
Process.exit
end
dir=ARGV[0]
pfm2exr(dir)
[work] ruby time
oldtime=Time.now
for i in 0..18000
a=Math::cos(0.2)
#puts "hahahhee"
end
puts Time.now-oldtime
Monday, January 4, 2010
Monday, December 21, 2009
[Work] Ruby, check directory folder existence
if File.exists? path_out
puts path_out+" exists"
else
# puts path_out+" doesn't exist"
Dir.mkdir(path_out)
end
Subscribe to:
Comments (Atom)