Is it possible to package a template implementation class into a
library and how it is done (say into a dll or a static one).
Since template expansion in c++ is static and takes place at compile
time (unlike csharp), I would like to find out how we can simulate
that?
Thank 3 2352
On Oct 18, 11:21*am, puzzlecracker <ironsel2...@gm ail.comwrote:
Is it possible to package a template implementation class into a
library and how it is done (say into a dll or a static one).
Since template expansion in c++ is static and takes place at compile
time (unlike csharp), I would like to find out how *we can simulate
that?
Thank
I don't think that is possible at all, since libraries are already
compiled, and just need to be linked, whereas templates need to be
seen by the compiler to generate the code.
One thing I can think of is wrapping all your template headers into a
precompiled header, and include this in your other projects, but other
than that I don't think its possible.
-Kf- http://www.informit.com/guides/conte...plus&seqNum=53
about exported template classes.
"killerfox" <ki**********@g mail.comwrote in message
news:12******** *************** ***********@l64 g2000hse.google groups.com...
On Oct 18, 11:21 am, puzzlecracker <ironsel2...@gm ail.comwrote:
Is it possible to package a template implementation class into a
library and how it is done (say into a dll or a static one).
Since template expansion in c++ is static and takes place at compile
time (unlike csharp), I would like to find out how we can simulate
that?
Thank
I don't think that is possible at all, since libraries are already
compiled, and just need to be linked, whereas templates need to be
seen by the compiler to generate the code.
One thing I can think of is wrapping all your template headers into a
precompiled header, and include this in your other projects, but other
than that I don't think its possible.
-Kf-
puzzlecracker <ir*********@gm ail.comkirjutas :
Is it possible to package a template implementation class into a
library and how it is done (say into a dll or a static one).
Since template expansion in c++ is static and takes place at compile
time (unlike csharp), I would like to find out how we can simulate
that?
See http://www.parashift.com/c++-faq-lit...html#faq-35.13
Paavo This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Graham Dumpleton |
last post by:
When you have a template class with a static member variable, ie.,
template<typename T>
class handle
{
public:
static void* id() { return &id_; }
private:
static int id_;
};
|
by: John S Dalzell |
last post by:
Hi,
I have a C++ app which needs to work with a server on a remote machine. The
manufacturer has given us a set of DLL's which provide API calls to send
requests to the server and receive an information feed from it. My app is
compiled under Micro$oft VS.NET 2003 with option /MT to statically link in
the C runtime libraries msvcrt.lib etc. My app has to store information from
the server and answer requests from many remote clients. These...
|
by: Vittal |
last post by:
Hello,
Is it possible to write a C program to find out what all the dynamic
and static libraries any executable is using.
I mean program should do what 'ldd' does on Unix and it should help me
in finding the static libraries also.
Any help is greatly appreciated.
|
by: Ziver MALHASOGLU |
last post by:
Hi sleepless passionate coderZ!
I wanna ask you a qustion abot Microsoft Word Templates.
I need to construct a template such that it will contain both static and
dynamic fields. For instance we can think of a phone book on a A4 paper
----------------------------------
First Name: Friend1_Name
Last Name: Friend1_Surname
|
by: Saurabh |
last post by:
Hi all,
I want to know why do we use libraries(static or shared).
We can perform that work by including header files too.I also wish to
know what exactly is linking and loading.
i know these are pretty easy and basic questions.
But plz help me considering the fact that i am a new developer
in C++.
Thanking you in advance.
| |
by: John Nagle |
last post by:
I've been installing Python and its supporting packages on
a dedicated server with Fedora Core 6 for about a day now.
This is a standard dedicated rackmount server in a colocation
facility, controlled via Plesk control panel, and turned over
to me with Fedora Core 6 in an empty state. This is the
standard way you get a server in a colo today.
Bringing Python up in this completely clean environment is
a huge hassle, and it doesn't...
|
by: Art |
last post by:
I have to use Windows Forms(Managed C++) and also existing VC6
backend static libraries(MFC) in my GUI Application
Can anybody suggest me which template in VS2005 is more appropriate
for this scenario:
1) VC++ project using "Windows Form Application" template.
2) VC++ project using the template "MFC Application" and then add CLR
support.
|
by: Christopher |
last post by:
I tryed to make my hobby project look a little more like the projects
at work. In theory I could find the answer by examining the stuff at
work, but they use alot of custom build scripts and 3rd party
software, which I won't have at home. My goal was to create a single
library to be distributed to developers for use. So, I created a
directory "Redist", which in turn contains a "Lib" and "Include"
directory. My problem is that my entire...
|
by: Stephen Horne |
last post by:
I've been using Visual C++ 2003 for some time, and recently started
working on making my code compile in GCC and MinGW. I hit on lots of
unexpected problems which boil down to the same template issue. A
noddy mixin layer example should illustrate the issue...
class Base
{
protected:
int m_Field;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |