|
Hi,
following syntax has wszWallpaper as unicode string.
wcout << L"Wallpaper path is:\n " << wszWallpaper;
Now wallpaper path is prefixed with "L" to interpret the string as unicode.
can it be prefixed with "_T" as
wcout << _T"Wallpaper path is:\n " << wszWallpaper;
since TCHAR can be used to present ANSI as well as unicode.
Please follow up.
Leya
|
|
|
|
|
_T is a macro which needs parenthesis:
wcout << _T("Wallpaper path is:\n") << wszWallpaper;
|
|
|
|
|
yang__lee wrote: can it be prefixed with "_T" as
wcout << _T"Wallpaper path is:\n " << wszWallpaper;
actually, yes, but not like you do.
use _T macro like this :
wcout << _T("Wallpaper path is:\n ") << wszWallpaper;
BTW, be aware that TCHAR is defined as wchar_t when UNICODE is defined, ,but is defined to char only, if the project is building Single bytes strings...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Hi Frends,
Windows 2000 architecture provides support for three kind of subsystems
1)Win 32 2)OS/2 3) POSIX .
Can anybody give me some examples ,where in OS/2 and POSIX subsystems are used in real world?
Thanks.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
|
Thanks Sarath for the help.
But in one seminar , i came to know that the Subsystem that is used in ATM machines is POSIX .It is not Win32.
Is there any such applications exist with OS/2 subsystem ??
Thanks.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Hi to all,
I am using "WM ASF Writer" Filter for streaming videos in Network. But I dont want to write the file using this "WM ASF Writer" Filter. Plz. help me for that.
Thanks in advance.
Best Regards,
Aniket
|
|
|
|
|
Hi,
I want to apply XP theme to my program .
How can i do this?
I am using VC++6.0.
Thanx in advance.
-- modified at 2:33 Thursday 8th June, 2006
|
|
|
|
|
sruti_p wrote: How can i do this?
use SetWindowTheme
or Add a manifest file to the resources
nave
|
|
|
|
|
|
mail me i will send u the code.. The code contain some HTML tags.. So i coudn't post it here
nave
|
|
|
|
|
|
one way in your rc file add this code
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST ".\\test.manifest"
test should replaced by name your project
whitesky
|
|
|
|
|
Hi all,
I need to change the font of Edit box ,
But I have no idea how to do it.PLz help.
Thanks to all
Saday
Saday Chand Sarkar
Trek Technology(s)Pte.Ltd.
|
|
|
|
|
use SetFont();
CEdit m;
m.SetFont();
whitesky
|
|
|
|
|
Use CFont;
CFont font.CreateFont(nFontSize, 0, 0, 0, FW_NORMAL, FALSE, FALSE,
FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY, DEFAULT_PITCH|FF_DONTCARE, _T("Arial"));
Using object of Edit Ctrl call
SetFont()
Regards
Amar
|
|
|
|
|
or one good example see
<br />
CFont FontEdit;<br />
CFontDialog m_dlg;<br />
if(m_dlg.DoModal()==IDOK)<br />
{<br />
FontEdit.CreateFontIndirect(&m_dlg.m_lf);<br />
m_Edit.SetFont(&FontEdit);<br />
}<br />
whitesky
|
|
|
|
|
Yes I got .
Thanks a lot.
Saday Chand Sarkar
Trek Technology(s)Pte.Ltd.
-- modified at 3:04 Thursday 8th June, 2006
|
|
|
|
|
Hello everyone,
I am developing an application which contains a tree structure. The tree structure reflects the management structure of a big company -- child node represents the employees managed by direct manager (parent node), one parent node may have multiple (various) number of child nodes (employees he/she managed in his/her department).
I need to find all the employees a manager managed in the tree structure, the direct child node, the child node's child node, ... and so on (for example, if he is a senior manager, there are multiple levels of child nodes).
Currently, I am using brute force tree traverse approach to print all (direct and indirect) child nodes -- layer by layer. The tree is very large. I am wondering whether there are any good ideas about how to improve the search performance?
thanks in advance,
George
-- modified at 1:52 Thursday 8th June, 2006
|
|
|
|
|
just my problem is like once we point the item in the listbox in yahoomessenger we get the dialog and we get information about that particular id.how they getting
give me some idea to solve this problem.or send some sample code regarding this
thank u,
sree.
|
|
|
|
|
sree_as wrote: listbox in yahoomessenger
where?
nave
|
|
|
|
|
i will tell my requirement.one u keep the mouse pointer on the listbox item i will show all the information of that item one's we remove mouse pointer it should close.but not using tooltips
|
|
|
|
|
there is a fuction called ItemFromPoint() for CListBox. so in the mouse move call this function to get the item below the mouse point...
nave
|
|
|
|
|
any examples in our code project.do u know skype.
-- modified at 2:43 Thursday 8th June, 2006
|
|
|
|
|
void ListBoxEx::OnMouseMove( UINT uFlags_i, CPoint point_i )
{
BOOL bOutSide;
int nItem = ItemFromPoint( point_i, bOutSide );
if( FALSE == bOutSide )
{
CString csText;
CListBox::GetText( nItem, csText );
AfxMessageBox( csText );
}
CListBox::OnMouseMove( uFlags_i, point_i);
}
nave
|
|
|
|