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

Managed C++/CLI

 
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 
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 
Hello,..
Hey i dont know how u willtake my suggestion but , i have an idea for u
Use C# to C++ convertor.. it may help you..


int Example::Main()
{
    try
    {
        // Setup session options
        SessionOptions ^sessionOptions = gcnew SessionOptions {Protocol = Protocol::Sftp, HostName = "example.com", UserName = "user", Password = "mypassword", SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"};

     using (Session session = new Session())
        Session ^session = gcnew Session();
        try
        {
            // Connect
            session->Open(sessionOptions);

            // Upload files
            TransferOptions ^transferOptions = gcnew TransferOptions();
            transferOptions->TransferMode = TransferMode::Binary;

            TransferOperationResult ^transferResult;
            transferResult = session->PutFiles("d:\\toupload\\*", "/home/user/", false, transferOptions);

            // Throw on any error
            transferResult->Check();

            // Print results
            for each (TransferEventArgs ^transfer in transferResult->Transfers)
            {
                Console::WriteLine("Upload of {0} succeeded", transfer->FileName);
            }
        }
        finally
        {
            delete session;
        }

        return 0;
    }
    catch (Exception ^e)
    {
        Console::WriteLine("Error: {0}", e);
        return 1;
    }



This ur sample C# code to C++/CLI.
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 
GeneralRe: vc++2003 interop call c# DLL Pin
X.Q.Wang14-Mar-14 21:50
MemberX.Q.Wang14-Mar-14 21:50 
GeneralRe: vc++2003 interop call c# DLL Pin
John Schroedl17-Mar-14 2:58
professionalJohn Schroedl17-Mar-14 2:58 
GeneralRe: vc++2003 interop call c# DLL Pin
X.Q.Wang20-Mar-14 1:21
MemberX.Q.Wang20-Mar-14 1:21 

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.