ameyayashu's Q&A profile
Visual Basic Sending unicode characters to an application
(This thread was "moved" to this forum) Hi, I'm creating an application that detects the pressed keystrokes and sends other characters in their place. Just like a key mapper. I'm using a keyboard hook to detect the keystrokes (the one from here , if you need to know) and and then send other keys to applications system-wide. My only problem is that I need to send non-latin characters, cyrillic characters to be more precise (in my case), and I have realized that I'm not able to simulate this the way I'm doing so far. I have researched a lot and the only thing I found was that I may have to use SendInput instead, or Windows Messages to send a WM_CHAR or something like that. My main objective is to be able ...Show All
SQL Server SQL2000 JOB calling SQL2005 JOB - Best Practice?
Hi, We have two systems, one working on SQL2000 and other working on SQL2005. In SQL2000, there is JOB which needs to execute a JOB in SQL2005, get feedback based (success or failure) and proceed accordingly. I am not sure the best practice to call SQL2005 job from SQL2000 job. Both the server's run undersame domain account. please help, thanks atul You can call a stored procedure: http://www.microsoft.com/technet/prodtechnol/sql/2005/newsqlagent.mspx ...Show All
Architecture Getting neutral parameterized queries in my application framework
Ok, I've been digging around looking for a solution to this one for a couple of days now. Maybe someone in this forum has already done this. What I'm trying to do is get to a completely neutral set of SQL in a new pluggable framework I designed. The latest problem I'm dealing with is parameterized queries. It's seems like such an easy problem to solve but I can't find any good answers. Here's an example SQL Server Query: "INSERT INTO MY_TBL VALUES(@parm1, @parm2, @parm3)" Oracle Query: "INSERT INTO MY_TBL VALUES(:parm1, :parm2, :parm3)" DB2 Query: "INSERT INTO MY_TBL VALUES(@parm1, @parm2, @parm3)" Hopefully the issue is obvious, I don't want to have any differences between the queries (other than ...Show All
Visual Basic VB 2005 Express false compiler error
I have a VB 2005 WinForms Project which is giving what I think is a false error. On the Designer screen for the main form (which normally displays the form layout etc.) I get: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. '.ctor' is not a valid identifier. Hide at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomEventBindingService.ValidateMethodName(String methodName) at System.ComponentModel.Design.EventBindingService.EventPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentModel.Design.Serialization.CodeDomSeriali ...Show All
SQL Server accesssing mirrored databases via SQLNCLI linked server?
Does anyone know how to configure a mirrored pair as a linked server on a 3rd instance Say I have a mirrored database on two servers: PRIMARY and SECONDARY. I want to create a linked server on a 3rd machine that allows me to access the database on the mirrored pair. This is what I'm using: EXEC master.dbo.sp_addlinkedserver @server = N'MIRROR', @srvproduct=N'', @provider=N'SQLNCLI', @provstr=N'Server=PRIMARY;FailoverPartner=SECONDARY;' select count (*) from mirror.pubs.dbo.authors and it works fine if the database on PRIMARY is alive. however when the mirror has failed over to SECONDARY and PRIMARY is no longer available, I get the following when I try to query the database via the linked server: OLE DB provid ...Show All
.NET Development Connecting to SQL Database using Enterprise Library's Data Access block
Hello, I am creating a windows forms application in C# and I'm trying to connect to my SQL database using Enterprise Library's Data Access application block using the following code (btw, I'm sort of new to these forums and wasn't sure if there's specific way to mark code in a post, so i just changed the font and color): ConnectionStringSettings s = ConfigurationManager.ConnectionStrings["myConnString"]; Database DB = DatabaseFactory.CreateDatabase(s.ConnectionString); So I've created an App.config file defining my connection string, as seen below: < xml version="1.0" encoding="utf-8" > <configuration> <configSections> <section name="dataConfiguration" type="Mic ...Show All
SQL Server Problem with SQL Server 2005 Express
Hello, I am programmer from Bulgaria and I am new in working with SQL server. I have a problem and want to discuss. Imagine that there is software system working on Windows XP professional, SQL Server 2005 express database, programs (source code on Microsoft C/C++) that connect to SQL Server 2005 express via ODBC and around 30 users that working 24 hours a day. For simplicity let imagine that in database have 2 main tables. In first table users add record. The program get value of certain field from that record and add that value to certain field in existing record in second table. (For example => imagine that in first table insert record for sell of some good /document of sell/ and in the second tabl ...Show All
Visual Studio Express Editions open new form
i need the open new form code. it looks something like this: "Dim clone new form1" well you can use the Clipboard class to copy items to. the textbox/input controls have a cut copy and paste feature also but you need to select the text you wish to cut copy or paste on to. http://msdn2.microsoft.com/en-us/library/system.windows.forms.clipboard.aspx in regards to CTRL+F, I believe you need to implement the keydown event for the, well, which ever control you are wanting to catch the key inputs for and handle them. from the keydown event, check to see if Control key is pressed AND the Keys.F and if these return true, then show that search box. if e.Control AND e.Keys = Keys.F the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. don't find designer view with sample project on not beta version
Hi It's my first install of XNA (then I don't install the beta), and I start a new project with the starter kit sample. But when the project open the game1.cs is open on code mode and not on design mode. and unfortunatly this mode is not present. Can you please explain if this mode will be present. and if yes, explain me how activate it into my Visual C# express. may thanks Jean-luc Oups I see that this mode will be removed into the beta2. then I suppose at last this feature will be removed on the release version. I m very suprising, because I thinks it's an excellent idea. when i see the video on this feature. Jean-luc ...Show All
Smart Device Development What is the minimum and maximum size of an application to be deployed on Windows Mobile 5.0 devices?
Dear Friends, I am new to Windows Mobile 5.0 development. I have got some queries, may be your answers with technical details are helpful 1) What is the minimum and maximum size of an application to be deployed on Windows Mobile 5.0 devices 2) What technology is best to develop these applications 3) Can I develop a windows mobile 5.0 application using MFC 4) How to deploy simple C++ applications on Windows Mobile 5.0 5) Can programs written using QT libraries be ported to Windows Mobile 5.0 Best Regards, Manoj Phone: 91-93145-16157 Can someone let me know some comparative differences while developing a Windows Mobile application using MFC or C# Which one of them (MFC or C#) produces comparatively sma ...Show All
SQL Server How do I get bold and normal formatted text in a single field?
In SSRS I am trying to get a textbox value to hold text with a mixture of formatting, along the lines of "name (country)" where the "name" part is bold and the "(country)" is normally formated. Can anyone help Thanks in advance. kenny125 wrote: Is it possible for you to just use 2 cells I don't think so. I'm trying to reproduce an existing report and the formatting is exactly as in my first post. Basically I have a table and the first column is a concatenation of the Organisation Name and their Country with the Organisation in bold and the Country normal. I've tried having two additional columns, one with the Organisation Name (in bold) and the other with the Country (not ...Show All
Windows Forms cross-threading exception
I am getting an exception saying Cross-thread operation not valid: Control 'AE_Debugging_Output_Textbox' accessed from a thread other than the thread it was created on. I did not, intentionally, create more than one thread. In this class I have event handlers that take strings and add them to a queue. I also have a timer that displays the contents of the queue to the ouput textbox, after every interval of 150ms. This is where I am getting my exception. Any help would be appriciated. Thanks, Ross What kind of timer are you using Some kinds will call back on a different thread. The kind you need is the kind you add via the Form Designer. ...Show All
Visual Studio Team System Team projects placed in folders
Currently in our development environment using VSS we have the following structure: $\ Databases Documentation Legacy Projects Folder1 Project Project Project Folder2 In this structure the Project best equates to a Team Project. We currently have VSS laid out just as the folder structure on the drive. We’d like to keep this structure going forward with TFS. This provides us a way to organize each of the team projects and the source control. Also it prevents every developer having to create a workspace and set up the root of the folders for every project/folder in the workspace set up. ...Show All
Windows Forms Client Area of MDIParent should not be sunken
Hallo, i have an MDI Application in which all Childs are plugged in the MDIParent without Border. Now i want to change the look of the MDIParent client area without raised border and not sunken. Did you have an idea how i could manage this. Thanks Arnold I think you want regular a parenting instead of MDI. You can add form to the parent contrl collection as if it's a user control. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xbox Live Arcade "Standards" ???
Does anyone have any information about the required "standards" for an Xbox Live Arcade game For example, most arcade games I've downloaded appear to have the following 6 standard menu options for their splash screens (in order)... 1. Single Player 2. Multiplayer 3. Leaderboards 4. Achievements 5. Help and Options 6. Return to Arcade (For trial versions, there is also a 7th option, Unlock Full Version, or something similar. Also, I'm assuming Multiplayer is optional; non-multiplayer games obviously don't need it.) What other requirements are there Where can I find more information about this Thanks! Here is an interesting interview on Gamasutra http://www.gamasutra.com/php-bin/news_inde ...Show All
