Click here to Skip to main content
15,893,588 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralOnline Course Pin
boshra1-Feb-05 1:33
boshra1-Feb-05 1:33 
GeneralHTML/C++ Pin
heylin29-Jan-05 8:15
heylin29-Jan-05 8:15 
GeneralRe: HTML/C++ Pin
Steve Maier1-Feb-05 10:11
professionalSteve Maier1-Feb-05 10:11 
GeneralRe: HTML/C++ Pin
heylin1-Feb-05 11:23
heylin1-Feb-05 11:23 
General'FILETIME': ambiguous symbol Pin
Anonymous29-Jan-05 0:30
Anonymous29-Jan-05 0:30 
GeneralRe: 'FILETIME': ambiguous symbol Pin
ursus zeta2-Feb-05 11:40
ursus zeta2-Feb-05 11:40 
GeneralRe: 'FILETIME': ambiguous symbol Pin
skonopa28-Feb-05 9:18
skonopa28-Feb-05 9:18 
GeneralRe: 'FILETIME': ambiguous symbol Pin
skonopa28-Feb-05 9:12
skonopa28-Feb-05 9:12 
Before the using namespace lines, insert #include<windows.h>.

That should get rid of the "ambiguous symbol" error.

However, if you than get anything such as "CreateDirectoryA is not part of System::IO" type errors (as I gotten when I encountered this same situation), then immediatly after the #include <windows.h> line, add any necessary #undef's, such as #undef CreateDirectory in my case.

Thus, your example would look as follows:
<br />
#include <windows.h><br />
<br />
// add any necessary "#undef"'s if any "<symbol> <br />
// not part of <namespace>" errors.<br />
<br />
using namespace System;<br />
using namespace System::Runtime::InteropServices;<br />
<br />
namespace WavAPI<br />
{<br />
[DllImport("winmm.dll")]<br />
extern "C" bool sndPlaySound(String* lpszSound, unsigned int fuSound);<br />
}


That should hopefully "fix" the problem.
GeneralInheritance Pin
Pradeep Niranjan28-Jan-05 23:48
Pradeep Niranjan28-Jan-05 23:48 
GeneralRe: Inheritance Pin
Anders Dalvander29-Jan-05 1:22
Anders Dalvander29-Jan-05 1:22 
QuestionCreate AutoRun.Exe Without .NET FrameWork? Pin
Khang Nguyen28-Jan-05 5:22
Khang Nguyen28-Jan-05 5:22 
AnswerRe: Create AutoRun.Exe Without .NET FrameWork? Pin
Steve Maier1-Feb-05 10:07
professionalSteve Maier1-Feb-05 10:07 
Generalsyncing videos on different machines... Pin
natarius25-Jan-05 11:39
natarius25-Jan-05 11:39 
GeneralRe: syncing videos on different machines... Pin
Christian Graus25-Jan-05 13:05
protectorChristian Graus25-Jan-05 13:05 
GeneralRe: syncing videos on different machines... Pin
natarius25-Jan-05 13:34
natarius25-Jan-05 13:34 
GeneralRe: syncing videos on different machines... Pin
Christian Graus25-Jan-05 16:04
protectorChristian Graus25-Jan-05 16:04 
GeneralRe: syncing videos on different machines... Pin
natarius25-Jan-05 20:07
natarius25-Jan-05 20:07 
GeneralRe: syncing videos on different machines... Pin
Christian Graus26-Jan-05 9:38
protectorChristian Graus26-Jan-05 9:38 
GeneralRe: syncing videos on different machines... Pin
natarius26-Jan-05 13:13
natarius26-Jan-05 13:13 
GeneralRe: syncing videos on different machines... Pin
Christian Graus26-Jan-05 13:19
protectorChristian Graus26-Jan-05 13:19 
GeneralRe: syncing videos on different machines... Pin
natarius26-Jan-05 13:34
natarius26-Jan-05 13:34 
GeneralRe: syncing videos on different machines... Pin
Christian Graus26-Jan-05 13:38
protectorChristian Graus26-Jan-05 13:38 
GeneralRe: syncing videos on different machines... Pin
natarius26-Jan-05 13:57
natarius26-Jan-05 13:57 
GeneralRe: syncing videos on different machines... Pin
Christian Graus26-Jan-05 14:03
protectorChristian Graus26-Jan-05 14:03 
GeneralRe: syncing videos on different machines... Pin
natarius26-Jan-05 14:16
natarius26-Jan-05 14:16 

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.