Click here to Skip to main content
16,007,843 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionGarbage collection -- what's the trick? Pin
Jeremy Osner22-Jul-03 9:04
Jeremy Osner22-Jul-03 9:04 
AnswerRe: Garbage collection -- what's the trick? Pin
Nathan Blomquist23-Jul-03 5:15
Nathan Blomquist23-Jul-03 5:15 
GeneralRe: Garbage collection -- what's the trick? Pin
Jeremy Osner23-Jul-03 5:28
Jeremy Osner23-Jul-03 5:28 
GeneralRe: Garbage collection -- what's the trick? Pin
Nathan Blomquist23-Jul-03 6:21
Nathan Blomquist23-Jul-03 6:21 
GeneralRe: Garbage collection -- what's the trick? Pin
Jeremy Osner23-Jul-03 6:58
Jeremy Osner23-Jul-03 6:58 
GeneralRe: Garbage collection -- what's the trick? Pin
Nathan Blomquist23-Jul-03 8:30
Nathan Blomquist23-Jul-03 8:30 
GeneralRe: Garbage collection -- what's the trick? Pin
Jeremy Osner23-Jul-03 8:41
Jeremy Osner23-Jul-03 8:41 
GeneralLinker errors Pin
Slaru21-Jul-03 17:20
Slaru21-Jul-03 17:20 
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";<br />
// Convert str to a LPCWSTR so I can pass it into a function<br />
<br />
somefunction(MyConvertedString)


Double thanks.
GeneralRe: Linker errors Pin
Jeremy Osner22-Jul-03 7:24
Jeremy Osner22-Jul-03 7:24 
GeneralRe: Linker errors Pin
Slaru22-Jul-03 7:49
Slaru22-Jul-03 7:49 
GeneralRe: Linker errors Pin
jspano22-Jul-03 15:14
jspano22-Jul-03 15:14 
GeneralRe: Linker errors Pin
Slaru22-Jul-03 17:10
Slaru22-Jul-03 17:10 
GeneralSerial COM port in Managed C++ Pin
icdma21-Jul-03 6:37
icdma21-Jul-03 6:37 
GeneralRe: Serial COM port in Managed C++ Pin
icdma26-Jul-03 7:43
icdma26-Jul-03 7:43 
Generalstrange compiler error Pin
Slaru20-Jul-03 13:06
Slaru20-Jul-03 13:06 
GeneralRe: strange compiler error Pin
Nemanja Trifunovic20-Jul-03 15:10
Nemanja Trifunovic20-Jul-03 15:10 
Generalstatic __gc[] @#$@ Pin
leppie19-Jul-03 22:04
leppie19-Jul-03 22:04 
GeneralRe: static __gc[] @#$@ Pin
leppie19-Jul-03 22:31
leppie19-Jul-03 22:31 
GeneralSolved :) Pin
leppie19-Jul-03 23:14
leppie19-Jul-03 23:14 
GeneralRe: static __gc[] @#$@ Pin
Tom Archer20-Jul-03 3:32
Tom Archer20-Jul-03 3:32 
GeneralRe: static __gc[] @#$@ Pin
leppie20-Jul-03 5:01
leppie20-Jul-03 5:01 
GeneralRe: static __gc[] @#$@ Pin
Tom Archer20-Jul-03 5:10
Tom Archer20-Jul-03 5:10 
GeneralProblem Compiling MFC under VC++ .NET Pin
Cristi76200019-Jul-03 4:40
Cristi76200019-Jul-03 4:40 
GeneralRe: Problem Compiling MFC under VC++ .NET Pin
Tom Archer20-Jul-03 3:37
Tom Archer20-Jul-03 3:37 
GeneralRe: Problem Compiling MFC under VC++ .NET Pin
Anonymous20-Jul-03 20:14
Anonymous20-Jul-03 20:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.