80 |
[qt][android] how to run app in command line
|
gilgil | 79015 | | Nov 02, 2014 |
If project name is "untitied", you can run android application in the following command. adb shell am start -n org.qtproject.exampl-e.untitled/org.qtpro-ject.qt5.android.bin-dings.QtActivity
|
79 |
Sound Processing Library(soundtouch)
|
gilgil | 78998 | | Jun 09, 2011 |
http://www.surina.ne-t/soundtouch
|
78 |
Difference between exit() and _exit()
|
gilgil | 78984 | | Mar 15, 2010 |
[Question]Guess the result of the following codes. class Object
{
public:
string
name;
Object(const string name)
{
this->name = name;
cout
<< "Object::Object "
<< name << endl;
}
virtual ~Object()
{...
|
77 |
Event for boost
|
gilgil | 78955 | | Sep 23, 2011 |
[Header] #include <boost/interprocess/s-ync/scoped_lock.hpp&-gt;
#include <boost/thread/conditi-on.hpp>
#include <boost/thread/mutex.h-pp>
// ----------------------------------------------------------------------------
// Event
// ---------------...
|
76 |
qt-everywhere-4.8.4-configure
1
|
gilgil | 78952 | | May 03, 2013 |
Unable to detect the platform from environment. Use -platform command lineargument or set the QMAKESPEC environment variable and run configure again See the README file for a list of supported op...
|
75 |
[linux] pipe_test
|
gilgil | 78878 | | Dec 23, 2014 |
pipe_test.tar.gz
|
74 |
[network] how to change ip for web proxy
|
gilgil | 78439 | | Dec 02, 2016 |
sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination 10.1.1.2:8080 sudo iptables -t nat -A OUTPUT -p tcp --dport 443 -j DNAT --to-destination 10.1.1.2:4433
|
73 |
Be careful when you receive return value as reference or pointer type.
|
gilgil | 78260 | | Oct 24, 2011 |
[Source] MyInt foo()
{
MyInt a(1000);
return a;
}
MyInt& ref_foo()
{
MyInt a(2000);
return a;
}
MyInt* ptr_foo()
{
MyInt a(3000);
return &a;
}
void foo_test()
{
printf("\n-------- foo test --------\n");
{
MyInt b ...
|
72 |
[c++] cpp_virtual_function_and_assembly
|
gilgil | 78223 | | Jan 19, 2016 |
[2016.01.19] cpp_virtual_function-_and_assembly_201601-19.tar.gz
|
71 |
|
Running specific test units selected by their name
1
|
gilgil | 78167 | | Sep 02, 2011 |
> The Unit Test Framework > User's guide > Runtime configuration > Run by name Running specific test units selected by their name In regular circumstances test module execution initiates testing of a...
|
70 |
[c++] Definitions of destructor
|
gilgil | 78000 | | Jan 16, 2016 |
from : http://mentorembedde-d.github.io/cxx-abi/abi.html base object destructor of a class T A function that runs the destructors for non-static data members of T and non-virtual direct base classes of T. c...
|
69 |
An efficient way to pass a big-sized string into a function.
|
gilgil | 77702 | | May 06, 2010 |
Suppose that there exists a big-sized string, and I would pass this string variable into a specific function. What will be the best way for speed? [Test] 1. Make 10,000,000 byte length string varia...
|
68 |
C++ examples (example source code)
|
gilgil | 77643 | | May 02, 2010 |
http://www.java2s.co-m/Code/Cpp/CatalogCp-p.htm
|
67 |
How to demangle class name using boost
2
|
gilgil | 77121 | | Aug 31, 2011 |
[Source] #include <boost/units/detail/u-tility.hpp>
#include <iostream>
#include <typeinfo>
namespace bud = boost::units::detail-;
using namespace std;
namespace ns
{
class MyClass {};
struct MyStruct {};
}
void test()
{
cout << "i...
|
66 |
Difference between MSVC and CBuilder when writing static data area
|
gilgil | 76930 | | Mar 26, 2010 |
Guess the result of following code. void test1()
{
char str[] = "hello"; // string copy.
printf("%s\n", str);
*str = 'H';
// copied data would be changed.
}
void test2()
{
char* str = "world"; ...
|
65 |
[Qt] How to create a library with Qt and use it in an application
|
gilgil | 76811 | | Feb 18, 2014 |
from : http://qt-project.org/wiki/How-_to_create_a_library-_with_Qt_and_use_it_-in_an_application How to create a library with Qt and use it in an applicationIntroduct-ionThis tutorial illustrates different approac...
|
64 |
How to get real public IP on VPN host
|
gilgil | 76620 | | Mar 27, 2010 |
|
63 |
[qt] How to add debug info in a project.
|
gilgil | 76185 | | Aug 03, 2016 |
It add "-g" option in compiling a project. CONFIG += force_debug_info
|
62 |
How to use property code in C++
|
gilgil | 76115 | | Apr 05, 2012 |
To enhahce code readibility, C++ programmers sometime prefer property code(getter, setter) to access member function. Here is a sample code. class Person
{
protected:
int m_age;
public:
__declspec(property (get...
|
61 |
Object parameter and Object return
|
gilgil | 76109 | | Sep 13, 2011 |
[Class] class String
{
public:
//
// constructor
//
String() { cout << this << "::constructor() "; }
String(char* p) { cout << this << "::constructor(char*)- "; }
String(const char* p) { cout << this << "::constr...
|