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':...
Type: Posts; User: Ward
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':...
BOOL (*m_myStateHandlers[3])(void);
This was not the problem, but I can not fill it up.
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:
...
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...
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...
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)...
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...
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>
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...
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...
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...
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...
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 =...
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;
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...
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....
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...
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...
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:...
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...
Yes, I did.
Obviously the wrong search engines.
Thanks!:)
Hi,
Is there anyone that can help me in finding information about the Y-modem protocol?
Tnx!
Look what I found for you!
:)
http://www.planet-source-code.com/xq/ASP/txtCodeId.1553/lngWId.3/qx/vb/scripts/ShowCode.htm
Hint:
Try to find more information about
SetScrollInfo
GetScrollInfo
ScrollDC
ScrollWindow
ScrollWindowEx
the struct SCROLLINFO
What is according to you the best site with C++ source-code ?