Search:
Type: Posts; User: Phil Nicoletti
Search:
Search took 0.13 seconds.
-
March 17th, 2002, 10:22 PM
1) What is the return value when it fails ? If zero, what does GetLastError()/FormatMessage() give ?
2) I don't see how it would matter, but GetCurrentDirectory() uses LPTSTR not LPSTR.
-
March 17th, 2002, 10:13 PM
1) Put in OnInitialUpdate()
2) is the ID of the button IDC_LABEL ?
3) try creating "LABELD" , "LABELX" , and "LABELF"
-
March 21st, 2001, 10:43 PM
You are missing a header file : Resource.h
You can probably include it directly into the flash.h file, but usually it is included via another file.
-
March 21st, 2001, 10:35 PM
I do not do much GDI programming, but this question
has been asked before ... here are some links to
answers that were rated "excellent"
...
-
March 21st, 2001, 10:07 PM
can you
pDC->SetBkMode(TRANSPARENT);
-
March 21st, 2001, 09:35 PM
I've never seen JKS's algorithm, but it looks interesting. It looks similar to this one, but puts a weight on the red/green/blue component (I think). Here is one that just finds the color in the...
-
March 19th, 2001, 11:03 PM
As Paul showed in his post , the x.size() has the number of elements
-
March 19th, 2001, 10:07 PM
you should use <vector> instead of dynamic arrays, so you will need :
#include < vector >
Usage :
-
March 19th, 2001, 09:56 PM
I missed one "check for zero" in the previous post. Here is a corrected version (and I also added a removeZero() function, since it was used in a number of places :
CString convert_to_text(int...
-
March 19th, 2001, 09:33 PM
This should work for numbers between 0 and 999999.
I use vector so you need to :
#include < vector >
Here is the function :
-
March 19th, 2001, 07:26 PM
There are lot's of different ways to do it. Assuming
you keep all the Fortran settings as default and want
normal Fortran arguments (by reference, not by value) :
//
// declare the fortran...
-
March 18th, 2001, 10:08 PM
I suspect the screen saver is in a loop that does not allow the messages to be processed. The best way to get around this is by using threads. However, here is a quick fix that you can try :
In...
-
March 18th, 2001, 11:46 AM
You do not destroy classes when the destructor is called, only an OBJECT of that class.
-
March 17th, 2001, 09:50 PM
to get the resolution :
int width = GetSystemMetrics(SM_CXFULLSCREEN);
int height = GetSystemMetrics(SM_CYFULLSCREEN);
To change the settings, look at :
-
March 17th, 2001, 09:42 PM
Why not just :
test.verify(number,local);
(But I don't see where you declare these variables).
-
March 16th, 2001, 09:17 PM
Well, there's not much we can do if you don't show code. I would suggest just sitting down and writing the code - don't worry if it doesn't work the first time. Another suggestion - start off...
-
March 15th, 2001, 10:55 PM
1) bring up the dialog in the editor
2) left click on the drop-down arrow for the combobox
3) click and hold on the blue square in the bottom center
4) drag the sqaure down to make the combo-box...
-
March 15th, 2001, 06:21 PM
//
char test[20][12];
char newname[12];
//
strcpy(test[1],"aaaaaaaaaaa");
strcpy(test[2],"bbbbbbbbbbb");
strcpy(test[3],"ccccccccccc");
//
strcpy(newname,test[1]);
-
March 14th, 2001, 09:28 PM
I believe that it is a homework assignment (which is why I did not write the entire code), so he is not supposed to use MFC CList. Plus he has some special requirements not taken into account...
-
March 13th, 2001, 06:45 PM
By mistake I responded to the post by ThomasK instead of your post, but his suggestion is actually very good. Having done this, you can simulate the behavior of srand() and rand() by :
//
//...
-
March 12th, 2001, 10:00 PM
CMenu *pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
pSysMenu->RemoveMenu(SC_MAXIMIZE, MF_BYCOMMAND);
-
March 12th, 2001, 09:12 PM
Strangely enough, this works ... (it does not gray the maximize menuitem, but clicking on it does nothing ...
CMenu *pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL) ...
-
March 12th, 2001, 08:53 PM
Post what you have done so far, and I will take a look at it.
-
March 12th, 2001, 07:54 PM
What do you mean by "very big integer numbers" ? Integers that are too large to fit in a normal computer word ?
-
March 11th, 2001, 04:33 PM
This worked for me (called from Mainfrm.cpp) :
EnableMenuItem(::GetSystemMenu(m_hWnd, FALSE), SC_CLOSE, MF_BYCOMMAND|MF_GRAYED);
|
Click Here to Expand Forum to Full Width
|