|
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
|
|
|
|
|
|
hi,
in the clickevent of a button i open a dialog box.
on pressing the ESC key the dialogbox vanishes
but i want to remain the dialog box in the client area.
ne body can help me out???
thanx in advance,
zari
|
|
|
|
|
zareee wrote: on pressing the ESC key the dialogbox vanishes
Override the PreTranslateMessage() handle VK_ESCAPE in it.
Here's the code for this:
if(pMsg->message == WM_KEYDOWN && (VK_ESCAPE == pMsg->wParam || VK_RETURN == pMsg->wParam))
pMsg->wParam=VK_SEPARATOR;
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
overide the OnCancel function of the dialog and keep that function blank.
void MyDlg::OnCancel()
{
}
nave
|
|
|
|
|
Shilpi Boosar wrote: hi u take a bool variable flag ...
For what Purpose?
Shilpi Boosar wrote: on button click u take it flag variable true
Why?
Shilpi Boosar wrote: if it is true than the dialod box created
He never said that the dialog box isn't created and so he needs to check for this. What he want's that when you create a mfc dialog based application and execute it, the dialog pops up but vanishes when escape key is hit with the dailog in focus or the enter key is pressed...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Overide OnCancel for Esc and OnOk for enter.
|
|
|
|
|
What does C++ differ from Visual C++?
|
|
|
|
|
hanh16violet wrote: : Re: C++ And Visual C ++ ?
See Here[^]
This question has already appeared on this message board several times.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
C++ is a programming language .....but vc++ is not a programming language ...it is IDE (integrated development environment) ...
|
|
|
|
|
Google before you ask Q
|
|
|
|