Author |
Topic |
|
swinefeaster
Tomato Guru
310 Posts |
Posted - Jul 13 2006 : 2:32:36 PM
|
It goes to the cpp file and nothing happens. I recorded an avi. Sent it to feline...
Cheers
swine |
Edited by - swinefeaster on Jul 13 2006 2:34:22 PM |
|
feline
Whole Tomato Software
United Kingdom
19024 Posts |
Posted - Jul 15 2006 : 1:59:52 PM
|
i have the email, and i have watched the movie. however i cannot reproduce the effect, using VS2003 or VS2005. i use Create Implementation a LOT and i have never had it fail like that on me.
i tried typing in the definition in question, but i still cannot reproduce.
can you confirm that you are using VS2003? it looks like it. do you have word wrap turned on? do you see this problem with more basic definitions, that fit on one line? does removing the "override" keyword make any difference? there is a known bug with this and parameters and Create Implementation, but you still get the implementation in that case. |
zen is the art of being at one with the two'ness |
Edited by - feline on Jul 15 2006 2:00:27 PM |
|
|
swinefeaster
Tomato Guru
310 Posts |
Posted - Jul 17 2006 : 2:35:21 PM
|
- removing override didn't help - i'm using vs2005 - word wrap is on - i can't seem to reproduce it now... argghhh..
cheers |
|
|
swinefeaster
Tomato Guru
310 Posts |
Posted - Jul 17 2006 : 3:21:57 PM
|
ok, in the header file i have:
// Measures the range / bearing between the two given points. // The points are in the given GEO_COORD_CLASS_XXX geoCoordClass. // Returns R_SUCCESS on success, or an SERR_XXX error on failure. virtual LRESULT MeasureBetween( WORD geoCoordClass, const CPointDouble& SourcePoint, const CPointDouble& DestPoint, double& returnedRangeInMetres, double& returnedBearingInDegrees) override;
create implementation does:
CGeoCoordConverterInterfaceLocked::MeasureBetween(void) {
}
or, i have:
// Converts SourcePoint from the given GEO_COORD_CLASS_XXX // sourceGeoCoordClass, to the given GEO_COORD_CLASS_XXX destGeoCoordClass, // and puts the result in ReturnedDestPoint. // Returns R_SUCCESS on success, or an SERR_XXX error on failure. virtual LRESULT ConvertBetween( WORD sourceGeoCoordClass, WORD destGeoCoordClass, const C3dDouble& SourcePoint, C3dDouble& ReturnedDestPoint)const override;
which generates:
LRESULT CGeoCoordConverterInterfaceLocked::ConvertBetween(WORD sourceGeoCoordClass, WORD destGeoCoordClass, const C3dDouble& SourcePoint, C3dDouble& ReturnedDestPoint)const override {
}
this is ok except for the override specifier (should be removed in cpp).
thanks! |
|
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - Jul 18 2006 : 02:04:14 AM
|
This is weird. I try your examples and get different results on the MeasureBetween method. Mine doesn't have the void inside the parenthesis. But for the ConvertBetween method, I get the same as you.
Wonder why the same operation on two seemingly similar methods returns different results?
case=1720 |
Joe Pizzi |
|
|
swinefeaster
Tomato Guru
310 Posts |
Posted - Jul 18 2006 : 4:50:57 PM
|
sorry i think i put the void there... BTW would be nice to have an option to put in the void or not. i would rather see the void there.
i think the parser is tripping up somewhere and it just stops working... i did this for 4 methods one after another. the first 2 worked, the last 2 didn't |
|
|
feline
Whole Tomato Software
United Kingdom
19024 Posts |
Posted - Jul 18 2006 : 8:04:13 PM
|
there should be a bug fix, from an existing case, for loosing parameters on functions flagged with override in the next build, which may help in this case. however the bug i am thinking of was consistent when i tested it, where as this seems to be less so. |
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Aug 12 2006 : 11:20:39 PM
|
Case 1720 is fixed in build 1532. |
|
|
|
Topic |
|