|
Yes i'm updating only static control not dialog box.
Thanks i'll search Keith Rule's CMemDC
Manoj Kumar Chauhan
|
|
|
|
|
Yes you get a flickering problem coz when you call OnPaint() or Invalidate()
you are redrawing the whole window. try this
Create your function e.g MyDrawing(int x,int y)
{
CClientDC dc(this);
dc.SetTextColor(RGB(0,0,255));
dc.TextOut(x,y,"my text");
}
in you Mouse Move Handler
{
....
MyDrawing(point.x,point.y);
}
then play around with rectangles
|
|
|
|
|
It will work but we need to call Invalidate() also b'se if everytime i draw text at different position then previous text will also visible.
Manoj Kumar Chauhan
|
|
|
|
|
i wnat to show the cpu usage in a text box in my application. how do i do it?
|
|
|
|
|
|
Hi,
Is it possible to remove those ok/cancel/apply buttons from
the property sheets?? (or) only disabling those s possible..
if so,hw to do them??
Gita
|
|
|
|
|
|
Hi,
I m gettin a run-time(debug window) error if i use th following code:
CWnd *pWnd = GetDlgItem (ID_APPLY_NOW);
pWnd->ShowWindow (FALSE);
and my application gets terminated..
Gita
|
|
|
|
|
HI
how to convet Cbyte array to Cstring and vice versa
k.guru moorthy
|
|
|
|
|
guru moorthy.k wrote: Cbyte array
you have to manually code that, i don't think there will be direct method.
you could try memcpy with raw CByteArray object with Char array!, just the suggestion
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
|
You can make use of ATL's base64encode, base64decode utils too.
|
|
|
|
|
How do I compile MEX-files in MSVC with MATLAB 6.0
#sanroop#
|
|
|
|
|
A little bit of Googling goes a long way. See here[^].
Steve
|
|
|
|
|
I want to separate the number into values before decimal point and after decimal point. Is there standard C++ function for this purpose?
Example: 123.45 to 123 and 0.45
Best Regards,
Suman
|
|
|
|
|
double dValue = 123.45;
before decimal point,
int iBefore = (int)dValue;
after decimal point,
double dAfter = dValue - iBefore;
|
|
|
|
|
Hi, I have already implemented the same way you mentioned, but I want to know any library function for this purpose. Thanks for the help!!
Best Regards,
Suman
|
|
|
|
|
Use fmod()[^]
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
use modf or modff
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Thanks a lot for everybody's great help!!
Yes it is fabs[^]"> and fmod/fmodf functions[^]">
Best Regards,
Suman
|
|
|
|
|
Does any one how to set Visual Studio Environmental Variables
http://msdn2.microsoft.com/en-us/library/aa909648.aspx
From this page it says Project->Properties->Configuration Properties->environment
Problem with that is I am running Visual Studio Team Edtion for Software Developers 2005 and When I click On configuration properties I have C++,Linker,..etc but I dont have a selection for Enviroment
Thankx
|
|
|
|
|
hi any environmental variables added to ur visual studio like link ,include file etc..
its go to this path..
Project->Properties->Configuration Properties->projects and solution->VC++ directories ..
raju.k
|
|
|
|
|
Hi,
What I am refering to is When you setup variuos Libraries e.g. $(ProjectSolution) or $(TargetDir) These Variables Have Certain Values
If you were to go Properties-> Configuration Properties the first entry is General on the right hande side is any entry for OutputDirectory if click on the Drop down and go into edit There 3 buttons one of them is "macros" if you click on it you will see all the Variables However you cann't add of Modify them
|
|
|
|
|
Hi all,
I want to write some data in XML format. Actually not to a XML file, just as XML stream. So, I've added some attributes as follows.
pWriter->WriteAttributeString(NULL, L"CharacterCount", NULL, L"5");
As you can see the last argument is a string. But I want to add a int value there, which is calculated from a data map.
I tried as follows.
int char_count = dataMap->first;
pWriter->WriteAttributeString(NULL, L"CharacterCount", NULL, char_count);
but it gives a compile error.
error C2664: 'IXmlWriter::WriteAttributeString' : cannot convert parameter 4 from 'int' to
'LPCWSTR' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast
or function-style cast
How can I do this conversion.
I appreciate your help all the time...
Eranga
|
|
|
|
|
CString t;
t.Format("%d", char_count);
pWriter->WriteAttributeString(NULL, L"CharacterCount", NULL, t);
|
|
|
|