|
ThatsAlok wrote:
seems you code using CamelCases
I think you mean Pascal case.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
DavidCrow wrote:
I think you mean Pascal case.
Yes, You are right !
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
i have created a .dll component and i want to call in my main exe appliacation. how i will do it.
|
|
|
|
|
jananjoy wrote:
.dll component
Are you creating a ATL/COM based DLL or RAW Win32/MFC based DLL, Please clarify, as procedure for loading is Different
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
First u load library function with argument as path to that dll.
with using that handle u can access functions which are exporting from dll
with regards........
Kiran Kumar Singani
|
|
|
|
|
Does anybody knows how to get the XP key with C++ (console or windows)?
thanX
|
|
|
|
|
Only if it's in the registry. Why do you want it ? The PC you're running has it already, and you can't use it elsewhere, even if you wanted to.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
May I use Synchronization Objects like CSemaphore for synchronization function not to be threads ?
Thanks in advance
|
|
|
|
|
Yes you can use that, It would always be in current thread context.
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
hcmuns wrote:
synchronization function not to be threads
Could you elaborate that? Currently I think that you want to use synchronization objects in a single threaded application, which is (in most cases) not necessary.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
I would like to use in my class
|
|
|
|
|
Hello,
I suppose that you use them in a multithreaded application. In that case you should use them whenever multiple threads can access the same data at the same time!
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
I would like to use in my class
|
|
|
|
|
Hi,
I am using memory mapped file for communicating between two processes.
I write the information by one process onto the memory mapped file. If
the process is shutdown after writing the information. Can the other
process read the information in the memory mapped file ?
i.e. Will the memory-mapped file persist after the process which created
the memory-mapped file is closed ?
Thanks
|
|
|
|
|
If I remember correctly, the MM-File should be open until it's closed manually. That is by one of the processes. Windows however, will close the file (not delete it I think) if no valid handles are pointing to the file. So if you store a handle to the MM-File you should have no problem
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Nilesh K. wrote:
No, it would get lost.
Hello Sir,
I have never worked in memory mapped file, though i know it's use for interprocess communication.
If one appliction close after writing into memory mapped file, how the data get lost when other applcation still has a valid handle to the MEMORY MAPPED file!, if it so then it's great drawback for INTERPROCESS Data Transfer!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
It will remain as long as a single active process has the file opened and mapped into memory.
|
|
|
|
|
hi,
I want to ask if a DLL is unloaded, will the memory mapfile its referring to loses?
Thanks
|
|
|
|
|
Yes, if the load count of the DLL goes to zero, or there is no longer any process referencing the DLL, it will be unloaded.
|
|
|
|
|
I have manage to convert a DICOM image into a raw image..that is to say without its header.Now how can i view the pixel value of this raw image in binary form?
|
|
|
|
|
By RAW you mean a byte array ? DICOM is 10 bits per pixel, right ? So what you have is an array of bytes, with 10 bits representing each colour ( or 30 if it's not grey ) ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Actually RAW format is still the DICOM image which i open up to view using Adobe Photoshop. The only difference is all the headers has benn remove what i am left with is just the image itself. My problem now is how do i view the pixel values from Photoshop? The image is in the grey.Does MATLAB be of any help?
|
|
|
|
|
So you have a byte *, right ? And it's still a DICOM image, so it's 10 bits per pixel, right ? I assume DICOM does not waste any bits, that the 11th bit is the first bit of the next pixel ? Does it also flow on between rows that way ? Does it store the rows top down, or bottom up ?
If you have a byte * and you need to work out how to get at each pixel, then I doubt MATLAB will help much, what you need to do is work out the internal format exactly so you know how to get to the 2 ( or maybe 3 ) bytes you need, and then mask those bytes and shift thier values to get the final result.
I am on the edge of doing some work with DICOM, which is why I believe they are 10 bit, but I don't know enough about the format to comment beyond that. Do you have any resources about what a RAW DICOM file actually looks like internally ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
By the way, I am not the moron who voted this a 2.0.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Sorry i don't get what you mean by voted this as 2.0.Anyway i hope you are able to help.Thanks.
|
|
|
|