|
Yeah or you can check and install it manually. However it takes a good 10 minutes or more to install and sometimes this can be a concern.
|
|
|
|
|
The thing to do is to ask your customers if they are OK with having new .NET 3 functionality. Perhaps explain the benefits of whatever it is you want to do with WPF?
Kevin
|
|
|
|
|
Hi Experts,
The Application is built in .Net Frmework 2.0. And It is a web application. Application has so many links but now and then some of those[random] gives an error. We have implemented custom error message in web.config file.
If I go to that particular aspx file and rename it and revert back it starts working and same with web.config too. So, It seems this issue due to file unaccessible to the application.
since it throws a custom error message so I can not get actual error message. In other hand If I remove custom error message in web.config file that also slove problem due to againg saving web.config file. I do not keep off custom error of long time as it is in production environment.
Any one could please suggest me.
Regards,
Anmol Gupta
|
|
|
|
|
|
Hi to All,
I have got a project developed in .Net 2.0 framework. My machine has .Net 1.0 framework installed on it. To view and run the above mentioned project i have to upgrade my machine to .Net framework 2.0.
Now, i want to know that will it be possible for me to run and view my older projects developed in .Net framework 1.0 after upgrading my machine to .Net framework 2.0 or will it give some compatibility error while opening old projects developed in .Net 1.0 framework.
Anybody can help me please...
Pravin
|
|
|
|
|
.Net runs with Side by side versioning, so it is perfectly possible to have the two co-existing on the same machine quite happily.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
what is the non-blocking mechanism to redirect native DLL printf output to file within .NET console exe?
I tried below option:
Start the child process.
Process p = new Process();
// Redirect the output stream of the child process.
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
The disadvantage with this is the Console EXE's window is no longer visible. But I wanted to keep the console window also visible while the printf outputs are redirected to file.
Thank you & Regards, Renuka
|
|
|
|
|
i have stored full paths of pictures in sql server through browse file button. i want to display these pictures on windows form,am using c#
i'have tried the following two codes..but dont understand what's wrong with them
> pictureBox1.Image = Image.FromFile(dr1.GetString(0));
>Bitmap bp = new Bitmap(dr1.GetString(0));
pictureBox1.Image = bp;
i even tried dr1.getstring(0) in double quotations
software student
|
|
|
|
|
Add a watch to your var dr1.getstring(0) and check what's it showing. Its might not returning the correct path.
--------------------------------
txtSignature
|
|
|
|
|
You should never look at intermediate values once you determined the code
does not run properly; chances are they are wrong too.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi all,
I'm new to WPF and I'm experimenting with 3.0 bitmaps: I've created a dummy sample code which should:
1) load a bitmap file from disk. It's supposed to be a very small bitmap (e.g. 32x32, 200x100, etc), usually B/W.
2) convert the bitmap to B/W (if required) and get an array representing the black/white pixels.
For testing, I "dump" these pixels into a textbox with a fixed-pitch font (e.g. Courier New), by outputting a line for each bitmap row, where '.' represents the 'background' pixel (e.g. white) and '#' the foreground pixel (e.g. black). This way the textbox should give a sketch of the picture. This seems to work fine for non B/W bitmaps, and I can get the 'picture'; but as soon as I convert the loaded bitmap to B/W the textbox shows no more the 'picture', but this seems to be shrunken to occupy just a narrow leftmost portion of the dumped area. Also, I get a set of various values from CopyPixels in a B/W image, while I'd expect just 2, representing black and white. What am I doing wrong here? Here's a sample:
private BitmapSource LoadBitmap(string sFile, bool bConvertToBW)<br />
{<br />
BitmapImage bmp = new BitmapImage(new Uri(sFile));<br />
if (bConvertToBW)<br />
return new FormatConvertedBitmap(bmp, PixelFormats.BlackWhite, BitmapPalettes.BlackAndWhite, 0);<br />
return bmp;<br />
}<br />
<br />
private void OnLoad(object sender, RoutedEventArgs e)<br />
{<br />
OpenFileDialog dlg = new OpenFileDialog();<br />
dlg.Filter = "Bitmap Files (*.bmp)|*.bmp";<br />
if (dlg.ShowDialog() != true) return;<br />
<br />
BitmapSource bs = LoadBitmap(dlg.FileName, true);<br />
<br />
int nBytesPerPixel = (bs.Format.BitsPerPixel + 7) / 8;<br />
int nStride = bs.PixelWidth * nBytesPerPixel;<br />
byte[] aPixels = new byte[bs.PixelHeight * nStride];<br />
bs.CopyPixels(aPixels, nStride, 0);<br />
<br />
StringBuilder sb = new StringBuilder();<br />
int nRow;<br />
for (int y = 0; y < bs.PixelHeight; y++)<br />
{<br />
if (y > 0) sb.AppendLine("");<br />
nRow = y * nStride;<br />
for (int x = 0; x < bs.PixelWidth; x++)<br />
sb.Append(aPixels[nRow + x * nBytesPerPixel] == BACKGROUND ? '.' : '#');<br />
}<br />
_txtOut.Text = sb.ToString();<br />
}
Thanks!
|
|
|
|
|
Hello Everybody,
Can anybody tell me:
The difference among win-32 API, Foundation Class Library (FCL) and Microsoft Foundation Class (MFC)?
Which one is associated with .NET Framework?
Did FCL replaced win32 API in .NET or FCL is just a layer above win32 API in .NET architecture?
Thanx in advance.
i am athar
|
|
|
|
|
Wow - did a bunch of you guys sign up for a Win32 course ?
Win32 is built on by MFC, which makes Win32 object oriented and provides lots of helper classes. I am guessing the FCL is a name for the WinForms library, which is .NET, and which is supported ( kind of ) by C++/CLI, but is better used from C# or even VB.NET.
Obviously, unless you're using WPF, everything is just wrappers on the base windows functionality, which is Win32.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
THANX FOR REPLY CHRISTIAN.
FCL STANDS FOR FRAMEWORK CLASS LIBRARY IN .NET FRAMEWORK.
I THINK MFC IS BUILT ON WIN-32 API AND WIN-32 API WAS NOT OBJECT-ORIENTED BUT IT IS A PROCEDURAL LIBRARY. WHILE FCL IS PURELY BASED ON OBJ. OR. TECHNOLOGY.
i am athar
|
|
|
|
|
Sorry, but I got very basic noob question:
When I add a string to resources of a .NET win app on "Resources" tab in Properties of the project and I can use the string in code like so: "Properties.Resources.str" instead of hard coding the string in, right? Why can't I see the string in the executable itself (with a resource editor)? I need to be able to change the string in there without recompiling.
Thanks a lot!
|
|
|
|
|
You are not supposed to modify the content of executable files such as EXE and DLL.
How do you expect to replace a string by a longer string in there and keep all
pointers/references correct ?
For your own safetym executable files are protected by checksums and/or signatures.
So if you manage to alter their content, the system will refuse to run them.
EXE and DLL files should be the unmodified result of running some tool, first
candidate is the linker that gets invoked when building with Visual Studio.
There is a concept of "Internationalization" that lets you put regional stuff
into separate DLLs (say one per language). In that sense, you can change a
language-specific DLL, without really changing the app itself.
If that is what you need, look it up!
There also is a concept of a "settings file" that lets you put some initial
values in a file.
If that is what you need, look it up!
|
|
|
|
|
Well in regular Win Apps (non .NET) you can change resources just fine with a resource editor without having to recompile the exe. But so I guess in .NET you can't. What's the point of the resources then (besides reusability)? And why are there some resources in the exe that are visible in resource editor and others not?
|
|
|
|
|
A resource editor has to preserve the correctness and consistency of an EXE or
DLL file. Why Microsoft has choosen to offer that as a separate tool in the past,
and not to do that anymore, I don't know.
I don't care much what the tool is called; you hit a button, and it happens.
Today it is the same button all the time...
Most if not all of the advantages of resources remain intact: you can store
non-code items in a DLL (rather than embed them in the middle of your code),
hence reuse it across several projects, and, thru internationalization,
replace it as you see fit. A variant is "personalization" where you would be
selling almost the same application to several big customers; if well organized
you just need to replace some images, icons, strings that may all reside in
a single DLL.
If unhappy, fire your complaints towards Microsoft...
|
|
|
|
|
Chill out, man! I'm not firing complains toward anybody, especially you since you don't know...
If unhappy, fire back your complaints through UN...
That was helpful.
|
|
|
|
|
If you need to read in the value of a string that's subject to configuration, why not store\read from the registry?
|
|
|
|
|
Thanks for reply. Sure I can store things anywhere really. There's always a set of different approaches to anything. I just want to get the answer to this particular question. That's all.
|
|
|
|
|
this is probably a stupid question but one of our clients runs macs, and all of our apps are done in .NET 1.1, i've been looking for a while, but i cant seem to find anything that says weather or not the framework will work on a mac, i thought the whole purpose of the framework and the CLR was to make the same program executable on most os's, if someone could pelase enlighten me i would appreciate, i would apprecieate it even more if they could send me a link to a mac version of the .net installer so i can send it to the client.
|
|
|
|
|
Microsoft's .NET implementations will only run on Windows (apart from the upcoming Silverlight subset of .NET 3.x).
For .NET 1.1 you have these choices.
1. Port the application to Mono. http://www.mono-project.com[^]
2. Run Windows on the Mac using Bootcamp or virtual machine software like Parallells or VMWare (still in beta).
Kevin
|
|
|
|
|
i've never set up a vm on a mac will i have to install windows on that machine so the vm program will work or does the vm handle it for me? also does any of that come with OS X?
|
|
|
|
|
Not sure what the status of BootCamp is. It may be a free add-on. I did read that it was going to be bundled with the next version of Mac OS X - http://www.apple.com/macosx/bootcamp/[^]
For the VM you would need to buy the software. The Parallels version is available, not that expensive - http://www.parallels.com/[^]. VMWare's is still in Beta.
You would also need to buy a Windows license and the bad news is that Microsoft only allow XP Pro or Vista Business or higher to run in a VM. You install the VM in Mac OS and then install Windows in the VM.
Longer term, it might be worth seeing how feasible it is to convert your app. to run on Mono. I remember reading about a customer in Germany that did this successfully.
Völcker Informatik AG[^]
Mono have an application compatibility tester on their site. Last modified: 12mins after originally posted --
Kevin
|
|
|
|