Software Development Network Logo
  • Visual C#
  • Visual FoxPro
  • SQL Server
  • Audio and Video
  • .NET Development
  • SharePoint Products
  • Microsoft ISV
  • Visual Basic
  • Windows Vista
  • Visual Studio
  • IE Development
  • Smart Devicet
  • Visual C++
  • VS Team System
  • Game Technologies

Software Development Network >> Jake H's Q&A profile

Jake H

Member List

Kevin Rodgers
KitGreen
MikeMinsk
lachlanj
dbdog
Mr Dave
Taitt
Asday
ramesh_1031
Blast
Munish Gupta
Bernardo Piano
khawaja
Chandu Sujay
Rabbitrun
steal
figuerres
KSK
KompjoeFriek
EZ1976
Only Title

Jake H's Q&A profile

  • Visual C# DLL and Namespace question

    I am trying to publish a (my very first) dll for one of my C# applications and am a bit confused about the need for my customers to include MY namespace in their applications. Specifically, when I developed my dll (project output = class library) I generated a namespace called "mynamespace". So, when one of my customers uses my dll, would the customer need to rename his namespace "mynamespace" to access the methods in the dll I ask this because I have tried creating a test project that includes my.dll in its references folder. However, unless I change my test.cs program's namepace to "mynamespace" I cannot access the methods inside the dll. I have also tried "using mynamespace" but cannot access the dll. Can someone enlig ...Show All

  • .NET Development RegEx MatchEvaluator, how to write a oneliner?

    I'm working off the help here for examples and struggliong to understand how I can convert it's multiline example into a oneliner. I'm more used to Perl ;-). Here's some code fro example that works: string First3(Match M) { return M.Value.Remove(3); } // defined in the class MyClass MyClass C = new MyClass(); // A class which has a method called First3 MatchEvaluator ME = new MatchEvaluator(C.First3); string S = Regex.Replace(sMonths, "(January|February|March|April|May|June|July|August|September|October|November|December)", ME); Now I want to avoid instantiating MyClass. I'm aiming at something more like this: string S = Regex.Replace(sMonths, "(January|February|March|April|May|June|July|August|September|October| ...Show All

  • Visual Studio Express Editions ERROR??? WHAT DO I DO???

    Hi Im new to C++ and i have Express I make this small project that has worked on other comps before, but when i do it on mine i get this error... Native' has exited with code 0 (0x0) Help Me Please Guessing: you've made a console mode program and you don't wait for user input. The program runs through main() and immediately closes the console window when it ends. Try starting your program with Debug + Step Into... ...Show All

  • .NET Development error: "there is already an open datareader associated with this connection

    Hello. Thank you for your help. I'm writing Win app using C#, the .NET is ver 1.1 In the app, there are timers, that when they elapse, they perform select query against MySql db. I get the above error when trying to fetch dataset using data adapter. da.Fill(ds) In order to solve it I tried: 1.To put the db access method in one class (dal class), and I created a lock on this method, so that there will be only one process accessing the db at any given moment. 2. I made sure that the connection is closed immidiately after finishing fetching the data. Nothing helps. I run out of ideas. T he error msg: ******* Exception Text ************** MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connecti ...Show All

  • Visual Studio Express Editions Serial port selection problem

    I'm not exactly sure how to phrase this question, but let me describe the problem.... I have a very simple little kit box which when connected to a serial port and RTS is turned on, it lights up an LED.   I have a ComboBox which when selected, goes out and enumerates the available serial ports: Module One Public cSelect = My .Settings.serSelect.ToString Public cPort As New IO.Ports.SerialPort(cSelect.ToString) For Each portName As String In My .Computer.Ports.SerialPortNames Form1.ComboBox1.Items.Add(portName) Next End Module Public Class Form1 Try cSelect = ComboBox1.SelectedText.ToString() Catch ex As Exception MsgBox(ex.Message) End Try cPort.Open() cPort.RtsEnable = Tru ...Show All

  • Visual Studio Crystal Reports Showing Empty Report

    In a C#, VS NET 2 Windows app I am trying to display a report made with CR which comes with VS 2005. When the form containing the report viewer opens, the report is empty of data in the dataset. I know the dataset is coirreclty filled, however. The form is very simple, there is only a report viewer - crv. crBizInvoice is the report form crBizInvoice.rpt dsBizInvoice is the name of dataset created and used in designing the form - dsBizInvoice.xsd This is the code in the form: public partial class rptBizInvoice : Form { SqlConnection conn; SqlCommand cmd; SqlDataAdapter da; DataSet dsBizInvoice; crBizInvoice crB; public rptBizInvoice() { InitializeComponent(); String strConn = sqlClass.getConnString(); conn = new SqlC ...Show All

  • Visual Basic Databases and Textboxes

    Part A How do I link textboxes to individual database records when the database has say fifty rows and fifty columns. The idea being to display and maintain a database with textboxes on a form that stand independent of each other that point to a specific spot in the database. Part B Once this is possible then .. To be able to manage this data based on years meaning... I would like to have this basic setup but I am able to have the database represent a set of data for a particular year and I would be able to choose to display data based on the year. Please, if anyone knows .. respond asap.. Thanks Shihan I will be more specific.. I have twelve months for the year (Rows), and f ...Show All

  • Visual Studio 2008 (Pre-release) accessing image pixels for images from siteoforigin

    creating a BitmapSource from a siteoforigin pack uri (pack://siteoforigin:,,,/asdf.jpg) in an XBAP app. my assumption was that i could access the pixels (CopyPixels) of the image since it was served from siteoforigin ... but i'm getting a SecurityException should this be working as a workaround, i saw another post that ended up using System.Drawing.Bitmap. Thanks, casey ok, ends up that CopyPixels works fine on the initial URI load, but PixelFormat.BitsPerLength was throwing the SecurityException ... so now i'm just hardcoding that value. but now the problem i'm getting is after doing some pixel manipulation, i put it back into a BitmapSource, and perform a ScaleTransform to end up with a Tran ...Show All

  • Software Development for Windows Vista Microsoft.DirectX.AudioVideoPlayback.Audio - File LOCK

    This is interesting and I really need some help please. While using this namespace to play an mp3 file, one might call this method. audioPlayer = Microsoft.DirectX.AudioVideoPlayback. Audio .FromFile(fileToPlay); You would then just call audioPlayer.Play(); Here's the problem: This object does not support playing a file from a memoryStream, but a physical file. So if your media is in a database for example, you must write the file to the hard drive and then play it. So far so good. However, once that file has played through this object and you direct it to play the "next sound", you CANNOT delete the first one! DirectX seems to keep a handle on the file you created. Thus, in a multi-sound application the temporary files ...Show All

  • Visual Studio Express Editions how do you autostretch a GDI drawing?

    If I stick an elipse on a form using GDI, how do i get it to resize automatically when the form is re-sized by a user (i need everything to stay proportional to the form size) You could do your drawing on a panel control that fills the content space of the form.  Then Height and Width properties would not include the titlebar and scroll bars of the form.     ...Show All

  • Visual Studio Express Editions system hangs?

    A search for related questions, etc. turns up nothing useful. Some time after installing MS VB 2005 Express Edition, my system started freezing up, requiring a cold boot every few minutes. So I uninstalled using the recommended tool. My system recovered 100%: no more freezing. Then I reinstalled. For now, things seem to go all right. My question, before it is too late to ask: how can I as a user _document_ these system hang-ups I checked the Event Logs, found nothing suspicious. Are there any monitoring tools Thanks in advance for your answer. stefaan dot meeuws at gmail dot com precisely: the mouse pointer freezes, the keyboard does not respond and the only thing possible is to hold ...Show All

  • SQL Server Identify which reports are running

    Is there a way to identify which reports are currently running Running with NOLOCK will prevent locking. However it will not protect you against changes to the database schema. We don't document them, so you will most likely be broken at some point in the future. ...Show All

  • Visual Studio 2008 (Pre-release) ServiceHost and Mutiple implementation

    I have a service contract with 2 implementation, something like [ ServiceContract(Namespace="xxxxx")] public interface IMyContract { [OperationContract] void Method1(); [OperationContract)] void Method2(); } public class MyService1 : IMyContract { ... } public class MyService2 : IMyContract { ... } and Service1 and service2 should be able to talk to each other. my question are 1. Can i host these two service together (such as put service1 and service2 in same .dll and hosted by same console app) 2. Can these two service talk to each other (such as service1 invoke service2.method1, service2 call service1.method2) 3. if above answer is yes, how to configure thanks advance ...Show All

  • Visual C# class design: protected fields

    I have two questions: 1.) Why am I not supposed to have protected fields in a class 2.) consider the following example: public class A { private int field; public int Field { get { // do some extra work here return field; } set { this.field = value; // do some extra work here } } } public class B : A { public B(int field) { // set the base.field here without doing the // extra work // of the set acessor } } If I do not expose the field as protected I would need to introduce protected SetField() and GetField() Mehtods for each field that avoid doing the extra work in the Public Property acessors What would be a good design for such a scenario Phil, I'm going to disagree with you here. I believe that the very ...Show All

  • Visual Studio Express Editions SortedList Strange Behaviour

    Or maybe, just a strange coder The code is below. I have put two mark in where you should break. Also a Stop before where the problem appears. This code does run. If you iterate thru the breaks, you can see that the Tmp variable has the correct value at each iteration. The key is also correct. and the SortedList (Temp1, Temp2) show correct values at each break. But ... When I attempt to iterate thru the SortLists using For Each, every value returned is THE LAST VALUE inserted into the SortedList. This might be the last value entered in Temp1 or Temp2 (depending on which was the last one added). That is: both SortedLists seem to be pointing their 'value' to the same place in memory ( ) The keys are returned ok. It is just the ...Show All

©2008 Software Development Network