Click here to Skip to main content
14,636,348 members
Home » Discussions » Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: cursor problem Pin
John Schroedl26-Mar-14 5:06
professionalJohn Schroedl26-Mar-14 5:06 
GeneralRe: cursor problem Pin
Richard MacCutchan26-Mar-14 5:35
mveRichard MacCutchan26-Mar-14 5:35 
GeneralRe: cursor problem Pin
neterfari26-Mar-14 10:02
Memberneterfari26-Mar-14 10:02 
GeneralRe: cursor problem Pin
Richard MacCutchan26-Mar-14 22:48
mveRichard MacCutchan26-Mar-14 22:48 
GeneralRe: cursor problem Pin
neterfari26-Mar-14 23:08
Memberneterfari26-Mar-14 23:08 
GeneralRe: cursor problem Pin
Richard MacCutchan26-Mar-14 23:18
mveRichard MacCutchan26-Mar-14 23:18 
GeneralRe: cursor problem Pin
neterfari27-Mar-14 0:38
Memberneterfari27-Mar-14 0:38 
QuestionConvert a C# WinSCP program to C++/CLI Pin
biop.codeproject19-Mar-14 23:06
Memberbiop.codeproject19-Mar-14 23:06 
Please help! Even I am experienced in C++ and C#, I am new to C++/CLI.

I have written a simple C# program using WinSCP library. I know how to do it in C# as there is already an example (http://winscp.net/eng/docs/library#csharp[^])

I try to convert but I do not get any success.

#using "WinSCPnet.dll"
using namespace System;

int main(array<System::String ^> ^args)
{
   try
   {
       Console::WriteLine("Staring...");

       WinSCP::SessionOptons ^ sftpSessionOptions = gcnew
          WinSCP::SessionOptions::SessionOptions (
             WinSCP::SessionOptions::Protocol = 
                   WinSCP::Protocol::Sftp,
                   ...
          );
...
}


But I get this error:
Error c2061: syntax error: identifer '{ctor}'

why? Please help in the translation.
Yes I have made sure it compiles with '/clr' option.
AnswerRe: Convert a C# WinSCP program to C++/CLI Pin
Richard MacCutchan19-Mar-14 23:31
mveRichard MacCutchan19-Mar-14 23:31 
GeneralRe: Convert a C# WinSCP program to C++/CLI Pin
biop.codeproject20-Mar-14 17:24
Memberbiop.codeproject20-Mar-14 17:24 
AnswerRe: Convert a C# WinSCP program to C++/CLI Pin
sunshine@work.20-Mar-14 0:03
professionalsunshine@work.20-Mar-14 0:03 
GeneralRe: Convert a C# WinSCP program to C++/CLI Pin
biop.codeproject20-Mar-14 15:43
Memberbiop.codeproject20-Mar-14 15:43 
QuestionC++ to Managed CLI Pin
sunshine@work.19-Mar-14 5:01
professionalsunshine@work.19-Mar-14 5:01 
AnswerRe: C++ to Managed CLI Pin
Richard MacCutchan19-Mar-14 7:33
mveRichard MacCutchan19-Mar-14 7:33 
GeneralRe: C++ to Managed CLI Pin
sunshine@work.19-Mar-14 23:30
professionalsunshine@work.19-Mar-14 23:30 
GeneralRe: C++ to Managed CLI Pin
sunshine@work.2-Apr-14 3:38
professionalsunshine@work.2-Apr-14 3:38 
GeneralRe: C++ to Managed CLI Pin
Richard MacCutchan2-Apr-14 5:34
mveRichard MacCutchan2-Apr-14 5:34 
GeneralRe: C++ to Managed CLI Pin
sunshine@work.2-Apr-14 21:41
professionalsunshine@work.2-Apr-14 21:41 
GeneralRe: C++ to Managed CLI Pin
Richard MacCutchan2-Apr-14 23:17
mveRichard MacCutchan2-Apr-14 23:17 
GeneralRe: C++ to Managed CLI Pin
sunshine@work.3-Apr-14 22:44
professionalsunshine@work.3-Apr-14 22:44 
GeneralRe: C++ to Managed CLI Pin
Richard MacCutchan3-Apr-14 22:55
mveRichard MacCutchan3-Apr-14 22:55 
QuestionPassing unsigned int* from Native C++ to Managed C++ Pin
paulpraveen13-Mar-14 19:27
Memberpaulpraveen13-Mar-14 19:27 
AnswerRe: Passing unsigned int* from Native C++ to Managed C++ Pin
Richard MacCutchan17-Mar-14 4:24
mveRichard MacCutchan17-Mar-14 4:24 
Questionvc++2003 interop call c# DLL Pin
X.Q.Wang13-Mar-14 19:04
MemberX.Q.Wang13-Mar-14 19:04 
AnswerRe: vc++2003 interop call c# DLL Pin
John Schroedl14-Mar-14 4:28
professionalJohn Schroedl14-Mar-14 4:28 

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.