apolon_vn's Q&A profile
Smart Device Development System.SR.dll appears corrupt when installed on device
When debugging mobile applications, exception error messages are localized and you need System.SR.dll to be able to see them. Deploying via F5 from Visual Studio does indeed install System.SR.dll for me but I still cannot see exception messages during debugging. Examining the DLL by dragging it to the desktop and inspecting it in Reflector it appears to be corrupt in some way. The only workaround I've found is to manually extract the DLL on the desktop and then deploy it specifically with the solution. Does anyone know why the DLL would appear corrupt They are not SQL string they are standard exception message string, e.g, System.IOException. As I said, I can see the strings in debug mode when I manually extract System.SR.dll and pla ...Show All
Visual C# How do I convert a windows program to a website?
I have a fairly simple program that does takes in some numbers via textboxes and calculates an answer and displays it at the press of a button. Is there an easy way to convert this to a webpage or do I need to recode it from scratch. I am new to c# and .net but a fairly proficient programmer. Thanks in advance. not quite, you can pretty much use the same code, just a different project! so create an ASP.NET application in your desired language. Then perhaps add a textbox, and a button onto the webform Double click the button to create a click event and do the same thing as you did on winforms, pretty much the same in this case. Then once you wish to display the answer, you can display it via ...Show All
Windows Forms Validate Field - Help
Hi, I am stuck... 1. Can I declare the OLEDB Connection in class or just within the button 2. I validate empty fields first, then with the login database. The open connection is supposed to be placed where ----------------------------------- public class LoginForm : System.Windows.Forms.Form { private System.Data.OleDb.OleDbCommand oleDbSelectCommand1; private System.Data.OleDb.OleDbConnection oleDbConnection1; private System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1; private System.Windows.Forms.Label labelID; private System.Windows.Forms.Label labelPwd; private System.Windows.Forms.TextBox txtUserID; private System.Windows.Forms.TextBox txtPassword; private System.Windows.Forms.Button btnLogin; private System.Windows.Forms.Button b ...Show All
Visual C++ Making a specific application window active through Visual C++
Hello everyone, I'm developing an interface where the mouse pointer is controlled by a user's eye-gaze. This is done through a device called an eye-tracker which identifies where exactly on the screen a person is looking at. I'm controlling mouse pointer through SendInput() calls. I need to make a different application window active, so I can click the objects inside of it. How do I do that Help would be greatly appreaciate. If somebody is interested in looking my eye-gaze-guided interface project here it is: http://www.cs.kent.edu/~okomogor/wowpercept/wowpercept.htm Use a combination of WindowFromPoint and SetForegroundWindow. http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/ ...Show All
SQL Server System.IO.StreamReader: The Report element was not found.
Hi, I just installed few reports on our test environment w/ SQL Server 2005. I can run the pre-made reports (.rdl) files from our developers. But when I try to create a new reports, I'm getting the following error. System.IO.StreamReader: The Report element was not found. does anyone has any ideas Thanks, ...Show All
Visual C# What is the Best Method for getting SQL Data from C# to ASP VBscript -
I have tried passing an ArrayList back to the ASP, but the vbscript Array type doesnt seem to be compatible with ArrayList...Any ideas Good thinking - I was stuck thinking one way when using xml is probably the best bet - Thanks! This message board is pretty slick - tons of useful info. ...Show All
Visual C# C# and SQL Query
Ok... Ive started learning C#. I have loaded a datasource odbc connection and dropped 1 of my tables onto my form. Now I also have a textbox and button on my form. The text box takes the current date and converts it to excel serial date and stores that into a variable 'serial'. Now I need to make a query on my table. I can create a query comparing 2 columns without a problem. My problem is that I cannot use my variable 'serial' in my query. Here is what it looks like: SELECT ... FROM ... WHERE WHERE TranDetail.EndDateTime = TranHeader.EndDateTime AND (TranDetail.EndDateTime >= @serial) I am using the query builder. I cannot get the TranDetail.EndDateTime >= @serial to work. I know its not able to use my variable ...Show All
Software Development for Windows Vista Windows Installer 4.0 Corrupt
How Do I repair a corrupt windows 4.0 installer the best place to ask would be here: http://windowshelp.microsoft.com/communities/newsgroups/en-us/default.mspx ...Show All
Visual C++ LsaIWriteAuditEvent() API
Can anybody tell me how to use LsaIWriteAuditEvent() API What are the parameters for that Hi James, For such issues, I would recommend using the newsgroups at http://msdn.microsoft.com/newsgroups where folks would be more familar with the topic. OTP Thanks, Ayman Shoukry VC++ Team ...Show All
Windows Forms Help with Winform and binding to an object
I'm looking for the correct way for me to bind an object to a winform to display some of it's attributes. For Example a Person instance with first and last name. I've been able to do it using a BindingSource, but have run into several things that I don't like. 1. The bindingSource is working with a collection, I just want to have one "person" that I'm displaying on a winform. If I change the person, I want to just replace that instance, not add to a bindingSource and navigate. I don't want the navigating tool on the form either. 2. I want to have changes that are made to the current "person" flow up to the interface. A simple example would be a button, that changes the person's name directly. I use this as an example to ...Show All
Visual Studio Team System CTP 6.0 Test Project
I've now uninstalled CTP5 and Instal CTP 6.0 i'm getting the same problem within this solution. If I try to create a DB unit test by right clicking on a sproc I get a message box with "An item with the same key has already been added" this bug was also reported in CTP 5.0 and also now its on CTP 6.0 Is there any way of fixing that Thanks Hi Pat, The issue turned out to be how we were processing project and solution folder names. Web (and web service) projects can not have project files - this is one example of a configuration that was causing this error. We also found a couple other issues that we also fixed. If you do not mind, could you post back the names of all the projects and solution folders in your solu ...Show All
SQL Server Oracle DB Update Error With SQL
I keep getting this error when i try to update to an oracle table through SQL: An error occurred while preparing a query for execution against OLE DB provider 'MSDAORA'. OLE DB error trace [OLE/DB Provider 'MSDAORA' ICommandPrepare::Prepare returned 0x80040e14]. This is the code I'm using: ************** DECLARE @cmd VARCHAR(500) DECLARE @Link VARCHAR(100) set @Link = Oracle_DB' DECLARE @Table VARCHAR(100) set @Table = 'Product_table' declare @Factory varchar(3) set @Factory = 'N12' declare @ProdPull varchar(10) set @ProdPull = '10500' declare @Prod varchar(25) set @Prod = ' 44JBGG' declare @WW varchar(6) set @WW = '200704' declare @SchedType varchar(15) set @SchedType = 'SCHED 1' SET @cmd = ' sele ...Show All
SQL Server SQL Server Developer Edition from a Disk Image
Hi all, I have a rookie question. I'm setting up PCs for a team of developers - all of whom will have the same hardware and software setup. I'd like to just install everything on one PC, then make an image of the PC to apply to the others. I will be installing SQL Server 2005, Developer Edition. From a SQL Server installation perspective, what special considerations will I need to make to get this going Any suggestions or links to online documentation would be greatly appreciated. Thanks, John It is not supported to install SQL Server 2005 on multiple machine at the same time. Neither SQL Server 2005 can be cloned accross machines. However, if all of your PCs are in a cluster, then it you can install SQL Server 20 ...Show All
.NET Development How does BackgroundWorker marshal events?
AFAIK, BackgroundWorker invokes events in the context of main application thread. I am curious how does it do this It doesn't have form reference, the only information is event subscription from client. I guess that having event subscription information it extracts form reference and delegate from it in order to execute Invoke or BeginInvoke. How This can be interesting for everybody who writes worker thread and wants to serialize callbacks like it is done in the BackgroundWorker. Poking around a bit with Reflector, I see BackgroundWorker use AsyncOperation.Post() to invoke a delegate. AsynchOperationManager.CreateOperation() can be used to create an AsyncOperation object. Arcane stuff, but the MSDN l ...Show All
Visual FoxPro One to many query of one to many tables.
Hi; Please forgive me if this is such a basic question: I have 2 tables: Orders and OrdersDetail. I need to have a form with 2 grids where the top one shows the orders and the bottom the detail of the order. Both need to show info for a specific customer_id. I am not sure what is the best way to produce this - using a sql command, creating a parameterized view or something else I am not aware of I know that a filter is out of question. Thx. One of the easiest ways is to use grid's LinkMaster,childorder and relationalexpr properties.ie: Public oForm oForm = Createobject ('mySample') oForm. Show Define Class mySample As Form Width = 420 Height = 460 DataSession = 2 ...Show All
