Todd Scott's Q&A profile
Visual C++ Changing the Console Text Color
I've come across an issue that I'm sure I can solve if I could change the console text colors at runtime. I've spent a couple of nights trying to find something online but all I've learned is that you can do it in C#. I still havent found one source that tells me how to do it in C++. Any help will be greatly appreciated. I have .net 2003 ---------------------------------------------------- ...Show All
Visual C++ stringstream causes memory link VC++ 2005?
This simple program seems to leak LOTS of memory when compiled in VC++ 2005: int _tmain( int argc, _TCHAR* argv[]) { for ( int i = 0; i < 100000; ++i) { ::Sleep(1); std::basic_stringstream<TCHAR> str; str << _T( "Current iteration: " ) << i; } return 0; } CRT: Multi-threaded debug or Multi-threaded I compiled and ran the same piece of code in VC++ 2003 and I don't see ANY leaks! Any ideas ...Show All
Visual C++ How to compile use of AVIFileInit
This is undoubtedly something very simple, but I am too new to this environment to figure out what. I have this code: #include <windows.h> #include <vfw.h> #include "stdafx.h" int _tmain( int argc, _TCHAR* argv[]) { AVIFileInit(); // opens AVIFile library AVIFileExit(); // releases AVIFile library return 0; } and I get these compile errors: error C3861: 'AVIF ...Show All
Windows Forms Difference between .exe and .dll security resctrictions?
I've wrote a visual component (dll) and embedded it in the html page. I just can't run it without Security Exception (it tries to connect to MSSQL using SqlClient ADO.NET objects). I have 1) strongnamed a dll 2) added AllowPartiallyTrustedCallers attribute ...Show All
Visual Studio Team System Is source code Safe?
Work Items and Source code are stored in SQL Server database in TFS. If I backup all database files and restore them to another machine, could I "steal" the content(e.g. source code) of the project Thanks! If someone can back up the database and go restore it onto a machine on which they are admin, they can get access to anything they want. They don't even have to install it into a TFS installation. They can use SQLServer ...Show All
Windows Forms To make a class object allow only single instance, like mdi child
Hi.. I wish if you can give back the Old Vb6 MDI child form back that has only one instance though the MDI child can be set to have one instance or more developer wish... ...Show All
Visual C# web application + browse button
Hi, I have and web appl in ASP, C#. Is it possible to add a field to browse for a certain file... basicly a browse button. I know how to do it for a win application but i'm lost with this web form. Pls help. Any input is appreciated. Thank you. yes, you can use the HTMLInputFile control or else simply add runat=server to a standard html <input type="file"> .Take a look here for an example. By the way, questions about web shoul ...Show All
Visual Studio Comments and CommentShapes
I've been looking at adding comment shapes to my designer, and came across the Microsoft.VisualStudio.Modeling.Diagrams.CommentShape and Microsoft.VisualStudio.Modeling.Comment classes. "CommentShape" is particularly interesting; it isn't abstract, it isn't related to a model element, I can add instances to my diagram, and it automatically displays multi-line by default. However, should I be using it directly, or should I derive a c ...Show All
Visual Studio 2008 (Pre-release) anyone that can help me with this?
Hello, I'm experiencing the following problem for a while now. I'm not able to set the text of a textbox from another class in the same app. Can anyone tell me how I should do this. More details below... Window1-code: <Window x:Class="TestWindow.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="TestWindow"> <Grid> <TextBox Name="txtTest"> ...Show All
Windows Forms Button Image and Text with OVERLAY puts text BEHIND image
Maybe I am missing something. I came up with a nice button image graphic, and selected IMAGE and TEXT, and to OVERLAY, and the image COVERED the text. The opposite would in general seem more useful to me. Why would you ever want to have text overlayed that you could never see I tried using background, but of course you can not declare a transparent color, and also it eliminates the image when you mouse over the button. Regardless, is there a ...Show All
SQL Server Should you save results of intermediate data flow steps to temporary tables or raw files?
Hi, I'm just starting off in SSIS and have a question that I can't find an answer to... I'm loading in a number of files (in separate Data Flows) and performing some transformations on them before merging them back together. What I'm not sure about is what I should be doing with the data at the end of each of my "Import Data From XXXX Flat File" Data Flows. Am I better off using OLE DB Destinations (or SQL Server Destinations) and savi ...Show All
.NET Development [C#2.0b2-WSj2ee] first method WS too long in local network
[C# 2.0 beta2 client/J2ee oracle 9i WS] Hello, I have a WS on j2ee oracle9i, i create a client .Net to connect on. If i use my local network (with internet access) the first connection is rigth. but if i stop my internet access the connection is too long. I can see more difference if i test this with a 56k network with modem (modem on server/client machine with no internet access) I think that this problem is ...Show All
Windows Forms Strange form issue.
Anyone ever seen an issue like this http://weblogs.asp.net/jclarknet/archive/2006/05/02/444845.aspx It looks like an issue in the framework, as there is no mention of anything in the app itself. Jason, I haven't seen this, but based on the stack trace Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.ListViewIte ...Show All
Visual Studio Tools for Office Hookup delete event
Hi How can I catch a delete event (appointment) in Outlook 2003 I've tried using the BeforeDeleted event handler but it does not always work eg. when the user deletes the appointment using shift+delete. The add-on I am creating is simple. The only thing it should do is to create an appointment in the user's calendar + an appointment in a shared calendar, when the user clicks a button. My problem is when the user ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Flicker in Direct3D application ???
Hello guys, I developed a small(very simple) 2D game last summer, and I remember I had to use a temporary output for the Drawing/Graphics, and then whole Output draw at once(like one bitmap) so that I avoided "FLICKER PROBLEM". Now, I am trying to get into 3D programming and want to ask, if there could be the same problem, because when my SpaceShip is moving I think its not so smooth as it should be and that it might be the same ...Show All
