loading...
Rate this:
 

Please Sign up or sign in to vote.

See more:

C++

Problem: How do display the message box that is error comes while device operating. This message box should be work like Modal dialog. However, I do not have information about windows handler (VB application window) to pass the Handle to the owner window of the message box to be created. Since, I do not have VB code; I have only VB application executables. I need to implement this error message display functionality in in C++/VC++ win32 application DLL.
I have tried MessageBox, However, I think that it will not be that much appropriate in this scenario.
Additional Information: -
1. Existing scenario: I have an existing application that was develop using VB language and in additions to that this application uses the Win32 dll (Not using MFC) and this dll developed using C++ on VC++ 6.0 platform. It also has OCX active X component that translate the different language (VB and C++) message/command. In short Device ( layer1 ) <-- --RS232C serial comm. --> C++/VC++ DLL (device communication interface) ( layer2 ) <-- -- > OCX (Translator) ( layer3 ) < -- --> VB Front end application( layer4 )
2. New Requirement: I have to enhance this application to provide solution for new device support and I should upgrade/ enhance the DLL Win32 dll only (not front end application)This DLL have the device interface business logic so I need to upgrade this device interface dll. I have upgraded this interface C++/VC++ DLL but problem occur for following scenario design and implementation time:
3. Condition – Will not be required any changes to VB application front-end side. Displayed message box should be work like modal dialog box without knowing windows handler. Message would be implemented at C++/VC++ dll layer. So my question is, please any friend suggest me on How to display device functionality related error information and that error elimination information.

Add a Solution

loading...
Rate this: bad
 
good

Please Sign up or sign in to vote.

Solution 1

Accept Solution Reject Solution

You say: "I have tried MessageBox, However, I think that it will not be that much appropriate in this scenario."
With this statement, you have pretty much excluded everything except a custom modal dialog. And since MessageBox is meant to be a general-purpose message display dialog, then what you want is going to be a mystery to anyone reading this forum.
What exactly are you looking for? Can you point to an example?
Why is MessageBox "not appropriate"? You know, you don't need to pass a window handle - you can just pass NULL.
What do you mean by "How to display device functionality related error information and that error elimination information."? Please try to re-word this sentence. It makes no sense.

Comments

loading...
Rate this: bad
 
good

Please Sign up or sign in to vote.

Solution 2

Accept Solution Reject Solution

If you know your Application window's caption, why don't you just FindWindow[^] ?
HWND hWnd = FindWindow(0, "MyApp");

Add your solution here

OK Paste as

Strip HTML
Encode HTML
Paste as-is
Code block
Quoted Text
Best guess

To display as

The content must be between 30 and 50000 characters.

Treat my content as plain text, not as HTML

Preview 0


I have read and agree to the Terms of Service and Privacy Policy
Please subscribe me to the CodeProject newsletters

When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Related news

Series que ver antes de morir movie
A pequena polegarzinha assistir online pretty
Devidoir feuillard plastique suicide
Tenkiller lake mapquest driving directions
Fermina marquez commentaires
Tangos e tragedias caveiras motoqueiras
Carlson brothers marquette iron rangers
Pokemon conquest como hacer evolucionar a eevee
Mary's peak oregon directions from mapquest
Mike modano nhl stats espn