|
Is m_hWnd valid?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <
|
|
|
|
|
hello guys... im doing TAPI project as my final year project. I am stuck in it. Well i've been looking for TAPI forums but could't find any. Where can I find these forums where I can post TAPI related questions?? thnx
|
|
|
|
|
First try on MSDN([^]), if not able to solve then ask here. That's what i prefer you do.
Величие не Бога может быть недооценена.
|
|
|
|
|
Hi all,
i m using a multiline edit box and use enter for new line .
i want to enter only 10 lines in edit box and each line only have max 320 char.
here SetLimitText available but its set the total length of edit box.
please help for this.
thank in advance.
|
|
|
|
|
Can't you do this with 10 single line edit boxes placed in a column all limited to 320 characters?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <
|
|
|
|
|
Retrieve the line length using LineLength [^] and set the maximum character length of 10 lines, i.e.
CEdit cEdit;
// get the Edit control from the dialog.
cEdit.SetLimitText( 10* cEdit.LineLength );
Величие не Бога может быть недооценена.
|
|
|
|
|
how there may each line have diggrent number of character.
|
|
|
|
|
hi,
i have modified my code in such a way that the value for tmpVALUE when displayed,it shows eg'22.00000000.How do i get rid of the zero(s) in order for it to be a whole number. Here's my code.
void loop()
{
float tmpVALUE=0; char dataToSend[100];
if(!BT.createConnection("0003190D102D","02"))
{
USB.println("");
USB.print("--- CONNECTION -- MTU: ");
USB.print(BT.connection_mtu[0],BYTE);
USB.print(BT.connection_mtu[1],BYTE);
USB.println(BT.connection_mtu[2],BYTE);
}
else USB.println("Connection failed");
tmpVALUE = SensorEvent.readValue(SENS_SOCKET5);
if(tmpVALUE>0.5)
{
tmpVALUE=((int)((tmpVALUE-0.5)/0.01)); }
else
{
tmpVALUE=((int)tmpVALUE*0.01);
}
delay(100);
XBee.print("Temperature: ");
XBee.println(tmpVALUE);
delay(5000);
sprintf(dataToSend,"%.0f",tmpVALUE);
if(!BT.sendData(dataToSend)) USB.println("Data sent OK");
else USB.println("Error while sending data");
|
|
|
|
|
If you want to see the output as an integer, why don't you store the result in an integer and print it as an integer ?
int printValue = 0;
if(tmpVALUE>0.5)
{
printValue=(int)((tmpVALUE-0.5)/0.01);
}
else
{
printValue=(int)(tmpVALUE*0.01);
}
...
sprintf(dataToSend,"%d",printValue);
|
|
|
|
|
hi,thanks for replying.I already tried that method but the output display shows 0 on the receiver side.However,i managed to convert the decimal to whole number before sending the value out.Thanks for the help
|
|
|
|
|
I have built a program utilizing ADO to pull data from an Access Database. I am having problems taking this data which is formated as a _variant_t data type to a floating point array in C++. The following is the initial format of the array and the process that is attempting to populate this array. Can someone help me with a good source to learn about these conversions? Secondly, can someone help me with the proper code for the array so that it can be populated? At the bottom is the error message I am getting.
const int arraySize = 5000;
_variant_t OpenArr[arraySize];
ADODB::_RecordsetPtr recOpen = NULL;
while(!recOpen->EOFile)
{
record++;
Open = pOpenField->Value;
Open.ChangeType(VT_R4);
printf("Data_Open: %4.5f\n", Open.fltVal);
printf("Record: %d\n", record);
OpenArr[record]=recOpen->GetRows(-1,0);
recOpen->MoveNext( );
}
Data_Open: 1.41283
Record: 1
Error
Code = 800a0d5d
Code meaning = U
Source = ADODB.Recordset
Description = Application uses a value of the wrong type for the current operation.
|
|
|
|
|
Have you Googled for 800a0d5d?
Mike Certini wrote: OpenArr[record]=recOpen->GetRows(-1,0);
Have you tried other arguments to GetRows() ? I've never used it, but -1 looks odd as the number of rows to retrieve.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
|
My bad. I was using a slightly aged version of MSDN.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi Sorry for the re-post ->[^]
I want to execute a service with the help of executable after installation of setup using Custom actions. Can anyone have solution how to do this ??
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Hi all,
i am working on an MFC application, just a small dialog to take password input from user...
once the password has been entered in the edit box, if i click ENTER(IN KEYBORAD) a new character is appended to the password..
if i click manually on the OK button in the dialog things work properly.....
So could i get some help on how to solve this issue so that once the user types the password and hits ENTER in KEYBORAD, the action is performed which should happen on OK button clicked on the dialog...
Thanks...
|
|
|
|
|
did you set multi-line property to edit box? that can be one reason.
|
|
|
|
|
Check out the ES_WANTRETURN and ES_MULTILINE styles.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Guys,
I am very naive in Programming, I have a .exe file with me, now i want to build a setup component and install in system, how to update the .exe file in Control panel(Add or Remove compnent). And the same when i want to unistall back from control panel items, what are the thing that i need to do... can some body help me out.. Please..
Thanks in Advance
|
|
|
|
|
Use an installation package like InstallShield.
It supports upgrade, removal etc.
|
|
|
|
|
The latest version of our software suddenly started running slowly and being generally erratic.
We traced it to our dongle heartbeat timer routine. Though we set it to 90s, somewhere else the same timer ID seems to be set to a few milliseconds.
We have several third party components. Is there anyway to find out the source of the rogue SetTimer?
Edit to clarify....
We still get the 'fake' OnTimer message even if we disable all of our own timers...
|
|
|
|
|
Why don't you create unique IDs for you timer and do processing only after checking the ID?
|
|
|
|
|
We do exactly that - but one of our third party components was using the same ID. The ID is just an Int so you can't guarantee it won't be used by someone else.
Still, I figured out what was causing it and decided the easiest way to fix it is to change our timer IDs.
|
|
|
|
|
But timers can be made based on a Window handle.
I'm guessing you're not doing that.
|
|
|
|
|
We are - but peculiar to the way we implement stuff we 'share' our main frame hWnd with a third party CAD engine, and thus ran into a conflict...
|
|
|
|