Article View: comp.windows.ms.programmer
Article #187Re: Psychotic Dialog Box Problems! BC++ 3.0 Freak?
From: RUNE HALFDAN HOLST HUSEBY
Date: Mon, 06 Apr 1992 18:35
Date: Mon, 06 Apr 1992 18:35
51 lines
2598 bytes
2598 bytes
In article <1992Apr3.053130.15971@cs.mcgill.ca> storm@cs.mcgill.ca (Marc WANDSCHNEIDER) writes: >I am trying to make a modeless Dialog Box. Thus, I did the following >sequence of things: >FARPROC lpDlgFn; >HWND hDialogb; >lpDlgFn = MakeProcInstance (AboutFunction, hInstance); >hDialogb = CreateDialog (hInst, "AboutBoxTemplate", hwnd, lpDlgFn); >I am using Borland C++ 3.0, and I am using C++, so what I did was to use the >_export keyword in the function definition: >BOOL FAR PASCAL _export AboutFunction (blahblahblahblah); etc... >and I still left the EXPORTS part in the .DEF file, even though I still get >warnings about illegal attempts to export functions. >NOW, the screwy thing, is that hDialogb = NULL whenever I try to run this >program, UNLESS >Turbo C++ for Windows is running. When that program is running, the Modeless >Dialog box works fine, but as soon as I quit that, the handle gets set >back to NULL again and the dialog box no trabajo! >However, despite the fact that I am using BC++ 3.0 to compile this thing, I >see no reason why It should be affected by the C++ windows IDE, which I have >never used.... >Does somebody have ANY Idea what's going on...? THis is just too weird. >Toodles! It could be that you need the BWCC.DLL in memory when running. Turbo C++ for Windows automatically loads this DLL into memory(and thus unloads it afterwards). To load the .DLL from your program, include a call to BWCCGetVersion() in the beginning of your program. It is defined in BWCC.H. I hope this will solve your problem. >-- > storm@cs.mcgill.ca McGill University C program run. Run > Marc Wandschneider Montreal, CANADA Program run! PLEASE! > No Dogs were harmed in the writing of this message. A cat got sick, > somebody shot a duck, but that's it! Rune Huseby (runeh@sofus.dhhalden.no)
Technical Details
Message-ID:
<runeh.13@sofus.dhhalden.no>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!ugle.unit.no!nuug!fenris!sofus.dhhalden.no!runehReferences:
<WOOD.92Apr1090915@wood.Software.Mitel.COM> <11299@ecs.soton.ac.uk> <1992Apr3.052254.15606@cs.mcgill.ca> <1992Apr3.053130.15971@cs.mcgill.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!ugle.unit.no!nuug!fenris!sofus.dhhalden.no!runeh From: runeh@sofus.dhhalden.no (RUNE HALFDAN HOLST HUSEBY) Newsgroups: comp.windows.ms.programmer Subject: Re: Psychotic Dialog Box Problems! BC++ 3.0 Freak? Message-ID: <runeh.13@sofus.dhhalden.no> Date: 6 Apr 92 18:35:03 GMT References: <WOOD.92Apr1090915@wood.Software.Mitel.COM> <11299@ecs.soton.ac.uk> <1992Apr3.052254.15606@cs.mcgill.ca> <1992Apr3.053130.15971@cs.mcgill.ca> Sender: news@fenris.dhhalden.no (Network News User) Organization: Ostfold College Lines: 51 Nntp-Posting-Host: pc200