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

Managed C++/CLI

 
Questionextern "C" in C++/CLI? Pin
Don Rolando17-Mar-08 10:27
Don Rolando17-Mar-08 10:27 
AnswerRe: extern "C" in C++/CLI? Pin
led mike17-Mar-08 10:50
led mike17-Mar-08 10:50 
GeneralMore Linker errors.. Pin
ptr2void17-Mar-08 2:28
ptr2void17-Mar-08 2:28 
QuestionRe: More Linker errors.. Pin
ptr2void17-Mar-08 3:23
ptr2void17-Mar-08 3:23 
QuestionLinker Error 2019 and 2028 Pin
ptr2void16-Mar-08 22:23
ptr2void16-Mar-08 22:23 
GeneralRe: Linker Error 2019 and 2028 Pin
Christian Graus16-Mar-08 23:14
protectorChristian Graus16-Mar-08 23:14 
GeneralRe: Linker Error 2019 and 2028 Pin
ptr2void17-Mar-08 0:40
ptr2void17-Mar-08 0:40 
QuestionProblem with array parameter conversion Pin
Member 454227216-Mar-08 21:48
Member 454227216-Mar-08 21:48 
Notify^ notify
BufferNotifyPosition^ buffer1 = gcnew BufferNotifyPosition();
BufferNotifyPosition^ buffer2 = gcnew BufferNotifyPosition();
(the two buffer1 and buffer2 then be assigned a value but here no state)

in c#
notify.SetNotificationPosition( new BufferNotifyPosition[] { buffer1, buffer2});

in c++/cli the array type need to be cli::array<type, dimension>^
notify->SetNotificationPosition( gcnew array<BufferNotifyPosition^, 1> { buffer1, buffer2});

Here is the question:
the code in c++/cli appear an error:

error: Microsoft:DirectX:DirectSound::Notify::SetNotificationPosition: cannot convert the parameter 1 from cli::array<type, dimension>^ to cli::array<type, dimension>^

What is the problem? BufferNotifyPosition is a value class, can i create a handle BufferNotifyPostion^ buffer1?
GeneralRe: Problem with array parameter conversion Pin
Mark Salsbery17-Mar-08 6:36
Mark Salsbery17-Mar-08 6:36 
GeneralMenu Item Pin
mikobi13-Mar-08 5:21
mikobi13-Mar-08 5:21 
GeneralRe: Menu Item Pin
Jeffrey Walton13-Mar-08 5:59
Jeffrey Walton13-Mar-08 5:59 
GeneralRe: Menu Item Pin
mikobi16-Mar-08 23:41
mikobi16-Mar-08 23:41 
GeneralRe: Menu Item Pin
led mike18-Mar-08 5:40
led mike18-Mar-08 5:40 
GeneralRe: Menu Item Pin
mikobi19-Mar-08 18:58
mikobi19-Mar-08 18:58 
GeneralRe: Menu Item Pin
led mike20-Mar-08 6:06
led mike20-Mar-08 6:06 
GeneralRe: Menu Item Pin
mikobi22-Mar-08 0:39
mikobi22-Mar-08 0:39 
GeneralRe: Menu Item Pin
mikobi16-Mar-08 23:44
mikobi16-Mar-08 23:44 
GeneralSystem.IO.FileLoadException with /clr Pin
Mary Chennai12-Mar-08 23:42
Mary Chennai12-Mar-08 23:42 
GeneralRe: System.IO.FileLoadException with /clr Pin
led mike13-Mar-08 4:17
led mike13-Mar-08 4:17 
GeneralRe: System.IO.FileLoadException with /clr Pin
Jeffrey Walton13-Mar-08 6:02
Jeffrey Walton13-Mar-08 6:02 
GeneralRe: System.IO.FileLoadException with /clr Pin
Jeffrey Walton13-Mar-08 8:11
Jeffrey Walton13-Mar-08 8:11 
GeneralRe: System.IO.FileLoadException with /clr Pin
fredsparkle19-Mar-08 7:56
fredsparkle19-Mar-08 7:56 
GeneralProper Method for Closing Stream Chain Pin
Jeffrey Walton12-Mar-08 20:29
Jeffrey Walton12-Mar-08 20:29 
GeneralRe: Proper Method for Closing Stream Chain Pin
led mike13-Mar-08 4:15
led mike13-Mar-08 4:15 
GeneralRe: Proper Method for Closing Stream Chain Pin
Jeffrey Walton13-Mar-08 4:39
Jeffrey Walton13-Mar-08 4:39 

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.