Jaime Soto's Q&A profile
Visual Basic Flat File Handling
My basic application has been designed with cute drop down menus - now it is time for it to actually do something besides display a message box when you click a menu option. The basic facility data is contained in a flat text file. Opening and reading the file is no problem - I am using the following code: strFileName = "C:\PPM\pi.txt" DIM objReader as StreamReader = New StreamReader(strFileName) strFileRecord = objReader.ReadToEnd() objReader.Close objReader = Nothing The file contains one record with 4 informational fields that appear like this: ...Show All
Visual C++ Is the /GS switch working as expected in Beta 2?
Something appears a little broken in VS 2005 Beta 2. The code below will produce the expected buffer overrun dialog box when compiled retail in VS 2003 but does not in VS 2005 unless I set optimization to /Od. void causeAnOverrun( _TCHAR *badName ) { _TCHAR myNameBuffer[5] = {0}; _tcscpy( myNameBuffer, badName ); } int _tmain( int argc, _TCHAR* argv[]) { _TCHAR *name = _T("Long Name"); causeAnOverrun( name ); _tprintf( _T("I got past the overflow!!\n") ); return 0; } Is this a known issue, or should I submit a bug George George: you should go ahead and file the code-generation bug so th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Performance problem with Texture.FromBitmap
I reduced program boot time (when running from within the IDE) from 12 seconds to less than 1 second by re-writing Texture.FromBitmap using unsafe code. For me it was easy because I'm only using 32 bit textures and 32 bit bitmaps. It would be nice to see this function optimized in future releases of the SDK. BTW, Texture.FromStream has the same problem. -Jeremy FYI: I use the above code for Texture.FromBitmap and (and a similar solution for Texture.FromStream), which works as long as your bitmaps are 32BppArgb. -Jeremy ...Show All
Visual Studio Team System Converting NUnit Tests & Importing Test Director Defects
1) Will there be a way to batch convert NUnit Attributes to the MS versions Or will it just be use of Find/Replace 2) Will there be an easy way to import Mercury Test Director Defects into the VSTS Defect Management system Thanks, Philip Out of interest, where did you find this signature I've been looking everywhere for it. ...Show All
Visual Studio Team System Assigning a task to more than one user
Hi all, I'm used to manage my tasks in MS Project, and assign each task to one or more of my developers. When I've started using TFS, I tried to publish my gantt to the TFS, but I received an error that the "Assign to" field in TFS supports only one person. First of all, if TFS want's to support MS Project, why doesn't it allow me to do this Second, is there any way of working around the problem I've been thinking of creating a new field for the "assign to" (extend the TFS schema) but it just looks like to much overhead (since I'll need to change all the reports to display the new field). Any ideas of the ...Show All
Visual C++ Question about C++ char Pointer
When I use VC++ 6.0(with SP5.0) like this: char temp[2]; memset(temp,0,sizeof(temp)); strcpy(temp,"This is a test\0"); MessageBox(0,temp,temp,MB_OK); The result in temp[2] is "This is a test".There is only two bytes of memory,why can copy more than 2 bytes char Very thank you Chris.But both strcpy() and memcpy() have this problem,and I copy other char* after this operate,it have no problem,maybe my test app is tiny ...Show All
Visual Studio i need to change the login info for my crystalreports during runtime
in my windows application developed with vs2003, i need to change the datasource,username & password for my crystalreports during runtime,using oledb for Oracle Server. How can we setup the service name for oracle here i got more than 60 reports which are to be changed.if i can get how to change the same for one.i can manage the rest.i tried to find the solution on net,but i cudnt.can anyone help me out !! ...Show All
Windows Live Developer Forums Windows Live Messenger Problem
I was Invited to be a Windows Live Messenger BETA tester. So I installed it and opened it up. When I tried to talk to one of my contacts there was an error, and it closed Windows Live Messenger. So I open it up again, and try and chat, and it happens again. And this happens every time I try. I've uninstalled it, re-installed, repaired it tons of times. Can anyone help me -FrdBed I have a similar problem with 7.5 messenger. while trying to talk it cuts out. I can not figure out why but it seem to be only with me. Friend can talk all day long without being kicked out. Any idea ...Show All
SQL Server Unable to use Reporting Services
Hi, After installing Sql server 2005 CTP09, we can neither connect to reporting services trought Management Studio nore to reportserver. Using Management Studion we are getting this message: TITLE: Connect to Server ------------------------------ Cannot connect to XXXXXX. ------------------------------ ADDITIONAL INFORMATION: The underlying connection was closed: An unexpected error occurred on a receive. (Microsoft.SqlServer.Management.UI.RSClient) ------------------------------ Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. (System) ---------------- ...Show All
Visual Studio Express Editions Can vb express be used wiht a datbase created in access 2002 and does it interface with odbc?
I'm not sure If I phrased my question right yesterday. I want to use vb express with a database created in access. I don't need my forms, etc from ms access. Also is there an odbc interface so that I can use other databases other than MS SQL server 2005 I was a little surprised when I saw MS SQL 2005 advertised with vb express because for over 10 years vb was associated with ms access. Is this because of .net ( I know nothing about .net.) I'm a former unix/c programmer just trying to update some skills. Thanks. Renee: It would be very interesting to do a comparitive analysis with the variety ...Show All
SQL Server How to display result of SQL-script in TextBox
I have a script. Something like that: ------------------------------------------------- declare @Count int set @Count = 0 set @Count = @Count + ( select count(*) from Table1 where [name] = @Name ) set @Count = @Count +5 print @Count -------------------------------------------------- @Name is recived from parent Report. I need to show the resulting value of @Count in a TextBox. Please, help. P.S. I use Visual Studio 2003 You can make a stored procedure out of the script and return the Count from the stored proc. Then in the report, add a dataset that calls the stored proc, an ...Show All
Windows Forms numericUpDown ValueChanged
The ValueChanged event of the numericUpDown control doesn't fire when a user types in a value (instead of clicking on the up/down buttons). The Value attribute is not updated with the new value they typed in. A workaround I've found is to capture the onKeyUp event and do something as simple as retrieving the Value atrribute. This seems to  ...Show All
Visual Studio Team System TF24016: Cannot find team project 'test'
Hi, after a restore of all databases (a backup of clean, post-setup databases) I now cannot create any project anymore! Just to note: WSS is running fine ReportServer is running fine I am using dual-server installation on 2 CLEAN machines The corresponding Exception is as follows: ---begin Exception entry--- Time: 12/19/2005 12:20:00 PM Module: Engine Event Description: TF30162: Task "WITs" from Group "WorkItemTracking" failed Exception Type: Microsoft.TeamFoundation.Client.PcwException Exception Message: TF24016: Cannot find team project 'Test5'. Stack Trace: at Microsoft.VisualStudio.TeamFoundation ...Show All
SQL Server SQL Express Deployment
Hey all I am developing an application and looking to use a SQL Express database for it. I am wondering how the data access would work in a deployment situation. If I add it to the Deployment project how will other clients access it Will I need to have some sort of file share set up or is there a way for it to access it like you do the server edition Thanks MacKenzie If you deploy the solution to a server that has SQL Express installed, you can attach the database and use it in a multi-user scenario just as you would any other SKU of SQL Server (e.g. workgroup, standard, etc). If you are using the database on a client mach ...Show All
SQL Server storing values
I want to store the whole values returned by a while loop. How to do this my store procedure is like this create proc start_proc @country varchar(20), @c_code int, @p_id int, @out_put varchar(500) output as if exists(select start_date from new_start where country=@country and country_code=@c_code and program_id=@p_id) begin set nocount on declare @@msg1 datetime Declare out_put cursor local Scroll Keyset Optimistic For select start_date from new_start where country=@country and country_code=@c_code and program_id=@p_id open out_put fetch absolute 1 from out_put into @@msg1 while @@fetch_Status <> -1 begin print @@msg1 fetch next from ...Show All
