MichaelD!'s Q&A profile
.NET Development FileSystemWatcher Created Event Not Firing
One of our customers has a service that posts files to our FTP server at various times during the day. Rather than poll the folder for files every hour I figured the FileSystemWatcher class was perfect with the Created event. Where it falls apart is they issue a put command to create the file and my service doesn't get the event fire. If I log in locally and move the file to another folder then back into the original folder it parses the file and executes as expected. Does anyone know why the FTP server creating the file doesn't trigger the event the same way that Windows Explorer does I am running on Windows Server 2003 Standard and the FTP Server is IIS 6.0 Hi Simon, Sorry for ...Show All
Visual Studio Express Editions Simple Focus form problem
Well, I have been coming up with an error, but its not an actually error read by the program. I have the following code: Private Sub NotepadToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NotepadToolStripMenuItem.Click DAPM.notepad.Focus() End Sub End Class Well, when ever I compile and run the exe, and click notepad menu item, it doesn't focus on the notepad form. Well, could anyone please help this simple problem it actually does focus on the form, the form is already active. if you did this on another form and then said to make this other form focused() it would focus it. what part of the form do you want to focus on ...Show All
Visual Studio javac
Is there a javac task available for msbuild or are java builds already supported in msbuild I've written a somewhat experimental Ant task for MSBuild, which may give you access to everything Ant can do. Not that I've ever used it much myself, but it seems to work OK. ...Show All
Visual Studio Express Editions sounds
If you have a 3 wave-files: - theme.wav => backgroundmusic - explosion.wav => explosion - movement.wav => when a character moves I want that the theme.wav starts from the beginning and never end so a .PlayLoop(). But then I want that my character moves when an arrow-key is pressed. Ans if it plays it shouldn't interupt the theme.wav and you should keep hearing the backgroundsound. Same with explosion.wav. Please help me with eather a code sample or a good link for the beginner level. Don't use the same player for all of the sounds. SoundPlayer sp = new SoundPlayer(); SoundPlayer sp1 = new SoundPlayer(); SoundPlayer sp2 = new SoundPlayer(); BACKGROUND: sp.SoundLocation (or ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to Play Sound??
Hi there all, I am beginning my education in C++ and DirectX, and have developed my first Pong Game. It's in Direct3D, I managed to build it from scratch, no tutorials or anything (Other than the direct3d standard triangle tutorials). So now I have a working D3D Pong like game that works great. The only problem is I want a little .wav to play when the ball touches the paddles. For over a week now I have been pouring over code after code, tutorial after tutorial (including each directsound tutorial on this site) and nothing will work. All of them pretty much lead me to setup directMusic the same way, and when I do... I get an unhandled exception error when directsound init's. From what very very little I know about this error, I believe it ...Show All
SQL Server return top 5.... under specifcied dimension join another
Dear all, i'm working on this problem and see any one can give me insight: my MDX statement is to get a top 5 data from a cube with some dimensions.. should be pretty simple .. looking like this.. Select { [Measures].[grsamount]} on columns, non empty {topCount ([Distributors].[Distributors Groups].[Distributor Group ABC].children, 5, [Measures].[grsamount]) } on rows from [transactions] where ([time].[all time].[2006].[q2].[jun], [Transaction Status].[Status].[Settled], [Sales Office].[All Sales Office].[US]) This working fine and returns me a result like.. Distributor A, $1 Distributor B, $2 (assume there is only 2 distributors under Distributor Group ABC AND US office) However , i have to retrieve a dimension pro ...Show All
SQL Server SQL 2005 Service Pack 1 fails
Hi all, I know that this has been covered a few times and I have made sure that permissions are correct on all the files, however I'm still failing on SQL9_Hotfix_KB918222 I would like to post the SQL9_Hotfix_KB913090_sqlrun_sql.msp.log but either its too big for the forum to handle or the forum is having some problems. I would be more than happy to send it to anyone interested in helping out Thanks Mike Hi Sam Thanks for the quick response, I have not had time to revisit this issue. I will get you the info early next week. Thanks again for the help ! Mike ...Show All
.NET Development Fetch Network Bandwidth Usage
Hi I want to find out the network bandwidth usage. I have to create a dll that will give the bandwidth usage. Mani Here ;) http://www.codeproject.com/csharp/networkmonitorl.asp Best Regards, Rizwan ...Show All
Software Development for Windows Vista R
Hi there. Yesterday I have installed Vista rc2 (b. 5744) and I tried to install Alcohol 120 Software (virtual cd-rom emulation and creation). Installation seemed fine but after I restarted my system and logged on I had a serious problem - after a few second the screen started somehow "flashing" in blue and black (NOT the classic blue screen). The system did not react and after a few seconds of this flashing it restarted. This repeated a few times. Then I tried to run the system in Safe Mode but in this it did not even started, the error blue screen apperared for a second and the system restarted again. Finally I somehow found some memory repairing tool and after running this the system works OK. I hope this helps you to mak ...Show All
Smart Device Development Terminal services on ppc
Hi, If I start up terminal services client, i want that i automaticly connect to my server. Now I had to click on one of the recent servers and than 'connect'. How do I solve this so I don't have to click but automaticly connect to the server Thanks by advance grtz Hello, Is this: system.Diagnostics.Process.Start("\windows\mstsc40.exe","myprofile") Something that I would have to code OR is it something that I can execute in a batch or script file in Windows Mobile 2003 I'm betting that its something that I'd have to code, but am just looking to clarrify. Thanks, Kyle ...Show All
Visual C++ CFile Data Removal probs
Is There any short way to remove some lines from a file say there is a file called Hello.dat contains 5000 lines 1) In that i just want read first 200 lines 2) Preform some operation 3) remove them i.e. 200 lines if the operation is successful //This is the problem i.e. the third task Some efficient was i.e. without creating another file i.e. new file Sarguna Unfortunately, it seems the Operating System does not allow shortening of a file by removing data at the beginning. It only allows truncation of the tail. Therefore I think it is not possible to solve your problem without read and write operations (on the same or two files). But I would consider the following approach. The first value of your file should be reserved: i ...Show All
.NET Development Singleton and multithreading
Hi! I have a simple question: "Is the code below threadsafe " public class MyType { ... private static readonly MyType p_instance; public statict MyType Instance { get { return p_instance; } } static MyType() { p_instance = new MyType(); } private MyType() { } ... } In this post , I have written an example that guarentees safety of a singleton using a Mutex. ...Show All
Visual Studio 2008 (Pre-release) Custom Window
Starting to learn WPF so plz bear the newb question. For the login form of one of my WinForms applications, I used a custom window with rounded edges. I did this by creating a graphics path and setting the form's region to it in the Paint event. Now I'm migrating this app to .NET as an exercise in WPF, and hopefully to use as a proof of concept. Question is, is there a way to do custom windows with XAML Chris Yes, From the Windows SDK - <Window ... WindowStyle="None" AllowsTransparency="True" Background="Transparent"> ... <!-- Path and fill for speech bubble UI --> <Path Stroke="DarkGray" StrokeThickness="2"> ...Show All
Windows Forms Show control (not inherited from UserControl) in design time
.NET 1.1 Hi i have following class class Mybutton:MyControl { private Button _control; public Button control { get {return _control;} } public string AnotherProperty } } and MyDropDownn:MyControl, MyLabel:MyControl, and son and I have listbox (implementing ToolboxService),which contains many of classes (MyButton, MyLabel). I am using designer form to put there controls. Everything is OK with standard controls, but if I put there some of my classes, I would like to be rendered like specified control (MyButton should render as Button, MyLabel should render as Label). Is there any way to say desginer how to render my class Thanks ...Show All
Smart Device Development Keypad Control While Making Call
Hi! I have something in my mind whether are we able to do this. When we are chatting via phone, are we able to preset certain function (End call, Onhold call, etc.) when pressing our mobile keypad After clicking the keypad, the preset function will alert the other fellow that the chatter want to perform the preset function (such as Onhold the call). This is something like our phone conversation when we make a call, an answering machine will guide us throughout the whole conversation (such as press keypad for language selection, and etc.). Any ideas ...Show All
