|
www.dictionary.com
If you're using poxy DDE you can reset all your variables and call UpdateData(FALSE);
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
|
|
|
|
DDE? Or DDX?
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
I toyed with the two, trying to remember which is which. I changed it twice, looks like I should have changed it once.,
Whatever it's called, it's useless.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
|
|
|
|
Christian Graus wrote:
Whatever it's called, it's useless.
Why is it useless ?
What don't you like about it ?
|
|
|
|
|
CG doesn't like things which don't belong to STL
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
Bwhahahaha - excellent point
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
|
|
|
|
The data validation rules are obtrusive and annoying. I always roll my own, because otherwise the user gets a million 'please enter a number dialogs in inappropriate times - for example if I empty the dialog I'll get one before I type in a new number.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
|
|
|
|
being a beginner at this im not sure what DDE or DDx is
all i want is to reset everyting in my dilog from presing one RESET button.
I cant get the code to work.
|
|
|
|
|
DDE is Dynamic Data Exchange and it's irrelevant for this discussion.
DDX is Dialog Data Exchange and it's a MFC way of moving data between member variables of your dialog class and dialog controls.
Are you using MFC?
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
yes im using Microsoft Visual c++
|
|
|
|
|
mork wrote:
yes im using Microsoft Visual c++
It doesn't necessarily mean that you're using MFC. But let's assume that this is the case. You need to use ClassWizard. On its second tab you can add member variables to your dialog class - each element you want to be cleared should be associated with variable. In your 'reset' handler you should reset the variables to appropriate initial values and call UpdateData(FALSE).
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
Call UpdateData(false) from the handler for your [Reset All] button, BUT DO NOT call UpdateData(...) elsewhere in the dialog class
Nish
One Nish is trouble enough.
Imagine 16 of me, dancing wild...
:jig::jig::jig::jig:
:jig::jig::jig::jig:
:jig::jig::jig::jig:
:jig::jig::jig::jig:
|
|
|
|
|
I want to draw a rect, and then earse it, :
/////////////////////////////////////////////////
CDC* pDC = GetDC();
pDC->SetROP2( R2_NOTXORPEN );
pDC->SetTextColor( RGB(0, 0, 0) );
pDC->TextOut( rect.left + 10, rect.top+50, "hello" );
pDC->MoveTo( CPoint( rect.left, rect.top ) );
pDC->LineTo( CPoint( rect.right, rect.top ) );
pDC->LineTo( CPoint( rect.right, rect.bottom ) );
pDC->LineTo( CPoint( rect.left, rect.bottom ) );
pDC->LineTo( CPoint( rect.left, rect.top ) );
//////////////////////////////////////////////////
I can earse the rect successfully, but I cannot earse the text, what's the problem?
I'm amumu, and you?
|
|
|
|
|
No one knows?
I'm amumu, and you?
|
|
|
|
|
Hi,
I have to programmed an HTML Editor, but I don't know how to start. I need help. Plz give me some advice. Is there any control, or class to do it?
perlz.
|
|
|
|
|
Take a look at the webbrowser control (in shdocvw.dll with html-rendering in mshtml.dll). A place to start is by searching MSDN for interfaces starting with IHTML*** .
/moliate
|
|
|
|
|
The bad news is getting worse for me.
Now it seems I gotta accept java serialized objects using C++.
Anyone here has any idea how I can do that.
Is there some kinda wrapper thing that'll convert the java object to a decent C++ struct for me???
Nish
One Nish is trouble enough.
Imagine 16 of me, dancing wild...
:jig::jig::jig::jig:
:jig::jig::jig::jig:
:jig::jig::jig::jig:
:jig::jig::jig::jig:
|
|
|
|
|
That seems like a rather hard task, unless you can make the java object speak XML...
Otherwise you may have to do the converting yourself. If you know how the object looks, it is not that much trouble.. The object serialization specification can be found here.
/moliate
|
|
|
|
|
Nope. The java team said they'd like to avoid XML. And personally I'd like to avoid XML as well.
I simply want to convert a Java object to a struct I can read using C++. It that a herculean task???
Nish
One Nish is trouble enough.
Imagine 16 of me, dancing wild...
:jig::jig::jig::jig:
:jig::jig::jig::jig:
:jig::jig::jig::jig:
:jig::jig::jig::jig:
|
|
|
|
|
Depends on how the object look. If it is just some integers, chars and booleans, it is not that though. Take a look at the binary of the serialized object. If it contains a lot of 'L' (means member is a class) it might be a bit hard. There are some commersial alternatives ("Tools.h++" one is called, I think), but if you have a well-defined object, you can probably do it yourself.
/moliate
|
|
|
|
|
Wasnt there something called JNLI [java native language interface] which allowed Java to talk with C++
Nish
One Nish is trouble enough.
Imagine 16 of me, dancing wild...
:jig::jig::jig::jig:
:jig::jig::jig::jig:
:jig::jig::jig::jig:
:jig::jig::jig::jig:
|
|
|
|
|
As far as I know (but that isn't really much on JNI), JNI makes you open a JVM in which you can recreate the serialized object. You can then access fields and methods by indexes that the JVM provides you with. To me it seems like a cumbersome approach.
Another method might be to write an Java COM server. This might be a somewhat simpler method. Take a look at the javareg.exe utility (in MS Java SDK) for this.
But if you just want to read a simple object that has been serialized, the easiest method might still be to read and reinterpret it directly from disk.
/moliate
|
|
|
|
|
I have experimented a bit with this at home. Seems like building a Java COM server is really not much trouble...
If you want to take a look at a simple example, you can download what I put together below (32 kb):
http://www.efd.lth.se/~f95hsp/javaser.zip
Cheers
/moliate
|
|
|
|
|
I need some help on this program. Can anyone tell me what I am missing here.
When I execute the program, it has one error (syntax error : 'if')
Here is a complete program. It'll ask the user to input 10 integers, then display the smallest and largest interger entered. thanks alot
#include <iostream.h>
void main(void)
{
int Array[10], smallest, largest, value;
cout << "Please enter 10 values ";
cin >> Array[value];
smallest=Array[0];
largest=Array[0];
for (value =0; value<10; value++)
{
if (smallest<=Array[value])
smallest=Array[value];
cout << "The smallest value is " << smallest <<
if (largest>=Array[value])
largest=Array[value];
cout << "The largest value is " << largest << endl;
}
}
|
|
|
|
|
ken777 wrote:
cout << "The smallest value is " << smallest <<
It looks like you are missing an endl; here
|
|
|
|