Tech Talk about C++ Templates / Comeau C++ Template FAQ: "What's the export keyword about?
Why do I get a link error when compiling my templates?
Although Standard C++ has no such requirement, some compilers require that all function templates need to be made available in every translation unit that it is used in. In effect, for those compilers, the bodies of template functions must be made available in a header file. To repeat: that means those compilers won't allow them to be defined in non-header files such as .cpp files. To clarify, in C++ese this means that this:
// ORIGINAL version of xyz.h
template
struct xyz
{
xyz();
~xyz();
};
would NOT be satisfied with these definitions of the ctor and dtors:
// ORIGINAL version of xyz.cpp
#include 'xyz.h'
template
xyz::xyz() {}
template
xyz::~xyz() {}
because using it:
// main.cpp
#include 'xyz.h'
int main()
{
xyz xyzint;
return 0;
}
will produce an error. For instance, with Comeau C++ you'd get:
C:\export>como xyz.cpp main.cpp
C++'ing xyz.cpp...
Comeau C/C++ 4.3.4.1 (May 29 2004 23:08:11) for MS_WINDOWS_x86
Copyright 1988-2004 Comeau Computing. All rights reserved.
MODE:non-stric"
Thursday, March 27, 2008
Wednesday, March 26, 2008
Flex 3 "1 item" problem
private function resultHandler(event:ResultEvent):void{
if(event.result.eSummaryResult == null){
message.text="No search result found";
}else if(event.result.eSummaryResult.DocSum is ObjectProxy){
docsum = new ArrayCollection( [event.result.eSummaryResult.DocSum]);
}else{
docsum = event.result.eSummaryResult.DocSum as ArrayCollection;
}
}
if(event.result.eSummaryResult == null){
message.text="No search result found";
}else if(event.result.eSummaryResult.DocSum is ObjectProxy){
docsum = new ArrayCollection( [event.result.eSummaryResult.DocSum]);
}else{
docsum = event.result.eSummaryResult.DocSum as ArrayCollection;
}
}
Monday, March 24, 2008
Install PHP 5 Apache MySQL on Windows : WampServer
Install PHP 5 Apache MySQL on Windows : WampServer: "WampServer 2.0b [03/07/2008]
Includes :
- Apache 2.2.8
- MySQL 5.0.51a
- PHP 5.2.5"
Includes :
- Apache 2.2.8
- MySQL 5.0.51a
- PHP 5.2.5"
HTTPservice unable to load local XML file
Flex 3 - Adobe Flex 3 Help: "#2148
This error occurs when you try to open an application that uses RSLs in the standalone player or in the browser by using the file system and not a server. It means that you are violating the security sandbox of Flash Player by trying to load file resources.
You must deploy your application and RSLs to a network location, and request the application with a network request so that Flash Player will load the RSL.
If you are testing the application locally, you can add the directory to your Player trust file to avoid this error."
This error occurs when you try to open an application that uses RSLs in the standalone player or in the browser by using the file system and not a server. It means that you are violating the security sandbox of Flash Player by trying to load file resources.
You must deploy your application and RSLs to a network location, and request the application with a network request so that Flash Player will load the RSL.
If you are testing the application locally, you can add the directory to your Player trust file to avoid this error."
Sunday, March 23, 2008
Auslogics Disk Defrag - Reviews and free Auslogics Disk Defrag downloads at Download.com
Auslogics Disk Defrag - Reviews and free Auslogics Disk Defrag downloads at Download.com
From Auslogics Software:
Disk fragmentation leads to system slowdowns, PC crashes, slow startup and shutdown and sometimes to system failures. Auslogics Disk Defrag is designed for fast optimization of today's modern hard disks. Get the maximum performance out of your expensive hardware investments. Version 1.4.13 is a bug fixing release.
Saturday, March 22, 2008
NetBeans Blogging Contest
NetBeans Blogging Contest:
NetBeans IDE 6.1 Beta Blogging Contest
Blog about NetBeans IDE 6.1 Beta for...
10 chances to win a $500 American Express Gift Certificate!
100 chances to win a cool NetBeans T-Shirt!
Simply:
1. Download the NetBeans IDE 6.1 Beta (or later release) and try it out.
2. Blog about it!
3. Submit the URL to your blog.
4. Do it before April 18, 2008!
NetBeans IDE 6.1 Beta Blogging Contest
Blog about NetBeans IDE 6.1 Beta for...
10 chances to win a $500 American Express Gift Certificate!
100 chances to win a cool NetBeans T-Shirt!
Simply:
1. Download the NetBeans IDE 6.1 Beta (or later release) and try it out.
2. Blog about it!
3. Submit the URL to your blog.
4. Do it before April 18, 2008!
Getting Started with JAXB - NetBeans IDE 6.0 Tutorial
Getting Started with JAXB - NetBeans IDE 6.0 Tutorial: "The Java Architecture for XML Binding API (JAXB) makes it easy to access XML documents from applications written in the Java programming language. This document shows you how NetBeans IDE 6.0 provides tooling support for JAXB, principally by means of a wizard that turns various types of XML documents into Java classes. Starting with a given WSDL file, we will generate Java classes and then do something with them."
Subscribe to:
Posts (Atom)