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

Software Development Network >> Suthy67's Q&A profile

Suthy67

Member List

sudharshansalvaji
VikasAgr
waruwaru
mikebk
Uwe82
Damien fromOZ
Peregrin
friendlywind
Skippy_sc
rgabel
Dan Rooney
TriciaPB
Han Qiao
SP534
jods
laiseng
arro239
Bhupathi Venkatesh
Krutika
Rothariger
Only Title

Suthy67's Q&A profile

  • Visual C# How to declare an array of arrays of struct?

    I am trying to build a cluster database that consists of 64 box records, and a master database that consists of 16 clusters (records). In my mind this is a two dimensional array of [64][16]. I have tried declaring these structures as shown below, but C# complains about the declaration of the master database trying to use the cluster database as a type, when it is actually a field. Can someone suggest a better way to define these structures public struct BoxRecord { public bool BoxEnabled; public string BoxNo; public string CustomerName; public string Contact1; public string Contact2; public bool SendMsgArrival; public bool SendMsgRetreival; public byte SensorRow; publ ...Show All

  • Windows Forms Using a Form app's classes in another app

    I have a Forms app and want to use some of the classes from it in another app. I created a Solution file with both apps as projects, added the source for the shared classes to both projects, and compiled both. The original app runs, but the new app throws a "Cannot find the assembly MyOriginalProjectName " exception. Wassup The source files should be stand-alone, without any dependency on either app. The original app is a .exe and the Add References dialog only accepts .dll files. How do I use the same source in two different apps When you add a reference, there are 5 tabs at the top, with .NET selected. Select Projects, and try adding the reference to the other project. -Scott ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Making XNA/Managed code secure

    What is being done to make managed code more secure for commercial applications. I can't see how any companies would be willing to switch to managed code for prime time games as long as MSIL can be easily reverse engineered. I love XNA and Managed code and pray that eventually commercial industry will as well (so I can put my C# skills towards gaming instead of business apps). Our company is already hesitant to make WinForm applications due to the ease in which these applications can be decompiled and reversed. This is an interesting question. Does the obfuscator linked above work with XNA Anybody tried it I know that the "Community Edition" comes with Visual Studio. But I'm not sure if in comes with the Express Editions. ...Show All

  • Visual Basic Fixed Width Text File Into SQL Database

    Any ideas on how to import a fixed width text file into an SQL database Write a conversion application which reads the values in from the text file. I'd suggest looking at the textfieldparser class http://msdn2.microsoft.com/en-us/library/zezabash(VS.80).aspx Then you can use ADO.NET to execute a Insert SQL Statement using the values read in from the text file. The following shows how a simple ADO.NET command object can be used to execute a SQL Insert Command http://samples.gotdotnet.com/quickstart/howto/doc/adoplus/ExecuteCommand.aspx Thats just the general idea of how to implement a solution.      Basically its breaking it down into two actions reading a line from the text file and updatin ...Show All

  • SQL Server Data Flow Task & Exception Join

    Hi, I need some suggestions how to achive the followings using Data Flow Task I have a csv file containing some logs from a different system. CSV file contains columns Code & ErrorMessage. I also have a SQL table called filters. This table also contains code column. I need to do the following two things 1. Get all record from csv file where code does not exists in Filters (SQL table) 2. Gell all record from csv file where code does exists in Filters(SQL Table) and ErrorMessage contains a specific keyword. I can add a derived column with the following function IsExists = FINDSTRING(ErrorMessage,"MyKeyword",1) which will tells me if MyKeyword contains in the message but I donot know how to filter IsExist ...Show All

  • SQL Server "Package Configurations" Problem

    Hi all, I have just set up my first deployment utility for the Integration services package i've been building. I seem to be getting problems with the package Configurations. I added an XML config file so that i could change the values of my SQL connection manager at deployment time. This was so that i could deploy it on both a test environment and the live environment. Any other variables can be changed in code by the calling application. As soon as i added the options for the sql connection manager and enabled package configuration i got errors when running the application: [Execute SQL Task] Error: Failed to acquire connection "InternalProductionData Connection Manager". Connection may not be configured correctly or you may no ...Show All

  • .NET Development Any CPU and Managed C++

    I have a C# smart client built using “Any CPU”, the application references a managed C++ assembly that I’ve compiled into both x86 and x64 dlls. Is there any way to redirect the assembly loader to load the correct dll given the client’s platform (apart from manually) Is there any way to configure ClickOnce to deploy the correct dll thanks, rich You are correct in your assumptions. As you already know there is no app config setting to redirect based on bitness. Also, you may bind to different assemblies at runtime than you built against. That include mixing 32bit and 64bit. In general if people are deploying any cpu entry points they are truly agnostic. Have you evaluated how managed C++ is being used Can you u ...Show All

  • Windows Forms filling ComboBox and Sorting, for null values to be at 1st index

    i have fillUp a ComboBox from database table column "Father Name " as by 1) creating dataSet "dset" 2) dset.Tables[0].Rows.Add(System.DBNull.Value); I accomplished the task which i wanted, that was insertion of empty row Now i wanted that empty row be at 1st position, i mean at index = 0, for that i did following step 3) dset.Tables[0].DefaultView.Sort = ColName + " ASC "; or 4)dset.Tables[0].DefaultView.Sort = ColName + " Desc "; but the empty row always looking last of all records even i sort dataTable Asc or Desc Any One can Solve My Problem Please Thanks ...Show All

  • SQL Server help pls: procedure 'LoginListInput' failed because 'LoginListInput' is a table object

    When I execute the script on my machine it works but when we send it to the client it gives the error: procedure 'LoginListInput' failed because 'LoginListInput' is a table object Here is my script: use mosaikDB737 exec sp_MSforeachDB ' use [ ] insert into mosaikDB737.dbo.SearchOutput1 select sk.loginname COLLATE SQL_Latin1_General_CP1_CI_AS as searchedTxt , object_name(id) AS ProcName ,Len(SubString(o.text,1, PatIndex(''%'' + ltrim(rtrim(sk.loginname COLLATE SQL_Latin1_General_CP1_CI_AS))+ ''%'', o.text)))-Len(Replace(SubString(o.text,1, PatIndex (''%'' + ltrim(rtrim(sk.loginname COLLATE SQL_Latin1_General_CP1_CI_AS)) + ''%'', o.text COLLATE SQL_Latin1_General_CP1_CI_AS)),char(13),''''))+1 AS Line, PatIndex(''%'' + ltrim(rtrim( ...Show All

  • Visual C# BYTE in a UNICODE world

    I am reading a binary file into a byte array. I need to spawn a process via ProcessStartInfo class and pass this byte array to this process via redirecting its stdin to my program. So far no problems. Unfortunately, the StreamWriter that is used to send input to the spawned process (the write () function of Process.StardardInput) is via a string and/or char which are both unicode (it actually has 20 overloaded functions for all kinds of data types but the two applicable to me are string and char []). The text I am tryinig to send to the program is decrypted messages in binary format which when translated from byte to unicode string or char[] is losing some of its high ASCII values (> 128). Is there a way to send a byte array (or a ...Show All

  • Visual Studio Express Editions What gives?

    I wrote this code for my program to create a directory. It looks like this: My .Computer.FileSystem.CreateDirectory( "C:/Documents and Settings/" + Environ( "USERNAME" ) + "My Documents/" + TextBox1.Text) and it wont do it... it just gives me an error that says that the file path isn't supported. Try this...it will return the path to mydocument of the currently logged on user and as long as textbox1 does not contain any illegal characters it will create the directory Dim MyDocs As String = Environment . GetFolderPath ( Environment . SpecialFolder . MyDocuments ) My . Computer . FileSystem . CreateDirectory ( MyDocs & "\" & TextBox1 . Text )   Edit: you ...Show All

  • Visual Studio Express Editions geting numeric data in and out of text boxes

    Hello, Summary: How do I set up text boxes so that when I enter numeric text in one box (named X_Test_Input) , it will raise events that the other box (named X_Accel_Raw_Value) will collect/consume and display the data in that second box. Overview: This is my first attempt Windows programming. My goal is to collect six numbers from an embedded device over Ethernet (five to ten times a second) and display them on my computer so as to have them available for further processing. In dividing this into small steps, I first want to be able to get values from somewhere and display that data. Only after I get the basic windows display part of this working will I attempt to get the data from the embedded device. In my ...Show All

  • Visual FoxPro Server 2000 v 2003

    Hi all, I'm working on a multi-user FoxPro product across a network. Up to recently we used a 2000 server and everything was fine. Since we've moved to a 2003 server we've ran into problems. We get 3 testers working on the same network tables and within a few minutes the application hangs and seems to lock the tables. The really frustrating thing is that it never hangs in the same area or on the one computer. Our error messages are very vague as well. Basically I was wondering if other people had problems going from Server 2000 to 2003. Is there maybe extra security or configuration in 2003 that 2000 doesn't have. Any help would be much appreciated, I have been doing tests on my app on 2000 Server, ...Show All

  • Visual Studio 2008 (Pre-release) Passing WindowsIdentity between services for use with Azman

    Hi all, The following scenario: a client connects to a service passing its WindowsIdentity (WI), e.g. domain\user, using wsHttpBinding. The service uses the WI for authorizing using Azman. The service depends on another service (which could also be called by other clients in different scenario's). The second service also has to authorize the WI of the initial client (domain\user). client --> service 1 --> service 2 | | AzMan AzMan Default, wsHttpBinding passes the WI of the 'intermediairy' service (the first service called, e.g. domain\network service) to the second service. This way the second service authorizes the service (domain\network service) and not the initial caller (domain\user). ...Show All

  • Windows Forms Form Opacity Changed -> Component not updating

    First of all I apollogise for reposting this, but apparently I haven't posted it in the right place the first time. I hope that by posting here I could get an answer. So here goes: I have created a form, and set the region of the form from a bitmap. On this form I have an PictureBox Component wich is updated by a timer. On the OnTimer Event I have some code that does the following things : Gets a region of the forms background and paints it on the control Gets 2 bitmaps from two different picture boxes and draws them on control Everything worked fine until I decided to add the possibility to change the forms Opacity at runtime. The form is shown with 100% opacity at runtime and everything works as it should. When I change the ...Show All

©2008 Software Development Network