473,756 Members | 6,661 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSVC++ 2005 Express Ed. build error when mixing boost lexical_castand shared_ptr

Hello,

I came across a strange error and it's really been bugging me. Maybe
someone else has come across this and any insight would be
appreciated.

What I'm trying to accomplish is using boost::lexical_ cast to cast a
vector of strings to a string.

The compiler I'm using is MSVC++ 2005 Express Edition. The gc++
compiler does not have the same complaint, this is strictly a MSVC++
2005 issue. I don't think it matters, but I'm running on a WinXP 32
bit machine. I'm also using boost v1.34.0.
Here's the code.

#include <boost/lexical_cast.hp p>
#include <iostream>
#include <vector>
#include <string>

//--------------------------------------------------------------
template<class T>
std::ostream & operator<<(std: :ostream& s, const std::vector<T& d) {
typedef typename std::vector<T>: :const_iterator iter;
iter it;
for (it = d.begin() ; it != d.end() ; ++it) {
s << *it;
s << "\n";
}
return s;
}
//--------------------------------------------------------------
template<class T>
std::istream & operator>>(std: :istream& s, std::vector<T& d) {
while (!s.eof()) {
char buf[500];
s.getline(buf, sizeof(buf));
d.push_back(buf );
}
return s;
}

//--------------------------------------------------------------
int main (int argc, char ** argv) {

std::vector<std ::stringvecstr1 ;
vecstr1.push_ba ck("hi");
vecstr1.push_ba ck("there");
std::string str = boost::lexical_ cast<std::strin g>(vecstr1);
std::cout << str << std::endl;

return 0;
}
This compiles quite nicely and even spits out the correct output. Now
for the problem:

If I change the include #includes at the top to:

#include <boost/lexical_cast.hp p>
#include <boost/shared_ptr.hpp>
#include <iostream>
#include <vector>
#include <string>

I get the following compilation error (only the last few lines are
provided for clarity):

lexical_cast.hp p(150) : while compiling class template member function
'bool boost::detail:: lexical_stream< Target,Source>: :operator <<(const
Source &)'
with
[
Target=std::str ing,
Source=NewSourc e
]
lexical_cast.hp p(219) : see reference to class template instantiation
'boost::detail: :lexical_stream <Target,Source> ' being compiled
with
[
Target=std::str ing,
Source=NewSourc e
]
main.cpp(38) : see reference to function template instantiation
'Target boost::lexical_ cast<std::strin g,std::vector<_ Ty>>(const Source
&)' being compiled
with
[
Target=std::str ing,
_Ty=std::string ,
Source=std::vec tor<std::string >
]
lexical_cast.hp p(151) : error C2228: left of '.fail' must have class/
struct/union

Now, for a really stupid solution:

#include <boost/lexical_cast.hp p>
#include <boost/shared_ptr.hpp>
#include <iostream>
#include <vector>
#include <string>

//--------------------------------------------------------------
// inheriting from an STL container - asking for trouble!
// But it does solve the compilation problem. WHY????
class stringvector : public std::vector<std ::string{
};

//--------------------------------------------------------------
template<class T>
std::ostream & operator<<(std: :ostream& s, const std::vector<T& d) {
typedef typename std::vector<T>: :const_iterator iter;
iter it;
for (it = d.begin() ; it != d.end() ; ++it) {
s << *it;
s << "\n";
}
return s;
}
//--------------------------------------------------------------
template<class T>
std::istream & operator>>(std: :istream& s, std::vector<T& d) {
while (!s.eof()) {
char buf[500];
s.getline(buf, sizeof(buf));
d.push_back(buf );
}
return s;
}

//--------------------------------------------------------------
int main (int argc, char ** argv) {

stringvector vecstr1; // replaced std::vector<Twi th stringvector
vecstr1.push_ba ck("hi");
vecstr1.push_ba ck("there");
std::string str = boost::lexical_ cast<std::strin g>(vecstr1);
std::cout << str << std::endl;

return 0;
}

This code compiles, but inheriting from an STL container is not my
idea...of a good idea...

So what's going on here?

There are basically 2 questions I have:
1) why does the boost/shared_ptr.hpp inclusion effect a
boost::lexical_ cast<std::strin g, std::vectordecl aration?
2) How does inheriting from the std::vector class solve this problem?

Thanks in advance.

Hans Smit

Nov 19 '07 #1
6 2546
On Mon, 19 Nov 2007 11:14:34 -0800 (PST) in comp.lang.c++,
hs********@gmai l.com wrote,
>There are basically 2 questions I have:
1) why does the boost/shared_ptr.hpp inclusion effect a
boost::lexical _cast<std::stri ng, std::vectordecl aration?
I don't know, but I presume in general that shared_ptr.hpp introduces
some more data types and some more default conversions to/from other
types, that take precedence because they are more direct than the other
conversions available, but which ultimately don't work.
>2) How does inheriting from the std::vector class solve this problem?
By making it a new type that doesn't appear to participate in the
half-baked type conversion tree. That's my guess.
Nov 19 '07 #2
Thanks for your response. I would have to agree with your guess. I
just wonder why it would compile with gc++ and not with MSVC++ 8.0.
This latest MS compiler has been brilliant so far and has seemed (to
me) to be very compiliant with the standards. Mind you, I have come
across a few other quirks between gc++ and msvc++ 8.0, but that's
another topic.

So, the only solution to this problem thus far is to inherit from an
STL container. Inheriting from a class without virtual methods is a
bad thing and can lead to undefined behavior in the destruction phase
(I have yet to come across this scenario, but how could hundreds of
expert C++'ers be wrong). Inheriting from an STL container makes me
feel dirty and cheap. Of course, I could wrap all the std::vector
functions in a vector_wrapper class that does have a virtual
destructor, but this feels like a "canon killing a s bug" solution.

Another solution, would be to develop my own share_ptr class... so
much for standards. NO, not a good solution either.

Any other solutions or thoughts, anyone?
Nov 20 '07 #3
On Nov 19, 8:14 pm, hsmit.h...@gmai l.com wrote:
I came across a strange error and it's really been bugging me. Maybe
someone else has come across this and any insight would be
appreciated.
What I'm trying to accomplish is using boost::lexical_ cast to cast a
vector of strings to a string.
I don't think it's possible, at least not with a standards
conformant compiler, which does dependent name lookup correctly.
(Strangely enough, it does compile with g++, although I can't
figure out how.) Unless I've misunderstood something
completely, boost::lexical_ cast uses << and >on the
instantiation types. The expression is dependent, so §14.6.4
should apply.

I've found this to be the case in other constructs with g++, so
something else is occuring which I don't understand.
The compiler I'm using is MSVC++ 2005 Express Edition. The
gc++ compiler does not have the same complaint, this is
strictly a MSVC++ 2005 issue. I don't think it matters, but
I'm running on a WinXP 32 bit machine. I'm also using boost
v1.34.0.
Here's the code.
#include <boost/lexical_cast.hp p>
#include <iostream>
#include <vector>
#include <string>
//--------------------------------------------------------------
template<class T>
std::ostream & operator<<(std: :ostream& s, const std::vector<T& d) {
typedef typename std::vector<T>: :const_iterator iter;
iter it;
for (it = d.begin() ; it != d.end() ; ++it) {
s << *it;
s << "\n";
Why not just:
s << *it << '\n' ;
?

Or even replacing the entire loop by:

std::copy( d.begin(), d.end(), std::ostream_it erator( s,
"\n" ) ) ;
}
return s;}
Normally, this function should not be found during dependent
name lookup, at least as I understand the standard.
//--------------------------------------------------------------
template<class T>
std::istream & operator>>(std: :istream& s, std::vector<T& d) {
while (!s.eof()) {
char buf[500];
Why not std::string?
s.getline(buf, sizeof(buf));
You'd best check the success of the getline before using the
value read.
d.push_back(buf );
}
The standard idiom here is:

std::string line ;
while ( std::getline( s, line ) ) {
d.push_back( line ) ;
}
return s;
}
This compiles quite nicely and even spits out the correct output.
Which is what I don't understand. As far as I can see, it
shouldn't compile.
Now for the problem:
If I change the include #includes at the top to:
#include <boost/lexical_cast.hp p>
#include <boost/shared_ptr.hpp>
#include <iostream>
#include <vector>
#include <string>
I get the following compilation error (only the last few lines are
provided for clarity):
lexical_cast.hp p(150) : while compiling class template member function
'bool boost::detail:: lexical_stream< Target,Source>: :operator <<(const
Source &)'
with
[
Target=std::str ing,
Source=NewSourc e
]
lexical_cast.hp p(219) : see reference to class template instantiation
'boost::detail: :lexical_stream <Target,Source> ' being compiled
with
[
Target=std::str ing,
Source=NewSourc e
]
main.cpp(38) : see reference to function template instantiation
'Target boost::lexical_ cast<std::strin g,std::vector<_ Ty>>(const Source
&)' being compiled
with
[
Target=std::str ing,
_Ty=std::string ,
Source=std::vec tor<std::string >
]
lexical_cast.hp p(151) : error C2228: left of '.fail' must have class/
struct/union
Now, for a really stupid solution:
#include <boost/lexical_cast.hp p>
#include <boost/shared_ptr.hpp>
#include <iostream>
#include <vector>
#include <string>

//--------------------------------------------------------------
// inheriting from an STL container - asking for trouble!
// But it does solve the compilation problem. WHY????
Because you then use a class defined in the global namespace.
Which means that the global namespace is drawn into ADL.
class stringvector : public std::vector<std ::string{

};
//--------------------------------------------------------------
template<class T>
std::ostream & operator<<(std: :ostream& s, const std::vector<T& d) {
typedef typename std::vector<T>: :const_iterator iter;
iter it;
for (it = d.begin() ; it != d.end() ; ++it) {
s << *it;
s << "\n";
}
return s;}
//--------------------------------------------------------------
template<class T>
std::istream & operator>>(std: :istream& s, std::vector<T& d) {
while (!s.eof()) {
char buf[500];
s.getline(buf, sizeof(buf));
d.push_back(buf );
}
return s;
}
This is tricky, of course. But basically, as some point, you
have a << or a >with a ::stringvector as an argument. So ::
is pulled in, and the compiler finds the above functions.
>
This code compiles, but inheriting from an STL container is not my
idea...of a good idea...
So what's going on here?
There are basically 2 questions I have:
1) why does the boost/shared_ptr.hpp inclusion effect a
boost::lexical_ cast<std::strin g, std::vectordecl aration?
That I don't know. IMHO, without the inheritance, the code
should never compile.
2) How does inheriting from the std::vector class solve this problem?
Because you're now using a class declared in the global
namespace.

--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Nov 20 '07 #4
Thank you for the standard idiom:

std::string line ;
while ( std::getline( s, line ) ) {
d.push_back( line ) ;
}

It's very useful to know, and will help make a few areas of my code
more clear and STL like. My old mentor, Mr Wil Evers always taught me
to stay away from raw character pointers (char *). And now you've
shown me how - thank you. Tells you how little I still know about
STL...

You also write:
>Because you then use a class defined in the global namespace.
Which means that the global namespace is drawn into ADL.
what does ADL stand for?

C++ is IMHO the most beautiful language out there. It's my favorite
and has taught me a great deal about programming well. But these type
of compiler errors whilst using standard libraries really scare me.
The following doubts enter my mind:
1) am I using a compliant compiler?
2) does the boost library have limitations?
3) am I writing inappropriate code?

These doubts are not a good thing.

Here's the code rewritten in a more proper way (this version
compiles):

#include <boost/lexical_cast.hp p>
#include <iostream>
#include <vector>
#include <string>

namespace mytest {

//--------------------------------------------------------------
//THIS DOES NOT COMPILE (it's commented out)
//typedef std::vector<std ::stringstringv ector;

//--------------------------------------------------------------
//BUT THIS DOES COMPILE! Yikes, inheriting from STL container!
class stringvector : public std::vector<std ::string{ };

//--------------------------------------------------------------
template<class Tstd::ostream & operator<<(std: :ostream& s, const
std::vector<T& d) {
std::copy(d.beg in(), d.end(),
std::ostream_it erator<std::str ing>(s, "\n"));
return s;
}
//--------------------------------------------------------------
template<class Tstd::istream & operator>>(std: :istream& s,
std::vector<T& d) {
std::string line;
while (std::getline(s , line)) {
d.push_back(lin e);
}
return s;
}
}; // end mytest namespace

//--------------------------------------------------------------
int main (int argc, char ** argv) {

mytest::stringv ector vecstr1;
vecstr1.push_ba ck("hi");
vecstr1.push_ba ck("there");
std::string str = boost::lexical_ cast<std::strin g>(vecstr1);
std::cout << str << std::endl;

return 0;
}
My previous post included the share_ptr.hpp, however, I just
discovered that the problem can be reproduced without including this
header.

I have now modified the code slightly. This compiles:

#include <boost/lexical_cast.hp p>
#include <iostream>
#include <vector>
#include <string>

namespace mytest {

// IF I PLACE: using namespace mytest; - THIS WORKS
typedef std::vector<std ::stringstringv ector;

//--------------------------------------------------------------
template<class Tstd::ostream & operator<<(std: :ostream& s, const
std::vector<T& d) {
std::copy(d.beg in(), d.end(),
std::ostream_it erator<std::str ing>(s, "\n"));
return s;
}
//--------------------------------------------------------------
template<class Tstd::istream & operator>>(std: :istream& s,
std::vector<T& d) {
std::string line;
while (std::getline(s , line)) {
d.push_back(lin e);
}
return s;
}
}; // end mytest namespace

// THE TRICK TO GET THIS CODE TO COMPILE
using namespace mytest;

//--------------------------------------------------------------
int main (int argc, char ** argv) {

mytest::stringv ector vecstr1;
vecstr1.push_ba ck("hi");
vecstr1.push_ba ck("there");
std::string str = boost::lexical_ cast<std::strin g>(vecstr1);
std::cout << str << std::endl;

return 0;
}
However, if I remove the,

using namespace mytest;

It fails to compile. I have not tried to compile this in gc++ yet.

So, my next question is:
- why does placing the "mytest" namespace into the global namespace
solve this problem?

Nov 20 '07 #5
Once again, thanks. You have shed a lot of light on this subject.

Cheers, & ydh., (you did help)

Hans
Nov 20 '07 #6
On Nov 20, 8:45 pm, "Alf P. Steinbach" <al...@start.no wrote:
* hsmit.h...@gmai l.com:
[...]
Here's the code.
#include <boost/lexical_cast.hp p>
#include <iostream>
#include <vector>
#include <string>
//--------------------------------------------------------------
template<class T>
std::ostream & operator<<(std: :ostream& s, const std::vector<T& d) {
typedef typename std::vector<T>: :const_iterator iter;
iter it;
for (it = d.begin() ; it != d.end() ; ++it) {
s << *it;
s << "\n";
}
return s;
}
//--------------------------------------------------------------
template<class T>
std::istream & operator>>(std: :istream& s, std::vector<T& d) {
while (!s.eof()) {
char buf[500];
s.getline(buf, sizeof(buf));
d.push_back(buf );
}
return s;
}
//--------------------------------------------------------------
int main (int argc, char ** argv) {
std::vector<std ::stringvecstr1 ;
vecstr1.push_ba ck("hi");
vecstr1.push_ba ck("there");
std::string str = boost::lexical_ cast<std::strin g>(vecstr1);
std::cout << str << std::endl;
return 0;
}
This compiles quite nicely and even spits out the correct output.
This version seems to use just ordinary lookup, not
argument-dependent lookup (ADL).
That's the impression I get, but why? According to §14.6.4:

In resolving dependent names, names from the following
sources are considered:

-- Declarations that are visible at the point of
definition of the template.

-- Declarations from namespaces associated with the
types of the function arguments both from the
instantiation context (14.6.4.1) and from the
definition context.

The operator<< is obviously dependent (or?). The one he's
interested in is not visible at the point of definition of the
template (in boost/lexical_cast.hp p). And the only namespace
associated with any of the types that I can see is std::, and
the operator he's looking for isn't in that either.

There's definitely something I'm missing here, because his code
compiles with g++ 4.1.0. It's not related to the fact that his
operators are templates, because it compiles even if I modify
the code to use the concrete type std::vector<std ::string>. But
I know that g++ implements the above rule, because I've run into
cases where the code wouldn't compile because of it. So what's
different here, compared to, say:

#include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>

std::ostream&
operator<<( std::ostream& dest, std::vector< int const& src )
{
dest << '[' ;
for ( std::vector< int >::const_iterat or it = src.begin() ;
it != src.end() ;
++ it ) {
if ( it != src.begin() ) {
dest << ',' ;
}
dest << *it ;
}
dest << ']' ;
return dest ;
}

int
main()
{
std::vector< std::vector< int v ;
for ( int i = 0 ; i < 10 ; ++ i ) {
v.push_back( std::vector< int >() ) ;
for ( int j = 0 ; j < 10 ; ++ j ) {
v.back().push_b ack( 10* i + j ) ;
}
}
std::copy( v.begin(), v.end(),
std::ostream_it erator< std::vector< int >
>( std::cout, "\n" ) ) ;
return 0 ;
}

(which doesn't compile with either g++ or VC++, unless I put the
operator<< in namespace std, which is formally illegal.)
Now for the problem:
If I change the include #includes at the top to:
#include <boost/lexical_cast.hp p>
#include <boost/shared_ptr.hpp>
#include <iostream>
#include <vector>
#include <string>
I get the following compilation error (only the last few lines are
provided for clarity):
lexical_cast.hp p(150) : while compiling class template member function
'bool boost::detail:: lexical_stream< Target,Source>: :operator <<(const
Source &)'
with
[
Target=std::str ing,
Source=NewSourc e
]
lexical_cast.hp p(219) : see reference to class template instantiation
'boost::detail: :lexical_stream <Target,Source> ' being compiled
with
[
Target=std::str ing,
Source=NewSourc e
]
main.cpp(38) : see reference to function template instantiation
'Target boost::lexical_ cast<std::strin g,std::vector<_ Ty>>(const Source
&)' being compiled
with
[
Target=std::str ing,
_Ty=std::string ,
Source=std::vec tor<std::string >
]
lexical_cast.hp p(151) : error C2228: left of '.fail' must have class/
struct/union
[shared_ptr.hpp] brings into play
template<class E, class T, class Y>
std::basic_ostr eam<E, T>& operator<<(
std::basic_ostr eam<E, T& os, shared_ptr<Ycon st & p
)
{
os << p.get();
return os;
}
in namespace boost.
I don't know why it's critical that it's in namespace boost (possibly
because the stream used in lexical cast is of a class defined in
namespace boost, engaging ADL in boost),
In the version of Boost I have here (1.33.0), lexical_cast uses
a boost::detail:: lexical_stream< >, which in turn uses an
std::basic_stri ngstream<>. Neither of which are in namespace
boost!

In the end, boost::lexical_ cast<std::strin g>(vecstr1), in his
code, must find his template operator<<. According to my
reading of the standard, it shouldn't, since it should only do
the look-up in the definition context, and in associated
namespaces (std, boost and boost::detail) at the point of
instantiation. Since his operator isn't available at the point
of definition, and isn't in one of the associated namespaces, it
shouldn't be found.

So what am I overlooking. Why is the behavior in his cas
different than that in my sample program, above?
but anyway, with this definition in boost you get the above
error, and with same definition in global namespace it
compiles OK. So it looks like it makes the operator<< call in
lexical_cast ambigious, via ADL. Which is difficult to
understand because SFINAE should throw it out of
consideration?
But even though I can't give you exact answer (is there some
language lawyer present?) I think you get the general drift.
Well, I'd like to hear too from someone who knows how name
lookup in templates really works.

--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Nov 21 '07 #7

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

Similar topics

2
4379
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two files containing some templates: adjacency_list.hpp and mem_fn.hpp can not compile. Does anyone have any solutions?
4
3150
by: Philippe Guglielmetti | last post by:
I just ported old (VC6) working code to VC7.1 and have trouble with something like: class A; // forward typedef boost::smart_ptr<A> Aptr; class B{ Aptr a; virtual ~B(); // implemented after A has been defined };
6
4031
by: Toby Bradshaw | last post by:
Hi, Consider the following: class A { public: virtual bool foo() = 0; };
1
2497
by: Max Wilson | last post by:
Hi, Has anyone here built Boost.Python modules under MinGW? I'm trying to build the Boost.Python tutorial under MinGW and getting an error that says it depends on MSVC, which puzzles me because Boost built using g++. Here's some of my output: Student@YGGDRASIL /c/Boost/libs/python/example/tutorial $ bjam -sTOOLS=mingw -d+2 ....found 1508 targets...
3
33108
by: salunkerahul | last post by:
Hello All, I have some static libraries generated on MSVC 2005 express edition and I have to use them along with static libraries created with MSVC 2003 and create an application on MSVC2003. example.lib - generated on MSVC2005 All other libs - generated on MSVC2003 I have attached the compiler options as well as the error log along. Any tips/suggestions will be of great help. Thanks in Advance
1
2037
by: Lawrence Spector | last post by:
Base base; BaseWrap& baseWrap(reinterpret_cast<BaseWrap&>(base)); boost::python::object obj(boost::shared_ptr<BaseWrap>(&baseWrap)); // Compile error Results in this error: 1>PythonPassReference.obj : error LNK2019: unresolved external symbol "class boost::python::api::object __cdecl obj(class boost::shared_ptr<struct BaseWrap&)" (?obj@@YA?
3
3400
by: hsmit.home | last post by:
I spent way too much time on this and I must say, I was a little disgruntled with what has been posted on all the various Xalan C mailing lists. Everyone says there's a solution, but give next to no detail on how to achieve this "allusive" solution. Well I spent the better part of a day finally figuring it out the hard way, trial and error. Here's a list of steps to compile the Xalan C version 1.10.0 on Microsofts Visual C++ 2005...
5
1543
by: number774 | last post by:
I've used Boost for this example; in fact we have our own pointer class, for historic reasons. #include "boost\shared_ptr.hpp" // A heirarchy of classes class G1 {}; class G2: public G1 {}; // A method which takes a shared pointer to the base class
2
4139
by: BruceWho | last post by:
I downloaded boost1.35.0 and built it with following command: bjam --toolset=msvc-7.1 --variant=release --threading=multi -- link=shared --with-system stage and it failed to compile, error message is: E:\software\development\boost_1_35_0\boost_1_35_0>bjam -- toolset=msvc-7.1 --variant=release --threading=multi --link=shared --
0
9456
marktang
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...
0
9275
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,...
0
10040
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9846
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,...
0
9713
tracyyun
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...
0
6534
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();...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3806
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
2
3359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.