|
You have called me, so i 'm running to you...darling.
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
hey ...
working in a drawing application...now need to include functionality for drawing in log scale(semilog actually--y axis)...how to mark the axis
thanks
|
|
|
|
|
represent the powers of ten on the x-axis
SkyWalker
|
|
|
|
|
hi,all. I have a string to draw, I only know the position the string textout and extention in horizon the string is bounded to, so I want to calculate its bounding box's height, I do it as this:
CRect rtBBox;
int iWidth = XXXXXXX; //Supose we know its value
CPoint ptPos = XXXXXX; //supose we know its value,too
rt.SetRect(ptPos.x,ptPos.y,ptPos.x + iWidth,ptPos);
pDC->DrawText(strText,rt,DT_EDITCONTROL|DT_WORDBREAK|DT_CALCRECT);
//rt: out from drawtext coz I set one flat DT_CALCRECT
pDC->DrawText(strText,rt,DT_EDITCONTROL|DT_WORDBREAK);
when the strText is not so many characters, then it works fine, but when character is too many, then its too slow.
now the question is:
how can I draw text like I do it in multiline edit control with good efficiency.
thanks, regards.
life is like a box of chocolate, you never know what you r going to get
|
|
|
|
|
I checked it, no matter what flag you set for drawtext, once the string is long enough, then the speed will be slow,and it happens obviously.
life is like a box of chocolate,you never know what you r going to get.
|
|
|
|
|
I want to debug a service program, but every time it execute failed
from "::StartServiceCtrlDispatcher(svcEntry)", in Release mode,
it's no problem, I donn't know the reason, Please help me!
Thank you !
|
|
|
|
|
Check for this sequence:
#include <winsvc.h>
#include <stdio.h>
SkyWalker
|
|
|
|
|
And also check the program settings. The ones for debug should be the same with those for release.
SkyWalker
|
|
|
|
|
Thank you for your replay . But I cann't understand
your meaning, now my program can be compile successful
I think "#include" is no problem, about "Project setting",
can you describe it in detail , I use vc7. Thank you!
|
|
|
|
|
Oh, sorry for that... I'm using 6
SkyWalker
|
|
|
|
|
Use Getlasterror() to narrow down the problem, see what exactly is the error
|
|
|
|
|
From the error code , I cannot get and useful information.
Now I think if service program cann't be debug in vc7's environment? Perhaps it only can run in windows's console?
it's be sure ? who know ? who can tell me ? Thank you!
|
|
|
|
|
|
Hi at all!
I´m trying to recieve a signal from a normal Remote Controll with my Pocket PC. Seems, that the IrDA-Port only react on IrDA based devices. Is this right, or is there a way to get the signals that the remote control is sending to the pocked pc?
|
|
|
|
|
I am writing test cases for some utilities that use MultiByteToWideChar and WideCharToMultiByte.
I need a test case with multibyte string that has two bytes for a character. Does anyone know some sample test strings? Thanks.
|
|
|
|
|
Ask a chineese friend!
Acutaly that is the easiest way, I have even had them send me text in an email. You could also try copying them from Asian web sights.
You can code them youself using imbeded hexidecimal character values. Here is a hand coded one in Japaneese:
TCHAR* g_pJTestFind1 = _T("\xE4\xE5\xE9\x5C\xE4\xEB\xE5\xDF");
I beleive I just used random characters. Look up the code pages for Chineese, Japanes and Korean at Microsoft on the web.
For test purposes, you'll probably have to call: TCHAR* pLocale = _tsetlocale( LC_ALL, _T("Japanese") ); , in your code. You'll also need to add the launguage, you are testing, to your regional settings (Win2000 and above). You may need to, when the your test window/application pops up, go to the task bar and select the language you wish to use (for that app.).
INTP
Every thing is relative...
|
|
|
|
|
I want to Use NTGraph3D ATL/STL/OpenGL activeX control in Visual C++
to draw 3D Contour Plot.
from where i can get this ActiveX Control alognwith its documention.
I could not download its sample application becasue the error i got is server not respond.
if any body use it and has its evaluation copy plz guide me
regards,
|
|
|
|
|
Hi
i am tried to pass japnease string from desktop to pocktpc.for this i do following
1. In my unicode enabled desktop application i read japnese charcter from file, then convert it in multibyte string using WideCharToMultibyte & code page CP_UTF8
2. then on device side i read this multibyte string from file & tried to convert it back to japnese.i am trying Multibytetowidechar but problem is on device side there is no support for CP_UTF8 , then how can i parse the string back into japnese character?
Does any body help me? any other solution is welcomed.
Thanks in advance
Regards
Amit
|
|
|
|
|
I am using Visual C++ 6.0. How could I display the File Properties dialog box using this platform? For example, when I click Properties on File menu, it will display the File Properties dialog box where the user would be able to know the file size of the opened file. An example of this is MS WORD when you open an MS WORD document and click on File -> Properties, it will show the size of the file and other info.
|
|
|
|
|
SHELLEXECUTEINFO sei;
ZeroMemory(&sei,sizeof(sei));
sei.cbSize = sizeof(sei);
sei.lpFile = "myfile.txt";
sei.lpVerb = "properties";
sei.fMask = SEE_MASK_INVOKEIDLIST;
ShellExecuteEx(&sei);
I think this will help you.
In case of word dialog is custom dialog from application ,I guess.
|
|
|
|
|
I have trouble in doing large amount of convertion from CString to unsigned *char or char to unsigned char. Is there any fast method or standard function in doing this? Please help!
|
|
|
|
|
everthing is stored as char in memory, you just need a pointer to it.
W.r.t CString you have (LPCTSTR) and GetBuffer().
-prakash
|
|
|
|
|
But
LPCTSTR A 32-bit pointer to a constant character string that is portable for Unicode and DBCS.
I need unsigned char* type.
Could you explain more detail with example? Please!
|
|
|
|
|
CString str;<br />
str=_T("abc");<br />
<br />
unsigned char *s; s=(unsignedhar*)str.GetBuffer(str.GetLength()+1);<br />
::AfxMessageBox((LPTSTR)s);<br />
|
|
|
|
|
rather than doing C-type caste.
unsigned char *s=reinterpret_cast <unsigned char*> ( str.GetBuffer(str.GetLength()+1));
-- modified at 2:42 Friday 14th October, 2005
|
|
|
|