Hello, I am trying to open a .csv file in a dll where I linked to my LabVIEW VI. However, no matter what I try I always end up with this error:

I can easily run my code in labwindows with an executable. Any help is appreciated. I am attaching my VI and dll source codes.
(I could not load the .h file so I am writing here)
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
int ReadF(char* ColorMap);
struct Color_decider {
char Color_maps[10];
int C[256][3];
};
char *strdup(char *org)
{
int org_size;
static char *dup;
char *dup_offset;
/* Allocate memory for duplicate */
org_size = strlen(org);
dup = (char *)malloc(sizeof(char)*org_size+1);
if( dup == NULL)
return( (char *)NULL);
/* Copy string */
dup_offset = dup;
while(*org)
{
*dup_offset = *org;
dup_offset++;
org++;
}
*dup_offset = '\0';
return(dup);
}