|
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?
|
|
|
|
|
|
They haven't discontinued it, there are now two types, MCSD and MCSD.Net. The regular MCSD covers C++, the others are VB.Net and C#. You can check out transcender.com for exam preparation software, it's expensive but well worth it, especially if you can get your company to pay for it.
-- Rocky Dean Pulley
|
|
|
|
|
Could you give me tutorials about drawing application by moving objects ?
Thank you
|
|
|
|
|
Hey,
I've a dialog with a toolbar. All worked perfect. Then I changed the style to "child" in order to move the dialog with the main window.
Now I have the problem that all my toolbar-button are disabled. Can you help me?
Thanx
|
|
|
|
|
I found out that when I create a handle for the Toolbar-Button in my View-Class the toolbar is OK.
|
|
|
|
|
Hi, I have two classes, say A and B
class A {
private:
...
int *p;
...
public:
...
~A() { delete [] p; }
int getData(int i) { return p[i]; }
}
class B {
private:
...
A *p;
...
public:
...
~B() { delete [] p; }
A getData(int i) { return p[i]; }
}
In my main code I create a class B with say A array of length 2 and each A has int array of length 5. The problem is if I loop through the objects trying to print out the values of the integer arrays, I get an error.
e.g. for(i=0;i<2;i++)
for(j=0;j<5;j++)
cout << bImpl.getData(i).getData(j);
This works for 'bImpl.p[0].p[0]' but gives an error for 'bImpl.p[0].p[1]', the reason being (i think !) that when 'bImpl.getData(i).getData(j)' returns it calls the destructor of class A and removes the pointer to the integer array. I think this is correct as if i remove the 'delete [] p' line from both the destructors, everything works fine. I know that this line of code is necessary and would appreciate any help.
|
|
|
|