473,493 Members | 4,334 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Send small struct from Win32 to C#

Rob
Any opinions on the best way to send a small text struct from a legacy
win32 (non-MFC) app to a C# app?

There seem to be a lot of options, but I'm trying to keep the Win32
side as simple as possible. I don't want to use threads on that side.
Prefer that the Win32 app just bundles up strings and sends them off
(inline code) without waiting for acknowledgement. Short delay for
processing is OK. I don't want to hang the app if there's no
receiver.

On the C# side, I don't mind getting more complex. Threading, etc is
no problem.

The apps will be running on the same machine. Inter-machine
networking not required, though maybe sockets or http is the way to go
anyway.
Jun 25 '06 #1
0 1167

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
11779
by: ian | last post by:
Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the...
6
3235
by: Tom | last post by:
I try to write a simple tcp based job queue server. It's purpose is to get commands from a client and store them in a queue (STL). The server has a thread which checks periodically the queue,...
5
1606
by: nicolas ETIENNE | last post by:
Hello, I want to send through Socket a struct So, i'd like to do, as I did before in C++, something like send((void*)myStruct); where myStruct is a struct with basic types
1
1536
by: jsshah | last post by:
Hi I want to marshal following Win32 struct into .NEt class or struct as I want to call a native dll function from a Csharp code. The win32 struct ----------------------- typedef struct...
14
11857
by: eliss.carmine | last post by:
I'm using TCP/IP to send a Bitmap object over Sockets. This is my first time using C# at all so I don't know if this is the "right" way to do it. I've already found out several times the way I was...
20
1493
by: Army1987 | last post by:
Under Linux (gcc) this works OK, but under Windows (lcc-win32) p.Blue always is zero. Within the function itself, result.Blue is correct (either 0, 255, or the floor of the expression assigned to...
1
1993
by: Polaris | last post by:
Hi Experts: In my C# program I need to use a Win32 DLL which leads to a question: how to define Win32/C++ struct with array in C#. For example, I have a C++ struct: struct MY_STRUCT { int ...
0
1040
by: =?Utf-8?B?Uk9MU1Q1?= | last post by:
I have a native win32 C++ DLL that has exported functions (I can't modify the win32 DLL). One of these exported functions needs a pointer to a structure. The structure contains virtual functions. ...
0
5084
by: Xionbox | last post by:
Hello everybody, The error I have seems very easy to solve, but for some odd reason I can't seem to solve it. Anyways, here's my "setup". I created a server running on localhost:1200 (telnet...
0
7118
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7192
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5452
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.