Click here to Skip to main content
15,881,866 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: asp. net deployment Pin
Vani Kulkarni28-Jun-12 0:56
professionalVani Kulkarni28-Jun-12 0:56 
QuestionStoring file in a Stream rather than storing in the file Pin
indian14327-Jun-12 11:04
indian14327-Jun-12 11:04 
AnswerRe: Storing file in a Stream rather than storing in the file Pin
R. Giskard Reventlov27-Jun-12 11:28
R. Giskard Reventlov27-Jun-12 11:28 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
indian14327-Jun-12 12:02
indian14327-Jun-12 12:02 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
indian14327-Jun-12 14:14
indian14327-Jun-12 14:14 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
jkirkerx27-Jun-12 15:35
professionaljkirkerx27-Jun-12 15:35 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
indian14328-Jun-12 5:29
indian14328-Jun-12 5:29 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
jkirkerx28-Jun-12 7:12
professionaljkirkerx28-Jun-12 7:12 
As far as storing a stream in a buffer, you just make a stream, and open the file, and copy the file stream into the stream. From there, you can read the stream into a byte array, and manipulate the byte array, and copy it back to a stream, and write the file.

As for the code sample that I have written,

After learning how to write in c++, I have learned that in asp.net, you can load unmanaged code written in c or c++, and use the functions inside them, as if your application was a c++ program. But in order to do so, you have to create an interface or a wrapper, that declares each internal function in vb or c#, so that vb or c# can understand them. Once vb or c# understands what's going in and what's being returned, then you can use the code successfully.

The reason the code looks so foreign, is because it's the high end of vb or c#.

The first block is a typical code, that produces your thumbnails.

The 2nd block, is the interface between vb and c++. It can be C# and c++ as well, but you need a interface to access the shell32.dll.

[EDIT]

So until I get it working, if I can, the code is of no use to anyone. That's what I meant earlier in a previous post that I have nothing to offer at the moment.
GeneralRe: Storing file in a Stream rather than storing in the file Pin
indian14328-Jun-12 9:54
indian14328-Jun-12 9:54 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
jkirkerx28-Jun-12 10:30
professionaljkirkerx28-Jun-12 10:30 
Questioncreating Menus horizontal Pin
deeptul27-Jun-12 9:51
deeptul27-Jun-12 9:51 
AnswerRe: creating Menus horizontal Pin
R. Giskard Reventlov27-Jun-12 9:55
R. Giskard Reventlov27-Jun-12 9:55 
QuestionSplitting Large file in to Chunks Pin
indian14327-Jun-12 7:59
indian14327-Jun-12 7:59 
AnswerRe: Splitting Large file in to Chunks Pin
jkirkerx27-Jun-12 8:34
professionaljkirkerx27-Jun-12 8:34 
GeneralRe: Splitting Large file in to Chunks Pin
indian14327-Jun-12 10:12
indian14327-Jun-12 10:12 
GeneralRe: Splitting Large file in to Chunks Pin
jkirkerx27-Jun-12 10:46
professionaljkirkerx27-Jun-12 10:46 
GeneralRe: Splitting Large file in to Chunks Pin
indian14327-Jun-12 11:05
indian14327-Jun-12 11:05 
GeneralRe: Splitting Large file in to Chunks Pin
R. Giskard Reventlov27-Jun-12 10:30
R. Giskard Reventlov27-Jun-12 10:30 
GeneralRe: Splitting Large file in to Chunks Pin
indian14327-Jun-12 11:10
indian14327-Jun-12 11:10 
QuestionCalculations in vb.net Pin
Fiona Tan27-Jun-12 7:05
Fiona Tan27-Jun-12 7:05 
GeneralRe: Calculations in vb.net Pin
jkirkerx27-Jun-12 7:23
professionaljkirkerx27-Jun-12 7:23 
QuestionMultiple bookings using arraylist Pin
Fiona Tan27-Jun-12 7:03
Fiona Tan27-Jun-12 7:03 
AnswerRe: Multiple bookings using arraylist Pin
Sandeep Mewara27-Jun-12 8:13
mveSandeep Mewara27-Jun-12 8:13 
QuestionCustom pageing Pin
kuldeep vatsal27-Jun-12 2:39
kuldeep vatsal27-Jun-12 2:39 
AnswerRe: Custom pageing Pin
Sandeep Mewara27-Jun-12 4:47
mveSandeep Mewara27-Jun-12 4: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.