|
The Catalyst wrote:
This method is completely undocumented in MSDN.
It is?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/systemparametersinfo.asp
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Ooops... pasted with paranthesis...
*sheepish grin*
|
|
|
|
|
MSDN is a great resource, but finding the precise thing you're looking for can be a bear.
Software Zen: delete this;
|
|
|
|
|
I have a ClistCtrl derived class which is ownerdrawn and virtual.
I have been using it quit some time now without any problems.
But when I tried to use this class in a application with manifest included, the darn thing doesn't work proper.
I'm having a lot of paint problems.
Every mousemove over an item causes this item to be redraw.
Does anyone have an idea what is causing these problems.
|
|
|
|
|
Can someone tell me how an irregular dialog box can be displyed using MFC?Thanks in advance.
Dipeka.A.J
|
|
|
|
|
|
Here is an example.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I am developing a project using C instead of visual c++, and when I call for example CreateSurface I must use following syntax:
IDirectDraw_CreateSurface(pdd,&ddsd,&pdds,NULL)
or
pdd->lpVtbl->CreateSurface(&ddsd,&pdds,NULL)
Otherwise I get an error like CreateSurface missing method...
Someone told me that :
All the COM functions are in the virtual method table of the
object. c++ handles that, but in c you have to do it manually.
use the macros defined in ddraw.h.
This seems strange to me is there any simplier way to do this?
And when I use:
DirectDrawCreate(NULL, &p->lpDD, NULL )
I get a compiler error:
error LNK2001: unresolved external symbol _DirectDrawCreate
So how should I call DirectDrawCreate....
Is there any "smart" compiler settings that I can use to let the compiler to treat the Direct draw functions as they where in Visual c++ ???
I have included ddraw.h and linked to ddraw.lib if you wonder...
Please help, cheers Dani
|
|
|
|
|
hi!!
i'm doing my MCS and new 2 the subject. can anyone help me on developing a media player component? - V.G
|
|
|
|
|
http://www.codeproject.com/Purgatory/media_player.asp
Visit that link and download a free player. U'll get some idea. Use ActiveX controls
Dipeka.A.J
|
|
|
|
|
Hello !
My program is sometimes throwing unhandled exeption. I would like to handle this exeption to take some appropriate actions (such as print debug informations in a file).
So, I would like to know first how to get this exception and call a function. And second, I need some advices to debug my program: in fact, these exceptions occurs very rarely so I need a way to know what happens exactly (so, for example at wich line of code, the state of the latest variables, ...). Any advice will be great
Thanks
|
|
|
|
|
Take a look at try and catch . You can then perform appropriate error handling in the catch section.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Is there a way to paint pictures without using WM_PAINT.
Thanks in Advance
Dipeka.A.J
|
|
|
|
|
Do you mean without sending WM_PAINT message or without handling WM_PAINT event?
ARSALAN MALIK
|
|
|
|
|
I mean WM_PAINT message.
Dipeka.A.J
|
|
|
|
|
You can get pointer to device context (CDC) by using any of these functions: GetClientDC(), GetPaintDC() . You will not need to send/handle WM_PAINT message
ARSALAN MALIK
|
|
|
|
|
dipeka wrote:
Is there a way to paint pictures without using WM_PAINT.
Probably handle WM_PAINT as usual. When you need something repainted then invalidate that area (or the whole client area) and your paint handler will do the rest. But I am not so sure what you try to achieve.
In Win32 InvalidateRect() UpdateWindow() that is.
/Moak
|
|
|
|
|
Hi all!
I'm trying to find some good exmples for C++ or VB to hook some APIs (To intercept File Execution) and also examples about : How to read a Boot Sector and Master Boot Records (MBR)...
I'm making an Anti-Virus technology and these points are needed..
I appreciate your help!
Thanks for your time guys..
|
|
|
|
|
Radwan Aladdin wrote:
How to read a Boot Sector and Master Boot Records (MBR)...
Use CreateFile() - Read up the "Disk Devices" section of the CreateFile() API in MSDN. Use this with caution.
* Artificial intelligence is no match for natural stupidity! *
|
|
|
|
|
Any links on the net please?
What can I do with this?? I mean can I then read the Boot Master Records??
I think the CreateFile() API used for the Execution Intercepting..
|
|
|
|
|
Radwan Aladdin wrote:
Any links on the net please?
You can google for CreateFile() , or even search MSDN Online[^] for the same.
Radwan Aladdin wrote:
What can I do with this?? I mean can I then read the Boot Master Records??
YES! That (I suppose) is the ONLY possible method.
* Artificial intelligence is no match for natural stupidity! *
|
|
|
|
|
|
Okay.. what about the Execution Intercepting??
I think there are many APIs to hook.. what are all of these APIs?
What are the relatives for Windows 95, 98, ME?? and what about XP, 2000? And also LongHorn and Servers 2003??
Do you have any idea about making CPU Emulator using C++ to emulate a code in a Virtual environment???
Thanks for your great help!!
|
|
|
|
|
How noobish lol!!!
VB for file management hooking LOOOL ....
An Antivirus is NEVER secure if it uses usermode for hooking or processing things.
And if you think that you are able to code "Anti-Virus technology", then you will have to find your way.
Don't try it, just do it!
|
|
|
|
|
Okay.. I'm trying to make that with C++.. and there is no other way than Hooking these APIs I think??
Can you please help me hooking the APIs?? Where to find good tutorials??
Thanks for all!
|
|
|
|