Logica's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. About formats and multisampling
I'm checking currently supported DXGI format, what exactly is the difference between: - D3D10_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET - D3D10_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE What is the meaning of the following formats: - G8R8_G8B8_UNORM and R8G8_B8G8_UNORM How are coded the following formats: - R9G9B9E5_SHAREDEXP - R8G8B8A8_UNORM_SRGB - R11G11B10_FLOAT (number of bits of mantissa and exponent for 11 bits and 10 bits float). Thanks. Ralf Kornmann wrote: Jack Hoxley wrote: The HDRFormat10 documentation briefly explains this. You have three 9 bit mantissa's and a 5 bit shared exponent. You can decode them in a shader using decoded.rgb = encoded.rgb * pow( 2, encoded.a ) . ...Show All
Windows Forms Read and write *.csv File
How can i read *.csv file and import data in database also read data from database and write in *.csv file nobugz wrote: If you're using VB.NET, it has built-in support for parsing .csv files. If not, you can always add a reference to Microsoft.VisualBasic... please finish your sentence... really curious ...Show All
SQL Server Table Locking in Partitioning
Hi, I have the following doubt about table locking\blocking in case of partitioning:- Say we have 5 partition on the table Employee on the key Joining_Date and when we run 5 select queries on each of the parition in parallel will there be locking on the table when the 1st query is running or all the 5 queries can run in parallel. Basically, I am trying to see if parallelism and partitioning can work in sync or there will be locking at the table level if I don't specify any query hints Any help in this regard is highly appreciated. Thanks, Ritesh SQL Server uses a dynamic locking strategy. So the locking might use rows or pages to begin with and get escalated to table locks depending ...Show All
SQL Server DR: Replication vs. log shipping vs. clustering vs. database mirroring........
Up to now we have gotten by without having any local DR copies of servers (if a sql server goes down we are usually able to get it back in less than 3 hours). But I want more now. I want to trim the "down" window to no more than 5 or 10 minutes. (Immedate failover would be nice but is not an essential requirement. The essential requirement is to loose no data!) I have a spec of knowledge in these areas: SQL 2005 Clustering (requires approved hardware, quorum disk, etc. involved) SQL 2005 Replicaiton SQL 2005 Log Shipping. SQL 2005 Database mirroring. ( needs three servers) Which approach do you think is the most straightforward, sparing of hardware, yet reliable way to get us back up and running after a sq ...Show All
Visual C++ Help With Multiple Forms
I'm trying to make a simple text editing program that can have the text files in different windows all under the same parent window. This is the code for the open button: OpenFileDialog^ ofd = gcnew OpenFileDialog(); ofd->Title = "Select A Text File To Open..."; if (ofd->ShowDialog() != System::Windows::Forms::DialogResult::Cancel){ TextEditor::TextForm^ newTxtForm = gcnew TextEditor::TextForm(); } I get errors on the line where I try to create a new instance of the form. The errors are 'TextForm' : is not a member of 'TextEditor', syntax error : identifier 'MapForm', 'MapForm' : undeclared identifier, and 'newTxtForm' : undeclared identifier. I don't know whats going on here. Ive used search, but cant find anyth ...Show All
Visual Studio Tools for Office Installing VSTO - Service Pack 1 required
I cannot install VSTO (full boxed version, not downloaded) as it says I must have Service Pack 1 for office installed. My office installation has SP2 applied. I cannot install SP1 as it recognises SP2 is installed, but VSTO still won't install. SP2 is not available in my add remove programs list, as I would temporarily uninstall it to get around the problem. Any suggestions please Thanks, Laura. Hello, This error message often means that you have an unsupported version of Office installed, such as Office 2003 Standard. VSTO 2005 requires that you have Office Professional installed, or a standalone version of Word or Excel. The reason for this requirement is that VSTO 2005 takes advantage of f ...Show All
Visual Studio 2008 (Pre-release) XamlWriter : Does NameScope.RegisterName set x:Name attribute ?
Is that correct to think so are there rules to follow for this to appends public void OnLoad ( Object sender, RoutedEventArgs e) { TranslateTransform3D ts = new TranslateTransform3D (); Transform3DGroup tg = new Transform3DGroup (); tg.Children.Add(ts); NameScope tgScope = new NameScope (); NameScope .SetNameScope(tg, tgScope); tgScope.RegisterName( "ts" ,ts); XmlWriterSettings settings = new XmlWriterSettings (); settings.Indent = true ; StringBuilder strbuild = new StringBuilder (); XmlWriter xmlwrite = XmlWriter .Create(strbuild, settings); XamlWriter ...Show All
SQL Server DTS : Format Problem !
I have a statement in the DTS ( Activex Script ) like this : TomorrowDate = Format$(Now, "yyyy-mm-dd") When i am running the package, i am getting the following error : --------------------------- ActiveX Script Task: undefined --------------------------- Error Code: 0 Error Source= Microsoft VBScript compilation error Error Description: Invalid character Error on Line 8 Can anyone tell me what is the solution to this error Thanks in advance. Hi vijay, Thanks. Even when i removed $ from format, still an error : Telling that : Type Mismatch "Format" ...Show All
Visual C++ Error C2440 when compiling code originaly in VC++ 6 to VS. net
I get the following error when compiling code in VS .Net 2003 that was originaly written in VC++ 6 c:\CPX32\src\View\MainFrm.cpp(41) : error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMainFrame::* )(UINT,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)' None of the functions with this name in scope match the target type The code producing the error is: ///////////////////////////////////////////////////////////////////////////// // CMainFrame IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd) BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) ON_WM_CREATE() ON_WM_CLOSE() ON_MESSAGE(WM_SYSCOMMAND, OnSysCommand) END_MESSAGE_MAP() Any Ideas on how to solve this will be very appreciat ...Show All
Visual Basic Scanning Documents
Any ideas for scanning a document into a visual basic 6.0 application, saving it to a specified location, and then also retrieving the document - viewing it. Any sample code would be appreciated. Thanks We're sorry but these fora are for Dot.Net software. If you have a VB6 question, please make use of the Visual Basic 6.0 Resource Center to find a solution to your problem. OTP ...Show All
Windows Forms How to show the changed Text while loading?
Hi! at time-consuming processing in reading data etc, how to show a Label such as loading into the following codes, the character "Loading" cannot be seen. private void loadDailyButton_Click(object sender, EventArgs e) { titleLabel.Text = "Loading"; da.Fill(ds); titleLabel.Text = "Loaded!"; } what code do I have to insert here Look at using the BackgroundWorker class to perform time-consuming operations. 1. Add a BackgroundWorker to your Form. 2. From your Button_Click eventhandler, update your Label.Text property ("Loading"), then call the DoWork eventhandler of the BackgroundWorker. 3. In the DoWork eventhandler, call the ...Show All
Visual Studio 2008 (Pre-release) How to make WCF communication with SQL service broker?
hi, I want tomake wcf and service broker communicate with each other,the question is how to write wcf so that two sides can communicate. thanks in advance Hi, That is not something easy to do and require a lot of custom code. You basically need a custom transport to talk with the Service Broker, and as far I know, there is not any available implementation of that transport. Take a look to this thread for more information, http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=285894&SiteID=1 Regards, Pablo. ...Show All
Windows Live Developer Forums LoadMap Function
Is anyone else haveing issues today. My map scripts are not throughing any errors, however they will not load beyond the LoadMap function. Anyone having similair issues Thanks, -Erick_the_Redd ...Show All
SQL Server @@TRANCOUNT - always 0 or 1 ?..
I am trying to debug our production problem, and I'm stuck... A C# .NET 1.1 method creates a SqlTransaction object on a SqlConnection. [This method is called from an ASP.NET 1.1 web application.] The command invokes a stored procedure on SQL Server 2000 SP4 database. The stored procedure itself is inside a transaction (that is, all batch code is between BEGIN TRANSACTION and COMMIT/ROLLBACK...). DECLARE @a_tran_count INT SET @a_tran_count = @@TRANCOUNT DECLARE @a_tran_name CHAR(13) SET @a_tran_name = CONVERT(CHAR(13), @a_tran_count) BEGIN TRANSACTION DECLARE @a_error INT <Statements> SET @a_error = @@ERROR IF 0 = @a_error <Statements> ...Show All
Visual C# using windows logon name
I want to use windows xp logon name(user name in active directory) in my c# code (web app). for example if the user who opened my web site is ABC(this is the logon name to windows) then abc.aspx will be opened, if the user is TOM the def.aspx will be opened. How can i do this Please help me. To get the username in your web.config file make sure you have: < authentication mode = " Windows " /> < authorization > < deny users = " " /> </ authorization > Then in your code you can use: using System.Web.Security;// add this at the top of your code string strUserName = User.Identity.Name; ...Show All
