|
I've got a problem when I use Reflexil to add some codes in to file
I try to add via "Create new..", OpCode = call. But I can't find the Operand "System.String::op_Equality(System.String, System.String)"
Does any body know how to do?
Thanks
|
|
|
|
|
You may need a vcall, have you tried that?
|
|
|
|
|
I don't see "vcall" in OpCode and how to find "System.String::op_Equality" in "Operand" ?
Thanks
|
|
|
|
|
callvirt instance bool [mscorlib]System.String::op_Equality()
I think.. no guarantees today, I'm writing this at what is 5:56 in the morning for me.
edit: Ok that is completely wrong. Note to self: don't answer question when you're half asleep. Of course it's not "callvirt instance", op_Equality is always static!
So then, I really don't know why it's not showing up.. Last modified: 1hr 6mins after originally posted --
|
|
|
|
|
Hi All,
I am Working with a project,in which we need to use Autocomplete Including Results as we get in Google search box.I am using a code in which we are getting the matching letters or words as dropdown but not number of results.
Can any one please help me?
Reply me asap,if possible
Thanks In Advance,
Regards,
Yamuna
|
|
|
|
|
|
HI Karthik,
Thankyou For your reply,
I Need Autocomplete Including Number of results as we get in Google suggests right.Like "Gmail 11,2000000 results".
But All solutions which i got are without Results only.
please help me!!
Thanks & Regards,
YamunaRani
|
|
|
|
|
I'm fairly new to C#, have worked with the C# XNA gaming studio and VB.Net 2008 but have very basic knowledge. I work in the car & manufacturing industry as an electrical engineer and am looking to broaden my programming skills using C# and the Modbus TCP protocol.
Can you please recommend any books that explain the ModbusTCP protocol in C#.net 2008.
Do you have any links to any source code or classes that could get me started. Tried one off here but can't get it to compile, I get the following errors.
Error 1 The type or namespace name 'ModbusTCP' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Martin\Downloads\Modbus_TCP_class_demo\ModbusSampleCommon\frmStart.cs 8 7 ModbusTester
Error 2 The type or namespace name 'ModbusTCP' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Martin\Downloads\Modbus_TCP_class_demo\ModbusSampleCommon\frmStart.cs 14 11 ModbusTester
Thanks - Martin
|
|
|
|
|
Hi,
there are typically two steps required before you can use classes from some managed DLL:
1. add a reference to your project; in Visual Studio, right-click your project, choose Add Reference,
wait a while, locate the assembly file of interest, and go.
2. in each source file going to refer the classes of that assembly, add a "using someNamespace;" statement for your convenience. (The odd programmer will tell you you could skip that and always use fully qualified class names).
That's it.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Thanks for the info Luc
Martin
|
|
|
|
|
You're welcome.
PS: please don't delete messages, it easily makes the threads look strange. When you change your mind, just add a sentence ("ignore", or "changed my mind to....").
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I’m practicing a database and I have a 3-column table. I’m using binary formatting to save/open the file. I can’t see what is wrong with my code –
I can display records in the datagrid view ok when I press the save button
I can also save the records into the dataset ok when the save/close button is pressed.
When I reopen the programme and press the reload button to reload the dataset, additional records will not be displayed nor saved though original records will be showing in the datagrid.
When I reopen the programme and DO NOT press the reload button, I can enter new records and they will be saved because this is basically overwrites the original dataset.
Ideally, I want to be able to open the dataset and then be able to add new records to the dataset/datatable.
Any help and advice on how to correct this?
Thanks,
Steve
Here is my code:
Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Public Class Frm_DataEntry
Dim ThePoint As New Point(540, 150)
Public TheRecord As DataRow
Dim ii As Integer
Private Sub Frm_DataEntry_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.Location = ThePoint
End Sub
Private Sub Tbx01_FirstName_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Tbx01_FirstName.Enter
Tbx01_FirstName.Clear()
Tbx02_LastName.Clear()
Tbx03_Phone.Clear()
End Sub
Private Sub Btn01_Save_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Btn01_Save.Click
TheRecord = Frm_Mainform.dt_Table.NewRow
TheRecord(Frm_Mainform.dt_Col02_FirstName) = Tbx01_FirstName.Text
TheRecord(Frm_Mainform.dt_Col03_LastName) = Tbx02_LastName.Text
Frm_Mainform.dt_Table.Rows.Add(TheRecord)
Frm01_WithDGV.DGV01.DataSource = Frm_Mainform.ds_Dataset
Frm01_WithDGV.DGV01.DataMember = Frm_Mainform.dt_Table.ToString
Frm01_WithDGV.DGV01_BS_Col01_PKey.DataPropertyName = Frm_Mainform.dt_Col01_PKey.ToString
Frm01_WithDGV.DGV01_BS_Col02_FirstName.DataPropertyName = Frm_Mainform.dt_Col02_FirstName.ToString
Frm01_WithDGV.DGV01_BS_Col03_LastName.DataPropertyName = Frm_Mainform.dt_Col03_LastName.ToString
Dim ii As Integer
ii = Frm_Mainform.dt_Table.Rows.Count
MessageBox.Show(ii)
End Sub
Private Sub Btn02_SaveAndClose_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Btn02_SaveAndClose.Click
Dim Filename As String = "PermitToWork.pmt"
Dim fStream As FileStream
Frm01_WithDGV.DGV01.DataSource = Frm_Mainform.ds_Dataset
Frm01_WithDGV.DGV01.DataMember = Frm_Mainform.dt_Table.ToString
Frm01_WithDGV.DGV01_BS_Col01_PKey.Width = 90
Frm01_WithDGV.DGV01_BS_Col02_FirstName.Width = 125
Frm01_WithDGV.DGV01_BS_Col03_LastName.Width = 125
Frm01_WithDGV.DGV01_BS_Col04_Date.Width = 125
Frm01_WithDGV.DGV01_BS_Col01_PKey.DataPropertyName = Frm_Mainform.dt_Col01_PKey.ToString
Frm01_WithDGV.DGV01_BS_Col02_FirstName.DataPropertyName = Frm_Mainform.dt_Col02_FirstName.ToString
Frm01_WithDGV.DGV01_BS_Col03_LastName.DataPropertyName = Frm_Mainform.dt_Col03_LastName.ToString
If File.Exists(Filename) Then
Try
fStream = New FileStream(Filename, FileMode.Create)
Dim binFormat As New BinaryFormatter
binFormat.Serialize(fStream, Frm_Mainform.ds_Dataset)
Catch anex As ArgumentNullException
MsgBox("The inventory could not be accessed")
Catch ex As SerializationException
MsgBox("The application failed to retrieve the inventory")
Finally
fStream.Close()
End Try
Else
Return
End If
Frm_Mainform.Close()
End Sub
Private Sub Btn03_Reload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Btn03_Reload.Click
Dim Filename As String = "PermitToWork.pmt"
Dim fStream As FileStream
If File.Exists(Filename) Then
Try
fStream = New FileStream(Filename, FileMode.OpenOrCreate, FileAccess.ReadWrite)
Dim binFormat As New BinaryFormatter
Frm_Mainform.ds_Dataset = binFormat.Deserialize(fStream)
Frm01_WithDGV.DGV01.DataSource = Frm_Mainform.ds_Dataset
Frm01_WithDGV.DGV01.DataMember = Frm_Mainform.dt_Table.ToString
Frm01_WithDGV.DGV01_BS_Col01_PKey.Width = 90
Frm01_WithDGV.DGV01_BS_Col02_FirstName.Width = 125
Frm01_WithDGV.DGV01_BS_Col03_LastName.Width = 125
Frm01_WithDGV.DGV01_BS_Col04_Date.Width = 125
Frm01_WithDGV.DGV01_BS_Col01_PKey.DataPropertyName = Frm_Mainform.dt_Col01_PKey.ToString
Frm01_WithDGV.DGV01_BS_Col02_FirstName.DataPropertyName = Frm_Mainform.dt_Col02_FirstName.ToString
Frm01_WithDGV.DGV01_BS_Col03_LastName.DataPropertyName = Frm_Mainform.dt_Col03_LastName.ToString
Catch anex As ArgumentNullException
MsgBox("The inventory could not be accessed")
Catch ex As SerializationException
MsgBox("The application failed to retrieve the inventory")
Finally
fStream.Close()
End Try
Else
Return
End If
Frm01_WithDGV.DGV01_BS_Col01_PKey.Width = 90
Frm01_WithDGV.DGV01_BS_Col02_FirstName.Width = 125
Frm01_WithDGV.DGV01_BS_Col03_LastName.Width = 125
Frm01_WithDGV.DGV01_BS_Col04_Date.Width = 125
Dim ii As Integer
ii = Frm01_WithDGV.DGV01.Rows.Count
MessageBox.Show(ii)
End Sub
End Class
Thanks for your help and advice!
Steve
Thanks for your help and advice!
Steve
|
|
|
|
|
One possible reason that your question has not been answered is that it is too difficult to read your code sample.
If you place it between pre tags and format it properly you will have more chance of getting an answer.
<pre>
put your code here
and indent it properly
</pre>
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Is thier any MCE examples out thier or a greate article creator to pls create one.
Im in real need on how this MCE fits together & a simple example to show it all.
|
|
|
|
|
What's this "MultiChannel Engine" thing?
Do you have any link?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
|
Hi all,
I am not clear if this the right forum for this question !? (or administration ?)
As the starting condition of my setup file (msi) I have to determine if .NET Framework X.Y is already installed.
So I need the componentID of the relating framework. I seeked the registry but I found hundreds of guid's.
Where do I get the correct one ?
Thanks in advance
Frank
PS.: I am missing a forum for installer-questions (is there a one ?)
|
|
|
|
|
If your installer includes files that require .Net then VS should automatically add a .Net Prerequisite to the "Launch Conditions" page in the VS Editor. If you click on that prerequisite you can view its properties and change the .Net version number to whatever you want.
If that isn't working for whatever reason this[^] article may help.
|
|
|
|
|
Hi Jimmanuel,
thanks for your answer.
The VS2008 installer addeted automaticly the Prerequisite (but the wrong one) .NET v3.5 instead of .NET v2.0 (my app was compiled for .NET2.0) and left the componentID free. So I came back to my question - where to get this componentID (GUID) or what checks the installer to determine if the correct version is installer or not. - The article doesn't tells somthing about it.
Thanks
Frank
|
|
|
|
|
Hello friends,
I've a interview for .Net Developer with 1 year experience.I waan possible interview question with answer.Thanks in advance.
Cheers,
MAHESH.K
|
|
|
|
|
What is the company you are interviewing with? I'll just give them a warning to pass on your interview.
only two letters away from being an asset
|
|
|
|
|
They will probably ask how well you know .Net, the probably answer in your case seems to be not very well.
Good luck!!!
|
|
|
|
|
If I'm the interviewer I'll sit you in front of Visual Studio and set you a task. I will explain the task in detail. I'll show you the resources you need to complete the task. I'll let you know that the machine has an open internet connection so it is a real life test, you can use any resources any of our existing developers will have access to. Before I leave you to the task I'll makes sure you understand and give you an opportunity to ask any questions you may have. At any time you can ask me or my colleagues questions.
After 2 to 4 hours (depending on the experience you've told me you've already got) I'll see how you are getting on. You will walk me through the code you have written and explain how it works and how it fits together. So far, only one person ever completed the entire task, so I'll ask what you would continue to do if you had the time to complete the task.
So, no questions. If you can talk-the-talk that's doesn' necessarily mean you are any good. If you can walk-the-walk then I'll take you seriously.
|
|
|
|
|
Would you mind giving an example of one such task? (I'd like to see how close I could come)
|
|
|
|
|
harold aptroot wrote: Would you mind giving an example of one such task?
Well, without being too specific (I don't want to have to come up with a new one, and I don't want to give away too many details - some job seekers are wiley and can use the inter-tubes) it would involve the following:
Some sort of user interface, candidate gets the choice or WinForms or Web Application (I suppose WPF could be included). There is a data source involved, we provide a flat file, XML file or database and candidates can choose which they'd prefer (they also get the option of re-designing the data format as there are slight flaws).
The application consists of some sort of input which dictates which data to display. There is also some data that is disconnected from the data source (say some graphics files). And there are some inconsistencies in the way things are names.
What we are looking for is: Is everything set out logically? Are any of the flaws in the spec or source files (data, graphics, etc.) provided resolved? Does the program work (at least to some extent). Did they make any unit tests?
I suppose something along the lines of a stock system where you can put in a product category and get back a picture along with current inventory levels and price would fit the bill.
For bonus points (if they finish the main part of the exercise) make it editable.
You now have 4 hours. GO!
|
|
|
|