-2

I created a component , and I need to use IdHttp component (Indy) in it, so first I installed Indy in my IDE,I created the component and istalled it, then I added to uses the unit IdHttp so I can use IdHttp in my component. But, when I compile the code of my component I get this error: Can't find unit IdHttp used by "mycomponent".PS: I added indylaz to the required packages of my component , however when I recompile the component I get the same compilation error. So how to fix this?

Safa
  • 485
  • 2
  • 5
  • 24

2 Answers2

1

Add a requirement of the project on the package that contains your component. That will the recursively load your component's requirementss.

Marco van de Voort
  • 25,628
  • 5
  • 56
  • 89
-1

I had to write IdHTTP instead of IdHttp, it's that simple.

Safa
  • 485
  • 2
  • 5
  • 24