Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!cernvax!chx400!cgch!whkr From: whkr@ciba-geigy.ch (Hans Kraft) Newsgroups: comp.windows.ms Subject: Re: MessageBox problem Message-ID: <1990Sep11.074217.18928@ciba-geigy.ch> Date: 11 Sep 90 07:42:17 GMT References: <1990Sep9.224303.10981@bdmrrr.bdm.com> Sender: news@ciba-geigy.ch (USENET News Agent) Organization: Ciba-Geigy AG, Basel, Switzerland Lines: 11 Nntp-Posting-Host: cgche14 It is correct, that the string constants have near addresses, but the explicit casting to LPSTR does not change anything, as the function MessageBoX is prototyped in windows.h, hence the compiler does the cast automatically. I am posting this, as I had a similar problem recently. When writing a library I made in one of the library functions an enumeration looking for a special window. This failed all the time due to wrong segment switching. Now back to the original posting I would suspect a similar thing, maybe even a missing MakeProcInstance. In doubt some example source code from the original poster would help. Hans Kraft (Giovanni Forza)