Alexey Raga's Q&A profile
Visual C++ Help! problem with CFile class
This is code void func(CString string) { pFile.Open( m_FilePath, CFile::modeWrite | CFile::modeCreate); pFile.Seek( 0, CFile::end ); if ( pFile.GetLength() > (m_iFileSize) * 1024 * 1024 )//when file have some size { pFile.Close(); //close a file DeleteFile( m_FilePath + CString(".old") );//delete old file MoveFile( m_FilePath, m_FilePath + CString(".old"));//move information from main file to old if(!pFile.Open( m_ FilePath, CFile::modeWrite | CFile::modeCreate))return;//open file again and write from begin } //here i write some information in file pFile.Close();//close file //end function } in this code MSVS always thow CFileExeption error i can`t understa ...Show All
Visual Studio Team System Team Foundation Build and DB project.
We have a DB project that we have created a team foundation build type for and which does run fine, at least no errors in log file, but it does not create the output sql scipt file. If I build the db project from the build menu within the VS IDE it will create the .sql script file in the specified directory ok or if I use msbuild it also works fine. I have seen some documentation about modifying the tfsbuild.proj file along with the dbproj file for actually deploying the DB but at this point I only want to create the SQL script file using the team foundation build. Is this possible to do I am currently using latest TFS along with VS and SP1 applied to everything including the build machine. It soun ...Show All
Visual Studio Team System Problem in installing load agent controller with domain account
Hi, I am trying to install Visual studio 2005 Team Test load agent controller. I have the full admininstrative rights on my machine. While specifiying the logon account for Team Test Controller Service I have given the domain username and password. But while installation it is giving error message "Error 1920.Service 'Visual Studio Team Controller'(vsttcontroller) failed to start. Verify that you have sufficient privileges to start system services " Because of this error I have tried with local user and password(not domain user). Now It has been successfully installed. Can anyone tell me what additional step s needs to be done ; so as that installation can be done from domain user-id and password Regards ...Show All
Visual Studio Express Editions Background Worker Progress
Hello, I am having an issue with my background worker's 2nd report progress not firing. Thanks in advance! Private Sub GameWorker_DoWork( ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork Wait(2000) GameWorker.ReportProgress(30) Wait(60000) GameWorker.ReportProgress(35) Wait(1000) GameWorker.ReportProgress(40) End Sub Private Sub GameWorker_ProgressChanged( ByVal sender As Object , ByVal e As ProgressChangedEventArgs) Handles BackgroundWorker1.ProgressChanged Select Case Phase Case 4 Case 3 Case 2 CreateSentence.Hide() Phase = Phase + ...Show All
SQL Server Data transfer
Hi, Not certain whether this is the right forum to post this question - please advise. I am fairly new to SQL Server and need to know the best way to transfer data from one data base to another. For example: I have a database running via SQL Server 2005 developer edition and another running using SQL Server 2005 Express edition. If I do a backup on the developer edition I get an error and failure when attempting to upload the data on to the Express edition. What am I doing wrong can anyone advise Also what is the best way to add/remove/update stored procedures and or change the database table structures for a current database (MySql for example allows one to type command line calls direct to the relevant database to al ...Show All
SQL Server SQLAGENT CAN't START
SQLAGENT CAN't START this log: SQLServerAgent could not be started (reason: SQLServerAgent must be able to connect to SQLServer as SysAdmin, but '(Unknown)' is not a member of the SysAdmin role). In the event viewer we have the following error: Event Type: Error Event Source: SQLSERVERAGENT Event Category: Service Control Event ID: 103 Date: 3/1/2007 Time: 10:16:30 AM User: N/A Computer: MyServer Description: SQLServerAgent could not be started (reason: SQLServerAgent must be able to connect to SQLServer as SysAdmin, but '(Unknown)' is not a member of the SysAdmin role). For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp . ...Show All
Community Chat any help for finding out CPU temperature? and RAM usage? in Dot net?
any help for finding out CPU temperature and RAM usage in Dot net thx.. Yes there is a field for it. But if you read the documentation you will find that it actually does not supply any data. If you had bothered to even read it, you would have seen this: CurrentReading Data type: sint32 Access type: Read-only Qualifiers: Units ( Tenths of degrees centigrade ) Current value indicated by the sensor. This property is inherited from CIM_NumericSensor . Current implementations of WMI do not populate the CurrentReading property. The CurrentReading property's presence is reserved for future use. I'll accept your apology in this..... ...Show All
Visual C# Generate XML Schema dynamically
Hi all, Does anyone had any idea of how to generate xml schema dynamically \ If there is any relevant examples, please direct me to the link. Thanks What do you want to generate it from If you have a dataset, for instance, you could simply obtain an XML schema representation by doing: myDataSet.GetXmlSchema(); ...Show All
SQL Server Strategy for upgrade to SQL server 2005 , consolidate and cluster
Hello there, We have about a dozen SQL server 2000 Enterprise Edition servers in house. Our goal is to set up a cluster SQL server 2005 and consodiate the existing dozen servers to a few servers for easy manage and maintainence. So there are 3 things that we want to accomplish: 1. upgrade to SQL server 2005, 2. Consolidate existing servers 3. Make a cluster server to get high availability But I'm sure what's the right order to acheive them. To upgrade each server to 2005 and then move them to cluster server or set up the cluster server in 2005 and restore existing dbs to the cluster server. upgrade first or cluster first upgrade first or consolidate first pros and cons upgrade or backup/restore What do you recommend We have ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A problem with ContentProcessor
If i create a ContentProcessor which .X files are required to use, Then another programmer uses my engine - Adds some .X files - doesnt select the correct ContentProcessor. My program will spew errors and there is nothing i can do about it (as far as i can see). Is there anyway to force a file to use a specific ContentProcessor Cheers yes, i know how to select it. What i am saying is - you have to manually select it (a custom processor) and you cant enforce it. If i make an engine and someone else adds a resource to the app, if they dont select the correct ContentProcessor then my program will throw up errors. Its anoying. ...Show All
Internet Explorer Development IE7 and desktop icons
I just installed Internet Explorer 7 today, which I guess is a.k.a. Windows Live . All of my fancy customized shortcuts on the desktop disappeared and each got replaced by the same generic windows icon. Right-clicking & changing the icons in properties no longer works. Also, when I create an internet shortcut while browsing, that creates a shortcut with that same generic icon (not even an explorer logo). Now my desktop is just one forest of identical icons. Anyone know how I can fix this I've wasted all day without success. Dave, I followed your favicon suggestion... revisiting the site does NOT restore the shortcut icon. Also, as others have pointed out, IE7 does not permit a sho ...Show All
Visual Studio Team System Post Build task
Hi, I am having some issues with some items while migrating to team foundation from subversion/cruise control. Here are the questions i have. 1. Within the team build .proj file, how can I create a post build task to zip up files and copy them up to some server directory 2. How can I call another .targets file after all steps in my team build .proj file have completed successfully 3. How can I include the version number easily after all files have been built from my team build Any help would be greatly appreciated. Thanks, Bryan 1) In general, the recommended method for customizing the build process is to override one of the built in "hook" MSBuild targets. For a list of all of ...Show All
Visual Studio Team System Multiple TFS Projects
I am planning out our TFS strategy. I have read MS recommendations that say not to create a lot of Team Projects, but this concept mankes many of the reports useless: If I have 10 web services in a single TFS Project, and each has its own solution file. If I build one of them, the build report contains all the check-ins since the last build, even though many of them had nothing to do with the single web service I am building. My work item reports give me all work items for all the web services, not just the one I am working on. ... Wy the "minimize Team Projects" recommendation So, the recommendation is to limit TFS project and put multiple subsystems/services under one project u ...Show All
Microsoft ISV Community Center Forums Get Excel Sheet Names
Hi: I am trying to connect an Excel file and get all sheet names in the file. When using ADO.Net, the sheet names contain letters "$, or ' " around the sheet name, not getting the exact sheet name. I wonder why. I am also trying to get sheet names by using Excel as a Com object in VB.Net, like: myExcel =CreateObject("Excel.Application") myWorkBook=myExcel.WorkBook.Open("my Excel File") For i = 1 to myWorkBook.Sheets.Count myTableName(i) = myWorkBook.Sheets.Item(i).ToString Next But the code does not work. Does anyone know how Thanks. jiao, please reply to this thread when you get a chance. I think it's important that you follow up for two reasons: 1.) If th ...Show All
Visual Studio Team System Web.Config Version Control?
I am trying to find the best way to go about this. Right now our ASP.Net 1.1 project is under version control TFS. When we added the project our team used a web.config that is specific to the integration server, however, there are values that are specific to ones local development environment. Editing and saving the file requires one to check it out of version control and we would like to prevent this from happening, as we would to prevent our developers from "accidentally" overwriting the file. Am I making a mountain out of a mole hill here Part of me feels like I am but I would like someone else's opinion. Thanks in advance... Lots of options: Do nothing. ...Show All
