|
Jack Squirrel wrote:
Shell function is PathFileExists
argglll, here is why i could find it
very thank you jack
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
What About Runtime Function
_access
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
:s i'm not really enjoying programming that way... but that's only my feeling
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
that's only my feeling
You still remember that
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
And if you want to avoid the shell altogether, then you can use the Win32 API GetFileAttributes and look for (DWORD)-1 as return code.
|
|
|
|
|
Please could you help me develop a game for my project.
It has to be in for the end of the week (Friday), all that needs to be produced is a one level game with possibly two moving characters, some sound and collision detection.
Any help would be greatly appreciated.
Cheers.
|
|
|
|
|
You can try this:
Egg Catcher Game[^]
It is written in Turbo C++, offcourse By me
needinghelpp wrote:
two moving characters
It Has.
needinghelpp wrote:
some sound and collision detection.
Yes, Both
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Thank you for your reply.
The program i need to create unfortunately has got to be made using <windows.h> and use direct x 9. (as this is what we're being taught on the course).
Thanks for your help.
|
|
|
|
|
|
|
hi
i want to place tabs at bottom of my property sheet (CPropertySheet derived class), by default they appear at top.
can any one plz help me in this regard
Azam
|
|
|
|
|
hi,
I have declared a macro as #define x 100.
i am having a text file.within the text file i have 'x'.
How can i read it as symbol constant x instaed of string "x".
otherwise is possible to convert the string "x" into symbol constant x
Thanks and regards,
chezhian
|
|
|
|
|
you concatenate the string with x, so, it is not directly written into a string. this way, it will be evaluated by the preprocessor...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
i didn't concatenate anything with x. while reading by default it is considered as a string.
|
|
|
|
|
|
That's very tough to do. You must understand that the preprocessor only acts on your source file. So you essentially have to convert your text file to a compilable C++ (or C) file and then run the preprocessor over it to make it treat x as a symbol.
Instead, I'd suggest that you create a table where you store strings versus values and then use that table to figure out the value, given a string like "x".
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi everybody,
I have a program running in tray , but when the user clicks in the caption bar the 'x' button i want that my program did'nt exit.it should simply continue working in tray .
My problem is not to Hide the dialog so that it worked in tray, but to catch that user clicked 'x' button
How can i do it?
Regards
m0n0
|
|
|
|
|
Giorgi Moniava wrote:
when the user clicks in the caption bar the 'x' button i want that my program did'nt exit
Handle OnCancel() Virtual Function
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I had a default Cancel button with code :
void CRemindMEDlg::OnBnClickedCancel()
{
Shell_NotifyIcon(NIM_DELETE, &tnid);
OnCancel();
}
if i changed OnCancel(); simply with ShowWindow(SW_HIDE)
then 'x' button would work correctly , but Cancel button No.
So thanks to your Advice and Ravi Bhavnani -s , i ve done next
void CRemindMEDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
if(nID==SC_CLOSE) bClose=false;
CDialog::OnSysCommand(nID, lParam);
}
and OnBnClickedCancel()changed to :
void CRemindMEDlg::OnBnClickedCancel()
{
if(bClose) { OnCancel();Shell_NotifyIcon(NIM_DELETE,&tnid);}
else {CDialog::ShowWindow(SW_HIDE);bClose=true;}
}
Now it works ,
Thanks to both of you for attention.
m0n0
|
|
|
|
|
Handle WM_SYSCOMMAND and check for the case SC_CLOSE .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
thanks
m0n0
|
|
|
|
|
I would like to run the other program from my console program? What's that function? I know WinExec can use in MFC but it's not work for console. Please help me? Thank you very much.
|
|
|
|
|
system(...)
CreateProcess(...)
ShellExecute(...)
ShellExecuteEx(...)
Just a few examples. Which one to actually use depends on what you are trying to accomplish and how much control (or notification) you need over the launched application.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Thank you very much. I'll try.
|
|
|
|
|
Hi,
I am having 3 years of experience in VC++ and looking to take certification in the same which would help my career. Has Microsoft discontinued its MCSD certifications in VC++? If so can any one please provide pointers to some other VC++ certifications?
|
|
|
|