Acco1953's Q&A profile
Visual Studio 2008 (Pre-release) Root object(class) in Domain Object Model
I have a question, the question is: In the ADO.NET vNext Entity Data Framework how do I solve the problem of having a root object in my domain model Let's say in my domain object model I have to have a root class from where every other class will be inherited. Obviously the root class does not need to be persisted, it simply adds some behavior to all the objects that I am going to use in my application. While playing with the August CTP, I noticed that I could not make this work. Maybe I'm missing something. Maybe there are ways to get around this problem, can anyone please shed some lights on it What you can do is define an Entity Type in your Entity Model (in the CSDL file) and declare al ...Show All
Visual Basic Copying and pasting data in Excel in vb.net
I want to copy & paste a data ,that is stored as string,in selected cells but most of the times i get some casting or conversion errors and i want this code to be in for loop so that code must not be lengthy & must look simple.At last It shouldn't be hardcoded.So can any body help me regarding this in vb.net.I will be highly obliged. Thanks for replying,I will definitly post the code. Please also suggest me book on vb.net excel so that i can have a proper knowledge in it. ...Show All
Visual C++ mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)
I create a project by 'ATL Project' wizard. Then I set 'Dynamic-link library(DLL)', 'Allow merging of proxy/stub code' and 'Support MFC'. I don't add any code in it. I can build it first time. But after close it and reload it, I get a link error: mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj) My VS is: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual Basic 2005 77626-009-0000007-41984 Microsoft Visual Basic 2005 Microsoft Visual C# 2005 77626-009-0000007-41984 Microsoft Visual C# 2005 Microsoft Visual C++ 2005 77626-009-0000007-41984 Microsoft Visual C ...Show All
Visual Studio Express Editions How do I declare an angle?
I'm a newy and I'm writing a programme that does mathematical calculations - and I'm working on the trigonometry part of things at present. My question: Do I have to declare/Dim an angle I've tried various methods of getting an angle to be recognised but with no luck. Following on from that - how do I enter an angle into a textbox Do I enter it as an ordinary number then convert it to an angle I have studied the math class and I can't see what to do. Any help and advice is much appreciated!!!! Regards, Steve I haven't posted since last year, so I hope everyone had a good Christmas and Happy New Year to you all!!!!! Thanks Dave299, I appreciate your help. I've been trying for 3 days to work it out without success and ...Show All
Visual Studio Team System connectstring help.
string connectString = "provider=Microsoft.Jet.OLEDB.4.0;data source=" + filename + ";Extended Properties=\"Excel 8.0;HDR=NO;IMEX=1;\""; string parameterName = "["+excelSheet+"$]"; string selectCommand = "SELECT * FROM " + parameterName; how can i use the parameterName as if it was a parameter FxCop is giving me the following : CA2100 : Microsoft.Security : Review if the query string "SELECT * FROM [____$]", passed to OleDbCommand.OleDbCommand(String, OleDbConnection) in ExcelImport.GetDataSet(String, String):DataSet, accepts any user input. If so, consider using a parameterized Sql query instead of building up the query via stri ...Show All
Visual Basic My.Computer.Network.IsAvailable
Hi, I want to use My .Computer.Network.IsAvailable in my app to test for network availability, however the .Net framework sees a Sonicwall virtual adapter used for VPN connections as a valid network connection. (The PC has the Sonicwall global VPN client installed which is used to connect remotely to the network. The VPN adapter's status is always Connected) Anyone encountered this problem before (with Sonicwall or another VPN product) and found a good solution Thanks for any help! Ronan Try pinging the server to see if the network is available. If My.Computer.Network.IsAvailable AndAlso My.Computer.Network.Ping("YourServer") Then Me.Text = "Connected ...Show All
Visual Basic Ctrl + Enter in WebBrowser control
how do i allow the web browser to enable Ctrl + Enter so that one can just type google then Ctrl enter. i was tring to allow Ctrl + enter like in IE u can type google, then Ctrl + enter then, "www." and ".com" will be added. but i did it using a button already, in the button click event i did, the code maybe wrong but its something like that - i am typing from school, i don't have vb in this lab if txtAddress.text not like(" www.*.com ") then txtAddress.text &= txtAddress.text.insert(0, "www.") txtAddress.text &= txtAddress.text.insert(txtAddress.text.length, ".com") ...Show All
Visual Studio Generating Tabs in Excel Report
Hi, Does anyone know if it is possible to generate a tabbed report to Excel format with Reporting Services Thank you, Ray raymuirhead , When a report is exported to excel, the tab name in excel is going to take the name of your rdl report, but I am having the same problem that you have when I am exporting a report that has a group and a page break is set up in the group. When this information is exported to excel the information is saved in different spreadsheets, which is really cool. but it would be nice to be able to set up the name of the spreadsheet. I would like to be able to set up the name of the spreadsheet as the name of the group instead of "sheet1, sheet2 and so on". If yo ...Show All
SQL Server How to export SQL data to Excel SpreadSheet using SQL Query?
Hi Im using this query to select ,calculate and format data like Refer here for more understanding:- Select DateAdd(Hour, DateDiff(Hour, 0, RowDateTime), 0) As RowDateTime, Avg(Meter1) As Meter1, Avg(Meter2) As Meter2, Avg(Meter3) As Meter3 From TableName Group By DateAdd(Hour, DateDiff(Hour, 0, RowDateTime), 0) I want the output of the query to be written in the excel Sheet. Your help will be highly appreciated. Derek Comingore - RSC wrote: use SQL Server Integration Services (SSIS) Hi, Thanks for the reply but im using Visual Studio Express and it doesn't have (SSIS). Any Ideas ...Show All
SQL Server Could not connect to SQL.
When i am trying to create a new database project in VSTE DB Prof and say finish an error is thrown saying "WHEN CONNECTING TO SQL SERVER2005, THIS FAILURE MAY BE CAUSED BY THE FACT THAT UNDER THE DEFAULT SETTINGS SQL SERVER DOES NOT ALLOW REMOTE CONNECTION". I have checked all services and started all the required ones.I am also using a local connection, i am trying to connect to the database on my system.How to handel this error ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Camera position?
How do I calculate the current position, target and up vectors once Matrix transformations have been applied to Device.Transform.View r3n, Ah, sorry I wasn't clear. You would take your view space camera position (right, up and look vectors) and multiply this by the inverted view matrix to get the world space position vectors. To make it more clear, if matrix A holds equations that will transform points from coordinate space A to coordinate space B, then the inverse matrix of A, say matrix B holds the equations to reverse this. So if you have a point, say point 1, in space A (view space) and you want to world space of this point you would multiply this point by the inverse matrix of space A. Sorry ...Show All
Visual Basic datagrid click
I use the following code to display record to datagrid. I set the datagrid only displaying one record which is Customer_Name only. But, how can i retrieve the primary key(Customer_ID) of the selected cell when the row is being click Dim rd As New OleDb.OleDbDataAdapter("SELECT Customer_ID, Customer_Name FROM Customer;", con) Dim tbl As New Data.DataTable rd.Fill(tbl) DataGrid1.DataSource = tbl Private Sub DataGrid1_click(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.Click "WHAT CODE SHOULD I WRITE HERE " End Sub Or any other way to do so to retrieve the primary key HopeDreamsComeTrue wrote: I use the following code to display reco ...Show All
Visual C# Language problem !?
Hi there, I need to change language in whole application. Now i'm doing this by statement: Thread.CurrentThread.CurrentUICulture. But i need to change language for all threads not only for current one - moreover i need to change it for thread that are not spawned yet. (I have many resource managers spread over many assemblies). The question is.. What is the best way to do this Is it possible Thank for any clue, M Hi, The problem is that my user interface does not want to work in main thread. The situation looks like this: I got assembly which is performing some actions and it raises events which are handled by main application. The problem is that methods in my custom control which are recieving that not ...Show All
.NET Development Where is Application_Start Web Service Handler in VS 2005?
Visual Studio 2003 used to have a class Global : System.Web.HttpApplication in the Global.asax.cs file which allowed to indert code for different Web Service events such as "Application_Start", "Session_Start", etc. These handlers no longer show up in Visual Studio 2005. Does anyone know how to implement this functionality in VS 2005 thx! WRM WRM, Visual Studio 2005 does not include by default the Global.asax file in the web projects.... but you can add it (Add New Item -> Global application class) and use it as you were in VS2003. Rgds, Rodrigo ...Show All
SQL Server Login failed, user is not associated with a trusted SQL Server connection
I set up SQL Express and Visual Studio Team System for the first time yesterday. I created a web service (on my localhost IIS) and added an MDF file to my App_Data folder. I added a table with five fields. I'm trying to connect to the database in my web service, but when my web service gets to the connection line it returns the error System.Data.SqlClient.SqlException: Login failed for user ''. The user is not associated with a trusted SQL Server connection. When I add in my domain name and password to the connection string I get the error System.Data.SqlClient.SqlException: Login failed for user 'redmond\danmor'. The user is not associated with a trusted SQL Server connection. I've queried these SQL forums, and the advice is u ...Show All
