|
the seed was mistyped, 5381 in C# vs 5831 in VB...
|
|
|
|
|
I have no success in installing subject software on a windows 8.1 Sony. I am attempting to install from the ISO download. The installer runs a long time, but fails to install anything. Anyone have a suggestion? There seems to be no good answer posted on the web.
Bobby
|
|
|
|
|
Everything I can find seems to say it is not compatible with Win 8. If it were me I would just download the latest express version and use that. 2012?
vbmike
|
|
|
|
|
An alternative could be Visual Studio Community edition - but it's bigger and has a lot of features you might not need.
|
|
|
|
|
Thank you both for your prompt response. I'll look into the newer versions. I am using VS210 pro on my desktop, so I wanted the same for my new notebook. I will forgo installation on the notebook for now. My next chore is to see if the installer is still trying to install it. I canceled the installation but a dialogue said it would complete the installation of the current module. But I finally had to shutdown windows installer because it was still working away. There seems to still be a lot of machine activity with windows installer worker. I hope I don't have a Freddy Kruger here.
Bobby
|
|
|
|
|
I'm working with vb.net and entity framework.
In my form , I have 2 comboboxes : Article and price. ( For both comboboxes , .Selectedvalue is an integer )
If I use this expression :
Dim gj As IEnumerable(Of Myobject)
gj = (From t In context.myobjects Where t.art = Article.SelectedValue And t.prc = price.SelectedValue
Select t).ToList
an error is produced :
An unhandled exception of type 'System.NotSupportedException' occurred in EntityFramework.SqlServer.dllAdditional information: LINQ to Entities does not recognize the method 'System.Object CompareObjectEqual(System.Object, System.Object, Boolean)' method, and this method cannot be translated into a store expression.
If I use this code :
Dim a as integer=Article.SelectedValue
Dim c as integer= price.selectedvalue
Dim gj As IEnumerable(Of Myobject)
gj = (From t In context.myobjects Where t.art = a And t.prc = c
Select t).ToList
everything is OK.
What I have wrong in first expression , and how should I modify to make it work , because I don't want to use extra variables like in the second code.
Thank you !
|
|
|
|
|
Does it work if you wrap a CInt around the SelectedValue ?
Where t.art = CInt(Article.SelectedValue) And t.prc = CInt(price.SelectedValue)
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
It's the same situation.
Doesn't work.
|
|
|
|
|
|
If .selectedvalue is an object , then why the expression used in second code are ok :
Dim a as integer=Article.SelectedValue
I think this is the same as :
....
...Where t.art = Article.SelectedValue
What's the difference ?
|
|
|
|
|
I believe VB will do implicit conversions. I don't think C# would allow that.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Who's talking about C# ? All the codes are in VB.net.
|
|
|
|
|
Yes, I said that VB allows you to do that. I was simply pointing out that the way you have it written won't work in C#. In other words, VB is doing stuff behind the scenes.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
ok but is there any solution ?
|
|
|
|
|
|
Hello !
Calling the ToString method , make this expression works.
But I want to know that is this correct , because inside the query , variables of different types are compared ( integer with string ).
Can this modified expression produce a correct result every time ?
Thank you !
|
|
|
|
|
You could convert to integer instead, you don't have to do to string.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
but , as I have posted before , using the Cint doesn't work and produce the same error.
|
|
|
|
|
I think you're spending too much time on this. The original problem is you can't use objects the way you were doing. So, convert it to something that works and move on.
However, all you said was CInt did not work. What was the error? It would have been a different error. And perhaps use Convert.ToInt32() instead of CInt which is old VB code anyway and not .Net.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hello !
I'm spending time because my project is full with this kind of queries and each of them with 10-12 where conditions.
I try using Convert.toint32 , but I get an error :
An unhandled exception of type 'System.NotSupportedException' occurred in EntityFramework.SqlServer.dll
Additional information: LINQ to Entities does not recognize the method 'Int32 ToInt32(System.Object)' method, and this method cannot be translated into a store expression.
After I try to use convert.Toint32 but keeping the Tostring method. Again I get an error :
An unhandled exception of type 'System.NotSupportedException' occurred in EntityFramework.SqlServer.dll
Additional information: LINQ to Entities does not recognize the method 'Int32 ToInt32(System.String)' method, and this method cannot be translated into a store expression.
|
|
|
|
|
I have some problems in porting the below c++ function into VB
WORD CRC_calc_crc_bernstein(BYTE *buffer, int len)
{
WORD crc = 5381;
int i;
for(i=0;i<len;i++)
{
crc = ((crc << 5) + crc) + buffer[i];
}
return crc;
}
guess I'm failing the right casts since the function should return a WORD (2 bytes, 4 chars) hex type string.
Anybody did this or can help?
modified 9-Jan-15 6:33am.
|
|
|
|
|
I would like to get the messages sent to a external ComboBox (unmamaged code application), someting like Spy++ does (link to the below figure to see the Spy++ messages... ):
http://psmate.com/images/Immagine1.jpg
I need the strings of the Names and I can't use the "SendMessage(hWnd, CB_GETLBTEXT..." API) since in the Combo names are sorted, while I need to catch them in the order them are inserted in the list.
I think I wolud have to hook the control... but I can't find any article about hooking that works in Seven 64 bit: all hooking articles are very outdated (4 and more years) and with enclosed 32 bit C++ dlls ... this means that to Hook messages with VB.Net is not possible in Seven 64 bit?
modified 7-Jan-15 11:49am.
|
|
|
|
|
What kind of hooking do you mean? Do you mean API hooking like the Detours library, or do you mean Windows Message Hooks?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I’m working on an application that uses an inherited windows form. I’ve accepted the forms designer bugs that accompany using inherited forms in Visual Studio 2012, but I’m trying to understand the nature of the inherited form itself.
My original (parent) form code is relatively simple, but contains a small loop that updates a label control on the form with the current time. This form is then inherited by my other forms so that they will always display the current time.
When I look at the parent form in the forms designer, it displays as it should, with whatever default text I’ve placed into the label control. However, when I look at any of my child/descendant forms their label is being updated with the current time, i.e. the code of the original parent form is compiled and running, even while viewing the descendant form in the VS Forms Designer.
This seems strange to me—shouldn’t the descendant forms be inheriting the source code *only*, but not actually running it until the project is compiled and run?
|
|
|
|
|
smarrocco wrote: houldn’t the descendant forms be inheriting the source code *only*, but not actually running it until the project is compiled and run? VS is trying to compile code as you edit; that's the way it underlines stuff that the compiler is missing. What you are seeing in the designer is a preview of the form you are editing, but it will need a compiled version of the form that it is based on.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|