Click here to Skip to main content
15,900,562 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reflection - practical application Pin
Mark Churchill27-Nov-08 13:11
Mark Churchill27-Nov-08 13:11 
GeneralRe: Reflection - practical application Pin
devvvy28-Nov-08 4:37
devvvy28-Nov-08 4:37 
QuestionNeed Project Post script Editor Pin
maliafzal27-Nov-08 0:55
maliafzal27-Nov-08 0:55 
AnswerRe: Need Project Post script Editor Pin
Ashfield27-Nov-08 1:19
Ashfield27-Nov-08 1:19 
AnswerRe: Need Project Post script Editor Pin
leppie27-Nov-08 1:35
leppie27-Nov-08 1:35 
QuestionContextSwitchDeadlock Pin
dec8227-Nov-08 0:29
dec8227-Nov-08 0:29 
AnswerRe: ContextSwitchDeadlock Pin
Simon P Stevens27-Nov-08 0:42
Simon P Stevens27-Nov-08 0:42 
QuestionNeed help Marshaling in C# Pin
Tunçay Şanlı27-Nov-08 0:29
Tunçay Şanlı27-Nov-08 0:29 
Hi all...

I'll try my best to keep this query as compact as possible...

I'm currently working on a project that involves generating alarms/notifications for the Automated Distributed Control System at the company. Well, for this, the team has created Notification Client and Notification Server Applications.

There is also another .exe created that dumps a message (the message is taken from a database, by means of a function) into a Private queue (which can be viewed in the Computer Management tool). This .exe is intended to run alongside the Notification Server Application, which accesses the queue to obtain the messages, which are then displayed at the User Station by means of a method created (called rhsc_notifications; I'll detail that later).

The problem we are facing is that the display at the User station is truncated, i.e. in all fields, only the first character is displayed, and remaining data is missing. (The alarm/notification is displayed as multiple fields like Alarm generation location, priority, description, time, etc.).

This problem is faced when the Notification Server uses a method called rhsc_notifications directly. However, one of the team members created an interface in Visual Basic. This interface is called by the Notification Server, and the interface processes the message, and calls the rhsc_notifications method to display the message at the User Station. When this interface is used, the display turns out fine, no truncation. However, when the rhsc_notifications method is called directly from the Notification Server Application, there is truncation.

We are required to eliminate this interface, and call rhsc_notifications method directly. The thing is that this method uses a library that has NOT been developed in a .Net environment. Hence, there is the need to marshal the data.

We've tried a few things with marshaling, but the problem hasn't been resolved. So I'm hoping you guys will be able to help me out with this...

So, can I go ahead and post the code?

Thanks in advance...

Tunçay
AnswerRe: Need help Marshaling in C# Pin
leppie27-Nov-08 0:48
leppie27-Nov-08 0:48 
GeneralRe: Need help Marshaling in C# Pin
Tunçay Şanlı1-Dec-08 0:20
Tunçay Şanlı1-Dec-08 0:20 
GeneralRe: Need help Marshaling in C# Pin
Tunçay Şanlı1-Dec-08 0:30
Tunçay Şanlı1-Dec-08 0:30 
Question.net remoting Pin
krinaljariwala26-Nov-08 23:39
krinaljariwala26-Nov-08 23:39 
AnswerRe: .net remoting Pin
Pedram Behroozi27-Nov-08 1:32
Pedram Behroozi27-Nov-08 1:32 
GeneralRe: .net remoting Pin
krinaljariwala27-Nov-08 1:39
krinaljariwala27-Nov-08 1:39 
GeneralRe: .net remoting Pin
Pedram Behroozi27-Nov-08 2:08
Pedram Behroozi27-Nov-08 2:08 
GeneralRe: .net remoting Pin
krinaljariwala27-Nov-08 2:10
krinaljariwala27-Nov-08 2:10 
AnswerRe: .net remoting Pin
Harvey Saayman27-Nov-08 1:49
Harvey Saayman27-Nov-08 1:49 
QuestionHow to dynamically create a form in c# Pin
tonyjsebastian126-Nov-08 23:37
tonyjsebastian126-Nov-08 23:37 
AnswerRe: How to dynamically create a form in c# Pin
Kristian Sixhøj26-Nov-08 23:48
Kristian Sixhøj26-Nov-08 23:48 
AnswerRe: How to dynamically create a form in c# Pin
Sần Hải Quang27-Nov-08 0:13
Sần Hải Quang27-Nov-08 0:13 
GeneralRe: How to dynamically create a form in c# Pin
tonyjsebastian127-Nov-08 0:49
tonyjsebastian127-Nov-08 0:49 
GeneralRe: How to dynamically create a form in c# Pin
tonyjsebastian127-Nov-08 0:55
tonyjsebastian127-Nov-08 0:55 
GeneralRe: How to dynamically create a form in c# Pin
Sần Hải Quang27-Nov-08 1:23
Sần Hải Quang27-Nov-08 1:23 
GeneralRe: How to dynamically create a form in c# Pin
tonyjsebastian127-Nov-08 1:35
tonyjsebastian127-Nov-08 1:35 
GeneralRe: How to dynamically create a form in c# Pin
EliottA27-Nov-08 2:33
EliottA27-Nov-08 2:33 

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.