markovuksanovic's Q&A profile
Software Development for Windows Vista Vista's new data re-direction/virtualization breaks my app. Help
Now that Vista no longer lets you write files to the "Program Files" directory (after the initial install) my app doesnt work correctly. The Vista security design feature (aka the newly introduced MS redirecting driver) now takes the files that were going to the the "Program Files\ myApp\" directory and redirects them the users local profile into a "Virtual Store" directory. I completely understand the MS necessity to do this to help maintain security\integrity. Per the link below, it discusses how applications run as a standard user, even if your logged on as the administrator running the app. The articles states you can "mark" certain applications as needing the full administrator token when ...Show All
Visual Studio 2008 (Pre-release) Working with Subscribe-Publish
Is anyone familiar with the Publish-Subscribe project It's available online and I think it was written by people from IDesign. I'm trying to figure out ways to save the Transient Subscribers info in the database in case the host server goes down. I've noticed the list of transient subscribers are retrieved by: T subscriber = OperationContext.Current.GetCallbackChannel<T>(). Is it possible to save the subscriber data in the database Thanks. The IDesign Demo offers as persistent subscriber as well, if you downloaded the demo off of the idesidn site it should have came with it, including SQL scripts. Here's a link which may help: http://msdn.microsoft.com/msdnmag/issues/06/10/wcfess ...Show All
Visual C# Question related to string in C#
Sorry to ask such noob question at here if i got a string like this string ss ="4a0368"; how to convert this stings ss to byte[] test = {0x4a,0x03,0x68}; i am trying to use getbyte() but didn't work test= ss.getbyte(); or in short: how to convert a string ss2 = "4a"; to byte 0x4a in C# Thanks for your suggestion. byte.Parse( hexString.Substring(i*2, 2), NumberStyles.HexNumber ); This line solved my problem. Thanks and Regards ...Show All
Visual C# How to set breakpoints in other projects when current is using binary references
This is in VS 2003 I haven't tried to set debug points in other projects that are tied to this project. What I mean is, I am building my windows form, running it and would like to set debug points in a couple of other projects that this one is using a binary reference to. We are not going to be using project references, because it's our standard not to. So I am not just going to add the other projets inside this solution. I tried to open my other 2 solution files, tried to set breakpoints, then ran my current project but it's not stopping at the breakpoints I set outside this project, in my other 2 solutions. I know the code is htting those methods but it's not stopping at my breakpoints outside this one I'm runnin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Demos Released
Hi All, I've just started a new series of XNA demos on my website. So far I have 3 demos: XNA Per-Pixel Lighting Demo, XNA Normal Mapping Demo, and XNA Parallax Normal Mapping Demo. I haven't included any pre built executables with the demos, so you'll have to build them yourself from the source provided with each demo. The demos target the Windows platform, but should run with little or no modifications for the Xbox 360. I chose to only target Windows to reduce the complexity of the source code. The per-pixel lighting demo implements per-pixel Blinn-Phong lighting (including specular lighting). The normal mapping demo implements tangent-space normal mapping. The demo also shows you how to calculate the tangent space basis vectors ...Show All
Visual C# using App.config
hi! i already created my app.config but i cant seem to use it in my program.. how do i call the connection i had placed in it you may wish to look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=791689&SiteID=1 perhaps this will help you in some way ...Show All
Visual Studio 2008 (Pre-release) Is March '07 Orcas CTP worth downloading for WPF developers?
There apparently are WPF development tools in the new March CTP of Orcas (unlike the previous CTP). The download is >6GB :)! Is there enough improvement over VS 2005+Cider to justify downloading for WPF developers Here is Tim Sneath's blog article about this CTP, with a link to the download: http://blogs.msdn.com/tims/archive/2007/02/28/wpf-and-orcas.aspx Thanks, Alan I've spent a good bit of time with it since Thursday evening, and I would say that it's definitely worth downloading. Included in the new CTP is a newer Cider WPF designer than what you get in the .Net 3.0 extensions for VS2005. It also includes the LINQ to SQL O/RM designer, a preview build of the next team foundation server (with support for Conti ...Show All
Visual Studio Tools for Office Poor Performance of Smart Docs
Hi friends, I'm part of a development group that develops a large application using VSTO technology and Office 2003. I'm responsible for the integration into MS-Word (fun fun fun!). The application is quite finished but I run into some performace problems now... And they are quite strange... I have a timer that starts in the beginning of the ThisDocument_Startup event handler and ends at the end of this method. My problem is that my smart document loads in about 30 seconds (!) when my timer shows that my code finishes after only 5 seconds... I've ran some tests and I concluded that the more Dlls I use in my doc, the more loading time I get. This is one conclusion but it still doesn't really explain what is taking sooooooo long for Word to ...Show All
Visual C++ Drop-In replacement for the stock C/C++ preprocessor
Hi all, is there a way to 'seamlessly' replace the built-in preprocessor for cl.exe I know of other compilers which feature something like a seperately configurable complier driver. Is there sth. comparable for cl.exe cheers, aa The preprocessor is built into the front end (c1.dll), and it cannot be replaced. A preprocessor involves scanner, formerly called lexical analysis, (like Flex) and some parsing (like Bison), so Sam's suggestion still applies. If all you want to do is prepreprocess macros differently, then you'll need to write your own you preprocesor (that scans, parses, and outputs) that executes *before* c1.exe. ...Show All
Visual Studio Express Editions Clear FillRectangle
Hi, I would like to set the color red when the analog value is 100 but, once its set and the value has change I don’t know how to clear it. Can someone tell me how to clear the fill rectangle. Is this best way to handle it Ken If AnalogValue = 100 Then formGraphics.FillRectangle(Brushes.Red, 430, 10, 10, 5) End If No, but BackColor is. formGraphics.Clear will clear the whole of the form to the background colour. If you just want to clear the rectangle then try something like this: Dim formgraphics As Graphics = Me.CreateGraphics If AnalogValue = 100 Then ...Show All
Visual C# Strings
Hi there I am trying to connect to a SQL database, the default installation of SQL Express installed by Visual Studio Professional. Let me first say I'm coming from a VB6 background, so I know diddly squat about C#. You can consider me a classic case of VDU (Very Dumb User). My main problem is that I am trying to connect to the sql server by using a connectionstring. I am setting the value of the connection string as follows ConnecString = @"Data Source=[GD-MOBILE\SQLEXPRESS];Initial Catalog=PRISM_Test;Integrated Security=true" My problem is that the single backslash is converted to 2 backslashes, and I think this is causing the problem. How do I get just one backslash in there Thanks Carlos Hi pras ...Show All
SQL Server SEM v1.01 - Error Connecting to database, can't find PInvoke DLL dbnetlib.dll
I have an IPAQ 2795 and installed a program that emulates Enterprise Manager on a Windows Mobile Device called SEM v1.01 from Trianglepowers.com http://www.trianglepowers.com/ppc6700/Default.aspx I have installed the latest Net Compact Framework and service patches / updates I have installed MS SQL Mobile Edition I have installed Client CAB But I still get this error when I try to run the program. Can anyone suggest a solution Thanks After trying everything I could find in all threads and at other sites....it still gives me the same error. I have installed SEM v1.01 from Trianglepowers.com and I get this error when I try to connect. any more suggestions Thanks ...Show All
Visual Studio msbee not working
I'm trying to use msbuild with msbee to build a .NET assembly based on FX1.1. The following won't work for me (entered on one line): msbuild.exe myproj.csproj /p:TargetFX1_1=true /p:CustomAfterMicrosoftCommonTargets=MSBuildExtras.FX1_1.CSharp.targets I get: C:\mypath\myproj.csproj(1,1): error MSB4 075: The project file must be opened in the Visual Studio IDE and converted to the latest version before it can be built by MSBuild. MSBuild and the csproj are found in the path (I've also tried full path with double quotes for these and also the .targets file with the same result). What gives Any suggestions The problem is that this project is still a Visual Studio 2003 project, and not a MS ...Show All
Visual Studio 2008 (Pre-release) Application authentication on ServiceHost
Hi, I am programming a distributed application using WCF. The system consists of one console application implementing the Service Host and some client applications connecting to this ServiceHost and its services. For binding netNamedPipes is used. Does someone know, if the ServiceHost can find out the process name of client apps that are sending messages and using the services Well, that would mean that you would expand the trusted subsystem to the client - which is, at least from a security perspective, unacceptable. You cannot base security decisions on client provided data (i just assume you are dealing with security because you use the term "authentication" in you post title). ...Show All
Visual Studio 2008 (Pre-release) vnext with vb express
can vb express develop a progect of ADO next I can install vnext and generate the csdl,ssdl, msl file from database. However, I can't use vnext window application to develop the program. i find follow problem like I can't find the app.config in the model object project that should store the connection string. also, I can't use the syntax like Dim categories = From c In _db.Categories _ Select c _ Order By c.CategoryName is vs studio must use Updated: The August CTP of ADO.Net is supported on VB Express, can you be more specific about the problem you're facing If you open the samples solution in the directory like "\Program Files\Microsoft SDKs\ADO.NET vNext CTP\Sa ...Show All
