I'm currently writing a GUI application for a friend, and he wants the application to draw windows much like Windows Live does. By this I mean that the title bar & window frame are hidden/transparent...
Type: Posts; User: TheDan
I'm currently writing a GUI application for a friend, and he wants the application to draw windows much like Windows Live does. By this I mean that the title bar & window frame are hidden/transparent...
I know I know! But I called them "Hackers" because the supervisor for this assignment has called them "Hackers" (but with the same meaning as the word "Crackers").
How exactly do black hat...
Hello. I'm a 1st year Computer Science student and we've been given a group assignment to create a presentation. Our group is researching whether or not Computer Scientists can afford to tolerate the...
How good are you with templates? A good way to implement a linked list inside a linked list is though templates. That way you can just do something like
LinkedList< LinkedList<int> > List;
She's not ugly, she just has a face impediment!
I currently have 7 books, I reguarly read these forums and gamedev.net etc... and read about various algorithms, data structures etc... And tend to mess around with stuff that I read about. Although...
I think the coolest thing I have written... is an DLL for mIRC which shows information for a game through dialog boxes. I'm pretty proud of it since its the most useful thing I have actually written...
Well I havent actually written anything yet. I'm starting the design of the engine before I actually code anything, and I was deciding on the best way of handling files. I just dont know a method of...
I was thinking of using my own file format really... And I'd like to group them all together in one file so that it is harder for people to modify the file, so yes for some security although I am...
Hey, I notice that some files are actually more than one file composed together and I want to be able to use this in a small game engine I am going to try and write in the near future. By this I...
Do you know much of the Win32 API? If you're learning MFC, from what I've heard, knowing some of the API will help you when you need to do something that the API can do, but MFC can't. Although I...
Ah thanks. I was hoping there'd be some easy way such as AppendWindowText or something ;D Replacing the selection at the end works great, but I might switch to streams to stop it scrolling like mad...
Whats the easiest and quickest way to append text to what is already in a Rich Edit control? When I open files, I open and read the file in another thread in 'chunks' of say, 1000 characters. Once...
Nevermind, I've altered my program design so that this is no longer a problem.
I cant declare the pointer as
void (*CTextManager::UpdateText)(int)
because CTextManager isnt defined yet, and a forward declare doesnt work because I'm trying to access a member function.
Ah thanks 7stud, that clears it up, however a new problem arises... The file in which SOpenParams is in is included by the file which has the class CTextManager in it since CTextManager uses the...
Sorry if I sound stupid, but where would I put that piece of code, dwks? I've not really handled many function pointers before :s certainly not from member functions heh.. =/
I wasn't sure how much it would help... But heres the function in question:
void CTextManager::Open(SOpenParams *pParams)
{
m_szText = "";
pParams->Update = UpdateText;
...
I've need to assign a pointer to a function, which is easy enough.. but the function in question is a public member of a class. Visual Studio is giving me this error:
error C2440: '=' : cannot...
Ah, that clears things up a bit. I guess being lazy and shoving implementations in headers messes things up a bit :P
Thanks a lot
Hi, I'm creating my own text editor to put into practice what I know about the Win32 API. I'm working on a class to manage the Rich Edit control, and I've just made a class and a function for debug...
Well as far as I know, you can only make 1D arrays dynamically.
Since you know the size of one bit of it, why not just create an array of pointers like this:
double *table[2];
Then you just...
Well I get it to go to the right line, but now when I open up my dialog box to get the line number, selecting the line doesnt work. It works perfectly fine when I dont open up the dialog box. Why is...
=|
Amongst all that researching of the messages on the MSDN, I had missed the one which I was looking for.
Thanks
I've tried quite a few different approaches, to moving the Caret at the beginning of a specified line, but I can only seem to get it to work for one line, and for the rest, it moves to random places...