|
wchar_t is a keyword in C++ and is used to designate wide-character type(not multibyte).
In VC7 there's an option to set whether to treat wchar_t as a built-in type or unsinged short .
-- modified at 3:53 Friday 29th September, 2006
|
|
|
|
|
fefe.wyx wrote: (not multibyte).
I Checked this out from MSDN.
The exact lines are:
A variable of __wchar_t designates a wide-character or multibyte character type. By default, wchar_t is a typedef for unsigned short;
fefe.wyx wrote: set whether to treat wchar_t as a built-in type or unsinged short.
Yes I have read about it. It's also mentioned in MSDN.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
For Example,When you want to process Chinese font,you have to chose the wchar type in your programer.
|
|
|
|
|
Daniel Kanev wrote: How can I create a wchar_t string?
The STL class wstring deals with wchar_t 's. You can use it just like you would the string class (with the wide versions of other STL classes, that is).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
|
hi,
i have a editbox control in a dialog box.
on entering the string in the editbox and clicking the button
the string have to be inserted in the listbox of the already opened other dialog box
can anybody help??
thanx in advance,
zari
|
|
|
|
|
keep a pointer of the list box in the first dialog( dialog which have the edit box). Then on pressing the button call the AddString function of that pointer.
nave
|
|
|
|
|
You may right the interface function for setting the value in the second dialog
On the button click of first dialog
{
Dlg->SetDataToListBox( m_Edit.GetWindowText()); //Where Dlg is the second dialog class object
}
In the second dialog
2ndDlg::SetDataToListBox( CString EditData ) // SetDataToListBox function the dialog class of the second dialog
{
m_ListBox.AddString( EditData );
}
Rinu Raj
|
|
|
|
|
zareee wrote: : Re: Listbox control
You can take the text of the edti box on the click of the button using the GetWindowText.
For list control you can then use CListCtrl::SetItemText()which Changes the text of a list view item or subitem.
BOOL SetItemText(
int nItem,
int nSubItem,
LPCTSTR lpszText
);
zareee wrote: string have to be inserted in the listbox
For List box you can use
CListBox::InsertString() / CListBox::AddString()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I guess zareee can insert text to listbox,right?
|
|
|
|
|
Yes...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Sorry for posting OpenGL question here.
I have not read the fine print in my OpenGL book, but can one modify
list of vertices after it is compiled?
I was hoping to do some simple animation and have build a list ( mainly cyclinders) and now need to "move it around".
Can that be done with list?
Thanks for reading.
|
|
|
|
|
u can use trasformations to move the object around.. as far as i remember from my graphics course the lists just contain the objects in precompiled form ..
|
|
|
|
|
Create glVertex objects and do whatever you want.( glTranform )
Find in GLU.h, GL.h, GLUT.h
|
|
|
|
|
Hi,
I am working on an MFC application.
if i go on execute the
ShellExecute(NULL,"open","GrDemo.exe","",NULL,SW_MAXIMIZE);
function after calling the function
CFileDialog cfd(TRUE,"dat",NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,"Data Files (*.dat)|*.dat|All Files (*.*)|*.*||");
ShellExecute is not working.
Please help me solving the problem.
Regards,
Pavan P
|
|
|
|
|
This happens because CFileDialog is a dialog. As the dialog pops up there is a window procedure for the dialog that takes over the control from where the dialog is called. SO the line ShellExecute is not processed until we return from the file dialog.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Did you close CFileDialog?
|
|
|
|
|
may be this code help u ...
CString str,fstr;
char strFilter[] = { "All Files (*.*)|*.*|" };
CFileDialog FileDlg(TRUE, ".All Files", NULL, 0, strFilter);
if( FileDlg.DoModal() == IDOK )
{
str=FileDlg.GetPathName();
HINSTANCE ht=ShellExecute(handle, "open", str, NULL, NULL, SW_SHOWNORMAL);
long i=(long)ht ;
if(i==SE_ERR_NOASSOC)
WinExec("rundll32.exe shell32.dll, OpenAs_RunDLL " +str, SW_SHOWNORMAL);
}
-- modified at 3:27 Friday 29th September, 2006
|
|
|
|
|
pavan105nagarbhavi wrote: ShellExecute is not working.
Which means what exactly? What value is it returning? If you are just trying to run a .exe file, why not use CreateProcess() instead?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi,
how to use tab control in vc++?
can ne body help me out??
thanx in advance
zari
|
|
|
|
|
Seeing MSDN[^] helps.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You can insert a CTabCtrl fom Toolbax on your form and declare a variable of it or you can create CTabCtrl on your program
|
|
|
|
|
Hi,
I have some alarm function in my application...When the value entered is low or high than particular value then alarm wil exit with system beep sound.
I dont know how to give beep sound in my application and more that when the value is very low that time the beep should quick faster than normal speed.
Pls provide me any sample u know....
Anu
|
|
|
|
|
Anu_Bala wrote: I dont know how to give beep sound in my application
MessageBeep().
You can also use:
BOOL Beep(
DWORD dwFreq,
DWORD dwDuration
);
// Here you can set the frequency (in hertz) and the duration for which you would like to play the sound (in msec)
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
U can use the MessageBeep function.. look for it in the MSDN.. for the speed of beeps you can place it a timer with the required breaks ..
Peace
|
|
|
|