NO

Author Topic: Problem with function definitions  (Read 8013 times)

Kaljj

  • Guest
Problem with function definitions
« on: August 17, 2009, 02:23:18 PM »
Hello,
I need help.
I write a functions with this definition.

Code: [Select]
double GetDistance (double StartBreite, double StartLaenge)
{
double n,m,d;
...
...
return n;
}

It's work ;D

Now I add a new parameter
Code: [Select]
double GetDistance (double StartBreite, double StartLaenge, double ZielBreite)
{
double n,m,d;
...
...
return n;
}

Don't Work ? :-[

Why and what must I do ?  ???

Thanks Kaljj

JohnF

  • Guest
Re: Problem with function definitions
« Reply #1 on: August 17, 2009, 02:57:00 PM »
Do you get any errors when compiling?

John

Kaljj

  • Guest
Re: Problem with function definitions
« Reply #2 on: August 17, 2009, 03:20:08 PM »
Hello,

a very short anwser:

No


Thanks

Kaljj

JohnF

  • Guest
Re: Problem with function definitions
« Reply #3 on: August 17, 2009, 03:24:57 PM »
Please supply a working (or not working) complete example.

John

Kaljj

  • Guest
Re: Problem with function definitions
« Reply #4 on: August 17, 2009, 03:47:00 PM »
Hi John,

my file's.

the comment Lines are running.


JohnF

  • Guest
Re: Problem with function definitions
« Reply #5 on: August 17, 2009, 05:09:01 PM »
Ok, calling GetDistance (52.517, 13.10, 35.10); gives a result of

8988.959961

What's happening where you are?

John

Kaljj

  • Guest
Re: Problem with function definitions
« Reply #6 on: August 17, 2009, 08:33:55 PM »
Hi John,

a little bit more info.

I use a HTC - Handy with Win Mobile 6.0.
I create with the Pelle C Version 6.0 a pocket pc application wizard a simple "Hello" - Projekt.
I make my changes.

If I run the Programm with two Parameters on the Pocket PC i have a Messagebox.

If I run the Programm with three Parameters on the Pocket PC i have no Messagebox (no reaction).

Thanks
Kaljj

JohnF

  • Guest
Re: Problem with function definitions
« Reply #7 on: August 17, 2009, 10:02:34 PM »
Well I've done all I can, you need someone that can test it and give advice on a pocket pc.

John

Kaljj

  • Guest
Re: Problem with function definitions
« Reply #8 on: August 18, 2009, 07:46:30 AM »
Thank You John.

I hope there is everyone who can help me.

Kaljj

ml

  • Guest
Re: Problem with function definitions
« Reply #9 on: December 20, 2009, 03:39:22 PM »
Hello,

I faced the same problem, see forum.pellesc.de/index.php?topic=3000.msg11407#msg11407 :'(
It's a bug inside the ARM code generator of V6.00 when using double variables. Switched back to V5 where it works fine.

ml

Kaljj

  • Guest
Re: Problem with function definitions
« Reply #10 on: February 12, 2010, 10:55:23 AM »
Thank you ml,

it's a very good information.

 ;D

Kaljj