|
Might want to have a look at HtmlHelp
You must be careful in the forest
Broken glass and rusty nails
If you're to bring back something for us
I have bullets for sale...
|
|
|
|
|
1. Translate DICOM format to raw format:
To save image file into a binary file format as a 1 dimensional array.
2. Compression-
To use Run-Length Coding (RLC) compression algorithm to compress the
information in the raw format file.
INclude a header: Row & Coloumn size.
3. De-compression-
Open file to display the image file.
Basically it is to translate a DICOM format to raw format and save it as a binary file format. Using RLC to compress the information in the raw format file so that the image can be view in future when I open the binary file format. If anyone is able to help please drop me a mail asap to ulusai@yahoo.com.sg. Thank you.
|
|
|
|
|
There is a DICOM RT group(dicomrt@yahoogroups.com), you might get your solution over there.
<bold>- Nilesh
<italics>
"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Hi,
I'm trying to write an application that can play/recieve multiple video streams simultaneously using the WMPSDK. The tricky part, as I see it, is the association of each player object with different Internet connections. I wonder if this can be done and then how? Is there a way to set which Internet connection to use for the Media Player COM objects?
Lars Bergström
|
|
|
|
|
I wanna get value of item rect by use of CListCtrl::GetItemRect in order to create an object of CEdit based on it, but It fails, why?
Here are some codes as follows
CListCtrl m_lvcTest;
int nCount = m_lvcTest.GetItemCount();
CRect rect;
m_lvcTest.GetItemRect(nCount, &rect, LVIR_BOUNDS);
rect returned is not what i want each time
|
|
|
|
|
tiplip wrote:
m_lvcTest.GetItemRect(nCount, &rect, LVIR_BOUNDS);
1) the first parameter of GetItemRect is the zero-based index of the item you want to grab the rect for
2) nCount would not be a valid index, since at any given time the valid indices for a non-empty list control are 0 to nCount - 1
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
I know the facts you say, the function I want to do is the new Item will be added to last pos of listctrl whenever i click the button "New Item", so I need to get the rect whose index is nCount( got by GetItemCount)
So, what should i do?
|
|
|
|
|
I don't think you can get the rect unless the item exists.
Here's what I would try:
When the user clicks "New Item", insert a dummy item using a default text value, like "<type text here>", then call EditLabel. If the user cancels, or the text is invalid, simply remove the item.
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
Do you mean to tell me I cannt get the rect if the list is empty?
Ok, Let me have a try of your method and thanks a lot
|
|
|
|
|
I am using PJ Naughter's CNTService for the purpose. The example service provided by him works fine. But when I try to use his frmaework for my own service application, the service creation works fine but start service always fails with the error 997: overlapped IO operation in progress.
Any help plz.
Rahim Rattani
|
|
|
|
|
Try posting this message to the article itself so that PJ will surely see it. He may not see your question here in the VC++ forum.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
hi..
I want to change the background color of a particular row in CListCtrl.
I know it is possible to do it by using Custom Draw, can you please give me a sample code and if any other easier way to do?
Thanks in Advance
sourabh.
sourabh
|
|
|
|
|
Neat Stuff to do in List Controls Using Custom Draw
The first code snippet almost does what you want. Simply change
<br />
pLVCD->clrText = crText;<br />
to
<br />
pLVCD->clrTextBk = your color here;<br />
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
Why would you post a question about burning cds, on a mac, in a windows programming forum?
It's similar to asking a mechanic how to bake a cake. Try a mac forum.
using System.Beer;
|
|
|
|
|
I am trying to figure out how to use the findfirst or findfirstfile to find the first file
in a given directory.
I want to be able to find the first file that is either:
A bmp or gif or png or a jpg.
So in other words the first image file meeting any of the above four image types.
|
|
|
|
|
|
Yes, I found that but how do you search for a range of file extensions?
This only seems to either do *.* or a specific single file.
|
|
|
|
|
Well I`ll guess you`llhave to do a FindFirstfile followed by a
do - while statement where you check if the file has one of the extensions you are looking for...Something like below...
<code> TCHAR dir[] = { _T("C:\MyPath\Mypics\*.*") };
bool bFoundLegalPic=false;
WIN32_FIND_DATA findData;
HANDLE srchHandle = FindFirstFile(dir, &findData);
if(INVALID_HANDLE_VALUE != srchHandle )
{
do{
//here check last 4 chars of filename (in the finddata variable)
//with the extensions you wish to retrieve
}while(!bFoundLegalPic && FindNextFile(srchHandle, &findData));
FindClose(srchHandle);</code>
Hope this helps you...
Greets,
Davy
|
|
|
|
|
That's not the approach I ended up trying, but probably a better solution than mine.
Thanks.
|
|
|
|
|
Hi Guys,
I am trying to use the Crypt32.lib in one of my VC++ application. i am calling the CryptAcquireContext(&hCryptProv,NULL,NULL,PROV_RSA_FULL,0) function, but i get the following error
Crypt32Dll.obj : error LNK2001: unresolved external symbol _CryptAcquireContext@20
Debug/Crypt32Dll.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
can any of you guys help me on this why i get linking error.
Thank You
Regards
tuscan.
|
|
|
|
|
I've never used this dll, but I've gotten this error when I didn't have the .lib file linked in my project for whatever header I was using
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
hi
i want to know the basic of network programming what things are involved in the network programming. how to make packets of files etc.
ddd
|
|
|
|
|
i use Selchanged event to trace user's selection in tree control. normally it is ok. But when user click the same item twice or more(not double click, there are some long delay between two click), windows will not call selchanged event(I think that windows think there is no change). how can i react the event like this, thank you
Happy Gemini
|
|
|
|
|
Handle the NM_CLICK notification
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
I've been battling around trying to implement WMI into my MFC application. I'm trying to get Windows XP informations such as product key, activation status, ect. I used COM init to interface with Win32_WindowsProductActivation class. I have problems with changing Windows XP Product Key. How can I run SetProductKey method with parameters??? I went through Microsoft docs but it's not clear to me at all. Any hits or sample code??? I've seen VB script but i have difficulty implementing it with C++.
Thank you all
|
|
|
|