Friday, September 21, 2007

Precompiled header does not exist

Friday Sep 21, 2007

I wasted about 20 minutes to figure out how to solve this compile error: precompiled header does not exist. I performed rebuild the entire solution with the hope that the precompiled header will be recreated.

Finally, I found that we could explicitly tell Visual Studio to create a precompiled header as shown in the figure below. After a successful compilation, Visual Studio will automatically change the 'Create' option to 'Use' option instead.

Sunday, September 16, 2007

Visual C++ and LNK2005 Problem

Sep 16, 2007

Today, I badly got strucked with LNK2005 error in Visual C++. According to linking error messages, it was a conflict between nafxcwd.lib and uafxcwd.lib. This issue will arise if one module (library or executable) "Use Unicode Character Set" and another "Use Multi-Byte Character Set".

It is important to note that LNK2005 normally arises because of two or more projects are set differently. There are two spots worth looking:

1. General Setting
2. Code Generation Setting

Notice that there is nothing to do with linking setting, although this issue is linking problem.

More info at:
http://www.velocityreviews.com/forums/t285209-lnk2005error-in-visual-c-v-60.html
http://support.microsoft.com/kb/q148652/

Saturday, September 15, 2007

LaTex Equation Editor on the web

Sep 15, 2007

There is an interesting work on the web, and it's free. It is LaTex Equation Editor, http://test.izyba.com/equationeditor/equationeditor.php. This tool creates an image with transparent background, making it easy to embed in other software such as MS PowerPoint.

The drawbacks are:
1. Text in the equation cannot be changed. If we need white text, we will find ourselves in trouble.
2. Text size is a bit too small. I like it bigger in many situations.

Note: if you know a way to handle these problems, please leave a comment in this blog.
Many thanks

Update (Oct 28, 2007): I found a better one. It is Roger's Online Equation Editor at http://rogercortesi.com/eqn/index.php#note. It can generate transparent background. Plus, we can increase resolution of an output to suit our work.

Texmaker: Free cross-platform LaTeX editor

Sep 15, 2007

Texmaker (http://www.xm1math.net/texmaker/) seems to be a very good LaTex editor tool. I used it once a long time ago. It's pretty impressive, and I think it is better than TeXnicCenter (http://www.texniccenter.org/). The tool has no more update for more than a year). However, Texmaker does not have some cool features in WinEdt such as DVI search.

FYI: DVI search is a feature in WinEdt helping a user to find a portion in DVI document corresponding to a target text in the editor. You can try it by ctrl-shift-s in a WinEdt editor. If your DVI file is open, it will jump to the corresponding text.

FYI: there is a forum about LaTex and its editors at forum http://latex-community.org/. This forum has dedicated sections for TeXnicCenter, Texmaker, and WinEdt. Sounds interesting.

Aurora: Embedding LaTex Math into MS Office

Sep 15, 2007

A few days ago, I found an interesting (but not free) tool for embedding LaTex Math into MS PowerPoint. Its name is Aurora, http://elevatorlady.ca/. Interestingly, this tool works in other MS Office tools, including Word, Excel, and Visio.

I have not tried it yet, but I will surely take a look at it when I have more time.

Sunday, September 09, 2007

ว่าด้วยเรื่องของ JFileSync

JFileSync เป็นโปรแกรมที่ทำการ synchronize file บนสองไดเรกทอรีแบบง่ายๆ มีการเปรียบเทียบให้เห็นความเก่าใหม่ของไฟล์ที่เข้าใจง่าย ตอนนี้พึ่งลองใช้บน Windows XP 32 bits ก็คงยังวิจารณ์อะไรไม่ได้มาก แต่ที่สังเกตเห็นก็คือ มันไม่รองรับการติดต่อไปที่ remote file ที่ไม่ใช่้ JFileSync server ทำให้เราต้องแม็พไดรฟ์ก่อนทุกคราไป

ยังไงก็ตามด้วยความง่ายและเพียงพอต่อความต้องการเราก็พบว่ามันน่าพอใจแล้วสำหรับซอฟต์แวร์ฟรีตัวนี้
http://jfilesync.sourceforge.net/