Search:
Type: Posts; User: mce
Search:
Search took 1.85 seconds.
-
Hi Guru
I am updating my post, so my codes can be better understood; This codes is meant to demonstrate the problem i am facing, although it doesn't do anything much.
I run VC++ 2019 with...
-
September 21st, 2016, 04:18 AM
I am defining a macro of map with string and enum
i keep getting error "this declaration has no storage class", what am i missing here??
enum MY_ENUM
{
OFF = 0,
-
September 7th, 2016, 02:35 AM
<CODE>
#define DBANK(m,n)\
bool GetDin##n()const{return (_din##m >> INPUT##nA_ST) & 1;}
class Test
{
Test();
const uint8_t VALVE2A_ST = 0;
uint8_t _din2;
-
September 7th, 2016, 01:55 AM
I need to write a repetitive function name in my class such as below:
class Test
{
public:
Test();
-
September 6th, 2016, 02:05 AM
Hi
I have a byte array in the form
std::vector<unsigned char> byteArray;
-
September 1st, 2016, 08:18 AM
I am using boost ASIO like below to send udp packet to an IP and port, continuously;
socket_.async_send_to(boost::asio::buffer(*message), remote_endpoint_,
...
-
July 21st, 2016, 12:07 AM
Hi
I have an array, std::vector<unsigned char> and i want to read and write this array, with integer or another unsigned char array. I think i need to be able to construct a binary stream from...
-
August 5th, 2015, 10:07 PM
Hi i have a void smart pointer as private member in my header file and inside my cpp i want to cast the smart pointer to another object,
//in test.h
private:
shared_ptr<void> _data;
-
July 21st, 2015, 04:04 AM
Hi i got an error while i am building a dll library regarding the above:
class DLL_EXPORT MyTest: public boost::shared_ptr<SomeTest>
{
};
-
July 16th, 2015, 03:34 AM
hi,
I am seeing a declaration something like this,
class MyTest: public boost::shared_ptr<SomeTest>
{
};
-
June 10th, 2015, 12:57 AM
Hi AlexF,
But i have tried to use the search tool Edit/Find in my Files... in visual studio in my solutions for the library name and i can't find any. how come?
-
June 10th, 2015, 12:26 AM
Hi
I am using visual studio 2012. When i compiled a third party solutions, i am facing a linkage error saying "cannot open file libxxx-0.2.4.lib" ......
Now i checked the settings, project...
-
Hi
I want to be able to define a templatised member variable with inheritable typename such as following..
what i want is to be able to do something as the highlighted in bold.
...
-
February 9th, 2015, 03:56 AM
yeah, it doesn't compile as well, it gives error "more than one conversion function from std::atomic<Foo*> to bool applies ...."
I think the goal here is how to check for null ptr?
-
February 9th, 2015, 01:49 AM
While trying to compile some codes from
http://ideone.com/olvK13
i encounter some compiler error mentioned which i am not able to solve.
class Foo
{
public:
-
October 7th, 2014, 09:00 PM
Has anyone use QtSerialPort on Windows 7 before successfully?
I can read my serial com data with serial port diagnostic tools; but i can't get it through my codes.
my code snippets below:
The data...
-
August 5th, 2014, 02:43 AM
sorry, i don know why.........
I was stuck
How do i create the Device Object with QScopedPointer as parameter, i mean it can't be like this: The scoped pointer is not copyable.
Device...
-
August 5th, 2014, 02:01 AM
If i have the following
class Test
{
..
Test(const Test&)
-
August 5th, 2014, 12:51 AM
What smart pointer to pass in the ctor so that the member QScopedPointer<Data> can take over ownership? I mean do you mind to show me how to correctly release the ownership to member class _data in...
-
August 4th, 2014, 10:00 PM
Hi
I have class that have member variables which is also a class object that contains member variables which is also a class... so on and so on... like this
class Device
{
public:
-
August 4th, 2014, 08:35 PM
I just want to confirm if this is a good way;
In the below example, there is no need to pass smart pointer to Test class, as there is no need for Test object to manage any record. There can be...
-
August 1st, 2014, 03:12 AM
class VAR_EXPORT VAR
{
public:
};
VAR_EXPORT QDataStream &operator>>(QDataStream &p_stream, QSharedPointer<Data>& p_data)
{
-
July 30th, 2014, 09:24 PM
I have found a situation where i have to use QSharedPointer<Test>& without the "const" in its parameter., where in this particular case, the function pass a null parameter in... letting the callee...
-
July 30th, 2014, 03:06 AM
What do you think of the following implementation?
class Data
{
// ...
-
July 30th, 2014, 02:37 AM
hi
I just want to know if there is any real difference between the two below, if yes, when would i use one over the other? I would thought the "&" is pointless in below function, as far as the...
|
Click Here to Expand Forum to Full Width
|