nixkuroi's Q&A profile
Smart Device Development Trap All Key Presses Independent of Focus
Using Visual C# .NET Compact Framework 1.0, I'm trying to trap all keypresses in a top level System.Windows.Forms.Form whether or not the form has Focus. Basically I want to delegate key events on my own. The problem is that only the currently Focused Control receives events (KeyPress, KeyDown, etc.). I would like a high level key event manager that peeks (does not consume) all key related events for a Form. Can anyone help me here I looked at the RegisterHotKey API but that is only for C++ and, as the method name implies, that is only for registered keys -- not the entire set of keys. If this is the only way or best w ...Show All
.NET Development Error 27 Option Strict On disallows operands of type Object for operator '='. Use the 'Is' operator to test for object identity.
Hi Guys How would I best resolve this, VS 2K5 is complaing about the values in the case statements and not able to test for object Identity, I don't want to test for object identity I'm looking for values, I know I could add the ToString option after optCurrency.Value.ToString and then put both the "2" and "3" in quotes but that does't seem right either, any thoughts Select Case Me .optCurrency.Value Case 2 Me .optCurrency.Value = CurrencyType.Euros 'load combo box Call LoadFundId(CurrencyType.Euros) Case 3 Me .optCurrency.Value = CurrencyType.Sterling 'load combo box Call LoadFundId(CurrencyType.Sterling) End Selec ...Show All
Smart Device Development SQLite and Compilation for Different Environments
I want to run SQLite on my PPCs for an app I am building. I want to be able to have 2 versions. 1 for all arm processors 1 for all x86 emulators If I compile a C++ app in Visual Tools 2003 for a 2002 device, will this app/should this app port accross all devices with a similar processor regardless of PPC version (ie: 2003-Mobile etc) Thanks! InquiringMinds wrote: If I compile a C++ app in Visual Tools 2003 for a 2002 device, will this app/should this app port accross all devices with a similar processor regardless of PPC version (ie: 2003-Mobile etc) Yes, it should work. Where do you download sq ...Show All
Visual C++ about " while ( cin >> string) "
I am studing a famous book called "c++ Primer" by Stanley B.Lippman. and in it, there is a program as follows: #include <string> #include <iostream> #include <vector> using namespace std; void main () { string word; vector < string > text; while ( cin >> word) { text.push_back( word ); } cout << "words read are: \n"; for ( int ix = 0; ix < text.size(); ++ix) { cout << text[ ix ] << ' '; } cout << endl; } when run the program, I have to input the string from the keyboard, but how to terminate it I mean that, what char I input can make ...Show All
.NET Development VS2005 and Preprocessor Definition
Hello, I'm porting a web application from VS7.1 to 2005 but i have a crasy problem. My app will compile in 2 different products (different database queries) depending on a global #define specified in the project's conditional compilation option. But now with VS2005 I don't have a project, and I'm unable to set a global define. Any suggestion on how to fix it I can't set it page by page because pre project is very big and each time i need to check on or the other versions I'll need to change everithing. We have the same problem. It's good to know that the IDE is recognizing the conditional compilation co ...Show All
Visual C# Which data structure should I use?
I want to use a data structure in memory that models a many-to-many relationship. For example, one URL links to many other URLs and is linked from many other URLs. I envision this like a database table with two columns, linksto and linksfrom , with a compound PK on both columns. This allows me to get all the URLs a page links to by querying the linksto column, as well as all the pages linking to it by querying the linksfrom column. But I don't want to use an actual database. The simplest answers seem to be either an ADO disconnected DataTable, which I could filter using .Select method or an XmlDocument, ...Show All
SQL Server MySQL to SQL Server migration
Hi, I would liked to know the SQL Server equivalent for the below MySQL query : SELECT a.col1, a.col2, max(a.col1) FROM test a, test1 b WHERE a.col2 = b.col2 GROUP BY a.col1 Thanks, Smitha Can you show some sample data and the output for that query in MySQL I'm not sure how it should behave, given that Col1 is both grouped and in an aggregate function, and Col2 is not even grouped... Very odd... If you can show the input you're using and the output you need, I can help you write a query for it. Also, please note whether you're using SQL Server 2000 or 2005. -- Adam Mach ...Show All
Visual Basic problem with insert in Mysql with rdoConnection
I am trying to manipulate a MySql database on a webserver (now localhost). I used the folowing code: Dim Omgeving as rdoEnvironment Dim conn as rdoConnection Dim rs as rdoResultset set Omgeving = rdoEnvironments(0) set conn = Omgeving.OpenConnection("myodbc", 1, false, "uid=gebruikersnaam";pwd=") To view data I define a query: strQuery and I acces the database with: set rs = conn.OpenResultset(strQuery) When using a string containing select or update query everthing works fine, but when I use an insert query, the statement is executed without errors but also without the addition of the record. Executing the query in the Mysql command line ...Show All
SQL Server "Attempted to read or write protected memory error" in SSIS
I'm trying to import data from a Sybase ASE 12.0 database called "OurTestDatabase" into MS SQL Server 2005. I started SSIS Wizard and indicated "Sybase ASE OLEDB Provider" as a source and SQL Native Client as the target. I'm gettign the following error message: ----------------------------------------------------------------------------------------------------------------- Cannot get supported data types from the database connection "Provider=Sybase.ASEOLDEDBProvider;Password=;Persist Security Info=True;User ID=sa;Data Source=sybase;Initial Catalog=OurTestDatabase" Additional information |_ Attemp ...Show All
Windows Forms Customizing StatusBar Control
I am creating a custom StatusBar control which houses a ProgressBar control. How can I show all the properties of embedded ProgressBar control on design time I want the property window of StatusBar control, shows all the properties of the progress bar. In this case, the object you are working with is a standard ProgressBar. The Propert ...Show All
SQL Server Report manager HTTP status 400: Bad Request
I am having trouble to access Report Manager on a fresh SQL Reporting Services install on Win 2003, SQL 2000 SP3a machine. /ReportServer works fine, I've created a Virtual Directory /OnlineReports to allow anomynous access but /Reports doesn't work. So I can't add IUSR to the folder I need anomymous access on. Can somebody please help Thanks in advance. Yes, here's what it shows <ReportServerUrl>http://www.domain.com/ReportServer</ReportServerUrl> www.domain.com/ReportServer works but www.domain.com/Reports doesn't. Thank you. ...Show All
Visual Basic Since you're here.........
I have a data grid that displays records. I would like to be able to click on any one of those records and have another form popup to display all the information attributed to that record. How do I reference the row that I have selected Thanks in advance One way of doing this would be that when you click on the row in the datagrid you get the key field value and with this you can set a property on the sub form that you want to display. When this form is loaded - check the property and use this value to retrieve the details for this item on the sub form. Another may be to have a property on ...Show All
Visual Basic ERROR: Unrecoverable build error when building Setup project in VS.Net 2005
Hello, Somebody, please help me out, I got "Unrecoverable build error" when building setup project. I try the solution in http://support.microsoft.com/kb/329214/EN-US/ but did not work out. I am totally stuck. Please, your any information, solution will be very much appreciated. Thanks! Yi-an This worked for me: Mergemod.dll is not registered correctly To resolve this problem, register Mergemod.dll again. Typically, Mergemod.dll is located in the following folder: C:\Program Files\Common Files\Microsoft Shared\MSI Tools\Mergemod.dll To register the Mergemod.dll, type the following c ...Show All
Visual Studio Team System Assemblies Should have valid Strong Names
I am trying to convince the developers in the company that we really should obey this rule. What I thought I would do would be create 2 projects one that calls a dll with a strong name and another that does not call a dll with a strong name. I was then intending to demonstrate that if the dll's got altered the assembly calling the strong named dll would bring up an error message. I then came unstuck because I discovered that it is possible to get in to the immediate language and remove the public key reference in the assembly that is expecting a strong named dll and remove the public key from the dll as well as make other changes like ...Show All
Smart Device Development Which SDKs to build VS2005 mobile apps?
We've migrated all of our eVC apps into VS2005. Now I'm setting up a nightly build system without VS installed. I need to replicate all of the libraries and headers that VS gives me, but using SDKS. So far, I've installed Windows Server 2003 Platform SDK and .NET 2.0 SDK. Which SDK do I need in order to build our Windows CE projects This would be the stuff that appears under the SmartDevices directory in the VS2005 tree. There are no public SDK's for the headers and libs that are found under the SmartDevices devices directory. They are based off the original PocketPC2003 and Smartphone 2003 SDK' ...Show All
