473,414 Members | 1,684 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,414 software developers and data experts.

MFC Dll with dialog in a new thread

Hi
I have MFC Dll with dialog, I used it in C# App.
All the function (from App to the Dll ) was at another
Thread ("Dll thread").
Not in the main (GUI) thread, but in the same one (using
queue)
The init(.) and other function first enter to Q and the
pulled by the "Dll Thread")
It's working functionality, but The MFC Dialog stays grey.
(Missing WM_PAINT (?
I think that I have problem with window handle.
The Code in the C#:
[..."MyDll.dll"...]
export static int Init(CallBack* xxx, SData* ps);
The function get delegate to return event from the DLL and
data on the application. ( name and ID, not window handle
or other data like it)
Can U help me?
Thanks
Koby

Nov 16 '05 #1
0 1177

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

Similar topics

1
by: Carmine | last post by:
I'm currently writing a small program that churns on a repetitive task while displaying a progress & cancel modeless dialog. I've been having problems due to threadlocking, and I was wondering if...
4
by: Alexander | last post by:
Hi, I have written a program that takes on some operations much more time than I expected. As I have seen users clicking wildly on the screen to make something happen, I want to follow the...
4
by: MechSoft | last post by:
Hi, there, I have a multi-threaded non-MFC program that will include a regular dll which would be part of the user interface, possibly a dialog based interface. I would prefer to have the user...
5
by: B-Dog | last post by:
I'm trying to build a custom progress bar that will run as some subs are running in the background but when I open the custom form with the progress bar on it using the showdialog, none of the subs...
5
by: Bill nguyen | last post by:
I need to popup a tiny modal dialog box when a user clicks on the "Print" button to force the user to wait for printing process to finish before he/she can continue. The model dialog box should go...
2
by: Charles Law | last post by:
The scenario is this: My UI thread creates a worker thread that performs some tasks and periodically updates the screen. All well and good, as it does this by the usual Invoke mechanism. If I...
4
by: Victor | last post by:
Hi everybody, could anybody kindly give me a clue in dealing with a following problem : I create a modeless dialog by means of CreateDialogIndirect(). The call executes within a thread and...
2
Logan1337
by: Logan1337 | last post by:
Hi. This is an odd question because I'm not sure if it's a bug or if this is how it is supposed to behave, however what is happening is I have a main window of my application that is passed to...
1
xarzu
by: xarzu | last post by:
I have a message that comes from a seperate thread of execution that I want to impact a dialog box already on the screen. The dialog box is modal but I believe it would not make any difference if...
6
by: kdikert | last post by:
I have a worker thread, and when the worker is done I want it to show a popup dialog. The sample application below demonstrates this. There are two buttons: a "Show dialog" button which immediately...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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
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,...
0
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
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...

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.