Description:
The object-oriented C++ language.
|
|
|
How to pass user input from gtk to a function ?
|
| |
i want to pass a user input from gtk input box to a function ... i made code below but i had segmentation errors ...so after looking it up i discovred that the line -> "g_signal_connect(but,"clicked ",G_CALLBACK(encode(tx1,tx2)), NULL);"
doesnt make a sense so can you help me do it .
this is program source =>... more »
|
|
String building
|
| |
I have this class:
class failure : public ::std::exception {
::std::string whatStr;
public:
explicit failure (::std::string what_) : whatStr(::std::move(what_))
{}
~failure () throw()
{}
char const* what () const throw()
{ return whatStr.c_str(); }
template <class T>... more »
|
|
Shared value for a member in all instances of a class?
|
| |
Hi again,
I've some classes with members that need to have a pointer to a GUI control.
However, the same member will have the same pointer in all instances of the class. I mean, member 'm_Temperature' from class 'CTown' will have the same value for its GUI control pointer in all instances of the class 'CTown'.... more »
|
|
Parsing response coming from server
|
| |
I am getting below response from server -
Main stream options:
EncType1=H.264
Resolution1=704*576
KeyInterval1=50
FrameRate1=25
BitflowType1=VBR
NormalBitrate1=2048
Now I need to parse the parameter and its value, I have list of parameter in client, I just need the value of the parameter.... more »
|
|
address of array at index
|
| |
hello group,
i use the function std::inner_product(&arya[0], &arya[4], &aryb[0], 0.0f) with the c-style and/or c++11-style array. does the compiler set the addresses at compile time or is there a runtime overhead to get the addresses of array indices?
thanks & cheers, chris
|
|
can't convert from type A* to type B*
|
| |
I need to change DMapEntry::pData from a char* to a class DMapData that contains the original pointer but still be able to refer to &pData[offset] in DMapEntry without changing it. Is this possible?
...
class DMapData {
char* pData;
public:
char* operator->() { return pData; }
char operator[](size_t offset) { return pData[offset]; }... more »
|
|
Advice on an approach to a problem
|
| |
I make great use of a 'C' program written by someone else. It works invisibly but creates files named by itself. I would like to grant the user the option to create their own filenames and the paths for the created files. My question is in which environment to tackle this: C or C++?
I have not programmed for some time but keep up to date as best I can. I... more »
|
|
|