# Listing events in C API

**URL:** <https://qa.fmod.com/t/listing-events-in-c-api/12638>\
**Category:** FMOD Studio\
**Created:** [August 8, 2016, 9:17pm UTC](https://qa.fmod.com/t/listing-events-in-c-api/12638 "2016-08-08T21:17:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luisoncpp](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@luisoncpp](https://qa.fmod.com/u/luisoncpp)\
**Post date:** [August 8, 2016, 9:17pm UTC](https://qa.fmod.com/t/listing-events-in-c-api/12638/1 "2016-08-08T21:17:10Z")

</div>

Hi, I’m just trying to list all the events in a bank but I’m receiving error 74 (I think it means FMOD\_ERR\_EVENT\_NOTFOUND), my code is this:

```
            ret=FMOD_Studio_Bank_GetEventCount(bank, &count);                
            if(ret==FMOD_OK){
                FMOD_STUDIO_EVENTDESCRIPTION** events=new FMOD_STUDIO_EVENTDESCRIPTION*[count];
                memset(events, 0, sizeof(events));
                ret=FMOD_Studio_Bank_GetEventList(bank, events, count, &count);
                if (ret != FMOD_OK) {
                    cout << ret << endl;
                }
                for(int i=0;i<count;i++){
                    char eventPath[256];
                    int len=0;
                    ret=FMOD_Studio_EventDescription_GetPath(events[i], eventPath, sizeof(eventPath)-1, &len);
                    if(ret!=FMOD_OK){
                        cout << i << " " << ret << endl;
                    }
                    eventPath[len]='\0';
                    cout << eventPath << endl;
                }
                delete [] events;
            }

```

My program does enter in this if:

```
                    if(ret!=FMOD_OK){
                        cout << i << " " << ret << endl;
                    }

```

and that means that getEventCount and also GetEventList, both received FMOD\_OK like return value.  
Any idea what’s happening?

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [August 9, 2016, 12:49am UTC](https://qa.fmod.com/t/listing-events-in-c-api/12638/2 "2016-08-09T00:49:26Z")

</div>

In order to lookup via path or retrieve the path of an event, you need to load the optional strings bank. If you haven’t renamed the master bank the strings bank will be called **Master Bank.strings.bank** and is loaded using the same functions as any other bank.
