Reading Image from memory, knowing pointer to memory. VC++ [closed] - c++

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I've a camera that comes with an c++ api and SDK.
There is an callback Function that returns a
C++ pointer to the starting point of some RAW Image data stored in Memory
I want to
1) Get the Image
2) convert it to some image format
3) save it to hard disk
pointer is char*
How can I do it in VC++.
Thanks.
EDIT:
reposted question here:
https://stackoverflow.com/questions/10826313/reading-image-from-memory-and-painting-it-in-a-vc-mfc-application

Investigate OpenCV to convert the image to some format and then save it on the disk.
You might want to take a look at this post as well.

Related

Display image in console application [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am writing a program, and I thought that it would be better with images (I am creating console application). So I want to know if it's possible? And if it is how can I do it? Thanks.
You can do it by ASCII art, There are many open source libraries which convert image to ASCIIs, such as libcaca.
And if you want use colored images, you can use rlutil.
Consoles are designed to display characters only. With some very crude exceptions it is not possible to display images unless you open another window.

What are rich pointers in C++ [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I like C++ and follow its development.
While browsing I came across this link:
http://www.cplusplus-soup.com/2012/01/rich-pointers-frequently-asked.html
Can someone explain the concept of rich pointers in simple terms ?
At least as I read it, they're "tagged pointers". In other words, the pointer doesn't just carry the address of the item it points at, but has some associated metadata to tell what sort of thing the pointer is intended to point at.

Simple MP3 player [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I'm looking to get hold of an example of a simple mp3 player that'll work without the need of flash, Just need to say play/stop and that's it.
Any help would be great : )
Because you mentioned flash I think you search a player for web pages, am I right?
If yes, then you could take a look at jsmad. It's a decoder (aka player) written in JavaScript (but therefore needs a decent browser).
Or you could use the audio-Tag of HTML5.

C++ multiple process shared memory implementation [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Here's what I am trying to accomplish.
I want program1 to create a shared memory segment where I store various arrays.
Then, I want program2 to read in the arrays and modify them.
This sounds pretty simple, but for some reason, I cannot find a single example online that shows how this is done. Every example I have found uses a single program (e.g the initialize, read and write are both done by program1).
If somebody can provide an example here, I'm sure this would be hugely beneficial for pretty much everybody that wants to use IPC in C++.
Boost.Interprocess has a guide for the impatient.

C++ "infinite" length text [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
my task is to make a program that can store arbitrary long text in c++.
I have no idea how to solve this.
Also, you cannot use STL.
someone please help
allocate initial buffer (malloc())
store data into buffer until full (strcpy(), strcat(), memcpy()...)
reallocate to a bigger buffer (realloc())
goto 2