Trying to create an MFC dialog based application for reading video

I am writing a program using MFC Dialog application to read video. I am using the videolabs package as a reference. The error I am getting while compiling the program is -

1> c: \ users \ prashanth \ documents \ visual studio 2005 \ projects \ videodemo34 \ videodemo34 \ videodemo34dlg.cpp (105): error C2679: binary '=': operator not found that takes the right operand type 'const char [36 ] '(or no acceptable conversion)

Can anyone tell me how to fix this issue.

0


a source to share


2 answers


Do some C errors notice? Good luck learning C ++. Basically, the type of the element on the right side of the assignment is a mismatch of one of the left side. It's hard to say more without sample code.



0


a source


I would suggest that you double-click the Error message in the Visual Studio Error window and look at the code, or at least post the code here.

I would venture to suggest that you either defined an array of 36 char elements, or created a const string that you then try to copy to an element type that doesn't fit.



If you are trying to copy a filename / string, use strcpy_s. If it isn't, then the code will really help!

0


a source







All Articles