Click here to Skip to main content
15,894,180 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralDatatype conversion problems Pin
So and So7-Jul-04 12:13
So and So7-Jul-04 12:13 
GeneralRe: Datatype conversion problems Pin
So and So7-Jul-04 13:10
So and So7-Jul-04 13:10 
GeneralRe: Datatype conversion problems Pin
palbano8-Jul-04 12:25
palbano8-Jul-04 12:25 
GeneralCommand Pin
Anonymous4-Jul-04 20:44
Anonymous4-Jul-04 20:44 
GeneralTrying to build a DLL but only getting an EXE Pin
reznod4-Jul-04 13:29
reznod4-Jul-04 13:29 
GeneralRe: Trying to build a DLL but only getting an EXE Pin
EnemyMaker4-Jul-04 22:02
EnemyMaker4-Jul-04 22:02 
GeneralRe: Trying to build a DLL but only getting an EXE Pin
reznod5-Jul-04 4:55
reznod5-Jul-04 4:55 
GeneralSaving BMP/JPEG from Stream Pin
Emiliano2-Jul-04 6:47
Emiliano2-Jul-04 6:47 
Hello,

I am trying to save an image stream into a .bmp file or a jpeg file. I an trying to use the .NET classes in the System::Drawing namespaces.


I have some code like the following

<code>
//preaper the buffer
char* buf = new char[bufSize];

//populate the buffer with raw bytes coming from the video Stream
dev->Grab(buf);

Byte b[] = new Byte[bufSize];
MemoryStream *ms = new MemoryStream( b );
for(int i=0; i<bufSize; i++)
{
    b[i]=buf[i];
}
Bitmap *b = new Bitamp( ms ); 
b->Save(S"C:\\test.jpg", ImageFormat::Jpeg);
</code>


Every time i run the code the following line
Bitmap *b = new Bitamp( ms );
throws a ArgumentException:Invalid Parameter used exception.

Does any one Know Why, could it be that the Bitmap class understands that the stream is not a valid image yet because the stream only contains the row bytes... any help please...
GeneralPinnig Pointers Pin
EnemyMaker1-Jul-04 3:05
EnemyMaker1-Jul-04 3:05 
GeneralRe: Pinnig Pointers Pin
palbano1-Jul-04 17:43
palbano1-Jul-04 17:43 
GeneralRe: Pinnig Pointers Pin
EnemyMaker1-Jul-04 19:14
EnemyMaker1-Jul-04 19:14 
GeneralSubclassing a .NET winform control Pin
Matt Newman30-Jun-04 10:53
Matt Newman30-Jun-04 10:53 
GeneralRe: Subclassing a .NET winform control Pin
Csharp™2-Jul-04 16:51
Csharp™2-Jul-04 16:51 
GeneralRe: Subclassing a .NET winform control Pin
Matt Newman2-Jul-04 17:49
Matt Newman2-Jul-04 17:49 
Generalstd::queue and Managed class Pin
Vadim Tabakman28-Jun-04 19:00
Vadim Tabakman28-Jun-04 19:00 
GeneralRe: std::queue and Managed class Pin
palbano29-Jun-04 4:48
palbano29-Jun-04 4:48 
GeneralRe: std::queue and Managed class Pin
Vadim Tabakman29-Jun-04 13:17
Vadim Tabakman29-Jun-04 13:17 
GeneralRe: std::queue and Managed class Pin
adrian cooper5-Aug-04 1:49
adrian cooper5-Aug-04 1:49 
GeneralC++ help!! Pin
tyaramis24-Jun-04 23:09
tyaramis24-Jun-04 23:09 
GeneralRe: C++ help!! Pin
Kevin McFarlane26-Jun-04 4:06
Kevin McFarlane26-Jun-04 4:06 
GeneralThis tutorial looks better Pin
Kevin McFarlane26-Jun-04 4:15
Kevin McFarlane26-Jun-04 4:15 
GeneralPorting : MFC on Linux Pin
a_mlt124-Jun-04 22:14
a_mlt124-Jun-04 22:14 
GeneralRe: Porting : MFC on Linux Pin
Anthony_Yio28-Jun-04 18:03
Anthony_Yio28-Jun-04 18:03 
GeneralRe: Porting : MFC on Linux Pin
Anonymous16-Jul-04 7:35
Anonymous16-Jul-04 7:35 
GeneralPorting : MFC on Linux Pin
a_mlt124-Jun-04 22:12
a_mlt124-Jun-04 22:12 

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.