noaaprogrammer
Programmer
I have a structure called WAVE_DATA in my project. It is defined in a 'C' file. In that file, an instance of the structure is defined as 'wavdat'. I also have a global instance of this structure defined in a 'C++' file, named 'wp_wavdat'. I am trying to copy the contents of 'wavdat' into 'wp_wavdat' by using this line of code in the 'C' file :
wp_wavdat = wavdat;
This gives me the error:
error C2115: '=' : incompatible types
I have noticed that 'wp_wavdat' uses the '.' operator and 'wavdat' uses '->'. Does anyone know why this is happening and how to fix it?
wp_wavdat = wavdat;
This gives me the error:
error C2115: '=' : incompatible types
I have noticed that 'wp_wavdat' uses the '.' operator and 'wavdat' uses '->'. Does anyone know why this is happening and how to fix it?