Click here to Skip to main content
15,887,776 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: How to find all files of a certain type in Memory? Pin
Richard MacCutchan5-Apr-16 23:34
mveRichard MacCutchan5-Apr-16 23:34 
GeneralRe: How to find all files of a certain type in Memory? Pin
Sonhospa6-Apr-16 0:43
Sonhospa6-Apr-16 0:43 
GeneralRe: How to find all files of a certain type in Memory? Pin
Richard MacCutchan6-Apr-16 2:26
mveRichard MacCutchan6-Apr-16 2:26 
GeneralRe: How to find all files of a certain type in Memory? Pin
Eddy Vluggen6-Apr-16 3:43
professionalEddy Vluggen6-Apr-16 3:43 
GeneralRe: How to find all files of a certain type in Memory? Pin
Sonhospa6-Apr-16 9:51
Sonhospa6-Apr-16 9:51 
GeneralRe: How to find all files of a certain type in Memory? Pin
Eddy Vluggen6-Apr-16 11:16
professionalEddy Vluggen6-Apr-16 11:16 
GeneralRe: How to find all files of a certain type in Memory? Pin
Sonhospa7-Apr-16 5:03
Sonhospa7-Apr-16 5:03 
QuestionC++ code which is callable from C#, returns a Stream and maintains state. Pin
Duncan 8429-Mar-16 10:52
Duncan 8429-Mar-16 10:52 
I have developed some code in C++ which creates a bitmap, manipulates the bitmap with Direct2D, encodes the bitmap as a jpeg and returns the image as a stream. In a .net MVC project I am importing the C++ function using Platform Invoke.

Calling the C++ function from within the C# .net MVC app works fine and an image is received as a stream. However currently when the C++ code is called it starts up and then when it returns it shuts down. I would like the C++ code to maintain a state which persists from one time it is called to the next and the next after that etc.

How can I achieve this on Windows? I have been investigating Windows Services, however I have not seen any examples of returning data to the calling code (Service control program). Is this possible with a Windows Service? Could an image be returned from a call to a Windows Service as a stream?

Or am I looking in the wrong direction? Is there a more natural way to develop a C++ program which can be called from C#, returns a Stream and maintains a state? Could this even be achieved with Platform Invoke?

Kind Regards,
Duncan.
AnswerRe: C++ code which is callable from C#, returns a Stream and maintains state. Pin
Nathan Minier30-Mar-16 1:16
professionalNathan Minier30-Mar-16 1:16 
AnswerRe: C++ code which is callable from C#, returns a Stream and maintains state. Pin
jschell31-Mar-16 9:40
jschell31-Mar-16 9:40 
Questionhow to design this scenario? Pin
girishmeena15-Mar-16 9:34
girishmeena15-Mar-16 9:34 
AnswerRe: how to design this scenario? Pin
Richard MacCutchan15-Mar-16 10:42
mveRichard MacCutchan15-Mar-16 10:42 
AnswerRe: how to design this scenario? Pin
jschell31-Mar-16 9:44
jschell31-Mar-16 9:44 
SuggestionWhat if “static” is inferred? Pin
MathuSum Mut24-Feb-16 10:39
professionalMathuSum Mut24-Feb-16 10:39 
GeneralRe: What if “static” is inferred? Pin
jschell6-Mar-16 8:19
jschell6-Mar-16 8:19 
QuestionEsb experiences Pin
Tom Wauters22-Feb-16 6:59
Tom Wauters22-Feb-16 6:59 
AnswerRe: Esb experiences Pin
jschell6-Mar-16 8:24
jschell6-Mar-16 8:24 
GeneralRe: Esb experiences Pin
Tom Wauters6-Mar-16 11:36
Tom Wauters6-Mar-16 11:36 
GeneralRe: Esb experiences Pin
jschell31-Mar-16 9:35
jschell31-Mar-16 9:35 
QuestionFile Sharing App Proposed Architecture Pin
Kevin Marois10-Feb-16 11:20
professionalKevin Marois10-Feb-16 11:20 
AnswerRe: File Sharing App Proposed Architecture Pin
Richard Deeming11-Feb-16 0:38
mveRichard Deeming11-Feb-16 0:38 
GeneralRe: File Sharing App Proposed Architecture Pin
Kevin Marois11-Feb-16 3:39
professionalKevin Marois11-Feb-16 3:39 
QuestionArchitecture - handling consecutive updates - Azure Pin
Rajeshjoseph9-Feb-16 5:13
Rajeshjoseph9-Feb-16 5:13 
AnswerRe: Architecture - handling consecutive updates - Azure Pin
Eddy Vluggen9-Feb-16 6:45
professionalEddy Vluggen9-Feb-16 6:45 
AnswerRe: Architecture - handling consecutive updates - Azure Pin
Gerry Schmitz9-Feb-16 17:40
mveGerry Schmitz9-Feb-16 17:40 

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.