I need to capture particular windows of 3rd party process. I can find main window handle as Process.MainWindowHandle, but what I can use to list other windows?
I am using C# / .NET
Hello, I'm trying to Start command promt process with args. Now I want to obtain information about errors if they exist.
someProcess = System.Diagnostics.Process.Start(cmd, someArgs);
Best regards, loviji
When I build my solution, it complains about a missing referenced DLL. When I rebuild it, the problem goes away. Whenever I do a clean this returns, i.e. have to attempt a build twice before it succeeds.
This is vague, but if warranted I can give a better explanation of solution structure.
I am looking for an opinion on the whether to use Google custom search, Yahoo search builder or build my own for web projects (no more than 100 pages of content). If I should build my own - do you have any fast start kits you could recommend?
Many thanks
Chris
Can someone please point out where in the Visual Studio 2008 configurations I can set which .cpp files are used for a given build.
I'd like to use a different set(s) of .cpp files when I am doing a release vs.debug build.
Thanks!
Hi!
I have a gcc project and would like to automatically add defines for build date and revision number (from git) to my sources. What's the best way to do this?
My goal is simple to be able to do something like this on startup:
printf("Test app build on %s, revision %d", BUILD_DATE, REVISION)
For building I'm using make with a simple Makefile.inc, not autoconf ot anything like this.
Thanks,
Corin
Hi,
I'm publishing a ClickOnce application with VS2008, but before every publish I have to switch to Release config manually. This is fine as far as I don't forget to switch. Is there a way to prevent deploying debug builds ? Is there some compiler directive like:
#if DEBUG
#if ClickOnce
#error You cannot publish a debug build
#endif
#endif
Or is there a way (without build scripts) to automatically switch to Release config before publishing ?
(I've found some similar questions but didn't like the anwsers on them)
Thanks
Hi,
In Visual Studio 2008 we run a post build event which calls NANT and in turn creates our config files.
e.g.
if $(SolutionDir) == . GOTO end
nant -buildfile:$(SolutionDir)default.build create..web.config
Is there a way to run this only on ReBuild?
Thanks
I'm using Visual C# 2010 Express RTM with Windows Phone Developer Tools April CTP Refresh and when I run any Build option, nothing happens. I've deleted the contents of the build output folders and that doesn't do anything. I can't even run the project, because it complains the executable is missing (XNA Game for Windows project). I've tried the project on another computer and it builds just fine. Any ideas?
I have a method, which I wish to execute on the UI message pump and thus do the following:
private void SomeMethod() {
BeginInvoke(new MethodInvoker(MethodToInvoke));
}
private void MethodToInvoke() {
// This method contains code that I wish to execute on UI message pump.
}
Now, the above works just fine when I create a Debug build of the project. However, when I create a Release build, the "MethodToInvoke" method does not get invoked.
Does anyone have any idea why this might be?
Thanks, Elan
What is the technical difference between a process and a thread? I get the feeling a word like 'process' is over used and there is also hardware and software threads. How about light-weight processes in languages like Erlang? Is there a definitive reason to use one term over the other?
The System.Diagnostics assembly is part of the Silverlight CLR framework, but it only includes classes related to debugging, the Process class is not available. Is there any other way to start an outside process from a Silverlight application?
Hi there, does anyone know how I can have the post build action execute without doing a build?
There are loads of xcopy commands and it would be nice to use them on their own... but you cannot put them into a separate cmd file because of all the VS macros.
thanks
Kris
I'm following a tutorial to set up a skeleton application for tomcat :
http://maestric.com/doc/java/spring/setup#build_files
But I don't understand how build.properties and build.xml actually works.
I have a big solution with more than 40 projects. Almost half of them are test projects.
In my project we use both Code Contracts, Code Analysis, Style Analysis.
I want to be able to build the projects that are not dependent in parallel on my quad core CPU.
How can I setup msbuild to build the projects in parallel?
I'd like to hard code the build date into my application (DD-mmmm-YYYY), but how do I embed this constant into the code?
I thought perhaps I could make a pre-build event that executes a *.bat file that updates a textfile which is resourced, but it sounds pretty involved. What's the best approach?
Hi volks,
I copied my sources from my lokal dev (everything works fine) to my repository and from there I did a checkout on my remote dev.
Now when I try to build everything I get this error:
devel:/var/www/myproject# ./symfony
doc:build-model
doctrine generating model classes
file+ /tmp/doctrine_schema_48726.yml
Warning:
file_get_contents(/var/www/myproject/lib/model/doctrine//base/BaseAdvert.class.php):
failed to open stream: No such file or
directory in
/var/www/myproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php
on line 77
Do you know what the problem could be?
Thx for your answers :)
I have a nightly team build that is reporting errors from the test step but zero errors in the summary. This results in a partial success.
I cant see any errors in the full build log but maybe it's just the quantity of warnings??
Anyone got any ideas?
Thanks
I am just starting off with C#. I managed to get a list of running processes and getting a particular process ID. Can someone tell me how to get a list of files that are opened by a given process ID?
How do you keep your build version number for a war file ?
in ant, in maven?
is there a way to simplify things?
also, how do you keep your change log? [ie so that version number could tell how newer version changed since the last build] ?
After some searching in google and wikipedia, I still can not get a clear image about the "difference" between
BRMS (Business Rule Management System) and BPM (Business process management)/workflow system.
can those two concepts do the same thing from each other? (theoretically)
A "rule" can be modeled as a "process" as well. isn't it?
Are there any good reasons to modify your projects build output path from its default of "bin\debug"? Is there any benefit to pointing all your projects within a solution to a common build output location?
How to automatically close process that uses more that specified amount of memory on windows.
Is it possible to specify some amount of memory (for example 1MB) and to run some executable file with those parameters? If process tries to allocate more than that amount of memory it should close and return some error value. Is there an easy way to do something like that on windows?
Excuse my English.
Hi
How to refresh a page every 10 minutes using php background process?
When i login to my account i can check my messages ,on setting timeout function the page reloads every 10 minutes but i need the process to run in background ,
After me logging in,.. if i receive some message i must receive a popup called hai you have a message from this sender