# Visual Studio Error List isn't any helpful

**URL:** <https://forums.unrealengine.com/t/visual-studio-error-list-isnt-any-helpful/435613>\
**Category:** C++\
**Tags:** error, visual-c-platform-to, unreal-engine, Visual-Studio, UE4, CPP, question\
**Created:** [October 14, 2018, 11:45am UTC](https://forums.unrealengine.com/t/visual-studio-error-list-isnt-any-helpful/435613 "2018-10-14T11:45:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3479319d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3479319d](https://forums.unrealengine.com/u/anonymous_user_3479319d)\
**Post date:** [October 14, 2018, 11:45am UTC](https://forums.unrealengine.com/t/visual-studio-error-list-isnt-any-helpful/435613/1 "2018-10-14T11:45:34Z")

</div>

Hello everyone,

I am a professional Java developer but I am new with both C++ and Unreal Engine.

My problem is I am trying to write a code to detects all my Cameras in the level and cycles them.

So this is how far I came,

![|]()

I am not sure with the second cast but it made the error about types go away. But I don’t know if I can cast ACameraActor\* to AActor.

Whatever my question is in this state I can not compile my code but all errors shown at Error List are showing library classes which I didn’t wrote of course. Is this error list unhelpful or am I being too lazy to understand? I can’t figure out what the problem is in here.

---

<div class="post-metadata">

**Author:** ![Firefly74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Firefly74](https://forums.unrealengine.com/u/Firefly74)\
**Post date:** [October 14, 2018, 1:27pm UTC](https://forums.unrealengine.com/t/visual-studio-error-list-isnt-any-helpful/435613/2 "2018-10-14T13:27:47Z")

</div>

Open the output panel ( View → output / Ctrl W → Ctrl O )

Error list in nor reliable, output log tell you what compiler say ( much better to fix errors )

in your case, as you said you want to find all cameras : i would suggest to use the actor iterator feature :

```
for (TActorIterator<ACameraActor> It(GetWorld()); It; ++It)
		{
			ACameraActor* camera = (*It);
		}

```

Also,you don’t have to cast to correct class when you try to compare 2 Actors ( or UObjects ) because you are comparing pointers, so it would be perfectly find to do

```
if(OurPlayerController.GetViewTarget() ==cameras[i])
{
// some code
}
```
