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

Software Development Network >> Michael Cummings's Q&A profile

Michael Cummings

Member List

fiaolle
Kamii47
el-chema
oniluap
Virtual Reality
VikasGoyal
rtayek
programmer01
FedorSteeman
sticky
OEIL2MOSCOU
jbreaux
Swisstopher
Can-Ann
Eddie Garcia
James_Steven
seco
Trisk2
rwerner
LouA
Only Title

Michael Cummings's Q&A profile

  • Visual C# Need some help - very confused about arrays and custom classes...

    This is a bit of my code to create & populate an array of class Card (this is part of a larger Class Deck which is creating it's own little array of cards. public Card[] deck = new Card[25]; public Deck(int numPacks) { int deckCtr = 0; for (int steCtr = 1; steCtr < 4; steCtr++) { for (int fceCtr = 2; fceCtr < 15; fceCtr++) { if (!(fceCtr == 15 & (steCtr == 3 | steCtr == 4))) { deck[deckCtr].setCard(fceCtr, steCtr); } } } } The highlighted portion generates this error: "Object reference not set to an instance of an object". I'm sure I'm just not creating my array properly, I can create an single instance of class Card no prob ...Show All

  • .NET Development XML workbook opens fine with Excel 2003 but has problems with the 2004 Mac version

    Hi everybody, I have a program that uses output from a statistical package and creates xml file to be opened in Excel. the result looks like: < xml version='1.0' encoding='US-ASCII' standalone='yes' > < mso-application progid="Excel.Sheet" > <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html='http://www.w3.org/TR/REC-html40'> <Styles> ... </Styles> <Worksheet> <Table>...</Table> </Worksheet>" Everything works on my computer (Offic ...Show All

  • Visual Studio Team System CTP6 Download Location

    We are happy to announce the availability of CTP6 of Visual Studio Team Edition for Database Professionals. Before you installing CTP6 you have to uninstall ALL previously installed CTP's. If you are using the CTP5 Patch , uninstall using the Uninstall link in your Start Program Files Microsoft Visual Studio 2005 Uninstall After that uninstall CTP5 using Add/Remove Programs Now you are ready to download and install CTP6. Please let use know what you think, -GertD "DataDude" Development Manager I'm trying to download the CTP6, but the link says "The page cannot be found" from every location I try. //Moltas ...Show All

  • SQL Server Newbie MDX Question

    Let's say I'm doing a fairly standard MDX query: SELECT {[Measures].[Revenue], [Measures].[Expenses], [Measures].[Profit]} ON COLUMNS, [Products].[Name].Members ON ROWS FROM [My Cube] This will show the product name on the row axis, and several measures along the column axis. What if I also want to get the product ID (numeric key) in addition to the product name in my query. How would I do that I suspect that a cross join would work, but there is probably a much better way. I'm using ADOMD.NET to process the results. Might this product ID already be embedded in the returned CellSet object As I said: "Assuming that you have attribute ProductName with numeric key and text name column". It is n ...Show All

  • Visual Studio Express Editions Setup and Deployment

    I have a program that I wrote using Visual Basic 2005 Express Edition, and I need to create self-extracting installer for. MSDN says to use the Setup and Deployment Template, but it is missing from the File-> Add-> New Project area where the rest of the templates are. I have been unable to download a template from Microsoft or anywhere else for that matter, what are my options The express system does have the ability to deploy programs, you need to use the clickonce methods. If you want to make a seperate msi installer you will have to purchase a third party product or one of the main stream Visual Studio Products. If you do want to use the click once system you can post your questions in the ...Show All

  • SQL Server Edited

    edited ...Show All

  • Windows Forms Unable to move the position of custom control during design time

    Hi, I developed a WebCustomControl in c# 2003. Everything is fine but when I am trying to use this in VS2005 the control is not moving during design time. Actually it is locked. How to remove the lock for webcustomcontrol that was built in 2003. Or is there any way to make the control moveable through code that was developed on c#2003. Any help is really appreciated. I need it badly. Thanks, Sukanya. Sukanya wrote: Hi, I developed a WebCustomControl in c# 2003. Everything is fine but when I am trying to use this in VS2005 the control is not moving during design time. Actually it is locked. How to remove the lock for webcustomcontrol that was built in 2003. Or is there any way to make the control mov ...Show All

  • Smart Device Development CameraCaptureDialog on HW6965 will not set resolution

    The followign code does not successfully take igh resolution (1280x1024) photos on an HW6965 (HW69xx) device. The code does work successfully with an iMATE JASJAR. The requirement is to take full resolution photos. The device supports resolutions of 1280x1024, 640x480 , 320x240, 160x120 in the HP Photosmart software. Any assistance or suggestions appreciated. CameraCaptureDialog dlg = new CameraCaptureDialog (); dlg.InitialDirectory = "/Storage card" ; dlg.DefaultFileName = "file" + DateTime .Now.ToString( "HHmmss" ) + ".jpg" ; dlg.Mode = CameraCaptureMode .Still; dlg.Resolution = new Size (1280, 1024); dlg.StillQuality = CameraCaptureStillQuality .High; ...Show All

  • Visual C# Data structures in C#

    Hi, I need some advice on the data structures to use in C#. My need is to construct a something like a code syntax tree. what would the embedded data structures in C# to use so as to ensure memory optimisation and run time efficiency currently, stacks/lists/ dictionaries are my choice of options. If any experienced C# developer would give me some sound advice, I would like to hear from you. Thanks I am already using Lists. should I build my tree using breadth first or depth first approach the choice of a stack enables depth first but the pop and push portion is rather taxing on the efficiency performance. do you have any advice or recommendations ...Show All

  • Visual C# FileStream.Read Problem with offset value

    i want to do a FileStream.Read on a file for my web service. Sample code below:- [WebMethod] public Byte[] GetDocument2(string DocumentName, int offset, int length) { string strdocPath; strdocPath = "e:\\" + DocumentName; FileStream objfilestream = new FileStream(strdocPath, FileMode.Open, FileAccess.Read); int len = (int)objfilestream.Length; Byte[] documentcontents = new Byte[length+1]; objfilestream.Read(documentcontents, offset, length); objfilestream.Close(); return documentcontents; } from the sample code above, if offset is 0 and length is any value it will runs without a problem but if i pass in offset with a value of more than 1 then it generate the exception below:- System.Argum ...Show All

  • .NET Development Asynchronous socket reading using BeginRead

    I have a question on reading data asynchronously from a socket. How do you know when all of your data has been received Below is a code sample taken from MSDN. This function will be called recursively until all the data is retrieved but how do you know when the last retrieval is Thanks Kurt private static void ReceiveCallback( IAsyncResult ar ) { try { // Retrieve the state object and the client socket // from the asynchronous state object. StateObject state = (StateObject) ar.AsyncState; Socket client = state.workSocket; // Read data from the remote device. int bytesRead = client.EndReceive(ar); if (bytesRead > 0) { // There might be more data, so store the data received so ...Show All

  • Internet Explorer Development Tab Control

    How in a script do you control whether the URL references will : - update the current page - use a fresh tab - reuse an existing tab - or open a fresh IE page Thanks Greg, To reduce the opportunity for malicious behavior (think pop-ups, pop-unders, etc.), this is not something that can be done via script. It's left entirely to the user's discretion. Hope this helps... -- Lance ...Show All

  • SQL Server Deploying Reports in WSS 3.0 with more than one datasource

    Okay, now this is easy with standard report manager web pages using out of the box SSRS. But with WSS 3.0 integrated mode, it is not apparent to me. I have a report that uses a second datasource to drive a parameter choice. But when I look at the choices I have available to me in the Sharepoint document library for an .rdl file, it only allows one-to-one mapping to a datasource. So far my experience has been that without explicitly telling the .rdl report in the library to use a datasource, it does not just 'find it' as seems to be the case with the old Report manager application. I'm also experiencing some odd behavior in this CTP with parameter depth. Let's say I have a series of dependent parameters driving the report. So, we'll s ...Show All

  • SQL Server PDF Rendering bug

    We are trying to publish a group of financial reports using SQL Server Reporting Services. We have hit a snag when we try to render the reports in PDF format. The leading spaces of each line are stripped in the output file. For example: Department 10.7240 - ICU Expenses SubDepartment -------- ------------- 1,200 100 454 150 Becomes: Department 10.7240 - ICU Expenses SubDepartment -------- ------------- 1,200 100 454 150 Does anyone know a solution for this problem By the way, we did upgrade to SP2. That did not correct the problem. Thanks for the information. Actually we are moving a fully formatted report from an old DEC Alpha system to .pdf ...Show All

  • Windows Forms delete all selected rows in DataGridView

    I have code for delete selected rows: private void bindingNavigatorDeleteItem_Click( object sender, EventArgs e) { foreach ( DataGridViewRow dr in dgwListSale.SelectedRows) { dgwListSale.Rows.Remove(dr); } } but this all right if selected not all rows in dgwListSal , else i have exception: System.InvalidOperationException was unhandled Message="Uncommitted new row cannot be deleted." I changed code: private void bindingNavigatorDeleteItem_Click( object sender, EventArgs e) { foreach ( DataGridViewRow dr in dgwListSale.SelectedRows) { if (dr.Cells[0].Value.ToString() != null ) //Cells[0] - primary key dgwListSale.Rows.Remove(dr); } ...Show All

©2008 Software Development Network