473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

managed and unmanaged project.

Hi I have a managed front end
and a
unmanaged back end.

The back end does the processing work.
While processing I want to populate a listbox on the main form. How
can I access the list box ?

this pointer does not work ?

Gerry.
Sep 5 '08 #1
2 1059
<ge***********@gmail.comwrote in message
news:80**********************************@a1g2000h sb.googlegroups.com...
Hi I have a managed front end
and a
unmanaged back end.

The back end does the processing work.
While processing I want to populate a listbox on the main form. How
can I access the list box ?
The back end, by definition, is something that does not deal with the UI in
the front end. Indeed, the back end should not even know of or require the
existence of the front end!

In your scenario, your backend should just hand the _data_ (not list box
items, or something like that... but raw data - say, a list of error
messages) to the front end, and then the front end can decide what to do
with it - ignore, Console.WriteLine, or fill the listbox.

How to do it best depends on the nature of the backend - it is just an
unmanaged .dll with plain C-style API, a COM component, or a separate
process? - and on what it is written in.
Sep 6 '08 #2
Thank you V. much.

Pavel Minaev wrote:
<ge***********@gmail.comwrote in message
news:80**********************************@a1g2000h sb.googlegroups.com...
Hi I have a managed front end
and a
unmanaged back end.

The back end does the processing work.
While processing I want to populate a listbox on the main form. How
can I access the list box ?

The back end, by definition, is something that does not deal with the UI in
the front end. Indeed, the back end should not even know of or require the
existence of the front end!

In your scenario, your backend should just hand the _data_ (not list box
items, or something like that... but raw data - say, a list of error
messages) to the front end, and then the front end can decide what to do
with it - ignore, Console.WriteLine, or fill the listbox.

How to do it best depends on the nature of the backend - it is just an
unmanaged .dll with plain C-style API, a COM component, or a separate
process? - and on what it is written in.
Sep 11 '08 #3

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

Similar topics

1
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a...
4
by: repstat | last post by:
Hi I have a project which is going to be doing some string manipulation which needs to be pretty fast. The user interface is going to be written in C#. I am going to write the string handling...
3
by: zhphust | last post by:
I want to convert a object of a managed class to a unmanaged structure that has the same member with that managed class. Can anybody tell me how i can do it? Thanks in advance. -- zhphust...
0
by: Ken Durden | last post by:
A little more info. I have a unmanaged C++ DLL, compiled without /CLR. Inside a Managed C++ DLL, I have the following class: MarshalWrapper.h ---- #ifdef _MANAGED __nogc #endif
2
by: Martin Zenkel | last post by:
Dear VS Team, using the Beta 2 of VS 2005 I've encontered the following problem. Let's assume threre are three Dll's, one unmanaged and two managed. In the unmanaged we put a simple unmanged...
13
by: bonk | last post by:
Hello, I am trying to create a dll that internally uses managed types but exposes a plain unmanaged interface. All the managed stuff shall be "wrapped out of sight". So that I would be able to...
3
by: Cmtk Software | last post by:
I'm trying to define an enum which will be used from unmanaged c++, C++/CLI managed c++ and from C#. I defined the following enum in a VS dll project set to be compiled with the /clr switch: ...
25
by: Koliber (js) | last post by:
sorry for my not perfect english i am really f&*ckin angry in this common pattern about dispose: ////////////////////////////////////////////////////////// Public class...
5
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I have a class that is writen in unmanaged pure native C++. This class files (h and cpp) are inserted to a managed C++ (VC++ 2005, C++/CLI) DLL compoenet. This DLL compoenet is used in a C#...
3
by: Pixel.to.life | last post by:
Hi, Gurus, I recently attempted to build a .Net forms application, that links with old style unmanaged C++ static libs. Of course I had to recompile the static lib projects to link properly...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.