Yes, this is the exact same thing I was trying to explain :) The virtual machine is actually the program in machine language. It is just like your any other traditional C/C++ program. e.g. The Java Runtime is the actual program in machine code. The java runtime (virtual machine) bears the same relationship to the Java program (in byte code) as any Word Processor program bears with Word documents. Pradeep
pra net
Posts
-
Machine code and byte encoders -
Machine code and byte encodersThe machine code is binary language which only the machine can understand properly. This may be different for different hardware (basically processors) and operating systems. This means that binary language is machine specific. On the other hand, byte code is a sort of intermediate language. It is not in machine code form, but something between machine language and the high level language. It is not machine specific. It is compiled on the run, depending on the machine specifications. The resultant machine code is processed by your processor. How the byte code is converted to machine language depends on the program. e.g. a Java program stores its program as byte code. So when we want to run the program, java compiler compiles it on the run into machine code and runs it for you. This makes a few differences very obvious: 1. Machine code is hard to decompile just because it is pure zeros and ones. It is a set of hardware instructions. Whereas, byte code can easily be decompiled since it is not machine specific; nor it is in pure zeros and ones format. 2. Machine code is not portable. This is because each processor make or Operating System may interpret the instructions differently. On the other hand, byte code is portable. Byte code will always run irrespective of the environment or hardware, till the time an interpreter is available to convert it into that machine specific code. Hope this helps, Pradeep :)
-
Connect AJAX Extender inside UserControl (ascx) to TextBox on Webpage (aspx)I need to subclass an extender control and put it inside a UserControl. But the target control will be on the webpage. However when I assign the TargetControlID="TextBox1" I get the following error:
Server Error in '/SampleWebSite' Application. ------------------------------------------- The TargetControlID of 'MyExtender' is not valid. A control with ID 'TextBox1' could not be found.
Here, "MyExtender" is the UserControl which has the extender control inside it. The "TextBox1" is on the webpage where this UserControl is used. Obviously it is looking for the TextBox1 inside the UserControl itself. How can I make it search on the entire webpage instead? What is the way to properly assign the TargetControlID in such a case? Thanks,modified on Thursday, March 13, 2008 7:11 AM
-
Equivalent of "Break on All Errors" in VB.NETHi, I switched over from VB6 to VB.NET. In VB6 when we wanted to temprorily disable error handling, we used "Break on all Errors". How do we disable error handling in VB.NET? I've Got stuck in a procedure that has a lot of code between the try...catch block and many nested try.. catch blocks too. I want to know which part of the code is generating errors. Please help. Thanks,
-
Search optmization in ADO.NET... (Please answer even if you are not very confident...)My database is already having appropriate indexes and primary keys wherever suitable. The old application was built in VB6. I need to port my VB6 code to VB.NET. My biggest concern still remains. The classic ADO had the SEEK method that could utilize the indexes and get very fast results. I tried various ADO.NET methods, but nothing gets even near to the speed I was getting earlier. My application has bogged down and has raised a big concern. I was wondering if there is any way in ADO.NET to utilize the indexes in database? Please help.
-
Search optmization in ADO.NET... (Please answer even if you are not very confident...)Thanks a lot Ben. So that confirms one of the questions I posted. Anyone, any suggestions about the other? Thanks,
-
How does a Classic ASP/VB programmer become an ASP.NETI passed through the same situation and can understand your grief. Come to the ground situation and start believing that VB6 and ASP are history now. Take my suggestion and get a good book on VB.NET and ASP.NET today itself and start working hard. Or take some good tution from some good institute. It would be hardly a matter of 3 to 6 months before you get back on to the track. Good Luck :rose:
-
Search optmization in ADO.NET... (Please answer even if you are not very confident...)I am building an application in VB.BET and ADO.NET. The application requires searching only. The searches are on wide varity of criteria and huge tables. The output resultsets may also be very big or small depending on the query. The backend being used is Microsoft Access. The search fields are usually indexed. Before switching over to ADO.NET, I was programming in VB6 and used SEEK which proved to be very fast. But I find no similar thing in ADO.NET. So given that No add/update is required, only searching is required, 1. What is the best alternative to SEEK in ADO.NET? 2. Which data mining technique should suit better? - Dataset or datareader. 3. How can I optimize queries on Memo fields? 4. Tips for faster searching and best practices. Thanks a lot in advance for those who reply. Even small hints would be very appreciated. Please do not hesitate to answer even if you are not very confident or you can help me with even one of the questions mentioned above.