- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
283 Posted Topics
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 { … | |
Re: Does this help? [url]http://forum.java.sun.com/thread.jspa?threadID=280745&messageID=1092147[/url] | |
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 … | |
Re: Try List<Button> buttons = null; | |
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 … | |
![]() | |
Re: your passing char, now which char is that????? , that could be a huge hint! See if you can get this one yourself, i've done the rest, so I'm sure you can work this one out from the others? | |
Re: Yeh compile it and use the *.jar file. All the java command does is compile it? Could be wrong here. | |
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 … | |
Hey guys, I'm coding a phonebook viewer using J2ME, now the following code appears to break when the hasMoreElements gets fired! The exception is a arrayoverflow type on. Not sure why though [code] /* * Midlet.java * * Created on 15 July 2009, 23:38 */ import java.util.Enumeration; import javax.microedition.midlet.*; import … | |
Hey guys, Is it possible for a J2ME application to access the devices phonebook? I've been googling but nothing much as turned up. John | |
Hey guys, I'm really puzzled about this error: [quote] Error 1 Feature 'generics' cannot be used because it is not part of the standardized ISO C# language specification C:\Documents and Settings\John Rudd\Desktop\dissertation\custom_plugin\myProtocolPlugin\myProtocolPlugin\Commands.cs 9 54 myProtocolPlugin [/quote] Generics IS supported, I've done it on more than one occasion in the same … | |
Hey guys, I've got a mobile application written which can browse through directories on the handheld device. This links to a C# application on windows via a usb cable (Simple phone cable). now i'm wondering how to go about transfering a file from the device over the serial conection and … | |
Hey guys, I'm trying to access the file system of a Nokia device which operates on Symbain OS 60. Is this possible with Java? I've googled around but can't seem to find much... Most likely my search terms. Could someone point me in such a direction? Thanks, John | |
Hey guys, I'm not sure where to post this but I've got some code written in C#. Now I'd like to talk to the device, I can't find any information on obtaining a connection to an S60 device. Could someone point me in the right direction please. John | |
| |
Hey guys I've got a Factory that can return a database writing object. It takes in a config file that points it to which class to create an object of. Now this is were I'm stuck. Factory -> returns a database writter now there's more than 1 way of writing … | |
Hey guys, I've got a multithreaded application done in C# but the label on one of my forms won't update! It doesn't do anything [code] public IndividualPCSpec(AllKnownDevicesFrm parent) { m_Parent = parent; InitializeComponent(); m_IPAddressLbl.Text = "HELLO"; } public void showInformation(ComputerHardware dto) { m_IPAddressLbl.Text = "HELLO WORLD"; this.Refresh(); this.m_IPAddressLbl.Refresh(); Application.DoEvents(); } … | |
Hey guys, I've got a multithreaded application. The GUI runs on its own thread whilst a background worker thread will get invovked later on. Now the problem occurs when the bakground thread trys to manipulate the GUI thread. Solution is a callback using invokeRequired. [code] public void ThreadProcSafe2(String text) { … | |
Re: you can get software from the manufacteur of your HDD or try the smart boot software that comes with your mobo | |
Hey guys, I've got a GUI thread, which creates a new thread to compute some data. Depending on how big that data is more threads get spawned from the new thread. My problem is this GUI - Thread A - Thread A creates a new Object called objectB. Object B … | |
Hey guys, I've found this article showing how to manipulate itunes using java and com objects. However I dont really understand how it works, and can't seem to tell java to send a play / pause request. The event listeners works. [url]http://www.workingwith.me.uk/articles/java/itunes-com-with-java-and-swing[/url] Could someone try and expand on this? Or … | |
Hey guys, my main thread seems to stop when i start 2 new threads and start them off. It sits and waits for the 2 threads to finish. The two threads are created off a factory class. Is this why? Its not created in the GUI class? Cheers. | |
Re: kaleeswaranm please read the rules.. We don't do other people's homework!! | |
Hey guys, I've an issue when it comes to multithreading i seem to get this error after updating a variable... [quote] Cross-thread operation not valid: Control 'progressBar1' accessed from a thread other than the thread it was created on. [/quote] Basically I'm trying to use a progress bar indicator to … | |
Re: Woah!! Woah!! Woah!! First things first, don't catch Exception unless you really need to! Exception will catch *all* exceptions. I'd rather create my own exception class which inherits the base class. Then you can catch that one! | |
Hey there, I'm quite new to C# but have an extensive background in Java so I know all the basics and perhaps more. But I've found i'm struggling with C#'s answer to dynamic binding at runtime. Whilst Java can take a namespace entry from an interface and turn it into … | |
Whats wrong with this syntax? I can't figure it out for the life of me! [code] String str = ((String)result[i][1] ? (String)result[i][1] : ""); [/code] [quote] Error 7 Cannot implicitly convert type 'string' to 'bool' [/quote] its doing me trunk in :p | |
Hey guys I've got the following code drawn up. But it doesnt work has I wanted it to and can't figure out why. If the user doesn't exist or if that username has been disabled then the query should return -1 otherwise it returns 0. Now that doesn't happen. It … |
The End.