MagnusJ's Q&A profile
Visual C++ Warning C4727 in Release build but not Debug
I have a static library project that uses "create precompiled headers" which builds fine in Debug configuration but when building in Release configuration I get a bunch of the following warnings: warning C4727: PCH named c:\project\Release\foo.pch with same timestamp found in c:\project\Release\foo.obj and c:\project\Release\foo.obj. Using first PCH. This causes subsequent attempts to link with the library to fail. As far as I can tell the compiler settings are similar for both configurations. Can anyone tell me why this happens in Release but not Debug Is there an alternative workaround to the one descibed here: http://msdn2.microsoft.com/en-us/library/ms235540.aspx I am ex ...Show All
SQL Server Synchronization between stored procedure calls
How would I synchronize the stored procedure calls so that if one call of an stored procedure is amid doing some stuff, the another call to same SP will wait until first call is done. Is there any Mutex, Semaphore thing in SP I will appreciate inputs here ...Show All
Visual C# Counting words
I want to count how many words in a .doc file having images inside, how should teh count function do with images thanks ...Show All
Smart Device Development Missing WYSIWG editing
I opened my project today (after a week vacation) and attempted to do development for my .Net compact framework project. When viewing the design of a form/user control, all I see are icons of the controls currently being used. It used to show the form factor of the control/form. How do I get that back Not sure what has happened while I was gone. Thanks ...Show All
Windows Forms Culture of DatePicker
Hello Is it possible to change culture and language of DatePicker Thank you (Moderator: Thread moved to this forum for better responses) I need DatePicker in Hebrew language with available NULL value of date (in case user don't select any date). Switching between months and years is easy. ...Show All
Visual Basic IBM DB2 Development Add-In for Visual Basic Express
Can anyone tell me if it is possible to use the IBM Db2 Development Add-In within Visual Basic Express or can it only be used within Visual Studio .Net. I have installed both the DB2 v8.2.2 and Visual Basic Express but cannot seem to register the Add-in within Express... Thanks Paul, Ive been using VB Express for about 2 months and find it excellent ! I cant believe however that I have already hit its restrictions ! Oh well - as you suggest - only one thing for it. Update to Visual Studio Standard ;-) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar Starter Kit
Hey , I just started using XNA Game Studio Express . When I load the Spacewar Starter Kit and press start to test the game there is only Xbox 360 functions , Is there any way I can play this using my PC keyboard or send this to my Xbox 360 . Here is a tutorial on it. http://xnaspot.com/Tutorial_GettingStarted.aspx I also started a FAQ you can check back on too for other issues. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=686182&SiteID=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Working with buffers in 2D
Hello all, I've been trying to figure out how the system with backbuffers work. In all examples I have found people are clearing the buffer before they draw something new. graphics.GraphicsDevice.Clear(Color.Black); ...draw some sprites... graphics.GraphicsDevice.Present(); I guess that when you enter the Draw method you are working with the backbuffer, so the clear() and the sprite draw() will affect the backbuffer. After that you call the Present() to draw the recently made backbuffer on the screen. My problem is that this is not how I would like to do it in my case. Everytime I enter the Draw() method I would only like to add some new things, and not clear anything. The easiest way to do this is to not have any backbuffer at all, but I ...Show All
.NET Development A direct connection to another computer and connecting to a remote unix mysql server, vb 2005
I'm lost without my winsock, I want to create a direct connection to another computer to send strings back and forth, well i can't seam to figure out or find much out there on this for visual basic 2005. And managing a remote unix mysql server, it won't seam to let me add it as a data source. You have to talk to the SQL folks about this. For Winsock connections just use System.Net.Sockets class. There are a zillion samples out there to help you out Just search Socket C# on msn ...Show All
Gadgets Sidebar refresh after wakeup
Hello, I wrote a small gadget the pulls a comma seperated list of values over a URL GET and displays them. I have it set to refresh every 60 seconds. However, after the computer comes out from wakeup it doesn't refresh any more. What code can I add to address this <script language="VBScript"> Sub Window_Onload GetData iTimerID = window.SetInterval("GetData", 60000) End Sub Sub GetData url = "http://xxxxxxx" set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "GET", url, false xmlhttp.send "" DataArray = Split(xmlhttp.responseText, ",", -1, 1) DataDate.InnerHTML = DataArray(0) DataMax.InnerHTML = FormatNumber(DataA ...Show All
SQL Server Date Ranges in KPI Value Expression
How do I enter a date range for a KPI in the Value Expression This simple expression will get me a count for 2006 but how do I get a count of 2005 and 2006 combined ([Measures].[TOTAL AMT], [Incident Status].[Incident Status].&[1], [Start Date].[Year - Quarter - Month - Date].[Year].[Calendar 2006]) Thanks Thanks, that works. What does the * do Where is a good place to find out how to do these advanced expressions The documentation is weak and the examples are always for a select statement. Aggregate (Set_Expression [ ,Numeric_Expression ]) ...Show All
.NET Development XML Serialization??
I have been doing some reading on XML Serialization and was wondering if i was on the right track as far as my understanding is concerned....basically what it does is take values that u put in a collection or array list and sorts them in XML format based on attributes that you set within the arraylist...now i am not that sure if thats how it works but thats what i am begining to understand...if you guys wqould be so kind to try and explain what i am missing or maybe shoot over some links that explains things you would use XML Serialization for Thanks! Sure. XmlSerialization is awesome. It does all the work for you and you can give it a stream (FileStream/StreamWriter/NetworkStream etc...) to serialize to. Now, basically, XmlSe ...Show All
Commerce Server Commerce Server on XP
Hi, According to Installation Guide and Documentation Commerce Server 2007 works on WinXP. I tried to install Developer Edition and CSarpSite, but it failed. I followed the instructions and I didn't receive any error messages. But some components are allways missing. Have you ever installed CS2007 on WinXP successfully Thanks for your help! I'm new to VPC. What would be an advantage of using VPC. I've started to install WS 2003 VPC on top of XP but stopped to get this answered. How would I develop using VS 2005 on XP onto VPC running on the same machine. Or is the idea to have VPC running WS2003 Std or E R2 and within that OS to run CS2007, VS2005 and SQL Server If this is the case not only I ha ...Show All
Windows Forms How can i get the current string width in textbox of C#
Hi, i am wondering if i can get the current font size (including height and width) or string width in textbox of C# Or how to make the form or the textbox resizable based on the input text string length I checked the functions, which only include this.Font.GetHeight. There is no functions related to width. Thanks in advance. I was using Graphics.MeasureString and it was adding legnth, and also not adding enough in some cases. That option really wasn't usable to me. But thatnks to the comment suggesting TextRender.MeasureText I have fixed my issue, as it works perfectly. Thanks Heaps. ...Show All
Visual Studio Express Editions Syntax Highlighting
Hi, I would like to make a text editor in VB.NET Express Edition. One of my biggest problems so far is getting syntax highlighting to work in a rich text box. I have no idea how to do this. Any suggestions or tutorials would be wonderful! Me . RichTextBox1 . SelectionStart = CharacterPosition Me . RichTextBox1 . SelectionLength = LengthOfWord Me . RichTextBox1 . SelectionColor = Color . Blue Me . RichTextBox1 . SelectionBackColor = Color . Yellow ...Show All
