- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Hello, It's been a long time since I've done some polymorhpic programming and nowI'm struggling to get my head round it again Here's what I've got... an interface public interface INote { string note { get; set; } } I've 2 options dervived from this public class Disclipinary : INote … |
|
Hey guys, whats wrong with this? var sublistofsolutions = (from x in p.sol().Where( f => f.ps.Where(a => a.p.Location == location) select x); it keeps saying cannot convert expression type of Ienumerable to bool |
|
Hey guys, I'm struggling writing some linq. Basically I've got a search method which takes boolean values and decides what results should be included / excluded from the search. Eg Search (bool IncludeStatus1, bool IncludeStatus2, bool includeStatus3...) Now on the back of that I need to create a linq statement … |
|
Hi guys, I'm playing with storyboards and have managed to construct the fallowing based off a tutorial.... My delegate header file #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (nonatomic, retain) IBOutlet UITextView *label; -(IBAction) my_btn:(id) sender; @end implementation file -(IBAction) my_btn:(id) sender { self.label.text = @"updated!"; } Now with the … |
|
Hi guys, it's been a frustrating day so far, I've taken the week off to get to grips with Xcode and produce an application for the iPhone. Wishing I hadn't now! Anyway, I'm slightly stuck in my conquest... I collasped the "Scene" panel when storyboarding and now I need it … |
|
Hello, I've been playing around with some CSS in an attempt to grow my knowledge. Now, I've drafted up a design on paper and the idea was to have a login box on the right hand side. A sub menu in the middle and a fairly large title banner. So … |
|
Hi guys, I'm using the MVC 2 framework and have managed to mock up a website. I'm trying to demonstrate this prior to given the go ahead and make it full scale. I've got a "Persons" controller, this allows me to add a "person" to the application. I've got a … |
|
Guys, I've got an issue but I also dont know if its possible. I've templated (generic'd out a class that takes type T where T is a HtmlControl object ... [code] internal class Controller<T> where T : HtmlControl { public T locateControl(T t) { t.SearchProperties.Clear(); t.Find(); return t; } } … |
|
Hello guys, I'm trying to develop a application that calls another exe from my code base. The method to execute is pasted below... [CODE] private void mymethod(FileInfo file) { ProcessStartInfo startInfo = new ProcessStartInfo("jsmin.exe"); startInfo.Arguments = "<fulljslint.js >jslint.js"; Process p = new Process(); p.StartInfo = startInfo; p.Start(); p.WaitForExit(); }[/CODE] The … |
|
hey guys I'm trying to get hold of a StreamConnection [code] try { StreamConnection conn = ( StreamConnection ) Connector.open ( url ) ; } catch (Exception ex) { ex.printStackTrace(); } [/code] however when i do this i get the following error [quote] java.lang.ClassCastException [/quote] According to my know of … |
|
Hi guys, I've been banging my head all day with this I've got a regular expression and im trying to extract a menu from the html page source to assert within a test. For the life of me i can't get it to work correctly. Here's the page source: <span … |
|
Hey guys, I've got 2 tables... Computer Motherboard now computer has a FK constraint from Motherboards PK so I can no longer do a simple insert without having the motherboard present. That all works correctly. Now in my ADO I've got an insert statement on Computer which calls a stored … |
|
Hi guys, I've started learning SQL after spending several years in the industry. I've got a table defined ... [code] CREATE TABLE [dbo].[Computer]( [Id] [int] NOT NULL, [Name] [nchar](10) NULL, PRIMARY KEY CLUSTERED ( [Id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS … |
|
Hi guys, I'm trying to get to grips with ADO, so I've installed SQL server 2008 and made a database and placed a table called Computers in it. Now ive got the following class... [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.OleDb; using System.Data; using System.Data.SqlClient; namespace … |
|
Hi guys, I've got a C#.NET background and due to circumstances I'm trying to make a plugin written in VB.NET. I've created a new class project which gives me a DLL. This class implements a C# interface which all works. My only question is this... In my C# code I've … |
|
Hi guys, I'm dynamically loading a dll that I've written at runtime but for some reason I'm struggling to get the generics working. I keep getting the following error: [COLOR="Red"][B][I]Cannot create an instance of XmlPlugin.XmlPlugin`1[T] because Type.ContainsGenericParameters is true[/I][/B][/COLOR] Heres the code that's in the DLL that I'm trying to … |
|
Can anyone expand on why you get this error? |
|
Hi guys, I've got an idea but I'm struggling to understand perhaps how one would go about implementing a solution. Basucally I've got a .NET or more so C# UI that loads plugins using reflection. this all works fine but now I'm wondering if its possible to load the C# … |
|
Hi guys, Following on from my questions earlier about plugins I've got another stumbling block to get over. I've got an object say "Person". This person has 2 fields - age and name. This lives in the UI project. Now i've got a DLL that implements the following interface: [code] … |
|
Hey guys, Just wondering how I check for the space bar input...since my program doesn't seem to want to know when I hit the space bar..... It just outputs a space on the konsole window and then hitting enter makes a new line... cheers John |
|
Hey guys, I've got this code implemented below in my UI form... and calling it from another thread. On debugging the 'else' part throws an TargetParameterCountException... I'm clueless has to why... [code] public delegate void SolveDrawMaze(Cell aCell); public void SolveDraw(Cell aCell) { if (InvokeRequired) { this.BeginInvoke(new SolveDrawMaze(DoMe)); } else { … |
|
Is there an easy way to convert a simple integer into a boolean type? |
|
Hey guys, I'm uploading form data with a file so having to use the HTTPResponse and request objects provided by .NET. It's all going well but now I want to obtain progress. It would appear that HttpWebResponse.getResponse() actually uploads the file and waits for the response. Given that this is … |
|
I have almost finished my project and i am stuck on one part of the code, an error comes up saying "embedded statement cannot be a declaration or labled statement" I dont know what that means (the error part of the code is coloured red in the code section underneathe) … |
|
Hey guys, Is it possible to have Thread X do more than one thing half way through executing another task? I'm trying to learn more about threading, I understand multithreading and wait and resume but I was more after knowledge about whether I can use 1 thread to mimic the … |
|
|
can i know how to save a file name based on the user's input for example: Enter your name : Derrick then i save this input to a file .txt named derrick (derrick.txt) how can i do it? i only know how to use the rename() and delete() function...in the … |
Write the definition of a function printGrade , which has a char parameter and returns nothing. The function prints on a line by itself the message string Grade: followed by the char parameter (printed as a character ) to standard output . Don't forget to put a new line character … |
|
Hi Can anyone please tell me whether I can write a java program and start it in a way other that involves the command line? And not applets either. I want to start writting all of our company software in java, leaving behind c#. But the problem is I can … |
|
Hey guys, Is there a standard library for communicating with a USB device? I've got a smart card reader that works via USB, and implemented the PC/SC interface. To my knowledge and googling I've not been able to answer the question. Surely someone somewhere as written a library to allow … |
|
Hey guys, a long shot in the dark, but I've googled around for this and so far not promising! All the threads / pages / wikis etc I've read are all pre 2005 and state it can't be done yet. I can't find any information thats up to date. So … |