Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Using MemoryStream() in c++ program

Using MemoryStream() in c++ program

Scheduled Pinned Locked Moved Managed C++/CLI
helpc++visual-studio
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MrKBA
    wrote on last edited by
    #1

    Hello, I'm trying to create a dll in C++ with VS 2008 and creating an object MemoryStream. So i write MemoryStream *memStreamEncryptedData = new MemoryStream(); I included But it not work and i have a error message like this : Error 1 error C2065: 'MemoryStream' : undeclared identifier Error 2 error C2146: syntax error : missing ';' before identifier 'memStreamEncryptedData' Error 3 error C2065: 'memStreamEncryptedData' : undeclared identifier Error 4 error C2061: syntax error : identifier 'MemoryStream' Please help me how can use it or if there is something else wich do the same work. Thank you

    L P 2 Replies Last reply
    0
    • M MrKBA

      Hello, I'm trying to create a dll in C++ with VS 2008 and creating an object MemoryStream. So i write MemoryStream *memStreamEncryptedData = new MemoryStream(); I included But it not work and i have a error message like this : Error 1 error C2065: 'MemoryStream' : undeclared identifier Error 2 error C2146: syntax error : missing ';' before identifier 'memStreamEncryptedData' Error 3 error C2065: 'memStreamEncryptedData' : undeclared identifier Error 4 error C2061: syntax error : identifier 'MemoryStream' Please help me how can use it or if there is something else wich do the same work. Thank you

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      khaliloenit wrote:

      Please help me how can use it or if there is something else wich do the same work.

      Well you have to learn C++/CLI to use it or any other .NET classes. There are several introductory articles for C++/CLI here on CodeProject in the Articles or "CHAPTERS" part of the site.

      M U 2 Replies Last reply
      0
      • M MrKBA

        Hello, I'm trying to create a dll in C++ with VS 2008 and creating an object MemoryStream. So i write MemoryStream *memStreamEncryptedData = new MemoryStream(); I included But it not work and i have a error message like this : Error 1 error C2065: 'MemoryStream' : undeclared identifier Error 2 error C2146: syntax error : missing ';' before identifier 'memStreamEncryptedData' Error 3 error C2065: 'memStreamEncryptedData' : undeclared identifier Error 4 error C2061: syntax error : identifier 'MemoryStream' Please help me how can use it or if there is something else wich do the same work. Thank you

        P Offline
        P Offline
        parth_patel
        wrote on last edited by
        #3

        Well, there are several problems with the code if you are working in managed code. You should look up some tutorials. You will have to include the namespace of Memorystream object(I have never used this class). Use gcnew instead of new and use ^ instead of *. :D If you want to create unmanaged app, then I guess you have posted in wrong section. Parth

        M 1 Reply Last reply
        0
        • L led mike

          khaliloenit wrote:

          Please help me how can use it or if there is something else wich do the same work.

          Well you have to learn C++/CLI to use it or any other .NET classes. There are several introductory articles for C++/CLI here on CodeProject in the Articles or "CHAPTERS" part of the site.

          M Offline
          M Offline
          MrKBA
          wrote on last edited by
          #4

          So, have you please an example or some code to try it? I couldn't use C++/CLI and i had some problems with the included files. Thank you

          1 Reply Last reply
          0
          • P parth_patel

            Well, there are several problems with the code if you are working in managed code. You should look up some tutorials. You will have to include the namespace of Memorystream object(I have never used this class). Use gcnew instead of new and use ^ instead of *. :D If you want to create unmanaged app, then I guess you have posted in wrong section. Parth

            M Offline
            M Offline
            mikobi
            wrote on last edited by
            #5

            Include this library System.IO.MemoryStream or System.IO And have byte array (like: byte[] array )so to do MemorySream^ Image = Gcnew MemoryStream(array); Iam using Visual C++ Please.

            modified on Thursday, August 20, 2009 9:17 AM

            1 Reply Last reply
            0
            • L led mike

              khaliloenit wrote:

              Please help me how can use it or if there is something else wich do the same work.

              Well you have to learn C++/CLI to use it or any other .NET classes. There are several introductory articles for C++/CLI here on CodeProject in the Articles or "CHAPTERS" part of the site.

              U Offline
              U Offline
              User 183941
              wrote on last edited by
              #6

              Listillo estirado

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups