usefulacct's Q&A profile
Visual C++ Do we need .NET Framework to run MFC application and ...?
I built an MFC application and now I have 2 questions: - Do I need .NET Framework to run MFC application built in VS 2003 or VS 2005 - How can I make the Visual Studio automatically put the library files (*.DLL) in the same folder as the executable file (*.EXE) as I compile the project Thanks in advance. Jonathan Caves - MSFT wrote: You need the MFC libraries, the C and C++ runtime libraries, and the Win32 libraries. The latter set of libraries should already be installed on every Windows machine. what's wrong with my posts can you tell me the exact file name of these libraries ...Show All
.NET Development Web Service getting "Unable to connect to remote Server"
I have a very simple windows form with a button that calls a very simple web service. The web service should just return "true". When I run within visual studio, it works correctly and I can see the .net development server running. However, if I close visual studio and try to run the application, I get "Unable to connect to remote server". I created the web service in c# using visual studio 2005 and I selected "File System" for the location option but specified C:\Inetpub\wwwroot\TestConnection as the folder location. I am using .net 2.0, IIS 5.1, and asp.net 2.0.50727. I created a web setup project for the web service and ran the install. From IIS management, I can see the virtual directory and can browse ...Show All
Visual Studio Express Editions what code do i use for key change
ok i have this much i know if gose inbetween this Private Sub Form1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me .KeyDown End Sub but what code is it i use so that is i press the "a" key it will show "y" If you want to take 'capslock' into consideration. Use the code below. (Use 'sendkeys' only as a last resort.) Public Class Form1 Dim hold As System.Windows.Forms.KeyEventArgs = Nothing Private Sub TextBox1_KeyDown( ByVal sender As Object , _ ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown hold = e End Sub Private Sub TextBox1_ ...Show All
Visual Studio Team System Problem opening a work item in a template editor
I have a problem, i dont know what i did wrong but when i try to open my bug file in the process template editor it gives me this error 'There was a problem loading the work item type definition. Work Item Type: Bug A duplicate key " exists ' is what i get, if anyone knows a solution to my problem please help me out Thanks for your time and help i cant even open up the witimport file, when i click it, it would just bring something up from the command prompt and it close instantly after.. would it just be easier to just to remake my template also if i would make a new one and i do want to change the name of some things on the report page.. is there a way i can just change ...Show All
Software Development for Windows Vista Unknown Publisher for Visual C++ 6.0 Application
Hi, I have a Visual C++ 6.0 application and I am reviewing "Unknown Publisher" security warning in IE 6.0 and 7.0 download and installing on Windows XP SP2 and Vista RC 2 computers. How do I add a valid digital signature to my VC++ 6.0 app Your feedback is appreciated. Posting a better answer because some people are having problems and I want them to find this post. If you are signing with a pvk and spc and your pvk file has a password. Follow these steps. Step one Create a .pfx file: Command Line: pvk2pfx -pvk myprivatekey.pvk -pi MyPivateKeyPassword -spc mycredentials.spc -pfx mypfx.pfx -po MyPFXpassword -f Step two use the pfx file with signtool... Command Line signtool sign ...Show All
Visual Studio Team System How to write an extracted text in a text document
How to write an extracted text in a text document In one of my web test scripts, for each run script generate a unique ID (say, Insurance _ID). Through the extraction Rule, I extracted this ID stored it in a context parameter with name ‘Insurance_ID’. Now how can I dynamically write the extracted value in to a text file in the following format Insurance ID First # Second# Third# ---- Anyone knows the C# Code, Please help me. Thanks, RJ Hi Roy, like pubsnack indicated, you'll need to write a custom rule to do this. The best way is to write a custom extraction rule that inherits from the built-in rule. In the extract method call the base class then use t ...Show All
SQL Server automatic data import
I just got sql 2005. Can someone point me in the right direction on getting started importing data. I need to be able to load ascii data into SQL 2005 on a weekly basis. This ascii file will have the same data structure but data will change weekly. I have heard to do this automatically (basically with a click of a button) you should use a DTS package. I also see this SSIS. I am trying to understand what to use for this import process. I would really appreciate any help on this. Thanks. ...Show All
Architecture Please keep me updated on any Architectual events
This is Chris Cox a recruiter w/ Intuit. We are trying to stay networked w/ industry leaders in architecture, as we are hiring a few architects at the moment. So, if you hear of any good events, please send me an email @ chris_cox@intuit.com Thanks, Chris Cox ...Show All
Windows Forms Closing Managed Form Hides the Unmanaged Owner
Hi, Just wondering if anyone has seen this problem. Situation: I have an unmanaged app from which I'm using C++/CLI to instantiate a managed modeless dialog. I pass in the unmanaged Handle in the Show call (via a IWin32Window wrapper) to make the unmanaged app main window the owner of the managed form. This works fine in most situations. However, and here's the crux, if my managed form itself launches a modeless or modal dialog, then whenever I choose to close the original managed dialog, regardless of whether the child dialog has been closed or not, then the unmanaged app disappears . It either gets sent to the back or minimized, but the point is that it is no longer the top window. The application is fine, and clicking on the ...Show All
Visual Studio Express Editions Sending Emails Problem
Dim message1 As New MailMessage( "sender@address" , "from@address" , "Subject" , "Message Text" ) Dim emailClient1 As New SmtpClient( "Email Server Name" ) emailClient1.Send(message1) What do i put in the "Email Server Name" spot Do i have to have a special email address to send emails off my application Thanks you need to enter the SMTP address of the email server you are using - the email server will be the server of the email address you are sending from. So if you had a gmail email account, you would be using gmail's email server. also take a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=616274&SiteID=1 ...Show All
SQL Server How to insert a new record (and get it's identity), if a record is not found
What I'm trying to do is write a query (actually it will be a sub-query) that gets the ID of a record using a standard SELECT/WHERE, but if the record is not found then I want to insert a record and return the ID of the inserted record. So far I've got this (which doesn't work!) SELECT ISNULL (( Select ContactID AS ID FROM [TileManager] . [dbo] . [Contact] WHERE ( [Salutation] = 'Mrs' AND [Forename] = 'Freda' AND [Surname] = 'Bloggs' )), ( INSERT INTO [TileManager] . [dbo] . [Contact] ( [Salutation] , [Forename] , [Surname] ) VALUES ( 'Mrs' , 'Freda' , 'Bloggs' ); SELECT @@IDENTITY AS ID )) Any help would be greatly appreciated. That's close to what I'm t ...Show All
Smart Device Development connecting data with MS Active Sync, howto?
is there any way to connect a database (desktop) from PPC2003 to a desktop with Active Sync 4.1 I can't do it with this code: imports system.data.sqlclient Public Function GetConnectionString() Dim connectionstring As String = "Data Source=desktop;Initial Catalog=table-name;Integrated Security=True" Return connectionstring End Function Private Sub click() Dim connection As New SqlConnection(GetConnectionString) connection.Open() Dim queryString As String = _ "SELECT Layer FROM dbo.MasterLayer" Dim adapter As SqlDataAdapter = New SqlDataAdapter( _ queryString, connection) Dim mstmap As New dataset Dim mst As DataRow ...Show All
Windows Forms Screen Divide Vertically and Horizantally
Hi , In windows Forms How to Divide the Screen two Equal Halfs horizantly and the top Half vertically two Equal Halfs. Pls revert immd. Is this division, a logical division or a screen division In other words do you want the user to be able to resize controls contianed from these divisions or do you want to organize controls based on the divisions ...Show All
SQL Server Cannot Upgrade MSDE 2000 Release A to SQL Server 2005 Express using SQL Server Authentication
I'm trying to upgrade the Default Instance of MSDE 2000 Release A which is installed with Mixed Mode and strong password to SQL Server 2005 Express in a Windows 2000 Server with SP4. On the Upgrade Logon Information screen, if I select SQL Server Authentication Mode, it will give me this message: SQL Server Setup Cannot Upgrade the specified instance by using SQL Server Credential. You must use Windows Authentication credential for the upgrade. Thanks for any help. ...Show All
Visual Studio How to Get a List of files in runtime?
Hello, I'm trying to get a item list with the path of dll and exe files with no success :( The problem seems to be that I'm trying to list some files in a directory that as files, only when the projects are built and the files are copied to the drop location. (yes i'm reading the files from the drop location). I've tried using the <ItemGroup> and no success (the files must be present at the begin of the build. So i was wondering if there is a way to do this Also i wanted to exclude some files: <Readdirfiles Include="\\mymaindir\Debug\**\*.dll" exclude="\\mymaindir\Debug\**\*word.dll"/> <Target Name="readdirs"> <Message Text="Listing directory files -> @(Readdirfiles)"/> & ...Show All
