windows

How can I change the entry point or perform a custom action first in a Windows Setup project?

I have a bit of a noob question about Windows Setup projects here. I've searched vigorously, but haven't yet found any answer. Basically, I'm building a Windows Setup project in Visual Studio 2008. As part of the project, I have custom actions for Install, BeforeInstall, etc. For this, I use a C# class library that contains a class that...

Windows: "netstat -e" for a specific adapter

In Windows, I want to get the statistics similar to that dumped out by "netstat -e". This commands spits out the data (bytes in & out) for all the adapters. How can I get similar information but for a specific adapter. Say if I have two adapters & both are connected, how can I specify (either using netstat or something else) to give me t...

How to determine if the currently logged-in user has been set to have roaming profile

How to determine if the currently logged-in user has been set to have roaming profile on the Domain Controller/AD machine. Environment = windows2003/2008 ...

Monitoring application/tracking memory

Hi , I would like to "listen" an application on windows. When i say "listen" i mean that i have an application and i want to monitor some data displayed in it ( so it could be about monitoring the memory of my process and just reading some adress ( similar to what game wizard used to do ). Any other idea is welcome Thx ...

Special characters won't work in MySQL (UTF-8)

So, I've had some issues while trying to come over from Latin1 encoded databases, tables as well as columns, and now that everything is finally in UTF-8, I can't seem to update a row in a column. I am trying to replace an "e" with an e with acute (é). But it gives me this: ERROR 1366 (HY000): Incorrect string value: '\x82m ...' for colu...

In Silverlight, how can I make a new pane appear when a button is pushed?

On my main window, I have several different buttons and fields that are already working. They are basically a calculator that hides the calculations from the user. However, I would like to add a button that says "How does it work?" and which slides a new pane in from the side when pressed. I am doing this on the Windows Phone 7 emulato...

can you put an asp.net mvc controller action in a windows scheduler

i have an asp.net mvc site and i have a controller action that emails out reports to people. I want to have this run on a daily basis so i am trying to use the scheduler on windows. As all i have is a URL, what is the best way of "executing" this url on a daily basis through windows schedular ...

Is there a counterpart of Mac OS-X filesystem bundles on Windows?

What I need is a directory which the user can handle as a single file in the Windows explorer. Does something like this exist? If not, what comes closest? ...

Are Apple platforms the only place Objective-C is a good choice?

If you are not developing for an Apple platform, are there reasons to choose Objective-C? I know of GNUstep (which I do not find visually pleasing), but what else is there? If you want to develop for multiple platforms, including OS X or iOS but also Linux or Windows, when might Objective-C be a good choice? ...

Does declaring a variable as "private" in C# protect the memory in windows from being accessed by a memory scanner?

My workmate always tells me that if we declare anything as "public" then it is dangerous because then any program can access that memory and that the solution is to use the "private" access modifier. I am wondering if this is infact true. ...

Creating a service for monitoring

As an exercise in both writing Windows Services and communicating with them, I've decided I want to try and write a service to monitor hardware performance on my machine, record it and report on it daily. I want to be able to query the service remotely and from researching this a little, I think I could embed a ServiceHost in there. Ho...

Archiving Docments

was wondering if there is .net open source Soultion for doing the following : -scanning papers -storing them in db with data -searching , viewing etc. windows /web is accepted thanks in advance ...

Customize Window Assert - disable button "retry"

Hello everyone, I'm using asserts in my C++ code. As you all know, when the assert condition is false, it pops up a window about the error with three buttons: abort, retry and ignore. I would like to have a solution of this two possibilities: - I would like to disable or delete the button "retry" from the windows that pops up - I would ...

Send document with default e-mail client

For example, when you click a link in your web browser, it automatically opens default e-mail client installed on your PC and fills that e-mail address in. I need to perform similar operation, but with file attachment. It will look like "Send file with default e-mail client" option in the software interface. Is there any API available f...

batch scriptfor XP to rename file and copy to new folder

Hi, All I have hundreds image files.i want to do 2 task with batch script. 1) i want to rename files with the name without '_' if any file have and moved it to temp folder. 2) if any file duplicates with file name then take it any of the file and moved it to specified temp folder. anyone knows how to do this ? Thanking in advance....

Port Visual Studio C++ to Linux

Hi, We have a not very complicated but big (i.e. lots of files) Visual Studio C++ Win32 Console written in C++0x standard in VS2010. It does not use any non standard code or anything (Hopefully!). I now wanna port it to Linux. Which way is the quickest way to do it? autoconf? old-fashioned make file? any other solution? ...

Repainting in a Windows Application

i have used two methods in windows application namely for event paint method name is Graph_Paint() and other event is for load Graphs_Load() and i am using scroll bars for that window when i drag the scroll bar it is repainting again and calling the method Graph_Paint() unable to see the correct picture of the graph. the first URL ima...

Difference between MBCS and UTF-8 on Windows

I am reading about the charater set and encodings on Windows. I noticed that there are two compiler flags in Visual Studio compiler (for C++) called MBCS and UNICODE. What is the difference between them ? What I am not getting is how UTF-8 is conceptually different from a MBCS encoding ? Also, I found the following quote in MSDN: Uni...

Run my program asUser

Windows 7, Vista, Server 2008, UAC is activated Program must be stated with admin rights to make some installation actions. After that I want my program to continue work with non-admin rights. How can I restart it with not administrative rights? P.S. My program reinstall itself. I don't want distribute any additional programs for ...

How bad is it to open a new Form using System.Timers.Timer?

My c# WinForm application uses the Elapsed event of a System.Timers.Timer to open a new form. It was pointed out to me (in an earlier question I posted on a different topic) that this was a bad idea; it was suggested I use System.Windows.Forms.Timer. I've changed my code in response to this suggestion and my application appears to work;...