Peter Larsson's Q&A profile
Visual C++ ActiveX For Voice Chat
I want Make an ActiveX Project For voice chat on web. Plese write me a lot tips. I am a Starter for C++ Thank you. Thank you for help ramazanaktolu2002@hotmail.com For MSN For such issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups/ Thanks, Ayman Shoukry VC++ Team ...Show All
Windows Forms weird writing text to file question
Hi, I'm writing some text to a file. It works fine. File gets created ok, I can open it, move it, rename it, whatever. I generate this textfile for an EDI translator to translate. Well, for some reason, my translator doesn't translate the generated file, UNLESS I manually open up the file in NOTEPAD and just simply save it. Then my translator picks it up just fine. What does NOTEPAD do different to the file than what I do when I creat it Any ideas on what I may be missing here here is the code: dim lines as string = "some text" Dim writer As StreamWriter Dim filewrite As New FileStream(filename, FileMode.Cre ...Show All
SQL Server MS Access upsizing to MS SQL Beginner
Hi, I just built a site and found out that the hosting company does not support MS Access, but does support MS SQL ODBC. I have never used MS SQL, nor know how it works. I followed the directions to upside my MS ACCESS DB to MS SQL DB and I am waiting on a login and password from the hosting company. Do I have to have MS SQL software on my computer for it work Do I need to keep my computer online in order for my site pages to connection with the MS SQL DB I just don't get how it works. I am very new at this and I am trying to understand the fundamentals of how it all works. All help is appreciated. I ...Show All
Visual Studio Can't run project (DSL November)
I removed DSL Tools (September), SDK, Studio b2 (hope did it correct), installed released Studio, SDK October, DSL Tools Novemeber. After creating a new DSL project (Minimal Language) have a message: "Unable to read the project file .... Class not registered. Looking for object with CLSID {....}". If do "Start debugging" the message is: "Constructor on type Microsoft.Build.Buildengine.Utilities not found". What's wrong Oh and one further question - do other Visual Studio project types such as C# Windows Application correctly work from the add project dialog ...Show All
Visual Studio Team System Number of times the web test runs
Hi, all. I created a web test and connected it to a data source, which is a SQL Server database. I have a table in my database that contains a bunch of values I want to use for running my test (in the Form Post Parameters). I want my web test to run once for each record in the database. I've selected "One run per data source row" option in the localtestrun.testrunconfig, but my web test only runs once (for the first record in the values table). Am I missing something How can I make my web test case to run as many times as there're records in the data source table Any input will be greatly appreciated. Thank you. ...Show All
Smart Device Development millisecond property?
Does the millisecond property work on the CF I'm using vs2005 Beta 2 Now.millisecond always returns 0 (zero) but if you create a time, and give it the millisecond parameter, it returns the value you'd expect... Dim dtNow As DateTime = Now Dim myNow As New DateTime(1999, 1, 13, 3, 57, 32, 11) myNow.Millisecond = 11 dtNow.Millisecond = 0 what gives Thanks for the help Hi Ilya, thanks for your replies. I usually only use milliseconds when I'm timing processes while debugging, or working out which of two ways of doing somethin ...Show All
Visual Studio WebForm ReportViewer Drillthrough Datasource
Hi, I am using VWD with the Report Viewer add-in. I am attempting to create a drillthrough report, but keep getting this error: A data source instance has not been supplied for the data source 'DataSet1_DataTable1'. I know you are supposed to handle it with the Drillthrough Event handler, but so far I have only been able to find example of this using .xml files. I created the dataset using a SQL2000 datasource. When I added the report to the designer it also added an 'ObejctDataSource1' object. The first report just shows a few fields from the datasource, and the drillthrough report show all the details. So both reports use the ...Show All
SQL Server Error message setting up System DSN: Setup routines not found. Please reinstall driver.
Hi, I'm running W2K3 SP1. The MDAC Configuration Checker reports MDAC 2.8 SP2. The only discrepancy is MSADCO.DLL, where the expected version is 2.82.1830.0 and my actual version is 2.82.2651.0 (svr03_sp1_gdr.060301-1546). The error message I'm getting when I use the ODBC Administrator dialog to set up a new entry is: "The setup routines for the SQL Server ODBC driver could not be found. Please reinstall the driver." This is followed by a dialog titled: "Driver's ConfigDSN, ConfigDriver, or ConfigTranslator failed." The body text of the dialog is "Component not found in the registry." Does anyone hav ...Show All
Visual C# Date Validation on a Databound Textbox
Friends, I am curious if anyone knows a way to pop a validation messagebox based on what is already taking place in a date bound textbox in Visual Studio 2005. What I mean is this...... Yes, I can write a routine to run through the characters and check if it is a valid date but the textbox (and/or bound dataset ) seems to be doing its own validation. If I do not type in a valid date using a /, ., or -, the form simply will not let me advance to the next record using the navigator, which tells me that the textbox or dataset is doing it's own validation WITHOUT me having to write a whole new method to do it. I even checked an invalid lea ...Show All
Visual Studio Team System TfsWorkItemTracking Process Identities Job fails every 10 minutes
I just had a look at the event log on the machine running our single-server TFS installation, and this message appears once every 10 minutes: SQL Server Scheduled Job 'TfsWorkItemTracking Process Identities Job' (0x0E06FC1460769D4C8B8BA32312E2B0DD) - Status: Failed - Invoked on: 2006-03-31 09:00:00 - Message: The job failed. Unable to determine if the owner (NE\TFSSETUP) of job TfsWorkItemTracking Process Identities Job has server access (reason: Could not obtain information about Windows NT group/user 'NE\TFSSETUP', error code 0x5. [SQLSTATE 42000] (Error 15404) The statement has been terminated. [SQLSTATE 01000] (Error 3621)). Can someone ...Show All
Visual Basic HotKey
How do you register a hotkey. I want to make a screen capture program and I want the print screen button to take the image. I already have the screen capture code. You probobly dont need to know how it works, but here is what u need to copy in: NOTE*** Make sure in your project settings, in refrences, imported namespaces, you have system.runtime.InteropServies selected Api Declerations and constants (top of the class, before any function) Private Declare Function RegisterHotKey Lib "user32" ( ByVal hwnd As IntPtr, ByVal id As Integer , _ ByVal fsModifiers As Integer ...Show All
Visual C# Persisting events in a SingleCall Remoting server
Hi All How to persist client’s event subscription to server in a common class. Basically I need to notify the client from server. In order to do this I tired by having a event in a common class where client and server can access and the client will subscribe it to that event and in-turn it’ll subscribe it to server, when I invoke a server method call from client the particular event will raise and it leads to call the common class’s event and in turn will raise the client’s method. T ...Show All
.NET Development WndProc ..Constants as only Messages??
Hi all, In my Window app. i overrided the WndProc procdure to process my custom Messages ,which i created and registered using RegisterWindow. But now i couldnt able to process my Custom messages as WndProc only compares Msg parameter with constants...is there any way to make it to compare my custom messages.(im using .NEt FW 1.0). public Register() { long WM_CUSTOMMESSAGE = RegisterWindowMessage('Custom'); } protected void WndProc(ref Msg m) { switch(m.Msg) { case WM_CUSTOMMESSAGE: (not possible ) &nbs ...Show All
SQL Server Performance - Slow load times for SSIS Packages
Is there any information around what the SSIS packages are doing in the first 5-10 seconds of execution, and ways to speed this process up Validation then Pre-Execute are the first things to happen as I recall. You can see all the events being raised prior to the Execute event itself in the BIDS Progress or Output windows. You can also capture lots if information including this through logging. DTEXEC can also dump all this information to the console, so easily captured when not running interactively, just not through BIDS, thereby cutting out the debugging overhead. ...Show All
Visual Studio Language name has to start with capital letter
Hi, If you start a new DSL project using the february CTP release you have to give it a name (name of the language) in the new project wizard. You probably know this already but I haven't found a thread on it in this newsgroup but if you don't use a capital letter to start your language name with the wizard gives an error. This error does not lead one to the conclusion that the issue is in 'capitallessness' :-) Edwin Jongsma Thanks for the bug report. I just tried it with our latest designer wizard code, and it is now working correctly. You'll see this fix in our next release. For future reference, ...Show All
