Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1530: Create Implementation is a Dud
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

swinefeaster
Tomato Guru

310 Posts

Posted - Jul 13 2006 :  2:32:36 PM  Show Profile  Reply with Quote
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
18952 Posts

Posted - Jul 15 2006 :  1:59:52 PM  Show Profile  Reply with Quote
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
Go to Top of Page

swinefeaster
Tomato Guru

310 Posts

Posted - Jul 17 2006 :  2:35:21 PM  Show Profile  Reply with Quote
- removing override didn't help
- i'm using vs2005
- word wrap is on
- i can't seem to reproduce it now... argghhh..

cheers
Go to Top of Page

swinefeaster
Tomato Guru

310 Posts

Posted - Jul 17 2006 :  3:21:57 PM  Show Profile  Reply with Quote
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!
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jul 18 2006 :  02:04:14 AM  Show Profile  Reply with Quote
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
Go to Top of Page

swinefeaster
Tomato Guru

310 Posts

Posted - Jul 18 2006 :  4:50:57 PM  Show Profile  Reply with Quote
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
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18952 Posts

Posted - Jul 18 2006 :  8:04:13 PM  Show Profile  Reply with Quote
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
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Aug 12 2006 :  11:20:39 PM  Show Profile  Reply with Quote
Case 1720 is fixed in build 1532.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000