Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: XML file traversal ???? Pin
ThatsAlok10-Apr-05 22:37
ThatsAlok10-Apr-05 22:37 
GeneralRe: XML file traversal ???? Pin
Ritu Kwatra10-Apr-05 23:01
Ritu Kwatra10-Apr-05 23:01 
GeneralRe: XML file traversal ???? Pin
ThatsAlok10-Apr-05 23:17
ThatsAlok10-Apr-05 23:17 
GeneralRe: XML file traversal ???? Pin
Ritu Kwatra10-Apr-05 23:27
Ritu Kwatra10-Apr-05 23:27 
GeneralRe: XML file traversal ???? Pin
Ritu Kwatra10-Apr-05 23:33
Ritu Kwatra10-Apr-05 23:33 
GeneralRe: XML file traversal ???? Pin
ThatsAlok10-Apr-05 23:37
ThatsAlok10-Apr-05 23:37 
GeneralRe: XML file traversal ???? Pin
Ritu Kwatra10-Apr-05 23:53
Ritu Kwatra10-Apr-05 23:53 
GeneralRe: XML file traversal ???? Pin
ThatsAlok11-Apr-05 0:06
ThatsAlok11-Apr-05 0:06 
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 

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.