Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalvisual studio add-in & edit box Pin
sumo6910-Apr-05 21:26
sumo6910-Apr-05 21:26 
GeneralHelp me to kill running bugs .... Pin
Sreekanth Muralidharan10-Apr-05 19:07
Sreekanth Muralidharan10-Apr-05 19:07 
GeneralRe: Help me to kill running bugs .... Pin
oustar10-Apr-05 19:22
oustar10-Apr-05 19:22 
GeneralRe: Help me to kill running bugs .... Pin
Sreekanth Muralidharan10-Apr-05 21:31
Sreekanth Muralidharan10-Apr-05 21:31 
GeneralRe: Help me to kill running bugs .... Pin
ThatsAlok10-Apr-05 20:29
ThatsAlok10-Apr-05 20:29 
GeneralRe: Help me to kill running bugs .... Pin
Sreekanth Muralidharan10-Apr-05 21:33
Sreekanth Muralidharan10-Apr-05 21:33 
GeneralShellApi Pin
emilie560210-Apr-05 18:35
emilie560210-Apr-05 18:35 
QuestionHow to Convert BYTE * to byte[] Pin
DeepToot10-Apr-05 18:08
DeepToot10-Apr-05 18:08 
Hello,

I have a C++ dll that I just created and im having trouble converting the data inside a BYTE * to a C# version of byte[].

On my C# App I DllImported the dll, the return type i set to be an IntPtr (the return type of the C++ dll is BYTE *)

I then put the IntPtr I then Marshaled it and put the results inside a MemoryStream.

The output should have been an image (bitmap). but when trying to save to file it gives an error of not valid type.

My question is, on the C++ dll, what type is BYTE *? on my C# side should I go int, Uint32, IntPtr??

Any help would be greatly appreciated.

Steve
AnswerRe: How to Convert BYTE * to byte[] Pin
DeepToot12-Apr-05 8:53
DeepToot12-Apr-05 8:53 
GeneralCSliderCtrl + dblclick Pin
Chris Losinger10-Apr-05 15:39
professionalChris Losinger10-Apr-05 15:39 
Generalmenu and sub menu Pin
mpapeo10-Apr-05 12:31
mpapeo10-Apr-05 12:31 
GeneralRe: menu and sub menu Pin
Christian Graus10-Apr-05 13:57
protectorChristian Graus10-Apr-05 13:57 
GeneralRe: menu and sub menu Pin
mpapeo10-Apr-05 15:17
mpapeo10-Apr-05 15:17 
GeneralRe: menu and sub menu Pin
Christian Graus10-Apr-05 15:22
protectorChristian Graus10-Apr-05 15:22 
GeneralRe: menu and sub menu Pin
mpapeo10-Apr-05 15:42
mpapeo10-Apr-05 15:42 
GeneralRe: menu and sub menu Pin
Christian Graus10-Apr-05 16:03
protectorChristian Graus10-Apr-05 16:03 
GeneralRe: menu and sub menu Pin
mpapeo10-Apr-05 16:16
mpapeo10-Apr-05 16:16 
GeneralRe: menu and sub menu Pin
Christian Graus10-Apr-05 16:28
protectorChristian Graus10-Apr-05 16:28 
GeneralRe: menu and sub menu Pin
mpapeo10-Apr-05 16:43
mpapeo10-Apr-05 16:43 
Generalrun my program from DOS Pin
includeh1010-Apr-05 10:45
includeh1010-Apr-05 10:45 
GeneralRe: run my program from DOS Pin
Ravi Bhavnani10-Apr-05 11:14
professionalRavi Bhavnani10-Apr-05 11:14 
GeneralTernary Operation Pin
Ganesh_Srim10-Apr-05 9:49
Ganesh_Srim10-Apr-05 9:49 
GeneralRe: Ternary Operation Pin
Joaquín M López Muñoz10-Apr-05 10:10
Joaquín M López Muñoz10-Apr-05 10:10 
GeneralRe: Ternary Operation Pin
Ganesh_Srim11-Apr-05 8:32
Ganesh_Srim11-Apr-05 8:32 
GeneralA regular expression needed Pin
John R. Shaw10-Apr-05 9:47
John R. Shaw10-Apr-05 9:47 

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.