|
Thank you dear Giorgi,it's very kind of you,you are so wonderful.as I go over
the arithmetic of CMatrix,I found some of the functions are so abstract to understand.especially,the invert arithmetic is hard to understand,can you describe its idea for me.
|
|
|
|
|
hi all
i need to read pixel values displayed in the monitor or Red, Green Blue values displayed and i need a method to write the altered pixel or color values back to the video memory so that ill be able to change the display of the monitor......... if someone out there knows answer in VC++ or in VB or in any other language for this functionality please give me some tips and ideas
Madhu
|
|
|
|
|
u need to use the low level
hardware interrupts
U can refer the yashwant kanitkars
book "Let us C"
try to fine the soft copy online
geting the pixel value from memory is
explained in last chapters of that book
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
|
With all respect to the previous replies, you certainly do not need to use assembler, and you definitely do not need to use DirectX!
Assuming you are using some Microsoft C variant, you can use the getpixel() and setpixel() functions - look them up in the help files.
To use getpixel and setpixel functions you need an hDC (handle to device context to the window or monitor), etc. Look for examples on the Microsoft MSDN site.
|
|
|
|
|
OK, some more information!
I suggest you download and have a look at the Colour Finder application, which is at http://www.codeproject.com/miscctrl/ColorFindercp1.asp[^]
To quote from the article, first a handle to the desktop device context is obtained using the API GetDCEx . This handle is then converted to a CDC class pointer using CDC::FromHandle. Then color is retrieved using the CDC method GetPixel.
I have not looked at the Colour Finder in detail, but it could be a good basis for what you want to do, and it's always easier to start with a working application, even if you throw away large bits (like tracking mouse movement, etc.) and add some bits (like changing the colour at a particular location.)
|
|
|
|
|
thanks for all your suggestions ill try em.... i tried using directX but... directX mode is initializing a blank screen and im not able to read the actual display.... ok ill try and if any one can give me some sample assembly code please get me
thanks
Madhu
|
|
|
|
|
I have kept some ActiveX like a Button,
Check Box, & DateTime Control.
i get the events for the button but not
for the datetime control i dont get any
event notification or message(windows message).
Do anyone has any idea.
thank u
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Can anybody show me how to create a program that will create a duplicate of your own program please? I can't figure it out. Maybe there's an API for this. thanx
|
|
|
|
|
benjnp wrote: I can't figure it out.
ya me too.
Every man should marry. After all, happiness is not the only thing in life.
--[v]--
|
|
|
|
|
you mean the application?
Every man should marry. After all, happiness is not the only thing in life.
--[v]--
|
|
|
|
|
duplicate of my own program ?
copy it ?
----------------------------
Jerry yu
Chinese
programming fans
|
|
|
|
|
|
I want to know what are the differences of Windows NT from Windows XP when in comes to affecting your application. One example is the Windows Directory of Windows NT is WINNT while WINDOWS for Windows XP.
ProcessEntry32's szExeFile works well in Windows ME and below, you'll be able to get the complete path of the file. While if you're using Windows NT and XP, you have to use ModuleEntry32 instead of ProcessEntry32 in order for you to acquire complete path of the process running on your task manager. But of course Its off the topic which covers the difference of NT over XP.
Anything else? Thanx
|
|
|
|
|
How will I be able to get the IP address of the computer connecting to me? For example, I'm the server and there are quite a few computers that send files or interact to me. I need to get their IP address for me to use as their ID. I'm using MFC Sockets. Thanx in advance
|
|
|
|
|
benjnp wrote:
I need to get their IP address for me to use as their ID. I'm using MFC Sockets.
BOOL CAsyncSocket::GetPeerName(
CString& rPeerAddress,
UINT& rPeerPort
);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
The second argument of CAsyncSocket::Accept lpSockAddr is the address of a SOCKADDR structure in which you'll get the address of the connecting entity.
|
|
|
|
|
Hi
I am learning MFC exe application.
I have to convert ini files to xml files through my application. My sample ini file(ABCD.yak) is:
ABCD.yak
[Section1]
Key1=ABCD
Key2=20
Can anybody tell me how to convert it into an xml file using mfc.
Please tell me which functions should I make?
Thanx
|
|
|
|
|
see msxml 4.0 and dom in msdn
"Do first things first, and second things not at all."
— Peter Drucker.
|
|
|
|
|
As you mentioned
swaapu wrote:
ABCD.yak
[Section1]
Key1=ABCD
Key2=20
you can convert into xml like this
<section1>
<Key1>ABCD</Key1>
<Key2>20</Key2>
</section1>
now if you need tool/class to read and write it, this would be good start
http://www.codeproject.com/soap/markupclass.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
-- modified at 7:12 Thursday 13th October, 2005
|
|
|
|
|
What have you got coded up so far that you need help with? This makes at least the fourth time you've asked this same question but it does not appear you are making any progress whatsoever. We're here to help but you have to make a concerted effort.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hi,
How can I manage a Ms SQLServer Database with VC++ .NET?
Thank you all!!!
|
|
|
|
|
What do you mean by "manage?"
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hi,
How can I identify whether the given font is unicode or not?
I have the face name with me.
Thanks in advance!
- NS -
|
|
|
|
|
i m trying to load map in VC++ and after that i want to digitize it can anybody help me.
faisal
|
|
|
|