Linker errors
-
Hey, First of all, I would like to say with only being a member of this site for a little while, I have found it very useful. I am pretty much a newbie in programming and don't know much about compiler and linker errors. I get this error when trying to compile. playSound.obj : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (playSound): (0x02000005). LINK : fatal error LNK1255: link failed because of metadata errors Anybody know what this is? If you need source code I can give it. I am sure I included all the includes and libraries. Thanks. Also does anybody know how to convert a String to a LPCWSTR? I hadn't heard of LPCWSTR before but appears to be some other kind of string. example:
String * str = S"Hello"; // Convert str to a LPCWSTR so I can pass it into a function somefunction(MyConvertedString)
Double thanks. -
Hey, First of all, I would like to say with only being a member of this site for a little while, I have found it very useful. I am pretty much a newbie in programming and don't know much about compiler and linker errors. I get this error when trying to compile. playSound.obj : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (playSound): (0x02000005). LINK : fatal error LNK1255: link failed because of metadata errors Anybody know what this is? If you need source code I can give it. I am sure I included all the includes and libraries. Thanks. Also does anybody know how to convert a String to a LPCWSTR? I hadn't heard of LPCWSTR before but appears to be some other kind of string. example:
String * str = S"Hello"; // Convert str to a LPCWSTR so I can pass it into a function somefunction(MyConvertedString)
Double thanks.I can't answer your linker question but an LPCWSTR is a char pointer -- see the thread lower on this page regarding PtrToStringChars(). READIN writin rhythmetic
-
I can't answer your linker question but an LPCWSTR is a char pointer -- see the thread lower on this page regarding PtrToStringChars(). READIN writin rhythmetic
-
Hey, First of all, I would like to say with only being a member of this site for a little while, I have found it very useful. I am pretty much a newbie in programming and don't know much about compiler and linker errors. I get this error when trying to compile. playSound.obj : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (playSound): (0x02000005). LINK : fatal error LNK1255: link failed because of metadata errors Anybody know what this is? If you need source code I can give it. I am sure I included all the includes and libraries. Thanks. Also does anybody know how to convert a String to a LPCWSTR? I hadn't heard of LPCWSTR before but appears to be some other kind of string. example:
String * str = S"Hello"; // Convert str to a LPCWSTR so I can pass it into a function somefunction(MyConvertedString)
Double thanks. -
Hey, First of all, I would like to say with only being a member of this site for a little while, I have found it very useful. I am pretty much a newbie in programming and don't know much about compiler and linker errors. I get this error when trying to compile. playSound.obj : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (playSound): (0x02000005). LINK : fatal error LNK1255: link failed because of metadata errors Anybody know what this is? If you need source code I can give it. I am sure I included all the includes and libraries. Thanks. Also does anybody know how to convert a String to a LPCWSTR? I hadn't heard of LPCWSTR before but appears to be some other kind of string. example:
String * str = S"Hello"; // Convert str to a LPCWSTR so I can pass it into a function somefunction(MyConvertedString)
Double thanks.