|
|
There's a number of DICOM libraries, the one I use is called MyDICOM, www.mydicom.net. The support is good, the docs are terrible, the one bad thing is, every update they rename and move a lot of stuff about, so all the code breaks. But, that's what you need.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi everyone
I want to start my first web application , never done any web development before , only windows forms application using C# which I am good in .
Any starting procedure ( using VS2005 )
thanx
|
|
|
|
|
unitecsoft,
Since you asking about web related stuff, it would be best to ask in web related forums. Also, what is your actual question?
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
Hi,
First of all, I'm so sorry for asking such a n00b question, but in VC++ 8 I could found the preprocessors directives easily but with C# for VS2008 I have no idea where they are...
What directive should I test to be sure the application was compile in Windows?
#if WIN ?
Thanks,
Dirso
|
|
|
|
|
Dirso,
Well since .NET only runs in a Windows environment, why would you need to check this...
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
Hi,
Mono runs under linux as well, right?
Thanks,
Dirso
|
|
|
|
|
Hi Dirso,
I'm not an expert in preprocessor directives (so, this post could be useless), but, thinking that .Net was made only for Windows (MONO was developed after) i've seen one that might help you:
#if !MONO
<code...>
#endif
I think that this was made on purpose... If you want yo know if you are in MONO, ask for it... Windows is assume.
HTH Dirso,
Pablo.-
|
|
|
|
|
I guess you're right! I'll investigate a little more about MONO and see how it goes.
Thanks,
Dirso
|
|
|
|
|
|
That was wonderful!!!
Thank you so much!!!
Dirso
|
|
|
|
|
Hi,
AFAIK there are no predefined symbols in C#.
So if your code includes a #if WIN you'd better add WIN to the
"conditional compilation symbols" (in Visual Studio: ProjectProperties/Build) to get it set
every time you compile that project.
|
|
|
|
|
The .NET side of Visual Studio does not define any of the "standard" C++ defines. It does have support for the
#if preprocessor directive, but you will need to define your own symbols. The only ones that are pre-defined for you, as far as I can remember, are DEBUG and TRACE.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|
This is from the C# Language Specification[^]
The following pre-processing directives are available:
• #define and #undef, which are used to define and undefine, respectively, conditional compilation symbols (§2.5.3).
• #if, #elif, #else, and #endif, which are used to conditionally skip sections of source code (§2.5.4).
• #line, which is used to control line numbers emitted for errors and warnings (§2.5.7).
• #error and #warning, which are used to issue errors and warnings, respectively (§2.5.5).
• #region and #endregion, which are used to explicitly mark sections of source code (§2.5.6).
• #pragma, which is used to specify optional contextual information to the compiler (§2.5.8).
Enjoy,
Robert C. Cartaino
|
|
|
|
|
Did you mean this to go to me or the original poster? Good reference on what directives are available, but the question was really about what compilation symbols are defined by default. The OP wanted to know how to write the equivalent of #if WIN in C# (assuming that "WIN" is a predefined conditional symbol in C++), to which the answer is still "there isn't".
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|
Scott Dorman wrote: Did you mean this to go to me or the original poster?
No, not really to the original poster nor directly to you either. I just thought it a good place to inject further information into the thread. I was just following up on the part of your answer that said, "...It does have support for the #if preprocessor directive." I was just adding to the conversation.
|
|
|
|
|
Robert.C.Cartaino wrote: No, not really to the original poster nor directly to you either. I just thought it a good place to inject further information into the thread. I was just following up on the part of your answer that said, "...It does have support for the #if preprocessor directive." I was just adding to the conversation.
No worries, just wasn't sure if this was a "general" post or not. The list of available directives is good, as many people probably don't know about them.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|
Can i get some guidance?
I would like to display jpeg data on a picture control or control of some sort that is on a form. What exactly would i do here to accomplish this?
|
|
|
|
|
click the little [...] button next to the "Image" field under the "Appearance" section of the picturebox's property window.
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
Hi.
I wanted to convert this string to an image :
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAA
ACXBIWXMAAAsSAAALEgHS3X78AAAABGdBTUEAALGOfPtRkw
AAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6m
AAAF2+SX8VGAAAEJElEQVR42mL8
8JQBCDiNaoSY/v4M+sfMbgriSwp+eK3Lf/qDHO8n11u3mS
8fOclQ9/XvlW8gOYAAYgERZSlGi1TUtaQc7NK0rn3nmxBs
yBlnqybAcP2XLMN7bmmGV68/Mry6ycOwMHT/f34eZrclO7kiZXh0Y558ubwfIIAYQS44OqXgjYGloTDTi+0
MjEysDD9EgxhmHv7AwKFuwMAoLMHw5x8Dw9effxjET9YxpJ
pdZ/jLwMKw9yzzp+j6d/YAAQBBAL7/AiASNBEA+eoCBvX
TAAAD/AD6AyYA/9+2APTNngDDu74A2Ov1AOPy+QDx+v4Azy
x9AJDOOgADAPw
ARzb6Di4hAmUCiDnOWas1zovf6fe3Fwx/Xj1m+PvuNcNfZl
kGczV5hiWnXzKc59FieP7lD8PXX38ZfgKdcuqbHIMf2y4G
bk5gWP1nkgUIAEEAvv8EEQPzJf/u4QD9AQQA/fL1AAL8/g
AOCOcAlM4CAMQWUgD87/gABQP6AOYFAQATCgUA9/X+AN/q
AgAWE/8AQCwEFQIAQQC
+/wTt9f0D/ezvAP4FAAD8+P8A6N72AH647gDHDDMA/SgQA
AD8/AD7/gIA7/wBAPn7/QD829UA7CT9AAAsBACw0QYDAoj
p64MPwn9eAw349o3h21
dmBmZWFgZ93rcMHDx8DOuepzJU3ahk4L9+mOHvv78Mn7
ZuB9fY3BU+0/0P0cDNzifxkAAgBBAL7/AuDqBOLz4PMAAPLyAAwMBwARIxwAbDUFAMIhpgA7EekAc
B3SADLyzgAA/P0AAff1ACb/4AACIgwAAAsHAPXpAwACAEEA
vv8C2fcBotTV/AD96/YABP7qAAz/7AAB/fcAuMz0AFu/LAAd1W0AwDBoAAL39QBIzpEAmEHnAAAZLQD++QAAjrPxsw
IAQQC+/wP0/uzd7vgXbTz/8wkGEv0ABQ8NAAH25AAUEgwAwfETAO0EFAAV5M8Aae6oA
JpK8AAVUC8AAO/9AIKH1QCzyPVVAgickLgFzPLrf1ye4K7
1g4HXQpBBUI4d6OT/DGxfuBn+/vrP8A8YkEzsTAzMOn8Z
2OUUGM5u/MjgsoTryJe3Jx0BAghsACMjI7egkMXe4o+Xz
F15vjFwqjAx8KhyM/CKczMwsjEA0x0bAyPrfwYOuX8Mu8
5wMyRt4X/4+sVpc6DelwABBDOAEZglRNjEHWcbfH3mH/btIYPmvx8MQEsZ2MUYGdhVWBhesPMyzH8qwrD9g8TFHy
8OhQLVPwDq/Q0QQGADQABoBlA5gyATl5QpC596LdAT+lz
AghuAAwADeIAuQaIRYGYl4lLgu/ftxevgew3QPwKiL8C9
fyDqQcIMACDoJbT47bbfAAAAABJRU5ErkJggg
So I used this method :
private Image Base64StringToImage(string base64ImageString)
{
byte[] b;
b = Convert.FromBase64String(base64ImageString);
MemoryStream ms = new System.IO.MemoryStream(b);
Image img = System.Drawing.Image.FromStream(ms);
return img;
}
but this Exception occurred :
Invalid length for a Base-64 char array
What do I have to do ?
Sorry for my English. I'm a freshman .
|
|
|
|
|
Google for the exception text.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
it is invalid data for base64
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
Thanks.
Sorry for my English. I'm a freshman .
|
|
|
|
|
Hi
I tried to apply custom drawing on Windows Vista titlebar, interecepting WM_NCPAINT message.
To get a device context I used GetDCEx API function, but it fails if a second parameter is
a pointer to a clipping region ( wParam ), so I had to pass it IntPtr.Zero. It works, but then
all drawing logic is performed inside the window client area.
Is there any other solution to modify non client area on Windows Vista?
Thanks.
|
|
|
|
|