Recent

Author Topic: [SOLVED] Error: Wrong number of parameters  (Read 1815 times)

avv210

  • New Member
  • *
  • Posts: 13
[SOLVED] Error: Wrong number of parameters
« on: December 27, 2021, 09:47:38 am »
Hello, so I made an Image Steganography tool, I have an error at Embed button and Extract button. How to resolve the error? Thank you.

Source code on my GitHub: https://github.com/AlphaByte-RedTeam/PascalSteg/tree/development -> on branch development

Feel free to contribute :D

---

EDIT: Sorry, I forgot to assign the boolean value hahaha. Thank you for the reply :D
« Last Edit: December 28, 2021, 03:12:06 pm by avv210 »

howardpc

  • Hero Member
  • *****
  • Posts: 3977
Re: Error: Wrong number of parameters
« Reply #1 on: December 28, 2021, 08:58:17 am »
The compiler tells you what the parameters to ReadFromBMP should be.
Its messages are only helpful, you should read them and pay attention to them.
You don't give the Boolean parameter "internal" which is required as a second argument (it has no default value in the declaration of ReadFromBMP so you can't omit it).

avv210

  • New Member
  • *
  • Posts: 13
Re: Error: Wrong number of parameters
« Reply #2 on: December 28, 2021, 03:13:06 pm »
The compiler tells you what the parameters to ReadFromBMP should be.
Its messages are only helpful, you should read them and pay attention to them.
You don't give the Boolean parameter "internal" which is required as a second argument (it has no default value in the declaration of ReadFromBMP so you can't omit it).
Thanks for replying, turns out I forgot to assign the boolean value to false hahaha. Thank you once again :D

 

TinyPortal © 2005-2018