See also this post[^] of mine about rounding in SQL Server.
If you need an exact decimal, perhaps for currency values, use a scaled integer. These are harder to find in C++, there's no standard implementation as far as I know, but basically treating an integer as if it were in cents rather than dollars, or pence rather than pounds, generally works pretty well.
ACtually when i was trying to use the code of OnInitdialog function in my onititdialog function with InsertItem function it was giving two errors .
thet were related to linking error.
Remeber I am only using cod eof OnInitDialog funcion.
Dont know why.
Sorry to bother you I have gone through the code and implemented it also. Now the problem i am facing in my tree control is that it is showing all the drives and network neighbourhood but when i am selecting any one of them it is not expanding. I dont know why although i have added the event handlers for expanding.
hello to all,
i want to use "Navigate" function of CWebBrowser2 class which i have added as a activex control in my programm but i dont know how to use it in different classes other than CMainFrame and CView class as i dont know what will be the pointer to the frame in which the web site will be dispalyed. Bcoz i want to navigate to a given web site URL after clicking a perticular button of a dialog box means i want to use "Navigate" function in a message handler of that dialog box class, how can i generate a frame in which the web site will be dispalyed.can anybody help me plz.
Following is the code i m using, and it's working.
GetText.cb = sizeof(100);
GetText.codepage =CP_ACP ;
GetText.lpDefaultChar = NULL;
GetText.lpUsedDefChar = NULL;
I know about that. But It is simple Rich Edit Box. And its Property is not setted to Password Type.
I.e. What ever I write down in that Rich Edit Box. I am able to see that. And I can retrive the Text using WM_GETEXT. but I want only the Text selected By user. Is there any other way to do it. Rather than EM_GETSELTEXT. Becoz it is unable to retrive the Text.