Author Topic: function parameter?  (Read 6712 times)

Offline wasabi

  • Single posting newcomer
  • *
  • Posts: 5
function parameter?
« on: August 03, 2009, 02:38:42 pm »
for example, if I use something like "strcpy" CodeBlocks didnt show up the 2 parameters... Is there a way to get rid of it? Thanks.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5930
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: function parameter?
« Reply #1 on: August 03, 2009, 04:54:23 pm »
which version of Code::blocks do you use?
Did you include the correct header file?

It works here on my CB.(Windows, CB latest SVN build)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline wasabi

  • Single posting newcomer
  • *
  • Posts: 5
Re: function parameter?
« Reply #2 on: August 03, 2009, 05:18:53 pm »
Im using the latest nightly build too... yes I've includet <string.h>... strcpy works too... it just didnt show up the 2 params..

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5930
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: function parameter?
« Reply #3 on: August 03, 2009, 05:24:34 pm »
Im using the latest nightly build too... yes I've includet <string.h>... strcpy works too... it just didnt show up the 2 params..

Works here, but I build my CB myself. and I use a modified CodeCompletion(merged from the CC_branch and my own code....) Maybe, you can try CC_branch.




[attachment deleted by admin]
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline wasabi

  • Single posting newcomer
  • *
  • Posts: 5
Re: function parameter?
« Reply #4 on: August 03, 2009, 07:46:12 pm »
Where can I get CC_Branch from? oh and strcpy_s( ) seems to show the parameter.. thats really weird... does it show you the "entrys" for std:: too? thanks.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5930
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: function parameter?
« Reply #5 on: August 04, 2009, 04:55:07 am »
Where can I get CC_Branch from? oh and strcpy_s( ) seems to show the parameter.. thats really weird... does it show you the "entrys" for std:: too? thanks.
1, strcpy_s can't works here.
2,Yes, shsow entrys after std::.

CC_Branch was in SVN server .
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline wasabi

  • Single posting newcomer
  • *
  • Posts: 5
Re: function parameter?
« Reply #6 on: August 04, 2009, 11:36:56 am »
Sorry cant find SVN Server... can you attach / upload CC_Branch for me? Would be great. thanks.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: function parameter?
« Reply #7 on: August 04, 2009, 12:18:52 pm »
Sorry cant find SVN Server... can you attach / upload CC_Branch for me? Would be great. thanks.
...sure  not! :shock: This is several mega-bytes and just makes no sense. That's why we have have SVN in the end!

Please read the WiKi article concerning compiling C::B from the sources and adjust the SVN checkout command there to the branches/codecompletion_refactoring path.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline blueshake

  • Regular
  • ***
  • Posts: 459
Re: function parameter?
« Reply #8 on: August 04, 2009, 01:03:53 pm »
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline wasabi

  • Single posting newcomer
  • *
  • Posts: 5
Re: function parameter?
« Reply #9 on: August 04, 2009, 01:24:18 pm »
thanks. I thought its just something like a plugin.dll, isnt it? If so, anyboding willing to upload the compiled one? thanks.