473,322 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Screen to Memory.....

Hi...

Could anyone please tell me how to store contents on the screen
to the memory and subsequently access them in graphics mode.....to
elaborate a bit, i need to store a portion of the screen on to the
memory and then compare it with other strings......The gettext()
method works only on text mode, and getimage() stores the
image....PLEASE help me out.....

Thank you...

Sep 14 '07 #1
5 1871
Harsha schrieb:
Hi...

Could anyone please tell me how to store contents on the screen
to the memory and subsequently access them in graphics mode.....to
elaborate a bit, i need to store a portion of the screen on to the
memory and then compare it with other strings......The gettext()
method works only on text mode, and getimage() stores the
image....PLEASE help me out.....

Thank you...
well, i think that depends on your os, plattform, compiler, and so on...
as far as i know, there is no indepent c++ solution.
sorry,
christian
Sep 14 '07 #2
On Sep 14, 7:51 pm, Christian Johannes Charbula <charb...@racon-
linz.atwrote:
Harsha schrieb:
Hi...
Could anyone please tell me how to store contents on the screen
to the memory and subsequently access them in graphics mode.....to
elaborate a bit, i need to store a portion of the screen on to the
memory and then compare it with other strings......The gettext()
method works only on text mode, and getimage() stores the
image....PLEASE help me out.....
Thank you...

well, i think that depends on your os, plattform, compiler, and so on...
as far as i know, there is no indepent c++ solution.
sorry,
christian
I am using turboc compiler for dos/windows....ok, i will elaborate
further...I am tryin to make program which stores students records,
the records will be displayed as a list, and when one wants to delete
a record s/he has to click on particular record and press delete...I
want to know how to capture the clicked record and compare it with the
stored record and delete it subsequently...any ideas, please
help.....Thanks...

Sep 14 '07 #3
Harsha schrieb:
I am using turboc compiler for dos/windows....ok, i will elaborate
further...I am tryin to make program which stores students records,
the records will be displayed as a list, and when one wants to delete
a record s/he has to click on particular record and press delete...I
want to know how to capture the clicked record and compare it with the
stored record and delete it subsequently...any ideas, please
help.....Thanks...
i'm sorry, i don't know about turbo-c's gui (or is ist dos).
maybe u should post this in a turbo-c forum.

if u'r using a gui-framework i'm sure there is an easy way to get back a
reference to the selected item, without 'screenreading'

otherway if u are using dos, u should think about somthing like:
which record is the first in the list.
how many lines are between the first entry and the mouse-click.
than u can calculate some kind of index u can use.

for further question, refer the docu, look in some turbo-c homepages or
try to find a news-group about turbo-c.

sorry
..christian
Sep 14 '07 #4
"Christian Johannes Charbula" <ch******@racon-linz.atwrote in message
news:46***********************@newsreader01.highwa y.telekom.at...
Harsha schrieb:
>I am using turboc compiler for dos/windows....ok, i will elaborate
further...I am tryin to make program which stores students records,
the records will be displayed as a list, and when one wants to delete
a record s/he has to click on particular record and press delete...I
want to know how to capture the clicked record and compare it with the
stored record and delete it subsequently...any ideas, please
help.....Thanks...

i'm sorry, i don't know about turbo-c's gui (or is ist dos).
maybe u should post this in a turbo-c forum.

if u'r using a gui-framework i'm sure there is an easy way to get back a
reference to the selected item, without 'screenreading'

otherway if u are using dos, u should think about somthing like:
which record is the first in the list.
how many lines are between the first entry and the mouse-click.
than u can calculate some kind of index u can use.

for further question, refer the docu, look in some turbo-c homepages or
try to find a news-group about turbo-c.
Ask in a newsgroup for your OS. comp.os.msdos.programmer may be a good
place or microsoft.public.win32.programmer or such.

If I was doing this I would just get the position the mouse was clicked on,
compare it to the position of the window, then calculate which line was
clicked and go from there. But again, OS specific.
Sep 14 '07 #5
On Sep 15, 1:40 am, "Jim Langston" <tazmas...@rocketmail.comwrote:
"Christian Johannes Charbula" <charb...@racon-linz.atwrote in messagenews:46***********************@newsreader01 .highway.telekom.at...
Harsha schrieb:
I am using turboc compiler for dos/windows....ok, i will elaborate
further...I am tryin to make program which stores students records,
the records will be displayed as a list, and when one wants to delete
a record s/he has to click on particular record and press delete...I
want to know how to capture the clicked record and compare it with the
stored record and delete it subsequently...any ideas, please
help.....Thanks...
i'm sorry, i don't know about turbo-c's gui (or is ist dos).
maybe u should post this in a turbo-c forum.
if u'r using a gui-framework i'm sure there is an easy way to get back a
reference to the selected item, without 'screenreading'
otherway if u are using dos, u should think about somthing like:
which record is the first in the list.
how many lines are between the first entry and the mouse-click.
than u can calculate some kind of index u can use.
for further question, refer the docu, look in some turbo-c homepages or
try to find a news-group about turbo-c.

Ask in a newsgroup for your OS. comp.os.msdos.programmer may be a good
place or microsoft.public.win32.programmer or such.

If I was doing this I would just get the position the mouse was clicked on,
compare it to the position of the window, then calculate which line was
clicked and go from there. But again, OS specific.
Thanks for the suggestion, i will definitely try it out......

Sep 15 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: gregory_may | last post by:
Is there a way to grab a "Screen Shot" that includes "Tool Tips"? I saw this code someplace, cant remember where. But it doesnt grab "Tool Tips". Is there a better way to do this in .net?...
4
by: grogerteal | last post by:
Hello, I am pretty new to programming and would like someone to help me get started on the program that I need to make. I hope it is not hard to do, but what I would like is a simple app that...
5
by: Nadav | last post by:
Hi, I am trying to get a direct pointer to the address of the screen ( something like 0x0b00 in the happy DOS days ), how can I do that? Should this be done in the kernel or it can also be done...
2
by: Juan Romero | last post by:
Guys, I am trying to capture the desktop screen (everything). I am having a problem with the "CreateCompatibleBitmap" API call. For some reason the function is creating a 1x1 pixels bitmap...
8
by: LM-Krav | last post by:
Hey all, i'm trying to access the screen memory, and generaly - enter the graphic mode. and do not know it's address or the commandline for it, please tell me what it is (the address or command...
13
by: Arun | last post by:
Hi, I thought that the memory address of DOS screen is 0x0b00. But this didnt work for me. Can anyone help in accessing the screen by using this address.
25
by: OziRus | last post by:
Hi, This is my first message on this group. I want to ask something about screen-drawing functions. I wrote and compiled below code succesfully on TC IDE in Win-xp. Then i tried to work it on...
0
by: =?Utf-8?B?TW9oYW1tYWQtUmV6YQ==?= | last post by:
Hi everyone. We're trying to diplay a message on the screen, and we want it to be always there, regardless of whether a new application is run, which may occupy that portion of the screen. Put...
8
by: jmorgan | last post by:
<html> <b>Hi, I thought that the memory address of DOS screen is 0x0b00. But this didnt work for me. Can anyone help in accessing the screen by using this address. </b> </html>
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.