Using MemoryStream() in c++ program
-
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
-
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
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.
-
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
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
-
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.
-
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
-
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.
Listillo estirado