Simon Smith's Q&A profile
Visual C++ MFC Program crashes when using release configuration (Visual C++ 6.0)
I have a program that reads text input form users and echo it in a textbox, similiar to chat. When I compile it using debug configuration everything works fine and great, but when I switched to release configuration the program crashes and generates an application error after the 1st line of text is echoed to screen. I have some TRACE statement in the code but as far as I know the TRACE statement does nothing in release configuration. Is there anything else that I should check for might be the cause of this I know the release configuration does some optimization but I'm not sure why it works in debug configuration but not release Any suggestion is welcome! This article by Joe Newcomer on debuggi ...Show All
Visual Studio Team System CTP6 and Team Foundation Server hangs Visual Studio
I've created a SQL Server 2005 project, then added one view and one procedure to the database and did a schma compare from database to project. Both items are to be added, so I click on update. Now Visual Studio does 3 steps to update the projects. Then nothing. After some time (1 - 2 minutes), the source control (in my case Team Foundation Server) add the files to source control. And then Nothing. Absolutly nothing. No input (mouse or keyboard) from me is accepted (except for a beep), CPU load is 0%, no harddisc activity. Visual Studio simply does nothing. I can't use ALT-Tab as well, because VS is gone from the taskbar and from the task manager. I waited about 3 hours. Nothing happend. I tried this. 3 times, every time Visual Stuido hang ...Show All
SQL Server SQL 2000 SP4 performance monitors over Windows 2003 X64 Edition
Hi to all: I have recently migrated our SQL 2000 to a W2003 x64 Enterprise Edition, and I'm trying to save performance counter to document performance. I've started C:\windows\SysWOW64\perfmon.exe and I'm able to see SQL counters, but when I try to save a new Counter Log for later analisys, no SQL performance counter are saved only windows counters. It seems that only x64 counters are saved and not SQL Server (SP4) counters. I've have searched all the web trying to find some help but I wasn't able to find any solution. Can anyone help me with this thanks in advanced. -- Rodrigo Acosta ...Show All
Software Development for Windows Vista Accessing Database from Property designers
I am writing custom activities that have custom property designers. The property designers need access to the database in order to allow the users to configure the activity correctly. The long term goal is to rehost the Designer, but in the interum, we need to be able to do this in VS. Does anybody have on suggestions or recommendations for doing this Andrei, If you're looking to have the user select a value for a custom activity property from a list of values in the drop down list, you'll want a typeconverter. I just posted a sample a few mins ago in another thread. Take a look and tell me if this is what you were looking for. http://forums.microsoft.com/MSDN/ShowPost.aspx Pos ...Show All
Software Development for Windows Vista WF only supports desktop applications?
Hi! I am completely new for WF. Just very eager to know WF only supports desktop applications Web based applications possible with WF Hi, WF is a library with activities, runtime and supporting services. It is up to you to host the runtime. So basically you are completely free to choose as long as it can load the .NET runtime. Simply said, you can use a Windows app, a web app, a web service, a windows service, use VSTO to have Office host it. Maurice ...Show All
Smart Device Development Breakpoints do not get hit...
Hello, a colleague has big troubles debugging compact framework 2.0 applications from his VS2005 environment (to be more specific: he has hijacked my PC because the troubles do not occur there ). The problem is that every CF2.0 application he runs will not break when run on a device, but the same application runs and hits the breakpoints on the device emulator. It doesn't matter if it is a big multi-project solution or just a simple little HelloWorld project, the debugger just isn't interested in breakpoints anymore. We searched over this forum, but none of the solutions work for him. Some of the things we found and tried are: Deleting de bin/obj folders. Showing the Debug toolbar. ...Show All
SQL Server How do I start using Reporting services?
OK so I'm new to this reporting server stuff.... I installed SQL 2005 and reporting server (default instance and sharepoint) and Visual studio 2005.I I can start off now creating reports in Visual studio but I'd also like to take a look at the reporting service. According to reporting services configuration all works and can be connected to. When I type http://localhost/ReportServer I get message "Microsoft SQL Server Reporting Services Version 9.00.1399.00". So all looks fine but I have no idea how to start the program and start creating reports (as I can do with Visual Studio) To use the web browser based Report Builder you first need to create a Report Model using either VS or the SQL Business Intelli ...Show All
Smart Device Development windows mobile 2003 SE and net cf v2
I moved from using visual studio 2003 to develope an application for a windows mobile 2003 SE PDA to vs2005. After some problems this now works. However when I upgrade to using .net cf v2 and download to the PDA the forms in the application become compressed to appox. a quarter of their origial size. The menus are still in the correct place its just the size oif the forms. Has anyone else had this problem, does anybody know of a solution I already have NETCFv2 SP1 installed. Thanks Rob Thanks for replying. The post from Tim indicated the thread would be moved but I was n't sure what he meant and the thread appeared to remain in the smart devices C# and vb forum henc ...Show All
Visual Studio Express Editions User permissions SQL Server Express
I have a VB 2005 Express application using SQL Server Express. I have SQL Express installed on my server and can access my database on the server from my local machine using SQL Server Management Studio Express CTP. But when I try to open my connection in my VB application, I get the error: User does not have permission to perform this action My connection string looks like: Data Source=server\SQLEXPRESS;AttachDbFilename=\\server\c on server\IncidentTracking\IncidentDatabase.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True Since I can use SSMSE on my client machine to access the database on the server, I'm assuming that the remote connection and user permissions are setup correctly. I just cannot figure out wh ...Show All
SQL Server Loopback Server Policy
Hello all, Recently, we ran into the issue that you can't do an insert into..exec statement on a loopback linked server that was previously commented on in: http://www.dbnewsgroups.net/link.aspx url=http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=124137&SiteID=1 So, for example, if you have a linkedserver to a database that happens to be on the same server as the querying thread, it fails with the message 'context in use'. The answer from the previous thread was, don't use linked servers when the database is on the same server. However, The enviornment in our production system is fairly dynamic -- operations can be expected to move databases around in response to load balancing issues. We were counting o ...Show All
SQL Server Format Text?????
If I have a paragraph of text in a text box, but I only want to bold a couple words...how do I do that Unfortunately this is not currently supported directly. You can cobble together multiple textboxes, or try an external solution like OfficeWriter. ...Show All
Visual C# Cast at runtime?
DataRow[DataColumn, Table.Columns] returns object and a comparison of object type fails even if actual values are equal. We can guarantee the Type of the DataColumn and I want to cast to the DataColumn.DataType as I iterate the columns of the table; much more maintainable if the table ever changes. Other than a slew of if statements testing the as operation, is there a way to make this construct compile: foreach(DataColumn column in dataRow.Table.Columns) { if(dataRow[column, RowState.Current] as column.DataType != dataRow[column, RowState.Original] as column.DataType) { ... } } My hack is to test using ToString() (not pretty): dataRow[column, RowState.Current]dataRow[column, RowState.Current].ToString() Why can't w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with a transparent texture
I'm drawing some textured mapped quads that use a 24 bit .png image with transparency. When they overlap one another, the region that is supposed to be transparent seems to actually mask out any that are behind it. Here is an image of this problem happening: http://www.a2l2.com/~aaron/clipping.jpg here is how i set the render state when these get rendered: graphics.RenderState.SourceBlend = Blend.SourceAlpha; graphics.RenderState.DestinationBlend = Blend.InverseSourceAlpha; graphics.RenderState.AlphaBlendEnable = true; Can anyone tell me what's up Thanks I got alpha blended textures to work with a BasicEffect by drawing the background texture first, followed by the texture with the alpha layer. I used the ...Show All
Visual Basic Tough one, Share a Socket?
Hello All, I have an off the shelf Windows app that is capable of calling a dll. Actually it calls a C++ wrapper which calls my VB.NET dll ( a VB.NET function ) and all is working fine. The VB.NET dll is designed to open a socket to a server and send messages using System.Net.Sockets. The VB.NET dll also starts a timer to send regular messages to the server in order to keep the socket open and displays a simple UI to handle additional messages that the user might want to send. All this is working fine...but here comes the problem. When the Windows app wants to send more messages it calls the dll that has previously created the UI and opened the socket that is now sending regular messages. That is to say the socket is already open an ...Show All
Visual Studio Express Editions Transparancy
Hello all, I'm just learning how to use visual basic, but i know a small bit, and I would like to learn how i could get the area surrounding a bitmap to become transparent. (ex. set a certain color (100, 100, 100) and have the computer not draw that color) Thank in advance Dim image As Bitmap Dim color As Color image.MakeTransparent(Color) ...Show All
