|
Wat is the difference between interpreted code and compiled code?
Maddy
|
|
|
|
|
Madhuri Shekar wrote: Wat is the difference between interpreted code and compiled code?
Interpreted code is code that is executed by a program. Java script is a good example. Your web browser reads Java script code from a server. That code commands the interpreter to do things. Those things make up the logic of your program, (in this case your web page).
Compiled code is translated into the native code of your processor. It is extremely fast and effeciant compared to interpreted code. Imagine writing a program that will read Java script and follow the orders that the script tells it to do. That would be an interpreter. It is more complicated than that but that is the basic principle.
In .NET your programs are NOT interpreted. They are compiled down to IL. That IL is then compiled to the native code of your processor. It is optimized for your execution environment. .NET code is a little slower than native code but in some cases it can be faster for many reasons. The JIT(explained in another reply to you) can optimize for your CPU and it may contain some multimedia technology that your program can take advantage of. With native C++ you cannot assume that all your customers will be using that processor so you must compile it for an older processor. I have just scratched the surface of the deferences. I recommend you to some research on it.
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
I have been thinking about building a scanning tunneling microscope. I am wondering what would be the best way to connect the microscope to a computer (mic, usb, etc.) and if there is a .net class which would allow me to process the microscope input.
Thanks
|
|
|
|
|
USB would probably be the interface of choice, unless you're transferring larger images. In that case, you'd probably want to use FireWire.
As far a processing goes, that depends on what you mean by "processing". In most cases, the .NET Framework doesn't offer anything in the way of image processing. That's usually something that's going to be left up to the developer to come up with since there are soooo many ways of processing an image.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Actually, I was thinking more along the line of having an analog system connected directly to the computer and having the computer measure the voltage or amperage coming off of the input line (x,y,z) and then have a program manually create an image based on the recieved input. For the image processing I'm sure that I would be able to come up with something if I could read a signal.
Do you know whether this is workable or totally crazy?
Thanks.
p.s. Is there anything in the .net framework that allows reading data from a port such as usb or firewire?
|
|
|
|
|
Now you're getting into A/D converters and custom hardware. You'll also have to write the drivers for this hardware (Visual C++ is the best choice!!) and an API interface that your C# or VB.NET app can use to get preprocessed data to display.
Bob X wrote: Is there anything in the .net framework that allows reading data from a port such as usb or firewire?
No, there isn't. This is driver level stuff that is beyond the scope of the .NET Framework.
Bob X wrote: Do you know whether this is workable or totally crazy?
So long as you can come up with the hardware and the drivers, no it's not totally crazy.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I've never actually done driver development. Do you know of a good place to start?
Thanks so much for your help
|
|
|
|
|
I don't know of any myself, but you can probably keep a bunch of these[^] in your favorites. No sense in going to just one place to get all your information!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi
is there any way so that i could change my screen resolution at run time in c#.net application and than again
back to the previous value
thanks in advance
hello
|
|
|
|
|
user32.dll contains the necessary functions, such as
EnumDisplaySettings() and ChangeDisplaySettings()
good luck with it !
Luc Pattyn
|
|
|
|
|
Unless you're writing a game, changing system-wide settings is considered EXTREMELY BAD PRACTICE!! You're not changing the resolution just for your application, but for ALL applications, system-side.
-- modified at 15:46 Monday 16th October, 2006
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
yes it is ,,
but is there any way to do so ?
thanks in advance
|
|
|
|
|
Then you'd should be doning this using DirectX. DirectX will allow you to change screen resolutions without changing system settings to do it. Changing system settings will alter how the users desktop looks and rearrange any Desktop icons.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I do some simple programming with Visual Studio.Net. I was downloading some Microsoft security patches and one of them was for Framework 2.0. I have the online version of Visual Studio Express installed now and I am using it exclusively. I was trying to free up some disk space and I noticed that I have 5 different installations of Microsoft.NET Framework.
They are as follows:
(English) v1.0.3705
1.0 Hotfix(KB886906)
1.1
1.1 Hotfix(KB886903)
2.0 (which has the latest security patch from Microsoft)
I also have Visual Studio 2003 installed which I use occasionally.
My question is this. Which, if any, of the 5 above different versions of Framework can I delete and still be able to run Visual Studio 2003 and Express?
Thanks
|
|
|
|
|
(English) v1.0.3705
1.0 Hotfix(KB886906)
I have VS 2003 and 2005 installed. I don't have any .NET 1.0 stuff.
Kevin
|
|
|
|
|
Hi Friends,
I developed a desktop applcation in .NET 1.1 frameework using C#.
The application works perfect in Windows XP or Windows 2000 Server environment, but in Windows 2003 server the application is really slow. The performance is degraded upto 200%. i.e. it takes 4 times more time in Windows 2003 server than under Windows XP or Windows 2000 server.
Can anyone tell me what is the problem and can it be rectified.
Thanks,
Sushant Duggal.
|
|
|
|
|
Sushant Duggal wrote: Can anyone tell me what is the problem
Nope. We don't know anything about your code or what your app is doing. If you give us some details, we might be able to suggest something.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi Dave,
My application is a mail sending application using cdosys.dll. i have used threading concepts to enhance the performance of the application.
but the performance is so bad in win2003 server
Regards,
Sushant Duggal.
|
|
|
|
|
This doesn't help much. You'll have to profile your code on the Server to see where the problem is.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
This doesn't help much. You'll have to
profile your code on the Server to see where the problem is.
Hi,
Can you tell me what do you mean by profiling the code???
Thanks,
Sushant Duggal.
|
|
|
|
|
It means that you use a code profiling package to log the time it takes to execute sections of your code. This will tell you where the bottleneck is so you can troublehsoot your problem.
Here[^] is a trial version of a profiler.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
check if the server is ok. I once had a similar situations and begun profiling my application. After several days a figured out that the hard disk was slow because of a badly configured raid system. It could have saved me several days if I just had called our admin to tell him to fix the raid.
Robert
|
|
|
|
|
Thanks Robert,
But I tried it on two systems, ans I faced the same problem.
Can you tell me about profiling.
Regards,
Sushant Duggal.
|
|
|
|
|
Hi,
in short:
1. Compile your app in Debug mode and put it onto the server.
2. Download and install a profiler on the server (NProf[^] is a free one).
3. Start NProf, select your application and make a test run.
4. In case of NProf the application must shut down before it shows any results.
5. Analyse the results to find which part of your app is slow.
Robert
|
|
|
|
|
Hi,
Does anyone know if there's functionality available in .NET (using C#?) to
export data from a Windows Application into a PowerPoint file format? For
instance, if I'd a form containing a bitmap image in my Windows App, I need
to save that to a slide in the PowerPoint file.
Any ideas/info is appreciated.
Thanks
AP
|
|
|
|