[Dev-C++] howto construct messages in win32
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Zodiaq <zo...@ac...> - 2002-06-13 22:28:30
|
Hello to all dev-cpp users, I know it is a little OT, but I need some help... does anybody have a good idea how to contruct properly messages in win32 environment... question is kinda strange, so let me specify my problem: I would like to build messages from chars, put inside some doubles (FLOATs) and then some other chars etc... well I know that sprintf works fine, but I want to use some newer (C++ , Win32 or std) methodes... I tried ostrstream but behavour is veeeeery strange when I try to write to it more than once - I get only numbers... then I tried string and use it: string text = "alfa" + number + " $"; but then, when sending it to controls I get a VERY strange behavour - sending it by text.c_str( ) in controls (edit boxes) I get text from my program, but from very strange places - like from error messages... So finishing - does anybody know a good solution for my problem... btw I'm using Visual C++ .NET (few houres ago I used VC 6 and I got the same errors... and waiting for some fully functional Dev-C++ and new mingw...) and WinXP if it helps in anything... For now the only way for me is to write my own methods... but this will take time, which I don't have much to spare... -- regards, Zodiaq... |