Khurram Javaid's Q&A profile
Visual C++ how to link microphone(hardware) with C++ programing?
i'm doing voice recognition using C++ programming And i have a problem with the linking the microphone to my program code to record a sound Can anyone help me thanks.... Can't you use Microsoft Speech SDK it has GetAudioInputs Method to get the available audio input http://www.microsoft.com/speech/download/sdk51/ ...Show All
Windows Forms Outlook navigation pane like functionality in a Winforms app
What control would I use for creating navigation panes like like Outlook uses on the left side of the app (Mail,Calendar,Contact,Tasks) Clicking on a custom navigation pane would update a treeview or fire an event to add some other control into the upper part of the left side of a splitter container. Thank you, -Greg this link is talking about outlook list bar control http://www.vbaccelerator.com/home/net/Code/Controls/ListBar/Outlook_List_Bar/article.asp ...Show All
SQL Server SQL Beginner
What is the best way to go about learning SQL Where should I start Tehre are so many ways to learn SQL: online, books, hands-on, in-person classes, et al. We have the online covered if you're interested. Feel free to drop by and download some of our free videos. We rotate them every month so you can always find something interesting. /**************************************************** Check out our Sql Server 2005 and 2000 tutorials ****************************************************/ ...Show All
Visual C++ Cannot see the version information in the properties of an EXE.
I am building a C++ project that creates an executable. When I right click and see the properties of that executable, there is no version tab that will give me the version information of that exe. Can you please tell me what I can do so that I can see the version information of my exe. I would like to put the company information, copyright and file versions in that exe. I know you would do that in C# with AssemblyInfo.cs but I am sure about C++. Please help me out. thanks You need to insert a VERSIONINFO resource into the RC file that is part of your EXE. with the resource editor you can easily do this (right click on the RC file in the resource editor and choose "add resource" then choose "version". More details o ...Show All
Visual C++ LNK2001 unresolved external symbol error !
HI I am compiling a project in VC++ 6.0 and these are the errors: Linking... LINK : warning LNK4049: locally defined symbol "_exit" imported LINK : warning LNK4049: locally defined symbol "_printf" imported LINK : warning LNK4049: locally defined symbol "_sprintf" imported LINK : warning LNK4049: locally defined symbol "_free" imported LINK : warning LNK4049: locally defined symbol "__getcwd" imported LINK : warning LNK4049: locally defined symbol "_calloc" imported LINK : warning LNK4049: locally defined symbol "_fclose" imported LINK : warning LNK4049: locally defined symbol "_fwrite" imported LINK : warning LNK4049: locally defined symbol "_fopen& ...Show All
Visual Basic Test for Web Availability
I need to test for availability using a test site such as http://www.ABC123.com/test.htm that returns <html><head><title>TEST</title></head><body><p>TEST</p></body></html> I've tried the My...download but it fails when their is no web access ( the try and catch mechanism doesn't catch the failure). so... if something( http://www.ABC123.com/test.htm ) then ... else ... end if Any help would be greatly appreciated. Couple questions: When you say WebRequest.Create("url") doesn't work, exactly what exception to you see I recommend you do this in a Try Catch block, and tell me what Ex.ToString says. Also, if yo ...Show All
SQL Server SQL Server Internal Error. Text manager cannot continue with current statement..
I have received 3 errors on my production server for error number 7102 SQL Server Internal Error. Text manager cannot continue with current statement. This has happen 3 time in the last week. Before that I have never had this problem. I am running SQL2k SP4. I have ran DBCC CheckDB on all database on server, all have 0 allocation errors and 0 consistency errors. Does anyone know where to start troubleshooting this problem ...Show All
Visual Basic SQL Error Help
I was working on a login script for my VB.NET 2005 program and I came across this error. Can somone please help me. System.Data.SqlClient.SqlException was unhandled Class=11 ErrorCode=-2146232060 LineNumber=65536 Message="Cannot open database "C:\AITP NEW\AITP\AITP\Users.mdf" requested by the login. The login failed. Login failed for user 'DESKTOP\Matt'." Number=4060 Procedure="" Server=".\SQLExpress" Source=".Net SqlClient Data Provider" State=1 StackTrace: at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data. ...Show All
Visual Studio 2008 (Pre-release) array binding
Hi I am new to VB.net windows app Do we have Array Binding in ADO.net like we have in ODP.net, to execute a database stored procedure, multiple times in a single database round trip if there is way ,please send me a sample code eg..(used ODP.net) Imports System Imports System.Data Imports Oracle.DataAccess.Client Dim connectStr As String = "User Id=Scott; Password=tiger; Data Source=orcl9i" ' Initialize connection Dim connection As OracleConnection connection = New OracleConnection(connectStr) connection.Open() 2. Initialize the OracleCommand object: Visual Basic .NET 'STEP 2 ' Set command to execute Test_Arraybind database stored procedure Dim cmd1 As OracleCommand = New OracleCommand("", ...Show All
SQL Server Encryption Varbinary Length
Using the new encryption included in SQL Server 2005, what is a good way to determine what length I should use for the column For example, I am encrypting a column, its maxlength is about 30 characters, but when encrypted, the encrypted value extends from between 50 and no more than 68 characters- So if I had a column with a max of 500 or so characters, how could I know what varbinary length I should set it to if I were to encrypt it, without actually finding the highest value I could possibly fit into the field Is it good practice to just make it a varbinary(max) field -rob Hey Bob, A lot of factors will impact the performance. Given the dramatic difference in times, I'm wondering i ...Show All
Visual C# Drawing ellipses question
I am drawing a yellow circle but realized I have a problem with it. Graphics g = e.Graphics; Pen yellow = new Pen(Color.Yellow, 3); g.DrawEllipse(yellow, 100, 50, 100, 60); I thought that this was centering the circle in the form at (100,50) while making it's horizontal diameter 100 and it's vertical diamater 60, but I am not sure if this is correct. It appears from what I have read is that the int x, int y positions are for the beginning of the rectangle that forms the bounds of this ellipse. Does this mean that this is the center of my circle or just like drawing a rectangle, it is the beginning from the top left location I want my ellipse centered at 100,50. Is this right What should it look like if it's not ...Show All
Visual Studio 2008 (Pre-release) Identity check failure when using kerberos message security
Hello. I’m getting an identity check failure exception when using kerberos message security to communicate with a self-hosted service. I’m using the WSHttpBinding binding with the following parameters: client credentials set to Windows negotiate service credential set to false establish security context set to false The client credentials have the "AllowNtlm" property set to false. The channel to the service is created with a EndpointAddress containing a UpnEndpointIdentity constructed with “<user>@<domain>” Apparently the security token (a kerberos service ticket in this case) is created, however its claims are not compatible with the identity of the service EndpointAddres and I cannot figure ...Show All
.NET Development AppDomain Unload does corrupt Thread Pool
Hi, I was just trying to run a simple scenario: 1. Create AppDomain 2. Use up all Worker threads from Thread Pool 3. Unload AppDomain before the worker threads have finished. 4. Try to queue another WorkItem in your default or some other AppDomain Result: The .NET thread pool is dead because there are no threads left for the other AppDomain. ThreadPool Threads are not given back to the thread pool when an AppDomain.Unload is performed. I think it is ok to not kill the threads (reliability) but what is not ok is that there are no threads left for other AppDomains. An AppDomain unload should increase the number of worker/io completion port threads which are currently running inside the to be unloaded AppDomain to ensure that you do not run o ...Show All
Visual Studio Team System Retrieving everyone group members
G'day, I have encountered strange problem. We are using the code presented below to retrieve Everyone application group with members. IGroupSecurityService _groupSecurityService = _server.GetService( typeof ( IGroupSecurityService )) as IGroupSecurityService ; Identity everyoneGroup = _groupSecurityService.ReadIdentity( SearchFactor .EveryoneApplicationGroup, null , QueryMembership .Expanded); The code works as expected on all but one installation of TFS. In the exceptional set up the exception " TF30290: There was a problem accessing the database on the server. See the Team Foundation Server event log for details." is thrown. The event log says that " SQLException: The statement has terminated. T ...Show All
SQL Server How to specify datatypes for Excel columns?
So I have Excel Source in my dataflow - so I do a simple transform and try to save it to db and guess what - a freaking error message: Columns blahblah and BlahBlah cannot convert between unicode and non-unicode datatype. I cant figure this MS stuff out - why the heck is this data from excel unicode to begin with & I just dont feel it is right to always use the derived columns to convert datatypes when dealing with Excel data. Am I missing something again or is it another one of those MS gotchas -- Note - all profanity in this post is replaced with words like freaking, stuff, gotcha and so on by the author TheViewMaster wrote: Jamie Thomson wrote: Why do you have an issue with Derived ...Show All
