any one help me that in this matter. my program can not run. code to bind the socket which i write is:
char sendbuf[5]={"\0"};
unsigned int iMsgCode=1;
unsigned int iServiceID=3;
short int iAliveStatus=1;
memcpy(sendbuf,&iMsgCode,2);
memcpy(sendbuf+2,&iServiceID,2);
memcpy(sendbuf+4,&iAliveStatus,1);
char broadcast = '1';
int numbyte...
I have a class Derived which is derived from class Base. In Derived's function, I can access protected members of Base. E.g., I can do this.
class Base
{
protected:
int i;
}
class Derived : class Base
{
void process()
{
i = 5;
}
}
My question is, is it possible to enforce the use of scope resolution operator w...
Hello All,
How do I parse the following in TinyXML:
<multi_path literal="not_measured"/>
I am able to easily parse the below line:
<hello>1234</hello>
The problem is that the first statement is not getting parsed the normal way. Please suggest how to go about this.
...
I've run into a funny problem using OpenMP v2 under MSVC 9 SP1. when calling omp_set_num_threads from the main thread of execution then using omp_get_num_threads to check the amount set, all works well and checks out.
However, in an GUI app, I call the same thing, but its own thread(created with CreateThread), to prevent the UI from be...
Currently I am studying Standard Template Library (STL).
In this program I am storing some long values in Associative Container and then sorting them according to unit's place (according to the number in unit's place).
Code :
#include <iostream>
#include <set>
#include <functional>
using namespace std;
class UnitLess
{
public:
...
Hello all,
Consider the following C++ program
struct str
{
int mem;
str()
try
:mem(0)
{
throw 0;
}
catch(...)
{
}
};
int main()
{
str inst;
}
The catch block works, i.e. the control reaches it, and then the program crashes. I can't
understand what...
Hi everybody!
It's time for another 'how do i do this in c++ without loosing my grip'-question!
This time:
Considering the following code taken from cplusplus.com:
template<class InputIterator, class OutputIterator>
OutputIterator copy ( InputIterator first, InputIterator last, OutputIterator result )
{
while (first!=last) *resul...
Can you please point me to library(ies) for face detection (NO RECOGNITION NEEDED!)?
Any good-working libraries except OpenCV(!!!).
Preferably free of charge - open source is not required.
...
Possible Duplicate:
ld linker question: the --whole-archive option
So, What does this linker flag do?
--whole-archive
And has anyone had trouble with this? If so how to solve it? Thanks for any help.
...
What does the warning "alignment of a member was sensitive to packing" mean in C++? I'm using Visual Studio 2005.
How do I go about removing these warnings? I don't want to disable them btw.
...
Possible Duplicate:
Linker driving me mad! Please help.
Hi,
I have used the --whole-archive flag and it does not have the desired effects. What can I do? Who should I ask?
More detailed description here.
Please help. Thanks.
...
I have a ATLCOM Shell Extension which adds Right Click Extension to Windows Explorer. How Can I pass a message from my DLL to another MFC application.
To Sumarize, I want to pass a Message from DLL to MFC application.
...
Hi,
I'm doing a project that involves solving some NP-hard graph problems. Specifically triangulation of Bayesian networks...
Anyway, I'm using std::bitset for creating an adjacency matrix and this is very nice... But I would like to scan the bitset using a bsf instruction. E.g. not using a while loop.
Anybody know if this is possible...
Seldom during working on large scale projects, suddenly you are moved on to a project which is already in maintainance phase.You end up with having a huge code C/C++ code base on your hands, with not much doccumentation about the design.The last person who could give you some knowledge transfer about the code has left the company already...
Hi,
This is a new question after my long rant. The problem here is, I have a global vector<Base*> vObjs in my main application and I got Derived objs in each static lib linked to the application. If I specify the vObjs to have an init_priority of 101 and each obj in static libs to have say... 1000, is it guaranteed that vObjs will ...
In the windows API, how do I implement a Progressive disclosure control?
...
I am using C++ and i want to push strings in stack like push int in stacks.
For Example
3."stackoverflow"
2."is"
1."Best"
0."site"
at every index of stack I want to push a string. How can I do this?
...
Ok I'm trying to get my head around g++ and librarys. I have a few files that I've compiled into a library
from the make file
$(CC) -fPIC -c -o $@ $< -O2 -D__PS2
then
$(CC) -shared -o $@ $(OBJ_FILES) -O2 -D__PS2
this compiles fine.
from the program that uses the lib
$(CC) -c -o $@ $< -I./
compiles fine
$(CC) -o $@ $(OBJ_FILES...
Hey i am new bie in winCE and working on 6.0 version, is there anyway to change the look and feel of dialog title bar in wince , i have tried with WM_NCPAINT message but it is not there in wince....
So is that any other way to do the same...??
Thanks,
Mukesh
...
Is there any Code How to take Arabic Input from user in C++ ?
...