redneon's Q&A profile
Visual C++ How to change the console title programmatically
Hi All, I have a C++ console program. Recently, I have a requirement to change the console title (DOS window's title) programmatically at runtime. Is there a way to change the console title during runtime of the console program Can someone provide a sample code Thanks in advance ...Show All
Visual Studio 2008 (Pre-release) Reduce Messages Size
I have created an application that use a DataContract tag. I use a default DataCOntarctSerializer for serialize objects. I used a ReferencePreservingDataContractFormatAttribute for serialized cyclics references. I used tcp Binding. My messages size is too big. I want optimized a message size. I must increase a messagesize over 1 Mo and the real size of my objects is much smaller than 1 Mo. I would like improve performances. I will like to know if somebody already had this problem Thanks Hi, WCF includes some features for it problem, using MTOM or the binary format is more easy to optimize the exchange of big ...Show All
Software Development for Windows Vista AutoCAD 2007 and 2005 compatibility with Windows Vista
My bussness revloves around the use of AutoCAD. I recently installed Windows Vista Ultimit on my computer. After i tried to install AutoCAD 2005 on it to discover it would not work. Is there any patches in order to make it compatible. If not Is AutoCAD 2007 Compatible before i go and buy it. thank you Microsoft is unable to provide support for 3rd party products. You will need to contact the manufacturer. You might start by going to http://discussion.autodesk.com/thread.jspa threadID=532684 ...Show All
Visual Studio 2008 (Pre-release) creating complex lookless controls
Hey, What would be the best practice for collecting events from the template controls for a lookless custom control. Say I have 3 text areas on the custom control whose text is bound to some properties. That part is easy enough to do, but say I want to know if any of these areas have lost focus, and which one lost the focus Since these controls that are holding the text are defined in the template I don't have an easy way of discriminating between them. I can handle previewlostfocus or whichever, but to determine which was the control that lost fous means to me I'm left with the rather unsatisfactory solution of relying that they have some identifier in their control name, or something of that nature. Is there any way of rerouting an even ...Show All
Visual C++ MultiThreading
Hi, I'm new to Visual c++ and am currently making one of my first programs. I'm trying to use the CCriticalSection and CSingleLock classes in this program, and to do so, I know I need to include <afxmt.h>. Well, when I try to compile my program for debug, I get all kinds of errors like this: I duno why I get them, but if some1 could please help me fix the problem, I would greatly appreciate it. ------ Build started: Project: Dales Name Genz0r Beta, Configuration: Debug Win32 ------ Compiling... stdafx.cpp C:\Program Files\Microsoft Platform SDK\Include\mfc\afxv_w32.h(194) : error C3641: 'DrawState' : invalid calling convention '__stdcall ' for function compiled with /clr:pure or /clr:safe C:\Program Files\Micros ...Show All
Visual C++ worker thread slowed by MFC UI interactions
I create a SDI MFC program in which there is a worker thread to render a 3D scene. I found the rendering speed will be interupted and slowed by some UI interactions, e.g., moving the window by drag the window title, mouse move on some toolbar's buttons. However the program implemented by C win32 API has little performence decrease under the same condition. Could you give some suggestion Thanks. I haven't manually invalidated the view or coustomized its ondraw function. I just create a 3D engine renderer(Ogre 3D engine) in the worker thread and give the HWND of the view to it. Then call the 3D engine's method "renderOneFrame" in the loop of the worker thread. I guess the engine do the ...Show All
Visual Basic Single.Parse(999999999) = 1.0E+8 (100000000.00) ???
Hi....... Quote: Single.MaxValue = 340282300000000000000000000000000000000.00 When trying to parse a value like 99999999 to single, it gives me 1.0E+8 (100000000.00). This is not i was expecting and ofcourse no one would.....How to resolve this type of problem. I cannot (now) go for double coz its already late. I even tried Convert.ToSingle and Ctype way but all yielded the same result . Please help me out of this... Hai DMan1, I was testing my application with huge values and one such value is 999999999. After updating, i saw the result which i was not expecting. So if anyone has come over this issue and resolved, then please let us know. Regards, ...Show All
SQL Server using SCOPE_IDENTITY
I need to create two records in two seperate tables, and place both their generated keys into another record. What I have tried is creating a variable like this DECLARE @filedata_id int; then after the record has been created with an insert statement i do this EXEC @filedata_id = SCOPE_IDENTITY ; I get the following error when running the stored procedure Could not find stored procedure 'SCOPE_IDENTITY'. Would someone be so kind as to help me out a litte Slightly lost here. Any help is appreciated. Thank you :) select @filedata_id = SCOPE_IDENTITY() or set @filedata_id = SCOPE_IDENTITY() Denis the SQL Menace http://sqlservercode.blogspot.com/ ...Show All
SQL Server Database roles
I am not sure if this is the right place for this question or not but here it goes... I want to add a new user to the database with read-only rights. I know public is selected by default and can not be changed. I also added the user to db_datareader and db_denydatawriter. But just as I was about to save I noticed Read Only. I have done some searching but have not found anything about this role. I assume it does just what it says but I am confused as to why it would be there when I can set the other settings I just did. Is there any benefit to using this role instead of the ones I chose Should I add this role in addition to the two I have already picked Any help is greatly appreciated. thank you, Kevin ...Show All
Customer Care Framework Agent Desktop Error, CCF 2005 .NET 2.0
Finished the installation, when I try starting Agentdesktop I get the following error: Error: Unable to login - make sure your domain\\user name is correctly configured in the system. Application will exit now. System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: AgentLogin: User does not exist in the database. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior run ...Show All
SQL Server SQL Server 2005 OLAP Cube on SQL Server 2000?
Hello, I have designed a OLAP-Cube with the SQL Server 2005 Analysis Services. Is there a way to publish this Cube on a SQL Server 2000 with Analysis Services Or is there a way to connect the Server 2005 through the 2000 Server Thanks a lot! I do not think this is possible. SSAS2005 is a new release of Microsofts OLAP technology. They do not work in the same way. You can only migrate cubes from SSAS2000 to SSAS2005. HTH /Thomas Ivarsson ...Show All
.NET Development Err: Format of the initialization string does not conform to specification starting at index 0.
The Error Stack is: System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0. at System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue) at System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionO ...Show All
Visual Studio Tools for Office Setting the AppDomain ApplicationName
Hi, I'm developing a Outlook add-in that needs to load dynamically generated assemblies. I've hit a snag when trying to set the AppDomainSetup.DynamicBase property as this requires there to be an ApplicationName for the AppDomain. It seems that the VSTO runtime does not specify the ApplicationName when it creates the AppDomain for my add-in. Does anybody know whether it's possible to "coerce" vstor to specify an ApplicationName when it creates the AppDomain Thanks, Dave Gardner Hi Dave. The only control that VSTO supports for configuring the AppDomain via a .dll.config file using the usual AppDomain config-file schema . Unfortunately, to my knowledge, the ApplicationName is no ...Show All
SQL Server SQL Account lockout
Hi Champs, Is there a way to recover from a account lockout in SQL2005 I cannot connect to "Database Engine" in "SQL Server Management Studio", error: login failed...18456. Access denied with windows auth. and also with SQL auth.. And I also cannot start the "SQL Server agent service" Any possebility to recover without reinstall /Many thanks The SQL agent service has nothing to do with SQL Server logon. Please check if the SQL Server service - SQL Server (MSSQLServer) windows service is running under LocalSystem account and try logging to the SQL Server as 'SA'. THT, Loonysan ...Show All
Visual Basic Image Transparency. Set a level of transparency then to make an opaque image like in Vista.
I'm in over my head on this topic, but thought I'd give it a try if anyone could help me out. Now, before you say "just set the property to transparent etc.," that's not my issue. I can do that. My problem is, when the image does in fact go transparent, the background shows up in place of the transparent area. I don't want to see the background, but rather the potential picture that could be behind it. Obviously if there is no picturebox behind it then it would default to the background though. Any help would be appreciated. I've tried many things and none have worked for me. I've been using .gif's but could switch to .png or other formats if needed, just let me know how I can achieve this. ...Show All
