原创 【Poco】Poco::DynamicFactory的例子

#include "../tmain.hpp" namespace DF { class Base { public: Base() { } virtual ~Base() { } }; class

原创 Ext的Dom操作——節點替換

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); Strin

原创 【Poco】Poco::Core中的例子

#include "../tmain.hpp" /* 操作系統 #define POCO_OS_FREE_BSD 0x0001 #define POCO_OS_AIX 0x0002 #define POCO

原创 【STL】C++ string 類基本用法樣例

#define _CRT_SECURE_NO_DEPRECATE #include <string> // 使用 string 類時須包含這個文件 #include <iostream> using namespace std;

原创 隨書光盤免費下載的好地方

經常要爲一些IT書籍的隨書光盤的下載煩擾. 今天終於找到些免費下載的好地方了. 寧波大學園區圖書館:http://bwss.nlic.net.cn:8080/poweb/灰信網:http://iso.freesion.com

原创 warning C4996: 'sprintf' was declared deprecated see declaration of 'sprintf'

方法1:VC6---選項Project | Configuration Properties | C/C++ | Preprocessor | Preprocessor Definitions 添加_CRT_SECURE_NO_DEPRE

原创 Qt+VS編譯器:默認庫“library”與其他庫的使用衝突;使用 /NODEFAULTLIB:library

找到qt安裝目錄下的mkspecs文件夾,在裏面找到你使用的對應版本編譯器,打開qmake.conf。稍等: /MD:動態鏈接多線程庫(msvcrt.lib)。使用該選項時,需要用/NODEFAULTLIB選項來忽略掉libc.lib、

原创 【Poco】Poco::Format的例子

#include "../tmain.hpp" /* Following are valid type specifications and their meaning: b boolean (true = 1, false = 0)

原创 【Poco】Poco::NumberParser的例子

#include "../tmain.hpp" // Poco::NumberParser類提供靜態方法將字符串轉換成數字 // parse: 將字符串轉換int // parse64: 將字符串轉換int64 // parseFloa

原创 【Poco】Poco::AutoReleasePool的例子

#include "../tmain.hpp" namespace { class TestObj { public: TestObj(): _rc(1) { ++_count; } void duplic

原创 【Poco】Poco::NumberFormatter的例子

#include "../tmain.hpp" void test_NumberFormatter_Format() { // 整數的格式化 assert (Poco::NumberFormatter::format(123) ==

原创 vs2005配置庫文件與頭文件總結

可以分爲IDE級別(也就是所有的方案與項目)和項目級別. 1. IDE級別   這個相對容易, 因爲配置的內容大概都在一個地方.    工具-->屬性-->項目和解決方案-->VC++目錄    在右邊的選項中, 選擇對應的"包含文件"

原创 【Poco】Poco::AutoPtr的例子

#include "../tmain.hpp" class TestObj { public: TestObj(): _rc(1) { // PRINT_DEBUG("TestObj Construct" << " " << t

原创 Extjs在IE報錯"對象不支持此屬性或方法", 而在firefox正常可用

ExtJS在Firefox裏面顯示正常,但是用IE打開的時候報錯:對象不支持此屬性或方法(object doesn't support this property or method)。 在網上找了一下,This is an issue

原创 在win7上安裝visual c++ 2008 redistributable 發生錯誤error 1935

原來服務"Windows Modules Installer"被禁用了, 啓用該服務後, 問題就解決了.