kenniejaydavis's Q&A profile
Visual Studio 2008 (Pre-release) MSMQ bug...?
I have two applications that uses MSMQ for duplex communication, host and client. The host has an in-queue (Q1) where the client sends messages to the host. When a client sends a "register"-message, a new queue (Q2) is created by the host, where the client can receive answers from the host. The procedure in the client is like this: 1. Client connects to the hosts queue, Q1. 2. Client send a register message to Q1. 3. Client waits until Q2 is created with: MessageQueue.Exists( path of Q2 ) 4. MessageQueue.Exists( path of Q2 ) returns true. 5. Client creates a MessageQueue object (MessageQueue q1 = new MessageQueue( path of Q2 )) 6. Client registers formatter, eventhandler for ReceiveCompletedEvent. 7. Client invokes q1.BeginReceiv ...Show All
Visual Basic File.Exists and FileInfo.Exists fail to recognise existence of file
I'm having problems in accessing files that are newly created in a SharePoint location. I'm mapping a drive to a SharePoint share, and using the path as expressed through that mapped drive letter. However, when I try to work with a file that is created within that path, .NET's file system classes fail to recognise the file. Some observations: 1. FileSystemWatcher seems unable to respond properly to file changes within the path, and won't recognise that the file has been created. 2. File.Exists and FileInfo.Exists return FALSE for a file that exists. 3. Windows Explorer doesn't list the file when it's created. Pressing F5 will list the file. From then, .NET's .Exists method seems to work. 4. Directory.GetFiles and Director ...Show All
Visual FoxPro application and webdata interacting.
ok first off here is some info about my webserver: i dont no if you needed the information but maybe you do General server information: Operating system Linux Kernel version 2.6.17.11-grsechg Machine Type i686 Apache version 1.3.37 (Unix) PERL version 5.8.7 Path to PERL /usr/bin/perl Path to sendmail /usr/sbin/sendmail PHP version 4.4.4 MySQL version 4.1.21-standard cPanel Build 10.9.0-CURRENT 117 Theme cPanel X v2.6 ...Show All
Visual C# Unit testing C# classes
I'm using Visual Studio 2005 Pro for C#. I would like to unit test my C# classes. Is there an unit testing suite for C# For C++ classes, I've been using CppUnit Which Visual Studio components should I install in order to use the built in unit testing Are those components available on MSDN Univseral subscription ...Show All
SQL Server Selecting "like" records
This might be a simple question. I have a LIKE statement that is working fine, however I am not sure if something else is possible. I can pull all records on a query for a person's name with a parameter value of "MARTIN". It will also pull records for "LYNN MARTIN". However, what if I would like to have that search also pull "LYNN M MARTIN" Currently "LYNN MARTIN" is not finding "LYNN M MARTIN". When the end user wants to search on LYNN MARTIN and that is what they input, I want SQL to find all records that match LYNN MARTIN and also find records that HAVE LYNN % MARTIN. I hope this make sense I guess I need to build my select statement using a WHERE LIKE statement, but I am not ...Show All
Windows Live Developer Forums Turning Pan off
There are times in my application that I do not want the display to pan while holding down the mouse, i.e., moving a pushpin. How might I do this ...Show All
Windows Forms Control textbox, promtly
How I can limit textbox control So, when I must input decimal number, but, if I make mistake and input text or integer, system must alert me that I can input onli decimals numbers. I know for maskedtextbox. Dou you have another choice. Please help me and thx. one other way would be to implement a textbox keypress event, then check to see if the key pressed is a number, if it isnt, handle the event (cancel imput) private void textbox1_keypress(object sender, KeyPressEventArgs e) { if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar)) { e.Handled = true; MessageBox.Show("Only numeric input please!"); ...Show All
SQL Server Execute SSIS package without SSIS console
Hello, How can i do to execute SSIS package without SSIS console This can occur when you use a hosted database with your hosted web. thanks Coroebus wrote: Do you mean that i can execute a dts package from an aspx web page Yes. Search this forum for clues. You should use the Microsoft.SqlServer.ManagedDTS assembly A few links: ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.SQLSVR.v9.en/dtsref9mref/html/T_Microsoft_SqlServer_Dts_Runtime_Package_Members.htm ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.SQLSVR.v9.en/dtsref9mref/html/M_Microsoft_SqlServer_Dts_Runtime_Package_Execute.htm -Jamie ...Show All
Visual Studio Express Editions system date install date ect dates
basic simple thing I hope here please don't refer me to the shareware starter kit I am not interested in it what I would like to do is set a date after a button click event that I can reference to at a later time in my code to turn certain functions off after a set amount of time 30 days for example. if I could be pointed in the right direction that would be great thanks for helping ;-) :-) well, you would be surprised at the lengths people go in to avoid such limitation - they can implement a filesystem watch or something - simple app whipped up in .NET for example to see what file system changes have been made by other software. ...Show All
Windows Forms Custom control for time editing
Hello. I need to implement a custom edit control for entering a time in the format: Hours:Minutes:Seconds where Hours can be 0-65535, Minutes and Seconds 0-59. I need a spin control (up down arrows) like in the standard DateTime control as well. I want using msctls_updown32 spin control, 2 static controls for displaying collons and 3 edit controls with custom key down handlers. I believe it is like the Windows has its own control implemented. My problem is that i failed to find how i can create a window/control by the class name. Please advise how i can do it. Thank you. Tricky. You are going to have to coax the native code to register its window class using the RegisterClass() API function. It needs to expose a P/Invokable DLL entr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed DirectX10 on XP64
Hello, I am porting a C# app which uses DirectX from 32bit to 64bit. I downloaded the Aug 2006 SDK. I looked around and saw that in the folder: C:\WINDOWS\Microsoft.NET\DirectX for Managed Code There are many versions of the DirectX dlls, but there is only one version for x64, and that version is 2.0.0.0, which is DirectX10. I guess this is more of a request for a confirmation rather than a question. Is DirectX10 indeed the only version whose managed code dlls has been ported to 64 bit Or, put another way, if I'm going to use DirectX on Win64, does it have to be DirectX10 Thanks Native 64-bit development using MDX 1.1 is not possible as of now. You can develop the application in a 32-bit environment and ...Show All
Visual Studio Tools for Office Event Handlers and UDFs in the automation add-ins
Hi, Great ..thanks to this site for helping. I have an issue and have followed the following approach to create automation add-in. http://blogs.msdn.com/eric_carter/archive/2004/12/01/273127.aspx . and created following code using System; using System.Runtime.InteropServices; using Microsoft.Win32; using System.Text; using Microsoft.Office.Interop.Excel; using Excel = Microsoft.Office.Interop.Excel; using System.Reflection; using System.Diagnostics; namespace lnzv2 { [ClassInterface(ClassInterfaceType.AutoDual)] public class wsf { Excel.DocEvents_ChangeEventHandler EventDel_CellsChange; Excel.Ap ...Show All
Visual C# extracting data from comma delimited string
hi, im using c#, have a comma delimited string and i wish to split it. string example is: john smith, freddy, mark/,jones, john i don't wish to split where a comma is backslashed. any ideas thanks. andrej, your latest code gives me this: TechRepublic.com CNET.com News.com Builder.com john/ smith GameSpot.com any ideas ...Show All
Visual FoxPro Merge 2 text file
Hi... I have to text file. Can anyone advise how to combine 2 text file into one file using Visual Foxpro 6.0. Thank you. Hi, You can simply try with run copy file1.txt+file2.txt this will append the file2.txt to file1.txt otherwise you can try with create a table appe from file1.txt sdf appe from file2.txt sdf then you can export the file to a text file... Regards, Markish ...Show All
Visual C# confused with runtime error and compiletime error
class B { int32 x; } class D:B { int32 y; } B b = new System.Object(); //This statement will cause a compile time error. D d = (D)b; //This statement will cause a runtime error. I am really confused, I can't find out the differences between the two statements above, I think they are the same.Who knows why Any help will be appreciated. Without the cast, the compiler is able to detect at compilation time that the class objects are not compatible. With the cast, the compiler trusts your judgement and emits code that asks the CLR to convert the object. You should generally avoid casts unless you really know what you're doing. Note that you don't need to a cast to convert from a D object to a B ob ...Show All
