path

visual studio 2008 (c++) additional directories for debugging?

In prior versions of visual studio one could specify paths for DLLs when debugging an application. I do not see a way to do this is version (2008). Is this due to the move toward deployment of apps with all DLLs, etc in the application's directory(ies)? Am I missing something, or is there no way to do this? EDIT: It was in VC6 I thi...

Best way to test on different environments ?

I am working on a Java project which needs to work on both Mac OS X and Windows. There are many variables which store paths to various resources and files. Is the best way to deal with them, putting them all in a separate class (say, Constants) and maintain two branches for the file in SVN ? Update : It is not just an issue of path se...

Invariant stroke thickness of Path regardless of the scale

Hello! We are using wpf to develop a cad like application where drawings placed on the canvas using the Path object. I just ran into a slight issue that whenver i scale/zoom my canvas, all the elements in the canvas get scaled and this is the behaviour i wanted but this also increases the stroke thickness of the Path. Is there a way by...

Double backslash not work?

Hi, does anybody have idea why some windows XP installation would not evaluate path with double backslash in them? Error is found on some XP (same build, patches, unknown more details). In most everything works, on some PCs following doesn't work: Querying path (registry or folder) with functions like RegEnumKeyEx, fopen fails if path ...

When i save a folder in a location, its getting stored in a folder above

I import a file, process it and save it in some location. I am saving my file in a folder but it is getting saved in a folder above the folder selected. Here is the code, private void btnSave_Click(object sender, EventArgs e) { FolderBrowserDialog saveFile = new FolderBrowserDialog(); saveFile.ShowNewFolderButton...

Error: is not a valid virtual path.

I used something like Dim i As String i = Server.MapPath("~/photos/") + fileName Only once in a project that was working and online, on the offline version, when I run it on my machine, its working, no errors, I uploaded it, it gave me an error like: '~/photos/http://www.MyURL.com/photos/4411568359267Pic003.jpg' is not a...

Pathfinding 2d java game?

Hi all, First time on StackOverflow, keep see it coming up so thought id ask. Im currently writing a very basic java game based on the idea of theme hospital. I'm quite new to java, currently studying at uni and in my first year. I have done java for nearly 2 years now on and off, but I'm finally devoting my time to a decent project. A...

How do you escape a file system path for the iPhone?

Hey everyone, Is there a system library for escaping a file system path for iPhone development? I have to read and write files where the file name is based on 3rd party values so I want to make sure the paths I'm actually writing to are nice and safe. I would have thought there was an NS library that would do this for me, since this is...

Links pointing to absolute path

Is it a good practice that links should always point to absolute path rather than pointing from current directory? I am talking this with reference - where i need to maintain software and all its previous versions should always point to latest version. ...

Path to binary in C

How can I get the path where the binary that is executing resides in a C program? I'm looking for something similar to __FILE__ in ruby/perl/PHP (but of course, the __FILE__ macro in C is determined at compile time). dirname(argv[0]) will give me what I want in all cases unless the binary is in the user's $PATH... then I do not get the...

How to write relative unix path in xml

hi all, when i run a process in unix the path points to /abc/1/2/3 I am setting a property in an xml for a process which run in path. One property i have < property name="log.path" value="/abc/4/5"/ > Problem is that i cannot give absolute path("/abc/1/2/3") as above. i have to give something like "../../../4/5". < property name=...

Problems with project paths in Visual Studio

Hey, Im having problems moving my SSIS Projects to a new PC. At the moment I have all my Projects in C:\Documents and Settings\myname\My Documents\Visual Studio 2005\Projects But my .dtsx packages are located in a different folder. This folder does not exist on my new pc. So whenever I try open the projects on my new PC It complains i...

Why does IO.Path.Combine only take 2 arguments?

I'm surprised there's not an overload that can take a string array. Anyway, what is the best way to avoid nesting calls to Path.Combine? pathValue = Path.Combine(path1, Path.Combine(path2, Path.Combine(path3, path4))) This seems inefficient since it results in 4 new strings being created just to get 1. ...

silverlight access to file path

I have a Silverlight application and I need a way to find out the physical path for a selected file. Note: I know about security restrictions that obtaining the path is prohibited in client. I have in mind a solution but I am not sure it works: silverlight app is running in a page together with an ActiveX component that is allowed to d...

Delphi: Required package not found

I'm trying to build 3 packages, A, B and C. A defines some base classes that are used in B and C. I've got all 3 of them in the same project group, all set up to output to the same custom BPL output folder. This folder is in the search path for B and C. But when I go to build B and C, the compiler chokes on the Requires list. "Requir...

Controller Path in ASP.NET-MVC

How do I get the path of a controller? For example, I can get the path of a HtmlHelper like this: private static string GetVirtualPath(HtmlHelper htmlhelper) { string virtualPath = null; TemplateControl tc = htmlhelper.ViewDataContainer as TemplateControl; if (tc != null) { virtualPath = tc.AppRelativeVirtualPath; } ...

How do I apply targets to a sublist of projects in Ant?

I have a bunch of sub projects in various directories. I want to specify them as a list, then for a given target I want to go through each one, one-by-one and call subant. I've got something like: <target name="run"> <subant target="run" failonerror="true" verbose="true"> <fileset dir="${projectA}" includes="build.xml"/> ...

Getting directory path to .class file containing main

Is it possible to get the path to my .class file containing my main function from within main? ...

Is there a shorter way to require a file in the same directory in ruby?

Is there a shorter way to require a file located in the same directory (as the script being executed)? require File.expand_path(File.dirname(__FILE__) + '/some_other_script') I read that require "my_script" and require "./my_script" will actually load the script twice (ruby will not recognize that it is actually the same script), and ...

the shortest path in cycle directed Graph

i need an example of the shortest path of directed graph cycle bye one node (it should reach to all nodes of graph from anode will be the input) please if there is an example i need it in c++ or algorithm thanks very much......... ...