CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Usul

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Re: how to determine how many digits there are in a number after the decimal point?

    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 =...
  2. Re: how to determine how many digits there are in a number after the decimal point?

    ok, this works (if you are interested)



    int CChipzahlDoc::getValidDigits(double number)
    {
    char buffer[100];

    sprintf(buffer, "%f", number);
  3. Re: how to determine how many digits there are in a number after the decimal point?

    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...
  4. Re: how to determine how many digits there are in a number after the decimal point?

    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)
  5. how to determine how many digits there are in a number after the decimal point?

    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...
  6. Replies
    2
    Views
    804

    Re: How to draw a transparent ellipse?

    thanx a lot.
  7. Replies
    11
    Views
    1,580

    Re: how to pass variables to a dialog?

    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...
  8. Replies
    2
    Views
    804

    How to draw a transparent ellipse?

    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...
  9. Replies
    11
    Views
    1,580

    how to pass variables to a dialog? [RESOLVED]

    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 =...
  10. Re: MFC: How to get the Document from the Application?

    thanx a lot. you are right. i didnt see the possibility to put the event-handler-functions in the document class. thanx.
  11. MFC: How to get the Document from the Application? [Resolved]

    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...
  12. Replies
    2
    Views
    555

    It still doesnt work. Did you try it with your...

    It still doesnt work. Did you try it with your IE offline?
  13. Replies
    2
    Views
    555

    Please try this with your Internet Explorer.

    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.*; ...
  14. Internet Explorer doesnt show Applet (but appletview does).

    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()
    {
  15. How to compile Java Servlets (using Windows, Tomcat)

    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...
  16. Replies
    0
    Views
    482

    Newbie questions to CAsyncSocket.

    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...
  17. How to start *.class file without using the MS-DOS application?

    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...
  18. Replies
    1
    Views
    792

    How to copy (and rename) a file using CFile?

    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...
  19. How to solve this annoying relative path problem on CFile.Open() ?

    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...
  20. Replies
    5
    Views
    3,466

    Thanx for all, solved the problem with your help.

    Thanx for all, solved the problem with your help.
  21. Replies
    5
    Views
    3,466

    But then the file wont be empty. If the file...

    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?
  22. Replies
    5
    Views
    3,466

    How to make a file empty using CFile?

    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...
  23. How to keep the ratio of a window when risizing it?

    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
  24. works, thanx

    works, thanx
  25. How to keep the proportions of a Window while resizing?

    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...
Results 1 to 25 of 44
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured