|
In debug mode,hWnd1 isn't NULL,but the hWnd2 is failed.
|
|
|
|
|
Ok its good to know.
But are you sure the class of your MessageBox is really "#32770", cause if I
use spy++ on a MessageBox the class name is "#32770 (Dialogfeld)" (german app).
At last try to use FindWindowExA (the ANSI one), because I also developed an
app that has to find some windows and clicks it, but it only worked with the
ANSI version although the apps were UNICODE apps.
Greetings
Covean
|
|
|
|
|
I'm sorry, in my code ,the Class Name write error.
thank you very much !
Best Regurads !
|
|
|
|
|
hi all..
Is it possible to add bullets in each line of an editbox which is using CEdit class for display of text..
thanks in advance.. hav a gr8 day
|
|
|
|
|
May be a richeditcontrol will help you. Read this[^]
|
|
|
|
|
Hi Madhu..
Thanku so much for the quick reply...
i tried out the CAutoRichEditCtrl.. its workin perfectly...
i have one more doubt.. if i change my editbox to RichEditbox will that effect the CEdit variable.. wid that variable im doing a lot of stuff. saving ,opening of file, font selection etc...
plz let me know...
|
|
|
|
|
sonualex wrote: if i change my editbox to RichEditbox will that effect the CEdit variable..
I think yes, but please have a try.
|
|
|
|
|
help, i would like to know what was ARRAY is!!
please clarify!! thank you
|
|
|
|
|
Please go through this[^]
|
|
|
|
|
thank you so much!!!!
do you know some site for array using c language, not c++??
|
|
|
|
|
cool_joy2 wrote: do you know some site for array using c language, not c++??
Am not sure whether this may ruin you ; please click do a click here[^]
As suggested by the other posts, please consider reading some basic article/books in C or C++
|
|
|
|
|
no.. it doesn't ruin me!!
what you try to figure out is to search it in google right???
yah!! i know how to do it!!!
what i'm just asking for, whether you know some site which is in C not in C++ language discussion!!!
get it????
|
|
|
|
|
Please read more books on basics of programming as well as C.
Please do that first.
Величие не Бога может быть недооценена.
|
|
|
|
|
cool_joy2 wrote: help, i would like to know what was ARRAY is!!
Can you not use a dictionary? It's not even a programming-specific term.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi,
Can I pass a string with some %s in it as first parameter in printf/sprintf.
something like bellow
char str[16]="my name is %s";
char name[8]="xman";
char res[24];
sprintf(res,str,xman);
printf("%s",res);
can we achieve this?
Saadhinchaali
|
|
|
|
|
|
thank you David. It solved my problem
Saadhinchaali
|
|
|
|
|
Don't have access to a PC right now ?
|
|
|
|
|
of course
You know some birds are not meant to be caged, their feathers are just too bright.
|
|
|
|
|
sprintf(res,str,xman);
here xman is undeclared identifier..
|
|
|
|
|
suthakar56 wrote: here xman is undeclared identifier..
What do you expect? You did not declare that variable.
|
|
|
|
|
Tritva wrote: can we achieve this?
Have you tried?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
In my applcation,i have created two listbox in the view class.But initially only one listbox shoud be displayed,by pressing the button in menu..both first and second listbox will bedisplayed one below the another.
I do not know how to hide the listbox initailly.
int CAlarmView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
pAlrmListBox->Create(WS_CHILD|WS_VISIBLE|LBS_STANDARD|WS_VSCROLL|LBS_OWNERDRAWVARIABLE , CRect(0,0,600,400), this, ID_ALARMLIST);
.
.
pAlrmFilterBox->Create(WS_CHILD|WS_VISIBLE|LBS_STANDARD|WS_VSCROLL|LBS_OWNERDRAWVARIABLE , CRect(0,0,600,200), this, ID_ALARMLIST);
}
Anu
|
|
|
|
|
Remove WS_VISIBLE flag from Create(...). Use ShowWindow() API to make the listbox visible later.
|
|
|
|
|
bool Message::unpack() {
struct tuple{
qint32 op;
union {
qint32 val;
quint32 uval;
};
};
changeByteOrder();
//no data?
if (data() == NULL)
return false;
//invalid header?
if (*(qint32 *)data() != VALID_DGM)
return false;
//<b>skip header--- here is my problem i need the source ip </b>
<b> tuple *pt = (tuple *)(data() + 4); </b>
//reset active sensors
actSens = 0;
//read all sent values
for (int i = 4; i < size(); i+=sizeof(tuple)) {
switch (pt->op) {
case OP_TSLEEP:
tsleep = pt->uval;
break;
case OP_TRECV:
trecv = pt->uval;
break;
case OP_ID:
id = pt->uval;
break;
case OP_TEMP:
temp = pt->uval;
actSens |= SENSOR_LINE_TEMP;
break;
case OP_AI0:
ai0 = pt->val;
actSens |= SENSOR_LINE_A0;
break;
case OP_AI1:
ai1 = pt->val;
actSens |= SENSOR_LINE_A1;
break;
case OP_AI2:
ai2 = pt->val;
actSens |= SENSOR_LINE_A2;
break;
case OP_DIO0:
dio0 = pt->uval;
actSens |= SENSOR_LINE_DIO0;
break;
case OP_DIO1:
dio1 = pt->uval;
actSens |= SENSOR_LINE_DIO1;
break;
case OP_DIO2:
dio2 = pt->uval;
actSens |= SENSOR_LINE_DIO2;
break;
case OP_DIO3:
dio3 = pt->uval;
actSens |= SENSOR_LINE_DIO3;
break;
case OP_CURRENT:
current = pt->uval;
actSens |= SENSOR_LINE_CURRENT;
break;
case OP_VOLTAGE:
voltage = pt->uval;
actSens |= SENSOR_LINE_VOLTAGE;
break;
case OP_VBATT:
vbatt = pt->uval;
actSens |= SENSOR_LINE_VBATT;
break;
case OP_RSSI:
rssi = pt->val;
actSens |= SENSOR_LINE_RSSI;
break;
case OP_LAST_ACK:
lastAck = pt->uval;
break;
default:
break;
//cout << "UNKNOWN VALUE" << endl;
}
pt++;
}
return true;
}
i would like to not skip header so i can get source ip
|
|
|
|