sajal2000's Q&A profile
Visual C++ HELP! - Converting Data Type and Writing File Problem
I want ot open a file, getting the username from a label, and write to it. Simple No. It always errors whaever I do. I have looked at the documentation but that provides no answers. This code: FILE *stream; errno_t err; err = fopen_s( &stream, label5->Text, "w" ); fclose(stream); but it errors: error C2664: 'fopen_s' : cannot convert parameter 2 from 'System::Windows::Forms::Label ^' to 'const char *' No user-defined-conversion operator available, or Cannot convert a managed type to an unmanaged type How do I stop this And the, I have no idea how to write to the opened file. How do I do that Please help me! Hiya. It l ...Show All
Visual Studio Team System requirements management
hi, I'm trying to determine how VS 2005 handles Requirements Management. I've read that VS provides a means for managing requirement traceability, and will produce a REquirements Traceability matrix. Has anyone used this functionality in VS 2005 I've used Requisite Pro in the past and have been very happy with it, if anyone can compare VS 2005 to Req Pro in terms of Requirements Management, that would be great! thanks, Ryan As far as it has been explained to me, there is no 'out of the box' requirements solution. There are 3rd party tools that are working on integration with VSTS, Ca ...Show All
.NET Development Using shared (static) members
Hi! Is anybody aware of any drawbacks when using shared (static) members inside classes. Apart from design issues and braking some of OOP rules, are there any performance issues, like bad memory usage or increased overhead when calling them ps 1. I think My.Brain would be better than Me.Brain. I would make it easier to find! ps 2. I some times think that Brain should implement the IDisposable interface. Just in case! ...Show All
Visual Basic how to show forms
Hi guys, .NET newbie here... I have a login form that validates username and password then shows the main form aftr succesful login. Dim frm as new mainform() 'show mainform frm.show 'close login form me.close What happens is, when the login form closes, the mainform closes along with it. What's the proper way to do this Thanks WHen I've done this in the past, I've had the main form remain invisible and had it call the login form, like this: Private Sub Form_Load( (ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load) ...Show All
Visual Studio Tools for Office Dynamically attach an assembly to an Excel File
Hello I have the follwing problem. I have a VSTO 2005 smart document for Excel that will be deployed on a web share. This assembly should be accessed by excel files. As far as I understood I should use clickonce to do that, and dynamically load my dependent assemblies when the application starts, to make them present in the IE cache for offline working. But I have a complication: the Excel file does not exists, nor does a template for this file. This File is generated by a tool on a server and then downloaded by the user. I have the power to make changes to the created file on the server. I want to dynamically link the created file to the as ...Show All
Software Development for Windows Vista Vista 5308 issue: Can't login, CPU component is not supported?
I have installed Windows Vista 5308 successfully, but when I input my password to login to system, it pop up a message box with following content: You cannot use Starter with this computer because the Intel(R) Pentium(R) 4 CPU 2.80GHz component is not supported. Contact your computer manufacturer for assistance or try fixing the problem by running Windows(R) Update in safe mode. My CPU is Intel Pentium 4 Processor 511+, 2.80GHz, 533MHz FSB, 1MB L2 Cache Can someone help me Thanks. ...Show All
Visual FoxPro Calling a report with a command button on a form
I'm trying to call/open a report with a command button that resides on a form. How can I do this I'm new to VFP & I've searched the help file but found nothing. As Andy said, you can set it up in a startup program. That is a better option than hard-coding it in a Config.FPW How do you set up a startup program Create a simple text file called CONFIG.FPW (if you have one already just modify it). Add there any SETtings you want at startup. VFP will read this file first if found (you generally put it in your startup directory). Here's a sample. All lines are optional, just use what you want. ...Show All
Visual C# Monitoring my IP
Hi, have anyone ever need to monitor the Internet IP and when it's change insert in a MySQL Database.....I have an application that everytime that the computer turns on it store, but how can I monitor the IP change without consume so much of the system Thanks You can use the System.Net.NetworkInformation.NetworkChange class. It has a NetworkAddressChanged Event: http://msdn2.microsoft.com/en-us/library/system.net.networkinformation.networkchange.networkaddresschanged(VS.80).aspx ...Show All
Visual Studio Project manipulation from an add in
I need to change the value of Copy local based on the active configuation, below is the solution I was given to do this, but it requires I manually edit the project file. This is where the add in comes into play, I am able to get the list of references and such from the project object, so I've got it started at least. However, I'm having trouble with the following: 1) How to add the CopyLocal to the propert Configuration once I have the config (know how to get that) 2) How to retreive the CopyLocal from teh Configuration (prob be obvious once item 1 is working) 3) How to set the Private property to $(CopyLocal) once the configs have the v ...Show All
Visual Studio Team System Change Project in a Excel file
Hi. I just copied the Issues.xls file from one Team Project to another. When I open the copied Issues.xls it still points to the first Team Project. How do I change the Team Project in the Issues.xls file Cheers, Chris I think all you can do is create a new excel spreadsheet in the new project and rebuild the list of work items. Brian ...Show All
Visual Studio Team System Unexpected Exception from the Server
I'm getting this message (Unexpected Exception from the Server) when I try to import a modified version of a workitem using witimport.exe. It was working well, but I made some modifications (changed a state) and then came this message. This is what I got from event viewer: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 11/3/2005 5:26:51 PM Machine: VSTSB3 Application Domain: /LM/W3SVC/3/Root/WorkItemTracking-4-127755107145781250 Assembly: Microso ...Show All
Windows Forms MAPS
I making a mappin application I need to remark the states on the map but I can't use a third party control I use in the test image button but I dos not make the effect what can I do. ...Show All
SQL Server Cannot generate SSI Context
New install of SQL Server 2005 (x64) Standard after uninstalling previous version SQL Server (x86) Standard. After installation, client connections are receiving "Cannot generate SSI Context" error messages. TCP/IP Integrated Authentication is being used. Kerboros authentication is failing when SQLService is running under a domain account and works when running under local system account by reverting back to NTLM authentication. How do I get the Server to revert to NTLM authentication when running under a domain account so that the error will go away Mike First, here are great blogs for troubleshooting this proble ...Show All
Visual C++ Console application to MFC application
Hello all, I have some older C++ code that runs in a windows console and that I would like to make into an MFC windows application. Are there any wizards that would help with the export in VS.NET I know I can open an MFC new app and copy paste the code, but if there's a wizard to do it then why not Thanks. NF I don't believe that there is a wizard that does that for you currently. Feel free to log such suggestion at http://lab.msdn.microsoft.com/productfeedback/default.aspx Thanks, Ayman Shoukry VC++ Team ...Show All
SQL Server Executing password protected packages
Hi - I have a master package that executes a series of other packages. Each of these 'sub' packages has the security property Encryption Level set to 'EncryptSensitiveWithPassword'. The master package has a series of file connections in the Connection Manager, one for each sub package, in which the password of the corresponding sub package is provided. When I run the master package in BIDS (in interactive mode) it opens each of the sub packages, requests the password and gives the 'Document contains one or more lines of extremely long text' dialog box. Is there any way to suppress the repeated password requests (seeing as it has alr ...Show All
