@ Novacain,
Thanks for your assistance!!. I don't disagree with any thing that you have said. I'll look into fixing those issues that you have mentioned, that I have access to. However, since this...
Type: Posts; User: fmuir
@ Novacain,
Thanks for your assistance!!. I don't disagree with any thing that you have said. I'll look into fixing those issues that you have mentioned, that I have access to. However, since this...
@ novacain.
Your correct, there is no message pump. The code snippet is the some and substance of the DLL. The program that uses the functions in the DLL doesn't have a message pump, so no...
GReaper,
Thanks for replying. I am using VS2008 with the Unicode Character Set. The compiler automatically uses GetModuleHandleW when Unicode is used. It will use GetModuleHandleA when Unicode is...
// Modeless Dialog
extern "C"
{
TS104_API INT TS104_S1(VOID)
{
int err;
hWnd = 0;
hInstance = GetModuleHandle(L"TS104.dll");
if( hInstance <= NULL)
{
Hello,
Does anybody have any idea why this snippet of code produces a modeless dialog box (when included in a subroutine contained in a DLL)that flashes on the screen for a fraction of a second...
@ Salem,
Trashed the casts and changed the lines of code to 'hInstance = GetModuleHandle(L"TS104.dll");,' re-compiled and the dialogs opened. Your suggestion was right on. You also piqued my...
@ Salem,
Thanks for the suggestion. I'll look at UNICODE strings tomorrow! I am assuming that GetModuleHandle() is the function to use. We'll see what happens later!
Regards,
-Frank
Hello,
I have created a DLL containing two functions that attempt to invoke dialog boxes. However, when executing the program that
calls the functions I see that the MessageBox, that's defined in...
@ Elysia,
Your example of a minimal coding sample that compiled was spot on. While thinking about something that would work, I decided to create a Win32 app using a minimal amount of code from my...
Hello Elysia,
Thanks for your response.
Namespace std is history in this project. I also removed the cast (DLGPROC) from both the CREATEDIALOG and DIALOGBOX statements. The documation stated...
Hello,
I am working on a Win32 project with VS2008 Express, where I am attempting to write a C++ program that places two dialog boxes inside a DLL. The two dialog boxes will be accessed with a C...