Click here to Skip to main content
15,915,509 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionBest way to display Card Information to the admin or user Pin
Hamidakhanam28-Jun-12 3:33
Hamidakhanam28-Jun-12 3:33 
AnswerRe: Best way to display Card Information to the admin or user Pin
Richard MacCutchan28-Jun-12 5:09
mveRichard MacCutchan28-Jun-12 5:09 
AnswerRe: Best way to display Card Information to the admin or user Pin
jkirkerx28-Jun-12 8:54
professionaljkirkerx28-Jun-12 8:54 
QuestionHow to identify Event handling in TFS 2012 for Bug work item onlt Pin
amit sahu2028-Jun-12 0:27
amit sahu2028-Jun-12 0:27 
AnswerRe: How to identify Event handling in TFS 2012 for Bug work item onlt Pin
jkirkerx28-Jun-12 11:50
professionaljkirkerx28-Jun-12 11:50 
Questionasp. net deployment Pin
sc steinhayse27-Jun-12 19:13
sc steinhayse27-Jun-12 19:13 
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 

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.