473,320 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

libraries and STL versions

Greetings and felicitations,

I need to write a class which will be part of a library. The class is
exposed to users of the library. The class needs to provide strings (only
char and wchar_t) to its users. The data in the strings is not known until
run time. The version of the STL which the class is compiled with won't
necessarily be the same version which users of the library will compile
with. So how can it provide strings to its users?

Thanks
Jul 22 '05 #1
2 1240
On Sun, 29 Feb 2004 19:06:39 GMT, "Ian Lazarus" <no****@nowhere.net>
wrote in comp.lang.c++:
Greetings and felicitations,

I need to write a class which will be part of a library. The class is
exposed to users of the library. The class needs to provide strings (only
char and wchar_t) to its users. The data in the strings is not known until
run time. The version of the STL which the class is compiled with won't
necessarily be the same version which users of the library will compile
with. So how can it provide strings to its users?

Thanks


The <cstdlib> functions std::malloc(), std::calloc(), std::realloc(),
and std::free() are all part of ISO standard C++ and are completely
independent of any C++ features in the library. When properly used,
they can certainly provide for management of C strings and wide
strings.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 22 '05 #2

"Ian Lazarus" <no****@nowhere.net> wrote in message
news:3L*********************@bgtnsc05-news.ops.worldnet.att.net...
Greetings and felicitations,

I need to write a class which will be part of a library. The class is
exposed to users of the library. The class needs to provide strings (only
char and wchar_t) to its users. The data in the strings is not known until
run time. The version of the STL which the class is compiled with won't
necessarily be the same version which users of the library will compile
with. So how can it provide strings to its users?


I would define members as type 'std::string' from standard
header <string>, connecting them with interfaces that
provide the desired services.

-Mike
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

335
by: extrudedaluminiu | last post by:
Hi, Is there any group in the manner of the C++ Boost group that works on the evolution of the C language? Or is there any group that performs an equivalent function? Thanks, -vs
2
by: anand.ba | last post by:
Hi all I need to find equivalent windows libraries for the following unix ones. #include <sys/prctl.h> #include <sys/ioctl.h> #include <unistd.h>
4
by: stuntgoat | last post by:
Hi, I want to start using Python 2.6 and 3000. I have several questions. What, in your experiences, is a functionally elegant solution to installing 2.6 and 3 from source without breaking...
9
by: W. eWatson | last post by:
Is there some repository that says something like for Python 2.5 it works with: Win OSes: W2K, XP, Vista numpy vers y, matplotlib vers x. scipy z, etc. -- W. eWatson (121.015 Deg. W,...
1
by: peter1234 | last post by:
Is it possible to create Relationships in Microsoft Access versions prior to 2007?
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.