AsbjørnRygg's Q&A profile
Smart Device Development Smart Device Extension
Sir, I am using VS.NET 2003. I created a Smart device application and tried to run it. This application was just a “Hello world” application. This application didn’t work. The deployment device that I chose was Pocket PC 2002 Emulator . On the Build menu I clicked the Deploy solution so as to deploy the application onto the Pocket PC 2002 Emulator . Pocket PC 2002 Emulator got activated. Soon on the emulator I saw certain progress information like installing .NET Compact framework, copying files etc. Finally deployment got terminated and what I found in the output window of the IDE is shown below. ------ Build started: Project: ...Show All
.NET Development Learning to update source db: How to implement Last in Wins - Concurrency
Hi, I am migrating from VB6 and covering new material. I have a number of VB.net books and the issue of concurrency is referred to only briefly. I need to write back changes to the source db-tables. I have run the code below and cannot update the source db. I receive a Concurrency Violation error. Initially I simply need to update the source db in the "Last in Wins" approach referred to in the Introduction to Data Concurrency in ADO.NET instructions. How is that done I then need to learn to apply Optimistic Concurrency before the current application I am developing is deployed. Can you recommend sources, books etc., ...Show All
Windows Forms Using a dataview in a child table loses the parent navigation links
Hi folks - My problem is this: Single data-grid in a winforms app, bound to parent and child tables via a relation defined in the dataset. Grid datasource is set to datasetname, grid datamember set to parent table name. Grid displays fine on datatset fill. I get the expanders, click to navigate to the child rows, and the parent info is&n ...Show All
.NET Development Internet Cafe Software
i have to automate my college computer center(ISA 2000 installed) with 2000 students with their roll nos. and passwords and personal details to be stored in a databse a student enters his roll no. at the server computer and is alloted a computer (out of 200 computers) . he goes at that computer , enters his roll no. and password and if correct then is allowed to access internet for 30 min. after which he is automatically logged off i also have to store the login and logoff time for evry student so plz help me how can i disable the internet access after 30 min . Can be a web based or Winforms application or some ot ...Show All
Visual C++ MFC Dialogs and NT Service
Hello experts. I'm trying to make a class which will make it easyer to work with services. but i have a little problem. the DoModal() method of CDialog class i synchronous and after calling the method i can't start the service. anyone has an idea how to fix this prob here's the source // ProWatch.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "ProWatch.h" #include "ProWatchDlg.h" #include "string" #include "shlwapi.h" #include "ServiceWorks.h" #ifdef _DEBUG #define new DEBUG_NEW #endif ...Show All
Windows Forms Auto-updating applications - options?
Hi, I was wondering if there are any other good solutions to auto-updating winforms applications out there. I can not use ClickOnce as I need to register COM components, need access to all system ressources, etc. Anyone knows of a good solution Thanks, Tom You don't need to register COM dlls in ClickOnce Deployment. ClickOnce has a great Registry Free COM interop support built in.. Look at the article by Dave Templin http://msdn.microsoft.com/msdnmag/issues/05/04/RegFreeCOM/ The article considers a VB6 COM DLL in the example.. but same can be applied to any COM dll. If you have other reas ...Show All
SQL Server Print reports is very slow
Hi, I am facing two problems in the reports: 1. When I press the Print icon, the printer dialog box opens, and then when i try to press the print first time, it doesn't respond but second time, it does. Means in short i have to press the print button in the printer dialog box twice. 2. It takes a huge amount of time to send even a single page of report to the printer. While if i print any document from the word or any other application it prints in fraction of seconds. Only with reports i am facing this problem. Please help me out to solve this problem. Thanking you, With Regards, Prashant ...Show All
Visual Studio Express Editions error LNK2019 related to ConvertStringToBSTR
Hello, I'm trying to do a build on an open source project www.quickfixengine.org and getting some errors. The code is unmodified from when I downloaded it. I just brought it into Visual C++ so this should work. Here's the output: 1>------ Build started: Project: at, Configuration: Debug Win32 ------ 1>Linking... 1>quickfix.lib(MSXML_DOMDocument.obj) : error LNK2019: unresolved external symbol "wchar_t * __stdcall _com_util::ConvertStringToBSTR(char const *)" ( ConvertStringToBSTR@_com_util@@YGPA_WPBD@Z) referenced in function "public: __thiscall _bstr_t::Data_t::Data_t(char const *)" ( 0Data_t@_bstr_t@@QAE@PBD@Z) 1& ...Show All
Windows Forms DataGridView - readonly cells
Probably this is more a forms/control problem than a databinding related problem, so one may forgive me for reposting it here, but it is currently a really nasty problem which I have to solve somehow: I have a problem with populating the initial settings for my DataGridView. Some of the cells in the first row are supposed to be readonly and I prepopulate that data. The DataGridView is embedded in a UserControl and it works correctly if the UserControl is directly used within a Form and the data is populated in Form.OnLoad. If the UserControl is nested deeper, e.g. in another UserControl or Panel, the style settings for the cells seem ...Show All
Visual C# Parsing a string
Hello guys, i'm searching for an advice of how to parse a string. here is an example: --bla345"cool"but no-- And I need only the text double closed by ", which is 'cool'. My second question is about parsing multyline comments /* */. So if i have --bla bla /*nice thing */ alabala-- my target is get the 'nice thing' string away of the "sentence". Hope someone will find time to help me :) The first can be done with the Split() method of the string object: ...Show All
Software Development for Windows Vista error-'XpsImageType' does not exist in the current context (help me)
could some one help me why i get, error CS0103: The name 'XpsImageType' does not exist in the current context, even i put the assembly reference: reachframework.dll thanksss ...Show All
Visual C++ Very Urgent - VC6 and Vc .NET 2003
I have Visual Studio 6 and Visual Studio .NET 2003 environments installed in my machine. I have created projects(.dsp and .dsw) using Visual Studio 6.0 I am opening the .dsw created using Visual Studio 6.0 in Visual Studio .NET 2003. When I compile(Build ->Solution) my application in Visual Studio .NET 2003, some of the header files like atlbase.h in my application point to the header file in Visual Studio 6 instead of pointing to the higher version (VC7).Similarly, some of them point to the header file in Visual Studio .NET 2003 instead of pointing to the lower version. I have included all the paths in Tools->Option ...Show All
SQL Server proxy rs 2005 - how to use the ReportViewerWebControl.axd?
We have a reverse proxy for rs 2000 -> a client requests a report, it (the proxy) then goes out to the rs box, gets the report, encrypts any return urls and feeds the modified html to the requesting client. I understand this isn't necessary anymore with rs 2005 due to the architecture. Question is, when I use the ReportExecutionService.Render method it is still returning the parameters for the report, and not the ReportSession, ControlID, Controller, etc. parameters which hides the actual return values on the href links of the report. Documentation is plentiful for rs 2005, but examples are not. Can someone please explain to me if usin ...Show All
Visual Basic Writing to files
Hi, I`m learning Microsoft Visual Studio Express Edition and trying to work out how to write a line of text to a file each time the application is closed. Please see my code so far below: '***** Declarations ***** 'Info stored in *.dat files Dim T1 As String = "C:\T1.dat" Dim T2 As String = "C:\T2.dat" 'End Application Private Sub cmdExit_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdExit.Click My.Computer.FileSystem.WriteAllText(T1, TextBox1.Text, False, encoding) My.Computer.FileSystem.WriteAllText(T2, TextBox2.Text, False, encoding) The code above on ...Show All
Smart Device Development Rasbook dial-up connection registry settings
Does anyone know where the User and Password settings have gone in Windows Mobile 2003 SE. In our older Vs2003 project we connected by changing the User and Password info in the CurrentUser\Comm\RasBook but they have disappeared. We have upgraded our project to Vs2005 and we are trying to use Microsoft.Win32 Registry to set these settings in the registry. We use opennetcf to connect to our rasbook profile. Thanks for any help. I have struggled with this quite a bit. JamesWhitfield wrote: Does anyone know where the User and Password settings have gone in Windows Mobile 2003 SE. In our older Vs2003 project we connected b ...Show All
