Daniel15's Q&A profile
Visual C++ split delegate in to array and using each element...
delegate void myDelegate( int i); ref class funcs{ public : static void func1( int i){Console::WriteLine( "func1 printing value: {0}" ,i);} static void func2( int i){Console::WriteLine( "func2 printing value: {0}" ,i);} static void func3( int i){Console::WriteLine( "func3 printing value: {0}" ,i);} }; myDelegate^ myDel = gcnew myDelegate(funcs::func1); myDel += gcnew myDelegate(funcs::func2); myDel += gcnew myDelegate(funcs::func3); int myTestInt = 23; This works just fine: myDel(myTestInt); But why does this not work and how do I get it to w ...Show All
Visual Studio Team System Web tests recording is disabled.
VS2005TS RTM. When I start a new webtest VS automatically launches IE and I have to activate IE windows myself. The recorder buttons are all disabled (grayed) and surfing around does not result in anything in the project. If I close IE, VS still report "Recording in progress" and I have to click "Stop recording" but nothing reports to the project. Beta1 did work but I had the same problem with CTP August. Hi, can you let me know if there was a resolution to this I'm also having this problem. Darren ...Show All
Smart Device Development SqlCeResultSet Help
Hey everyone, I have a VB2005 project with a SQL Mobile datasource. I'm trying to use SqlCeResultSet to return a list of records to a datagrid to solve some speed issues, but I think I have a problem with my code: Dim cnWorkOrders As SqlCeConnection = Nothing Try cnWorkOrders = New SqlCeConnection( "Data Source =" + """\Program Files\PWO\WorkOrders.sdf"";" ) cnWorkOrders.Open() Dim cmdSearchCust As SqlCeCommand = cnWorkOrders.CreateCommand cmdSearchCust.CommandText = "SELECT * FROM tblCustomers WHERE SUBSTRING(CustName, 1, 1) = 'A'" Dim rsCustome ...Show All
Windows Forms How to add context menu action to custom file type in Windows Explorer
Can someone please tell me what I would need to do in order to add a custom action to the context menu when it is right clicked in Windows Explorer I have a windows forms 2.0 app that integrates with a third party records management tool, and allows to perform a number of actions on records in the system, one of which is to attach documents and other files to the record through our custom interface. What I want to be able to do is to allow the user to select one or more files in Windows Explorer, and then click "Attach to Record" to run my app (if it's not already running) and attach & upload the selected files. Is this an extr ...Show All
Smart Device Development infrared!
Hi. I want to be able to send data (hex codes or whatever) using the infrared ports. I have imported the System.Net.Irda reference and able to access the IR classes. However, I do not wish to connect to a device but rather send data. The device I am sending data to will be a dumb device really, just as a "reciever"... this can be a remote control recieving box or a TV IR reciever for example. IS it possible to do this how I cannot seem to find a way in the .NET classes as it seems you have to connect to the destination then write data to the stream. Thanks! You will not be able to communicate with a TV IR receiver through your standard ...Show All
.NET Development thread question
How uses (Thread) to invoke a function System.Threading.Thread dt = new System.Threading.Thread(my function ); dt.Name = "dt"; dt.Start(); How uses Thread to invoke a function ...Show All
Visual Studio 2008 (Pre-release) Problem with transitivity for Composite design pattern
Hello! I'm trying to do a straight forward implementation of the Composite design patten. I have code like this: Composite compositeRoot = Composite .Create( "Composite 1" , "Composite Property 1" , Primitive .Create( "Primitive Q" , "Primitive Property Q" ), Composite .Create( "Composite 11" , "Composite Property 11" , Primitive .Create( "Primitive 111" , "Primitive Property 111" ), Primitive .Create( "Primitive 112" , "Primitive Property 112" ) ), Composite .Create( "Composite 12" , ...Show All
Software Development for Windows Vista Travel Example Application can't be built.
Travel Example Application can't be built.The mistake is :Error 2 Compilation failed. the value can't be null。 Parameter name: name C:\Windows Workflow Foundation\Examples\TravelDemo\2006-03-31\TravelApplication 0 0 hello, pls install workflow foundation beta 2 or 2-2 and winfx components 3 -beta 2 ...Show All
Smart Device Development A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
Hi, I am getting a problem when debugging an application to my pocketpc device on VS2005, every time there is a call to get a recource below: base .Image = ( Bitmap ) global ::MyApp.Properties. Resources .ResourceManager.GetObject("imageName"); I get the following error(s) in output.. A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll I have read a post which was about a ...Show All
Visual Studio Displaying Images in the Reports
I have students information saved in my database. I designed approprirate report format and inserted the databse fields as per required also. But my complication arose when I tried to display the images or photos of the students. The task I want to do is print the certificate of the student with their printed photo in it. Help me please. ...Show All
Windows Forms Multi lingual data in Datagrid
I have access database that contains messages in multiple langgages. When I open Access database table it shows foregin language letters correctly. But when I display it in datagrid..all I can see is garbage charcters. How to fix this issue. .Net supports UTF16 . Dose datagrid supports unicode I have had this same problem and it seemed like there was no easy answer. I solved it by adjusting the regional settings on my machine. Control Panel - Regional and Language Options - Languages Tab check the boxes to install files for complex script and east asian languages Now my application correc ...Show All
Smart Device Development WM5 emulator - debug ActiveX controls hosted within Mobile IE?
I'm trying to debug an ActiveX control that's being being loaded by an HTML page in Mobile IE. I've managed to connect to the 'iexplore.exe' process on the emulator, and the "modules" window shows that symbols for my OCX have been loaded, but I can't set any breakpoints in my source code - VS2005 says "This breakpoint will not currently be hit. No executable code is currently loaded at this location." Is there any way I can get these breakpoints set Alternately, is there a WM5 version of the "ActiveX Control Test Container" that I can try to deploy to the emulator and use to debug my control ...Show All
.NET Development Remove table from xml file after a condition is true
Hi, Im trying to remove a table form an xml file. I keep getting an error in the console which says: Cannot find table 0. Made a dataSet: DataSet xmlFile = new DataSet (); xmlFile.ReadXml( "test.xml" ); Im iterating though the xml file like this: foreach ( DataRow dateRow in xmlFile.Tables[0].Rows) Im declaring the date as string and putting them in an array like this: string date = dateRow[ "Date" ].ToString(); DataRow [] tempXmlFileRows = xmlFile.Tables[0].Select( "Date = " + date); After a condition is true, this is how im trying to remove the table: xmlF ...Show All
Microsoft ISV Community Center Forums Business Scorecard 2005 Installed - Just cannot connect to Analysis Services database
Followed the readme for installation step by step. Installed the Server and the Builder on the same machine - db is SQL Server 2005 April CTP. - Will the Business Scorecard work with the April CTP - Launched the BS Builder and when trying to connect to a ADOMD.NET datasource, in server specified the <Servername>, the database dropdown always comes blank.....error "could not connect to data source" (Analysis Services is running, The AS 2005 instance has 2 databases, one a result of my successfull cube deployment) Checked the known issues with SQL 2005, could not find a soln... A quick help would be great.... Regards ...Show All
Windows Forms Curious about security architecture in TaskVision
I am fairly new to web services security. I learned a lot from the authenticationTicket method used in Task Vision and have even started plugging it in to a pre-existing Windows Forms Client/ Web Services Data provider app that I deployed a few months ago with lame security! I wonder (and forgive me if I missed this in the documentation) about the  ...Show All
