Hi Everyone :-),
(Incidentally, I also posted this plea in a Microsoft Newsgroup, I hope that doesn't annoy anyone? :-) )
I am having trouble understanding why the following method (invoked when I click the corresponding button in a dialog) is not drawing an image to the screen.
void...
It is indeed of type double...but I have found the problem goes away if I don't trace any associated functions/methods when debugging (which is annoying)...now I have a bother elsewhere with -1.#INFO
Hi All,
I have written a program for which I wrote an object to mimic dynamic 2D arrays, using a single imension array, and it has been working fine.
However, in a newer part of the program, when the method GetXY is called (to get the value at a certain coordinate), a value of -1.#IND000000000...
Hi everyone,
How may one go about writing a buffer to a file in Big-Endian form rather than Little-Endian?
CString buffer;
buffer = 6;
WriteFile(myHandle, buffer, 2, &bWritten, NULL);
Gives (in hex):
06 00
How do we get:
00 06?
Any help most appreciated,
ASMD
Hi Everyone,
Thanks for all your help regarding other matters :-)
This is almost similar to a previous question, but different enough, I feel, to warrant a seperate thread...
If one was to open a modal dialog box (Dialog2) from another dialog box (Dialog1), is it possible to reference (and...
Hi Everyone :-)
In a modal dialog box, I wish to change the contents of one CEdit control each time the contents of another CEdit control are changed.
To do this, I created a function for the EN_CHANGE member function of the latter control as follows:
void test::OnChangeCedit2()
{
CString...
That is indeed a solution, thankyou.
However, I attempted to simply the problem for ease of reading and solution. Rather than increment by 5, I actually want the spin to move to the next or previous power of two, i.e.:
ceditvar.SetWindowText(pow(2, cspinvar.GetPos()));
And I don't immediately...
Hi Everyone :-)
Now imagine I am wishing to use a CSpinButtonCtrl to change the numeric contents of a CEdit control.
This is simple enough, of course, if I wish to increment/decrement the CEdit value by 1. Now suppose I actually wish to multiply the spin value by 5, i.e. show 5 for 1, 10 for...
Thanks Keith, I had tried the Format method but must have misinterpreted its usage and ended up using %s instead of %d, which crashed the computer.
All works fine now, thanks much. And to MaxDaddy :-)
Hi All :-)
Sorry to barge in here with yet another question...but this one surely IS trivial this time :-)
Having said that though, everything I expected to work either didn't or crashed.
The problem is this, I was two variables displayed inside a static text control, i.e:
var1 = 12; //could...
Thanks everyone.
To be frank, I never expected that it wouldn't be supported or I'd have worked on other solutions myself.
Thanks for the tips :-)
You've all been nominated for Tipster :-D
Hi All :-)
Surely this has been asked before, I would search but that particular facility appears to be permanently out-of-order.
What I am hoping to do is declare a 2-dimensional array with bounds according to two variables, such as:
int x = 50; // could be anything
iny y = 100; // could be...
OK...all of a sudden I feel like I need my hand held...
I tried to copy the buffer thus:
char waveHead[4];
//Open and read file
strcpy(waveHead, waveBuffer);
But this not only crashed the program but the entire computer...it has been so long since I dabbled in C++.
Thanks for the help so...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.