liorhg's Q&A profile
Visual Studio How to build a project with one-cpp-file-based multi obj files using vs2003?
In the project I am working on, there is a cpp file that contains conditional compiling and 5 obj files should be generated from it based on different defined variables. What is the right way to do to build this project with visual studio 2003 Usually I set the preprocessor definations to define specific variables to be checked by the compiler, but I have no idea how to set different definations for one file within a project. Suggestions are appreciated. rich ...Show All
.NET Development Cannot use usernameForCertificateSecurity with IIS application pool custom account
Hi, I am using web service secured by the WSE 3.0 usernameForCertificateSecurity policy. The service is running on Windows 2003, IIS 6.0. Everything works fine if the IIS application pool uses default NETWORK_SERVICE identity. If I change the identity to the custom account I am getting the following error in server WSE 3.0 output trace: < xml version="1.0" encoding="utf-8" > <log> <outputMessage utc="30/11/2006 08:43:18" messageId="urn:uuid:993091ef-b795-4fc2-8707-03076e9107c4"> <processingStep description="Unprocessed message"> <soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsi=" http://www.w3.org/2001/XMLSchema ...Show All
Smart Device Development SQL mobile 2005
Hi There, I'm currently writing an application for a windows mobile 5 device which will store data in sql mobile 2005. I would like to know which would be the most efficient way of writing the following example to work with the above. (up until now all the code i have written has been in vb6 and connecting to an access database) Set db = DBEngine.OpenDatabase("location\database.mdb") ' strSQL = "SELECT * FROM Floats WHERE AgentName = '" & lblAgentName.Caption & "' AND Status = 0 " ' Set rs3 = db.OpenRecordset(strSQL) If rs3.RecordCount > 0 Then rs3.MoveLast lngRecordCount3 = rs3.RecordCount rs3.MoveFirst Else lngRecordCount3 = 0 End If ' If lngRecordCoun ...Show All
Visual Studio Team System How to Expedite New Project Creation using customized Process template?
We want to expedite the cycle of verification process in process template customization. The steps we are following are Choose base process template Customize some section as per custom process requirements Upload on to TFS server Create a Team Project with Project Creation wizard and using the newly customized process template Verify Process related changes In this new process template design approach we are doing little at a time and verifying it - as XML debugging is rather tricky - but in this approach w e are finding the step 4 is taking approx 10 min each iteration although the hardware configurations are as per recommendation - Is there any way to expedite this change verification cycle ...Show All
Visual Basic Trigonometry Woes
Ahh, it's good to be back. Did y'all miss me Oh well, here's my question. I have asked this in the C# forums, but I am also very keen as to how this could be done in VB.NET as well, so I thought I'd pitch it at you guys, too: I am having a bit of difficulty with coding some trigonometric functions. The primary goal I have at the moment is to find the two unknown angles in a right-angle triangle of which I know all 3 dimensions. While I know how to do this in theory, finding the code to accomplish this is proving difficult. For example: I have a triangle with a base of 6cms, a height of 5cms and thus a hypotenuse of ~7.81. It is a right-angle triangle and thus one of the three angles is 90 degrees. How can I find the other two angl ...Show All
Software Development for Windows Vista No show on samples
Ok, IE file version of 7.0.5450.4, .Net 3 CTP (as sandbox instructions), card selector no show on samples, fully able to login to Kim's site, can select and send card to sandbox, but site is "Unable to service my request". Why Luke Hi, Yer Ok, is [ assembly: AssemblyInformationalVersion ( "3.0.4307.0" )] Don't think it's a problem with CardSpace, or the samples, sure they work well, The samples have the same code as Kim's site login and the sandbox login, both of these display the card selector What happens, while opening sample 1 (although it's the same for all), the page appears, the annoying bar that block content, get rid of that, click the button and . ...Show All
Smart Device Development Recording Audio on Smartphone [C#]
Hi guys, I know there are a lot of audio related questions here on the forums, but I've been trawling through them all to find the best way to record audio for an application I'm developing on a smarthpone. I didn't realise there was so much involved in just trying to record audio heh. I'm not very good at understanding the whole Platform Invoke thing and to be honest, I can't even get my VS2005 to recognise the [DllImport...], perhaps I'm not using the correct using directive Any help you guys can offer would be great. Essentially, what I need to know is: How to utilise unmanaged code for C# to record/play audio I have looked at the MSDN information on the code but it goes over my head a little and like i said, I can't e ...Show All
Visual C++ Do we need .NET Framework to run MFC application and ...?
I built an MFC application and now I have 2 questions: - Do I need .NET Framework to run MFC application built in VS 2003 or VS 2005 - How can I make the Visual Studio automatically put the library files (*.DLL) in the same folder as the executable file (*.EXE) as I compile the project Thanks in advance. Jonathan Caves - MSFT wrote: You need the MFC libraries, the C and C++ runtime libraries, and the Win32 libraries. The latter set of libraries should already be installed on every Windows machine. ...Show All
Visual C# Need a real expert's help (C# <-> C Lib)
Hi, I need help from someone who understands Windows, .NET and C# inside-out . I'm trying to get a library written in C to function with my C# program. I understand that there is no way to get a .lib file to integrate with C#, and since I have C code in the library, I also cannot compile the library as managed code. I've tried all kinds of options to wrap or recompile the library, but I just cannot get it to go. At the moment I am able to build an unmanaged DLL instead of the library, but that is as far as I've come because I can't seem to use the DLL for extern functions (no such entry point). Can someone please explain what is going on here Am I able to link to an unmanaged DLL from C# Why can't I compile C code as C++ by specif ...Show All
SQL Server SQL Backup hangs, server freezes
We have SQL 2000 running on Server 2003. The server has 4 GB RAM, RAID 1 and has the /3GB switch in Boot.ini. We have 6 databases, the largest is about 14 GB. Until recently I could use Enterprise Manager to perform database backups to a folder on the same server but now the operation fails. After selecting the location for the backup and clicking OK, the hard drive light comes on but goes out after 15 - 30 seconds. The progress bar does not move. I've waited and waited but nothing further happens and the server doesn't respond. The only solution is to push the power button and let the server re-boot. Very occasionally the backup will run for a minute or two and the progress bar might get to about one third of the way across, (in which cas ...Show All
Visual Studio 2008 (Pre-release) Why is the IsMouseOver trigger not firing any more?
Hi! I've got a TextBox which should change it's background to a grey-white gradient when the mouse hovers over it and to red-white when it is selected (while it's simply white as long as neither the one nor the other is true). The problem is: The isMouseOver trigger doesn't fire once the IsKeyboardFocusWithin trigger was activated. Why I'm not using EventTriggers instead: As mentioned above, i need conditions (which aren't implemented in the below example). Does anyone have any idea what I could do about it Thanks a lot! <Storyboard x:Key="GotFocus"> <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.C ...Show All
Visual C# minimize a System.Diagnostics.Process
I have a System.Diagnostics.Process which I started. I would like to minimize it. How can I do this in C# I found this post, but it is for VB, and it looks like it uses COM. Neither of which I like. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=611361&SiteID=1 If there is a pure C# .NET way to do this, that would be great. ~S If the process is already running...you will need the handle to send to ShowWindow API. [DllImport("user32.dll")] static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); ShowWindow(yourHandle, 2); ...Show All
SQL Server Log shipping
Can some one help in understanding Log Shipping. My production database is over 50 GB and we want to implement Log shipping to ensure a standy by server. I know how to implement the Log shippinng and what it does but I am not sure how to perform Log shipping with daily FULL database backup on production server. Consider this scenrio. 1. 1:30 AM Monday Full database backup on production server 2. At 1 hour interval transaction backup on production server and applied on Standby server. 3.1:30 AM Tuesday Full database backup on production server..... Here I am getting confused. DOo I have to apply this full back up again on standy servers, because if I don't then my LSN for next transaction log will be different. So how can i take a full ...Show All
Windows Live Developer Forums WLM error
whenever i sign onto WLM it loads my contacts (sometimes doesnt even get that far) but then it just freezes and crashes, any idea whats up with it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. mesh clone and dispose bug
this is a strange one... Mesh mesh = Mesh.FromFile( "tiger.x", MeshFlags.SystemMemory, device, out materials ); Mesh newMesh = mesh.Clone( MeshFlags.Managed, mesh.VertexFormat, mesh.Device ); mesh.Dispose(); // Dispose the original newMesh.Disposed == true <--- what -- the new one is now also disposed mesh.UnmanagedComPointer and newMesh.UnmanagedComPointer are not equal what going on here ob. the original and the cloned are referenced somehow... Its a known bug that I reported years ago that apparantly never got fixed. If I remember correctly if you set Device.IsUsingEventHandlers = false and do all the event handling yourself this problem goes away ...Show All
