|
John Simmons / outlaw programmer wrote: An int is as big as the compiler defines it to be
Wrong language John?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes, it is C# forum.
regards,
George
|
|
|
|
|
George_George wrote: When using "int", it is always 32-bit?
Yes. In C# an int is always 32 bits.
The keyword int is an alias for the type System.Int32 .
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Cool, thanks Guffa!
regards,
George
|
|
|
|
|
|
Good link, thanks Greeeg!
regards,
George
|
|
|
|
|
Just to add to the pot:
The C# keyword int is a compiler accessor to the System.Int32 type. You may use the below code to validate this as an excercise on each platform:
typeof(int) == typeof(System.Int32)
The above code will return true .
/F - .NET Developer
|
|
|
|
|
Cool, thanks ElSpinos!
regards,
George
|
|
|
|
|
|
Good link, thanks PIEBALDconsult!
regards,
George
|
|
|
|
|
I have a situation where im trying to get TCP connection "netstat" type traffic from a remote machine
in the past i would have used SNMP to perform a simple get and would give me the desired listing of TCP connections however this environment does not have SNMP loaded (hardened environment)
I was thinking of using a WMI Win32_Process to start the process/cmd "netstat -nab" then pipe the results back to the reomte machine. i soon found that i couldn't pass the results back and would need to >> redirect the output to the systems temp directory of the machine and then transfer the file back using some method
has anyone else had or can advise a beter method to get the file off the machine, these machines must be agentless ie no software/code can be install on the remote machines
|
|
|
|
|
What you're trying to do is impossible if you can't put software on the remote machine.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
I want to convert my Word.Document object in C# to pdf on runtime in windows application.
Thanx in advance
|
|
|
|
|
.Net doesn't have PDF support. You have several options
1) Read the PDF spec, and the Word doc spec and write your own converter.
2) Find a commercial PDF library. There are several around.
3) Use ITextSharp[^]. It's an open source PDF creator. It allows you to create PDF files on the fly from C# (Note, it is not a converter, you'll have to process the word file and manually work out what to put in the PDF)
4) Automate software that does the conversion for you. (Like openoffice) There is an article on CP about this http://www.codeproject.com/KB/files/generatepdf.aspx[^]. You would either need to ensure the user has open office installed on the system, or provide the conversion as some form of web service which you can call. (This is good if it's an internal only company app, and you can host a service on the network)
Simon
|
|
|
|
|
Simon Stevens wrote: 1) Read the PDF spec, and the Word doc spec and write your own converter.
If that could be done, that would be an excellent CodeProject article
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Thomas Stockwell wrote: If that could be done, that would be an excellent CodeProject article
It would indeed be a insane task. (Although, there are clearly people who have done it).
I thought I'd take a quick look at the PDF spec.
http://www.adobe.com/devnet/pdf/pdf_reference.html[^]
Turns out it's provided in some sort of "PDF package" where multiple PDFs are bundled together into one file. It's a new feature, and Foxit doesn't seem to support it, and I refuse to use adobe reader. I'm convinced they just do things like this to annoy the hell out of developers. Why on earth are "PDF packages" needed? If you want multiple files in one, zip them.
Simon
|
|
|
|
|
http://www.pdfforge.org/products/fly2pdf[^] is an ActiveX library for creating pdf files.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Hi All
Can we change progress style from blocks to fill.
I dont want dotted line in progress bar, I want a solid line.
thanks
Syed Shahid Hussain
|
|
|
|
|
No, you can't.
The progress bar is a base windows control. When you request that the API create one, you will get a progress bar in the windows style. There are different themes available that change the styles. If you run your app in vista, you'll see the progress bar will adopt the vista style.
Your only option would be to create a custom/user control and manually create a progress bar. The disadvantage of this though is that it won't automatically fit the users theme, or change style for vista.
See Ravi's reply below.
Simon
modified on Thursday, July 31, 2008 10:47 AM
|
|
|
|
|
You have to write (or find) a custom control that does that. There just happens to be one here on CP. Search for "SmoothProgressBar".
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Other than looking for a progressbar custom control on the CodeProject, you can always modify the .NET 3.0 progressbar color scheme(WPF).
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Thomas Stockwell wrote: you can always modify the .NET 3.0 progressbar color scheme(WPF).
Assuming he wants to use WPF, of course. I wish the questions posted here would be more complete.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Set the control's Style property. See this[^] MSDN link.
/ravi
|
|
|
|
|
Nice one. Never spotted that.
Simon
|
|
|
|