Skip to main content
Commonmark migration
Source Link

###First problem

First problem

Instead of using:

v_ports.push_back = "Com1"; v_ports.push_back = "Com4"; 

you should use:

v_ports.push_back("Com1"); v_ports.push_back("Com4"); 

because std::vector<T>::push_back is a function.

###Second problem

Second problem

The _T macro is supposed to be used on literals:

Use the _T macro to conditionally code literal strings to be portable to Unicode.

It cannot be used in expressions like _T(v_ports[i]).

To convert a string to unicode please see:

###First problem

Instead of using:

v_ports.push_back = "Com1"; v_ports.push_back = "Com4"; 

you should use:

v_ports.push_back("Com1"); v_ports.push_back("Com4"); 

because std::vector<T>::push_back is a function.

###Second problem

The _T macro is supposed to be used on literals:

Use the _T macro to conditionally code literal strings to be portable to Unicode.

It cannot be used in expressions like _T(v_ports[i]).

To convert a string to unicode please see:

First problem

Instead of using:

v_ports.push_back = "Com1"; v_ports.push_back = "Com4"; 

you should use:

v_ports.push_back("Com1"); v_ports.push_back("Com4"); 

because std::vector<T>::push_back is a function.

Second problem

The _T macro is supposed to be used on literals:

Use the _T macro to conditionally code literal strings to be portable to Unicode.

It cannot be used in expressions like _T(v_ports[i]).

To convert a string to unicode please see:

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

###First problem

Instead of using:

v_ports.push_back = "Com1"; v_ports.push_back = "Com4"; 

you should use:

v_ports.push_back("Com1"); v_ports.push_back("Com4"); 

because std::vector<T>::push_back is a function.

###Second problem

The _T macro is supposed to be used on literals:

Use the _T macro to conditionally code literal strings to be portable to Unicode.

It cannot be used in expressions like _T(v_ports[i]).

To convert a string to unicode please see:

###First problem

Instead of using:

v_ports.push_back = "Com1"; v_ports.push_back = "Com4"; 

you should use:

v_ports.push_back("Com1"); v_ports.push_back("Com4"); 

because std::vector<T>::push_back is a function.

###Second problem

The _T macro is supposed to be used on literals:

Use the _T macro to conditionally code literal strings to be portable to Unicode.

It cannot be used in expressions like _T(v_ports[i]).

To convert a string to unicode please see:

###First problem

Instead of using:

v_ports.push_back = "Com1"; v_ports.push_back = "Com4"; 

you should use:

v_ports.push_back("Com1"); v_ports.push_back("Com4"); 

because std::vector<T>::push_back is a function.

###Second problem

The _T macro is supposed to be used on literals:

Use the _T macro to conditionally code literal strings to be portable to Unicode.

It cannot be used in expressions like _T(v_ports[i]).

To convert a string to unicode please see:

Source Link
sh03
  • 76.5k
  • 39
  • 177
  • 282

###First problem

Instead of using:

v_ports.push_back = "Com1"; v_ports.push_back = "Com4"; 

you should use:

v_ports.push_back("Com1"); v_ports.push_back("Com4"); 

because std::vector<T>::push_back is a function.

###Second problem

The _T macro is supposed to be used on literals:

Use the _T macro to conditionally code literal strings to be portable to Unicode.

It cannot be used in expressions like _T(v_ports[i]).

To convert a string to unicode please see: