If I were to give you a pointer from a C module, can one, in ISO C++, make
a hard copy of whatever is at that address without using MFC? io is a
little austere on the other end of the hallway. furunculus 9 1387
"Your Uncle" <in*****@crippled.net> wrote in message
news:44**********************@news.usenetmonster.c om... If I were to give you a pointer from a C module, can one, in ISO C++, make a hard copy of whatever is at that address without using MFC? io is a little austere on the other end of the hallway. furunculus
Umm.. what? Hard copy as in print out? Or some other thing?
If you're asking if you can copy whatever hte pointer is pointing too, most
likely. By different methods depending on what it is. I don't think you
could copy a function though (if it was a function pointer).
What is it you are trying to do?
"Jim Langston" "Your Uncle" <in*****@crippled.net> wrote in message news:44**********************@news.usenetmonster.c om... If I were to give you a pointer from a C module, can one, in ISO C++, make a hard copy of whatever is at that address without using MFC? io is a little austere on the other end of the hallway. furunculus Umm.. what? Hard copy as in print out? Or some other thing?
Print out so as to be able to read at the cafe.
If you're asking if you can copy whatever hte pointer is pointing too, most likely. By different methods depending on what it is. I don't think you could copy a function though (if it was a function pointer).
What is it you are trying to do?
I'm trying to figure out what C++ could do for me in the absence of MFC. It
seems something like impossible without headers like windows.h ,
consideration of which is OT where I usually hang out. Is, e.g.
#include <windows.h>
OT here? furunculus
Your Uncle wrote: "Jim Langston" What is it you are trying to do?
I'm trying to figure out what C++ could do for me in the absence of MFC. It seems something like impossible without headers like windows.h , consideration of which is OT where I usually hang out. Is, e.g. #include <windows.h> OT here? furunculus
Yes, it is windows specific and you will normally get redirected to a
windows group.
On other platforms, C++ can do what ever you want without <windows.h>,
so it probably can on windows as well.
--
Ian Collins.
"Ian Collins" Your Uncle wrote: "Jim Langston"
What is it you are trying to do?
I'm trying to figure out what C++ could do for me in the absence of MFC. It seems something like impossible without headers like windows.h , consideration of which is OT where I usually hang out. Is, e.g. #include <windows.h> OT here? furunculus
Yes, it is windows specific and you will normally get redirected to a windows group.
On other platforms, C++ can do what ever you want without <windows.h>, so it probably can on windows as well.
You pop open the headers that the windows folks wouldn't dream of doing
without, and they don't really ooze out with Evil, as is often rumored. Let
me rephrase my question. You have a pointer to an int array that contains
the value of the index, something like
q[i] = i;
.. Does C++ have a portable means to get that data to a printer? furunculus
Your Uncle wrote: "Ian Collins"
On other platforms, C++ can do what ever you want without <windows.h>, so it probably can on windows as well.
You pop open the headers that the windows folks wouldn't dream of doing without, and they don't really ooze out with Evil, as is often rumored. Let me rephrase my question. You have a pointer to an int array that contains the value of the index, something like q[i] = i; .. Does C++ have a portable means to get that data to a printer? furunculus
No.
Well maybe if you include the system() call, you can write the value to
a file and use system() to cast the required runes to print the file.
--
Ian Collins.
"Ian Collins" Your Uncle wrote: "Ian Collins"
On other platforms, C++ can do what ever you want without <windows.h>, so it probably can on windows as well.
You pop open the headers that the windows folks wouldn't dream of doing without, and they don't really ooze out with Evil, as is often rumored. Let me rephrase my question. You have a pointer to an int array that contains the value of the index, something like q[i] = i; .. Does C++ have a portable means to get that data to a printer? furunculus No.
Well maybe if you include the system() call, you can write the value to a file and use system() to cast the required runes to print the file.
Rats. I can make that same call in the language that's giving me fits right
now. I'll take a check and my OT self out the door.... fu
Ian Collins wrote: Your Uncle wrote: "Ian Collins"
On other platforms, C++ can do what ever you want without <windows.h>, so it probably can on windows as well. You pop open the headers that the windows folks wouldn't dream of doing without, and they don't really ooze out with Evil, as is often rumored. Let me rephrase my question. You have a pointer to an int array that contains the value of the index, something like q[i] = i; .. Does C++ have a portable means to get that data to a printer? furunculus No.
Well maybe if you include the system() call, you can write the value to a file and use system() to cast the required runes to print the file.
That said, most system still provides a device file to the printer so
you can use ofstream to print...Don't bash me, I said "most", not "all".
Regards,
Ben
benben wrote: Ian Collins wrote:
Your Uncle wrote:
"Ian Collins"
On other platforms, C++ can do what ever you want without <windows.h>, so it probably can on windows as well.
You pop open the headers that the windows folks wouldn't dream of doing without, and they don't really ooze out with Evil, as is often rumored. Let me rephrase my question. You have a pointer to an int array that contains the value of the index, something like q[i] = i; .. Does C++ have a portable means to get that data to a printer? furunculus
No.
Well maybe if you include the system() call, you can write the value to a file and use system() to cast the required runes to print the file.
That said, most system still provides a device file to the printer so you can use ofstream to print...Don't bash me, I said "most", not "all".
They do, but the printer device might not be available to a normal user.
--
Ian Collins.
"Ian Collins" <ia******@hotmail.com> wrote in message
news:4f*************@individual.net... Your Uncle wrote: "Ian Collins"
On other platforms, C++ can do what ever you want without <windows.h>, so it probably can on windows as well.
You pop open the headers that the windows folks wouldn't dream of doing without, and they don't really ooze out with Evil, as is often rumored. Let me rephrase my question. You have a pointer to an int array that contains the value of the index, something like q[i] = i; .. Does C++ have a portable means to get that data to a printer? furunculus No.
Well maybe if you include the system() call, you can write the value to a file and use system() to cast the required runes to print the file.
Well, yes kinda. Just print it to std::cout and in your OS redirect the
output to the printer. Like in windows
MyProgram.exe >> lpt1: This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Conrad |
last post by:
Greetings,
I have a need to print from Win98SE to a little
serial label printer provided by United Parcel, so
based on Mark Hammond's recommendation in
'Programming on Win32' I decided to try...
|
by: Andrew Slade |
last post by:
Hello,
I am making calls from one compilation unit to functions in another by
pointers and I get the warnings below from gcc on 2.4.x Debian Linux. The
executable seems to work fine but the...
|
by: Just Me |
last post by:
I know (or at least think) the following is not correct.
The comment says what I want to do, but I think the code will copy the data
not the address.
Is this one of the things that can't be...
|
by: robert |
last post by:
I want to occasionally do a "redirected" import of a python module which
is located offside of the legacy sys.path (Windows) - for example a tool
is maintained within "cgi-bin" web stuff (while I...
|
by: Bill Reid |
last post by:
Bear with me, as I am not a "professional" programmer, but I was
working on part of program that reads parts of four text files into
a buffer which I re-allocate the size as I read each file. I...
|
by: WaterWalk |
last post by:
Hello. I am rather confused by the type of a pointer to class data
member. Many c++ texts say that pointer to data member has a special
syntax. For example the following class:
class MyClass
{...
|
by: The Frog |
last post by:
Hi Everyone,
I am trying to find a solution for handling zipped data without the
need to ship / install any DLL files with the database. Does anybody
know of code to handle ZIP files that does...
|
by: Soumen |
last post by:
Hi,
I've requirement to observe a raw pointer (i.e. I should be able to
query if the pointer I'm using is still valid or not but when the
observer goes out of scope, the resource -- memory --...
|
by: Philip Semanchuk |
last post by:
On Oct 22, 2008, at 8:33 PM, Robert Kern wrote:
I agree. To deny users of this module access to this param of shmat()
would be design arrogance on my part. To do so would be to claim that
I...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
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...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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
| |