|
You have targetted the Client Profile in your project (take a look in the project properties). This doesn't include the web assemblies. You need to change your profile to the full .NET 4 profile to get access to System.Web.
|
|
|
|
|
|
Not a problem. I'm glad I could help.
|
|
|
|
|
how to proceed with android application development.Is there any app which is not existing in android and research is going on.
|
|
|
|
|
See here[^] and here[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Member 9405140 wrote: there any app which is not existing in android and research is going on.
Well...this is a .Net forum, so No.
|
|
|
|
|
For love nor money I cannot get the syntax right.
I want to return 3 x 2D arrays from a function but can't wrap my head around it - I suspect I have just failed to grasp some fundamental aspect of jagged arrays!
Public Function SVD() As Double(,)(,)(,)
Dim arS(,) As Double
Dim arU(,) As Double
Dim arV(,) As Double
...Fill the Arrays...
Dim arSVD(,)(,)(,) As Double
arSVD(0) = arS
arSVD(1) = arU
arSVD(2) = arV
Return arSVD
End Function
If I have it that way the error is on arSVD(n) and says 'Number of indices is less than the number of dimensions...'
If I change the return type and arSVD to Double()()() then the error is on the last arS and says 'Value of type 2D array cannot be converted to 1D array...'
If I change it to arSVD(0,0) for example the error is on the last arS and says 'Value of type 2D array cannot be converted to type 2D array of 2D array...'
Bash. Head. Brick. Wall.
Any help very gratefully received.
Mike
|
|
|
|
|
Wow, I'd forgotten just how horrible VB's array syntax[^] is!
Try this:
Public Function SVD() As Double()(,)
Dim arS(,) As Double
Dim arU(,) As Double
Dim arV(,) As Double
Dim arSVD(2)(,) As Double
arSVD(0) = arS
arSVD(1) = arU
arSVD(2) = arV
Return arSVD
End Function
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
modified 5-Oct-12 12:50pm.
|
|
|
|
|
Thanks, Richard.
Quite why I couldn't work out ()(,) I don't know, so simple when you know!
I blame VB array syntax too
That link should be VB arrays[^]
Mike
|
|
|
|
|
Probably also worth noting, for posterity, that I solved this problem using a structure, 3 private members as double(,) and a constructor that takes the same as paramaters and off you go - quite a few advantages of doing it this way and I could also add a second constructor using just one parameter, the syntax Richard gave : ()(,) as double.
|
|
|
|
|
in visual studio 2010 when going in break mode and place the mouse over a var of object type that represent a com object from MS office application the VS visualizer shows as system.__ComObject and list all of the com object members.
how can i get the same information?
Thanks
|
|
|
|
|
Why are you asking the same question again? If you have posted this duplicate question by mistake, please delete this question and wait for people to answer your original question.
|
|
|
|
|
in visual studio 2010 when going in break mode and place the mouse over a var of object type that represent a com object from MS office application the VS visualizer shows as system.__ComObject and list all of the com object members.
how can i get the same information?
Thanks
|
|
|
|
|
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machinekey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
iam getting the above error in my site please help me.
sandeep
|
|
|
|
|
This exception generally appears because Controls using DataKeyNames require Viewstate to be encrypted. And the viewstate hidden field might not have been rendered to the browser with long-running pages, and if you make a postback before it does, the page doesn't know that Viewstate is encrypted and causes the aforementioned Exception.
The problem happens specifically when you postback before the EventValidation field has been rendered.
Workarounds:
1. Set enableEventValidation to false and viewStateEncryptionMode to Never OR
2. Mark the form as disabled and then enable it in script once the load is complete OR
3. Override the Render Event of the page to place the hidden fields for Encrypted Viewstate and Event validation on the top of the form
Have a look at this blog for full details: MSDN Blog: Validation of viewstate MAC failed error[^]
|
|
|
|
|
Hi,
I tried to connect VB.NET with MSAccess which is simple process in which i got error in connection.open()
"The 'Microsoft.Jet.OLEDB.4,0' provider is not registered on the local machine".
Am working with Windows 7 - 64 bit machine. Please help me with the above error.
Thanks
kkct
modified 24-Sep-12 1:42am.
|
|
|
|
|
|
As you are running x64 windows and Microsoft.Jet.OLEDB.4.0 provider is not 64-bit compatible.
It seems to be version problem with the provider.
You can try this option and see if it gets ressolved:
1. From the solution explorer right-click your project then click Properties
2. Click the Build tab
3. Change Platform target from: Any CPU to x86
4. Re-build your solution
This may work.
Thanks
Soumen Mazumder
Happy Coding
|
|
|
|
|
i am create a form skin and i can't create a resize just like a normal form.
|
|
|
|
|
Why not? Is it maximized, do you have trouble using your mouse, what?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hi,
We are looking for a .NET component which will do lookup tables (with interpolation). I've spent hours searching google/forums to no avail.
As the lookup table will be used frequently in a computationally intensive process, speed is of great importance. Ideally we would want to stay away from a database approach as we are not using database/tables anywhere else in the product.
We tried building a component ourselves but were struggling with speed. Our method came down to looping through every single element in the table and comparing it (calculating distance) to what we were trying to lookup. I should mention that we only are dealing with numbers and we have the need for higher dimensions in the table (ie. 1D, 2D, 3D, nD tables).
Can anyone recommend either an exisiting component or should we should try to optimize our algorithm and move to a native C++ implementation to gain speed?
Thx
Hento
|
|
|
|
|
HentoDeluxe wrote: As the lookup table will be used frequently in a computationally intensive process, speed is of great importance. Ideally we would want to stay away from a database approach as we are not using database/tables anywhere else in the product.
Meh, I was just about to recommend the TimesTen database.
HentoDeluxe wrote: Our method came down to looping through every single element in the table and comparing it (calculating distance) to what we were trying to lookup.
Does your lookup have a key that you're comparing to? If yes, try a Dictionary. You might also enjoy benefits from reading up on database-theory; if your data contains several fields that you do for the lookup, it might be a cute idea to have something similar to an index.
HentoDeluxe wrote: Can anyone recommend either an exisiting component or should we should try to optimize our algorithm and move to a native C++ implementation to gain speed?
You need to find the correct approach; changing language isn't going to help much.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hello,
I would like to convert a decimal number (base10) into hexadecimal and then save it into an unsigned char array.
I have an integer whose value increments from 1024 to a max of 2047 in steps of 1 whenever the user clicks a button. At each step I need to convert it to a hexadecimal number and save it into an unsigned char array or 2 elements so that I can send it to a device via USB.
For example:
If I want to send 1955 decimal number I would like to have my unsigned char array as below
Out[0] = 0x07;
out[1] = 0xA3
then I can use my transferdata(out) function.
Can someone help me with this?
thanks in advance
PKNT
|
|
|
|
|
Something like ...
Out[0] = decimalNumber / 256;
Out[1] = decimalNumber % 256;
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Thanks for your reply, it works perfect. Looks very simple, wonder why I didnt get that idea (I did many times before in similar ways). These days I have to start thinking from scratch.
PKNT
|
|
|
|