Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > how to store pointer adress in a char*

Thread Tools

how to store pointer adress in a char*

Alf P. Steinbach
Posts: n/a
* Removed):
> "Alf P. Steinbach:
>> Well, then, let A (the part that you're in control of) communicate
>> directly with C.

> i cant... A has no way of calling C.
> Like i said i cant reshape the problem.
> And my current problem is how to pass that adress on a char* and
> retrieve it later.
> Do you have any advise on how i can solve this problem?

Yes, start saying "I can" instead of "I can't".

A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Reply With Quote
Posts: n/a
(E-Mail Removed) wrote:
> > write it to string this way:

thanks again for your great advise!
It works very well and the streams work perfectly.
it definitely solved my problem.

just in case anybody who finds this thru google in the future:
on windows platform instead of int it is advised to work witn INT_PTR
type which will always be the size of a pointer. this is important
regarding 64bit portability issues.
i dont know of any platform independent solution though...
maybe just work with 'define' operators.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Pointer to pointer Vs References to Pointer C++ 4 07-02-2009 10:20 AM
passing the address of a pointer to a func that doesnt recieve a pointer-to-a-pointer jimjim C Programming 16 03-27-2006 11:03 PM
invalid pointer adress FKothe C Programming 5 02-14-2005 04:29 PM
Pointer-to-pointer-to-pointer question C Programming 10 02-04-2005 02:57 AM