dependencies

In C++, how can I avoid #including a header file when I need to use an enumeration?

In my C++ header files I try to use forward declarations (class MyClass;) instead of #including the class header, as recommended in many C++ coding standards (the Google C++ Style Guide is one). Unfortunately, when I introduce enumerations, I can't do the forward declaration any more. Like this: //// myclass1.hpp //// class MyClass1 {...

What's wrong with my file dependencies?

I have a program using 3 header files and 3 .cpp files in addition to main.cpp. I'm using VC++ 2008. Here's the setup. All three headers are guarded with #ifndef HEADERNAME_H, etc. Also all three headers have corresponding .cpp files, which #include their respective headers. /* main.cpp */ #include "mainHeader.h" /* mainHeader.h *...

Thread pool with dependency support?

Does anyone know of a thread-pool like implementation for .NET that supports the following features: dependencies between tasks task priorities sub-tasks Basically I'd like to throw a bunch of tasks at this pool, with some inter-dependencies (ie. make sure task A completes before task B is allowed to start). Priorities would be used...

Resolving dependency in python between modules

Hi , I am a newbie to python. I do have two modules. Model M1 and module m2. From m2 , i need to refer m1 and m2 and m1 resides at two different locations in disk. When I am trying to import m1 before executing m2 , of course it's saying can't find m1. How I can point my interpreter to m1's location. Thanks J ...

Tool to remove unnecessary dependencies in a Java project

I have a Java project that currently has a lot of JARs in its libraries directory, which are all included in the resulting package when building. I know, however, that some of these libs are never referenced in the project. Is there a tool that can search for libs that are not referenced within the project? I guess there must be somethi...

How would you describe DSM in simple terms?

How would you describe DSM in simple terms? ...

CMake & CTest : make test doesn't build tests.

I'm trying CTest in CMake in order to automatically run some of my tests using make test target. The problem is CMake does not "understand" that the test I'm willing to run has to be built since it is part of the project. So I'm looking for a way to explicitly specify this dependency. ...

How to Create Visual Tree of Bindable Dependency Objects in Silverlight?

Let me explain the problem with an example: [ContentProperty("Questions")] public class QuestionForm : FrameworkElement { public QuestionForm() { this.Questions = new Collection<Question>(); } public Collection<Question> Questions { get; set; } } public class Question : DependencyObject { public static readonly DependencyPr...

Rails :dependent and :delete

Hello I am running Rails 2.0.2 and am unable to use :dependent => :delete in my AR associations has_many :items, :dependent => :delete I am given this error. The :dependent option expects either :destroy, :delete_all, or :nullify (:delete) I have be unable to find the documentation for :delete_all to see if it does what I want....

How to access command line parameters outside of Main in C#

I am writing a .NET class that needs to parse the command line of the process. I don't want to have a dependency between the Main() method and that class. How can the class access the command line? ...

Is there any way to prevent Boost.Build from recursively scanning header files for #include directives?

Is there a way to limit the header files that Boost.Build recursively scans for #include directives to a particular directory or set of directories? I.e. I'd like it to recursively scan the header files within my project only. I know that they external dependencies are not going to change (and being Boost and Qt they're pretty big). I en...

UserControl vs SurfaceWindow

Hi, I am trying to use values i declare inside a UserControl class to change things inside the SurfaceWindow class. Now what i know so far is that i have to use a DependencyProperty to get the value from the UserControl and then put it inside a public string. public string MapValue { get { return (string)GetValue(MapValue...

ActiveX dependencies in Access

I'm using the Crystal Reports Viewer 11 ActiveX control in an Access form (version 2007, 2003 format). Everything works well on my development machine, where I have CRXI installed. I copied the referenced DLL to the client's machine, but when I try to register it, it says "Can't find module" (I double- and triple-checked my spelling) a...

How do a specify a library file dependency for qmake in Qt?

Have a SomeLib.pro file that contains: CONFIG += debug TEMPLATE = lib TARGET = SomeLib .. Then in a dependent SomeApp.pro: .. debug:LIBS += -lSomeLib_debug .. How can I force SomeApp to build if I touched SomeLib in qmake? ...

How To Check Dependencies Between Jar Files?

Hi all, This is my first Q here :) I recently have taken the support and programming of a web system written in JSF. The code is kind of messy and redundant, and yes, no documentation exists. The system has over 40 jar libraries, and most of them are redundant due to old versions and testing. To remove one jar, I must check that it...

OracleDependency not firing event

I have an Oracle Connection to a ORACLE 10.2 database and want to listen for changes to a table. The user of the connection was granted the privilege "CHANGE NOTIFICATION". Listening is initialized with the following method: private OracleDependency SubscribeToTable(string tableName) { string sql = "select * from " + tableName; var...

How to disable custom validation method on condition

I use jQuery Validation plugin to ensure what user entered positive *cost_of_car* in first text field and positive *payment_amount* in second text field such what *cost_of_car * 0.4 <= payment_amount <= cost_of_car*: $.validator.addMethod("testMaxAmount", function() { return $("#cost_of_car").val() - 0 >= $("#payment_amount").val() ...

static library dependencies

Hello everyone, I have a static library (.lib file) on Windows platform, I want to know the dependent version of CRT library when the lib is built. I have no source code of the .lib file, any ideas? thanks in advance, George ...

Could not load file or assembly 'someProject' or one of its dependencies. Access is denied.

I am stuck with one asp.net error. My application work fine on development and test environemnt. But on production it give me following error. Could not load file or assembly 'someProject' or one of its dependencies. Access is denied. I need immediate help. ...

Maven: remove a single transitive dependency

My project includes a jar file because it is listed as a transitive dependency. However, I have verified not only that I don't need it but it causes problems because a class inside the jar files shadows a class I need in another jar file. I do how leave out a single jar file from my transitive dependencies? ...