|
fire it down!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
humm.. what the cost of patenting this game!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
It's free of cost. But if you are filthy rich, and you want to donate, you may please contact me by email.
PS: I know it is such an addictive game. I hope you liked it.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: It's free of cost. But if you are filthy rich, and you want to donate, you may please contact me by email.
he he he !
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
great fun reading itself, then what would be the fun when running this game.
|
|
|
|
|
I haven't played it myself, as I'm quite busy writing more such games. But I heard that this one was quite addictive. You must try it to believe it.
Note: Did you know that this game is very highly portable?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Where are you these days man? Too busy with work? I'm missing you on the boards.
|
|
|
|
|
You can use of DirectX or Opengl but which of them has some limited to use on the OS,you can use of exist 3d engine's that some of them are free you must be search on the internet or you can make it yourself for make a game you need to a program like 3dMax and a program for make audio effect's and a language like c++.
|
|
|
|
|
Hi all,
I have a dialog based application and i have added two toolbars to it.
But i don't want to display in 2 different lines.
i.e if i select a button then 1 menu should be visible and when i click on the 2nd button i should see the other toolbar in the position of the 1st toolbar.
Thanking you
|
|
|
|
|
Can you please give some more detailed view of your problem.
Sudhir Kumar
|
|
|
|
|
Ya Sure!
I have a toolbar by default. But when i click on a button say "Connect" Then i need to hide the default toolbar and show a new toolbar in the place of old toolbar
|
|
|
|
|
|
Hello,
I'm trying to delete a folder with all subfolder that are in it.
I found this structure on MSN
typedef struct _SHFILEOPSTRUCT {
HWND hwnd;
UINT wFunc;
LPCTSTR pFrom;
LPCTSTR pTo;
FILEOP_FLAGS fFlags;
BOOL fAnyOperationsAborted;
LPVOID hNameMappings;
LPCTSTR lpszProgressTitle;
} SHFILEOPSTRUCT, *LPSHFILEOPSTRUCT;
try it like this
SHFILEOPSTRUCT op;
op.pFrom = _T("C:\\zipTest\\td10Updater\\*.*\0\0");
op.wFunc = FO_DELETE;
op.fFlags = FOF_SILENT;
SHFileOperation(&op);
what is wrong ?
|
|
|
|
|
I think you can use code in this way.
CString szFilePath = "D:\\DEVAPP\\TestApp\\Debug\\delete";
char aChars[MAX_PATH];
memset(aChars, '\0', MAX_PATH);
strcpy(aChars, szFilePath.GetBuffer(1));
SHFILEOPSTRUCT op;
op.hwnd = AfxGetApp()->GetMainWnd()->m_hWnd;
op.pFrom = aChars;
op.pTo = "";
op.wFunc = FO_DELETE;
op.fFlags = FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI;;
SHFileOperation(&op);
Sudhir Kumar
|
|
|
|
|
I found what was my problem prior to deletion I browse the folder with a recursive function.
Then when I try to delete the subdirectory cannot be deleted, they are in use... I cannot understand why.
For browsing I used
WIN32_FIND_DATA FindFileData;
HANDLE hFind
and while condition
while(FindNextFile(hFind, &FindFileData)!=0)
|
|
|
|
|
If you want to delete the folder with all sub folders then there is no need of recursive function.
Sudhir Kumar
|
|
|
|
|
I have a folder , I must browse this folder in order to make a 1:1 copy on a ftp server. Then I must delete this folder.
For the browsing I use a recursive function. Now for some reason the subdirectory are still in use after the function ends and I cannot delete them....
|
|
|
|
|
Perhaps you missed this from MSDN:
When the search handle is not needed,
close it by using the FindClose function.
Since you haven't closed the handle, it's still in use.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
mihai123 wrote: SHFileOperation
I always use this tested class :-
http://www.codeproject.com/KB/shell/cshellfileop.aspx[^]
when ever i want to do folder operations!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
|
Hi Everyone,
I am using ListView in Report style with 4 colomn, how can I paint the 4th subitem field with desired color.
I tried to do it with OwnerDraw but it is filling the full row, I applied tha same with CDDS_SUBITEM but getting desired result.
How can I achieve this?
I am awaiting for your response.
|
|
|
|
|
in this case you can use the CustomDraw feature of List control. For this subscribe the NM_CUSTOMDRAW notification from list control and draw the desired subitem as you prefer.
akt
|
|
|
|
|
I tried with NM_CUSTOMDRAW and it is working but how can I fill the some area of 4th subitem with desired color?
my code is here
CListCtrl &ListCtrl=GetListCtrl();
LPNMLVCUSTOMDRAW pNMCD = reinterpret_cast<LPNMLVCUSTOMDRAW>(pNMHDR);
int nVar=pNMCD->nmcd.dwItemSpec;
*pResult = CDRF_DODEFAULT;
switch(pNMCD->nmcd.dwDrawStage)
{
case CDDS_PREPAINT:
*pResult= CDRF_NOTIFYITEMDRAW;
return;
case CDDS_ITEMPREPAINT:
*pResult= CDRF_NOTIFYSUBITEMDRAW;
return;
case (CDDS_ITEMPREPAINT | CDDS_SUBITEM):
{
if(pNMCD->iSubItem==4)
{
if(nVar%2)
pNMCD->clrTextBk=RGB(232,232,244);
else
pNMCD->clrTextBk=RGB(255,255,255);
}
*pResult=CDRF_DODEFAULT;
return;
}
|
|
|
|
|
Your code if working fine.4 th subitem is filled with specific color.
Sudhir Kumar
|
|
|
|
|
In NMLVCUSTOMDRAW structore there is another called NMCUSTOMDRAW. This NMCUSTOMDRAW contains the handle of the DC and rect of the subitem. Using this this DC and rect ucan paint the subitem area.
akt
|
|
|
|