Search:
Type: Posts; User: Usul
Search:
Search took 0.04 seconds.
-
October 25th, 2004, 02:57 PM
Yes, but as I mentioned before I do not care for precision.
Just pretend my numbers dont have more then 10 digits after the decimal point.
For example I could do this: number =...
-
October 25th, 2004, 11:33 AM
ok, this works (if you are interested)
int CChipzahlDoc::getValidDigits(double number)
{
char buffer[100];
sprintf(buffer, "%f", number);
-
October 25th, 2004, 10:54 AM
thanx.
Im going to try that String-approach.
By the way: I dont have numbers with more then 15 digits. Only relativly small numbers (or I dont care for greater precision).
And Im not...
-
October 24th, 2004, 02:17 PM
Im using double. Its hard to explain what I need it for, but it doenst matter anyway. I think the problem is clear.
I need a function:
int getDigitsAfterDecimalPoint(double number)
-
October 24th, 2004, 01:32 PM
hi,
so I'd like to determine how many digits a number has after the decimal point.
For example:
2.300000 => one digit
0.00040 => four digits
232.4343003 => seven digits...
-
October 17th, 2004, 10:44 AM
-
October 17th, 2004, 05:55 AM
well, I found the problem now. I dont know exactly why (I come from Java and I am new at c++), but the standard constructor always was calles after my custom cunstructor and there the variables...
-
October 17th, 2004, 05:32 AM
hi,
I tried CBrush lBrush(TRANSPARENT); I tried pDC->SetBkColor(TRANSPARENT) and many other things but still my ellipse overdraws everything beneath it.
But I just want to draw the border of...
-
October 16th, 2004, 09:33 AM
mfc project
i have a custom dialog.
now I want to pass variables to the dialog before it is shown.
so I decided to write my own constructor, in order to do that:
CValuesDlg valuesDlg =...
-
October 16th, 2004, 09:25 AM
thanx a lot. you are right. i didnt see the possibility to put the event-handler-functions in the document class. thanx.
-
October 16th, 2004, 06:18 AM
hi,
I have a mfc-programm with the document/view-architecture.
Then I made a menu. Now, the functions which respond to the user clicking on the menu are in the Application class. Now I want...
-
September 7th, 2002, 02:58 AM
It still doesnt work. Did you try it with your IE offline?
-
September 6th, 2002, 02:35 PM
Hi,
I have the feeling, that the internet Explorer cant show applets, if they are saved in a local folder. Can you please try this with your IE? Compile this Applet:
import java.applet.*; ...
-
September 5th, 2002, 01:32 PM
Hi,
I have a simple applet called HelloWorld.class with this simple code:
import java.applet.*;
import java.awt.*;
public class HelloWorld extends Applet
{
public void init()
{
-
September 5th, 2002, 03:37 AM
Hi,
well how can I compile JavaServlets. It says "To compile the ExampServlet.java servlet you will also need to install the JavaServerTM Web Development Kit and add it to your class path as you did...
-
September 2nd, 2002, 12:15 PM
Hi,
does anyone know a good link where CAsyncSocket is explained with an example?
Does CAsyncSocket have any disadvantages? I mean can it do everything, thats possible within a network?
thanx...
-
September 2nd, 2002, 06:27 AM
Hi,
I know to use the MS-DOS Prompt application to run my *.class files (using: java MyClass). But is there a way to do it without the MS-DOS Prompt application ?
I mean if I try to run my...
-
September 2nd, 2002, 04:01 AM
Hi,
lets say I've opened a file called test.txt with CFile.Open() . But now I want a copy of this file, maybe named test.copy . How can I do this?
Do I have to create test.copy and then read...
-
September 1st, 2002, 04:09 PM
Hi,
I have a programm that always opens a file when its starts like this:
m_JavaPath.Open("Resources\\JavaInfo.path", CFile::modeReadWrite | CFile::shareDenyNone, &Error);
Of course I use a...
-
September 1st, 2002, 01:04 PM
Thanx for all, solved the problem with your help.
-
September 1st, 2002, 12:23 PM
But then the file wont be empty. If the file contains: "ABCDEFG" and I do use SeekToBegin() and write "123", then the file will contain "123DEFG" and not "123", right?
-
September 1st, 2002, 11:32 AM
Hi,
How can I make a file empty, that already contains something, by using CFile? Lets say I've opened the file correctly with CFile.Open() and now I want to delete everything in it, without...
-
August 28th, 2002, 08:45 AM
I have a MFC project and would like to know how I can make sure, that the ratio window_width / window_height remains the same.
thanx
-
August 28th, 2002, 08:42 AM
-
August 28th, 2002, 04:15 AM
Hi,
How to keep the proportions of a Window while resizing in a SDI project? I guess it can be done whit the help of WM_SIZING for the MainFrame object but I didnt manage to write a code that does...
|
Click Here to Expand Forum to Full Width
|