Search:

Type: Posts; User: Ward

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    2,309

    Response to the latest posts

    Answer to 'homeyg':
    I've tried something similar like you posted last. But I got compiler errors. I will verify my code against yours and test it again.
    Thanks you.

    Answer to 'Dave_Sinkula':...
  2. Replies
    7
    Views
    2,309

    Declaration of m_myStateHandlers

    BOOL (*m_myStateHandlers[3])(void);

    This was not the problem, but I can not fill it up.
  3. Replies
    7
    Views
    2,309

    Array of member functions

    Hi,
    I want to implement a statemachine using an array of member function pointers instead of using switch-case statements:

    This is the original situation:


    class MyClass
    {
    private:
    ...
  4. Thread: Toolbar problem

    by Ward
    Replies
    0
    Views
    1,043

    Toolbar problem

    I created my toolbar using CreateWindowEx. I've added custom bitmaps using TB_ADDBITMAP message. And I've also added the buttons using TB_ADDBUTTONS message.

    Now the problem I have is that I want...
  5. Replies
    17
    Views
    31,783

    I understand your explaination, but this is not...

    I understand your explaination, but this is not getting met further.
    I've posted earlier what my real goal is. Where I need this conversion for.

    I find it strange that when we cast a float...
  6. Replies
    8
    Views
    1,027

    If you seek for really basic information about...

    If you seek for really basic information about programming in C++, just read Thinking in C++
    When you're getting more experienced subscribe yourself to www.planet-source-code.com (Code of the day)...
  7. Replies
    17
    Views
    31,783

    Ok, then how will you do the following? You...

    Ok, then how will you do the following?

    You have two float values (250.84)
    You must add these values, but the calculation may only be done using an add-operation with only double values.

    Let's...
  8. Replies
    17
    Views
    31,783

    Solution

    To omnius:
    you send the output on screen using cout. try using printf.

    I found the solution, I've called it '_ftod':


    #include <stdlib.h>
    #include <stdio.h>
    #include <conio.h>
  9. Replies
    17
    Views
    31,783

    According to me JasonD is disgussing the...

    According to me JasonD is disgussing the comparisation of the representation of real numbers. I don't want to take this 'thread' to that problem, sorry (thanks for the response anyway).
    I'm very...
  10. Replies
    17
    Views
    31,783

    To tell you briefly why I need to convert a float...

    To tell you briefly why I need to convert a float to a double:

    I'm working on a Windows CE platform. I have a file containing numerical values of 4 bytes (unsigned long, int, long, float...). This...
  11. Replies
    17
    Views
    31,783

    output values against watch values

    This is the used code:

    float fValue(250.84f);
    double dValue(0.0);
    dValue = static_cast<double>(fValue);
    cout<<fValue<<endl;
    cout<<dValue<<endl;


    When I put a breakpoint on the first cout...
  12. Replies
    17
    Views
    31,783

    When I'm debugging using VC++ (using the...

    When I'm debugging using VC++ (using the Watch-screen), I see the excact values of the fValue and the dValue.
    My OS is Win2000.

    I have a feeling the not many people see this phenomenon as a big...
  13. Replies
    17
    Views
    31,783

    Conversion from float to double

    Hi, i have a problem with converting a float to a double.
    I want the double value to be the exact same value as the float value



    float fValue(250.840);
    double dValue(0.0);
    dValue =...
  14. Replies
    1
    Views
    1,607

    reply on character pointer problem

    int main(int argc, char* argv[])
    {
    void *gp1,*gp2,*gp3;
    int *ip,i;
    char *cp,c;
    float *fp,f;

    i=10;
    c='a';
    f=11.11;
  15. Replies
    2
    Views
    1,035

    Thanks

    Well, I already had the GIF format explanation from Compuserve version 89a (which I'm reading at the moment). You said you had samplecode using MFC? I'm not working with MFC, but maybe I could learn...
  16. Replies
    2
    Views
    1,035

    Displaying a GIF-picture file

    Hi,

    I'm looking for a way (source code, no libs) to open a GIF-picture file.
    I know this can be done using OleLoadPicture, but since I'm working with Windows CE, this function is not supported....
  17. Replies
    1
    Views
    5,504

    Found it myself! (Thanks anyway)

    I found this myself using some information at:

    http://support.microsoft.com/default.aspx?scid=kb;EN-US;q66370


    char szSomeString[] = {abcdefghijklmnopqrstuvwxyz...};
    int iWidth;
    HWND hList...
  18. Replies
    1
    Views
    5,504

    Listbox control with horizontal scrollbar

    Hi,

    I am working with Visual C++ 6.0 and I'm not using MFC.
    What I want to accomplish is making a listbox which will contain strings that are larger than the width of the listbox control.

    I've...
  19. Replies
    3
    Views
    801

    No, you've got me wrong there. In File1.CPP I...

    No, you've got me wrong there.
    In File1.CPP I use the class MyClass the following way:

    MyClass myObj1;
    myObj1.SomeFunctionA();

    And in File2.cpp I use the class MyClass too, just the same way:...
  20. Replies
    3
    Views
    801

    List memberfunctions

    Hi,

    I'm working on a Visual C++ project without MFC.
    My project has different CPP files.
    I use a self made DLL that contains classes.
    Each CPP file includes a header file that describes a...
  21. Replies
    1
    Views
    1,486

    Yes, I did. Obviously the wrong search engines....

    Yes, I did.
    Obviously the wrong search engines.

    Thanks!:)
  22. Replies
    1
    Views
    1,486

    Y-modem protocol info

    Hi,

    Is there anyone that can help me in finding information about the Y-modem protocol?

    Tnx!
  23. Replies
    1
    Views
    870

    Look what I found for you! :) ...

    Look what I found for you!

    :)

    http://www.planet-source-code.com/xq/ASP/txtCodeId.1553/lngWId.3/qx/vb/scripts/ShowCode.htm
  24. Replies
    1
    Views
    918

    Hint: Try to find more information about ...

    Hint:
    Try to find more information about
    SetScrollInfo
    GetScrollInfo
    ScrollDC
    ScrollWindow
    ScrollWindowEx
    the struct SCROLLINFO
  25. Thread: Your opinion?

    by Ward
    Replies
    5
    Views
    1,235

    Your opinion?

    What is according to you the best site with C++ source-code ?
Results 1 to 25 of 40
Page 1 of 2 1 2