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

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

programmingisfun

Member List

Adam Toth
Gidjett
Albion Simon
mario.muja
alphaswoosh
David Sutherland
Joshizzle
awesj
Seppe001
tnsgod831
John06053
akeiii
jitendra badkas
PeterVrenken
Alexei Sobolev
MaX911
Bob22
GrindCrusher
Gamargia
J P R
Only Title

programmingisfun's Q&A profile

  • Visual C# overloading == operator in c# fails checking for null values

    Hi, I have developed one class called CProductInfo providing == and != operator features. I have one problem. When I use this class in my program, say CProductInfo product = null; and later, when i check for emptiness, if (product==null) it returns false as if the product instance is not empty. I tried various ways to eliminate this run-time error, but it just does not happen. Also I don't think there is use full tips on net for this. Can someone help Thanks in advance - Constantine <<<< THE BRIEF SOURCE CODE FOR CProductInfo IS BELOW >>>>>   using System; using System.Data; using System.Data.SqlClient; using MyDataLibrary; namespace ProductManager2006 {  public ...Show All

  • Visual Studio Express Editions ListBox auto srcoll down?

    How i can make the ListBox srcoll down auto or remain always as the new line thats added.. get what i mean :p try setting the selectedIndex to the last item by obtaining the number of items in the listbox items collection: this.theListBox.SelectedIndex = this.theListBox.Items.Count - 1; ...Show All

  • Visual Basic Web Application with 2003.net and MS SQL2000 view report for multiple user problem

    Dear All, i have facing with the View Report for multiple user problem. the Error message is "there is already an open datareader associated with this connection which must be closed first" I have search this problem in net. but can't find a solution for my case. My Web Application is done using 2003 .net with MSDE database. When i log in the Web Application alone without the second ppl login, i browse the report with more then two explorer at the same time, i won't face this error problem. But when more then two user log into the web application and browse the report at the same time. The error pop up for either one of the user. the application is running under dot net 1.1 version. any way can solve t ...Show All

  • Visual C++ how to convert CString to const char *

    hi, i have one function which returns CString object. i need to pass that return value to another function which accepts const char * i should not change any of the function signature when i try to convert from CString to const char * it is giving error message saying it is not possible is there any way to convert CSting to const char * plz help me thanks in advance is there any way to convert CSting to const char * Yes. There is a LPCTSTR operator defined for CString. const char* is LPCSTR. If UNICODE is not defined LPCTSTR and LPCSTR are the same. Your code should look like this: CString str; const char* cstr = (LPCTSTR)str; however, I would put it li ...Show All

  • .NET Development Help with TripleDES and RC2 cryptography.

    I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All

  • SQL Server Copy Database from 2005 server to another 2005 server.

    I'm getting the following error when trying to copy a database from one server to another. The specified @subsystem_name ('SSIS') does not exist. (Microsoft SQL Server, Error: 14262) A saw anther thread in this forum regarding this issue but it wasn't very helpful. Any recommendations on dealing with this issue The source server is running SQL 2005 Standard and the target server is running SQL 2005 Enterprise. Both servers are running Windows 2003 Server SP1. Any help would be greatly appreciated. Hi Jason, It sounds like you might not be running SP1 of SQL Server. In the RTM version of SQL Server 2005, you needed to install SSIS to make everything work. In SP1, we figured out how to get ...Show All

  • SQL Server Don't want to use cursors but no way around it

    During my long SQL-carreer I've managed to steer clear of Cursors. But now I have a project at hand where I do not see a feasable way to NOT use a cursor. From a pool of available numbers (IMSIs) I need to allocate new ones and add them to a batch table. In total there are three tables affected by the following SP. A batch table storing info on the batch, a table that contains the newly allocated IMSIs and a table holding all IMSIs with a state field to indicate that they are free or not. With in the WHILE loop I need to set the state from 'F'(ree) to 'A'llocated and I have no clue how to update the ImsiCursor. So two questions: Can this be done without a cursor How to update the State attribute of the current cursor location ALTER ...Show All

  • Windows Forms Window Application DeployMent

    I have a window application (VS.Net 2005).The size of application is 1.5GB.It contain a Data folder size of 1.43GB. I want to deploy (making setup file) this application.Please help me how will i thx. in advance To support 1.5 GB size files you will need plenty of disk space and RAM. Our max supported .MSI size is about 600MB. Other things you might be able to work around this are: Change compression to "for size" or "for speed" Set the build to "loose files" I hope one of these will work. ...Show All

  • .NET Development How to bulk insert in .net 1.1

    I have the following code to insert values from dataset to db How can I bulk insert following records in .net 1.1 OdbcConnection odbcConnection1 = new OdbcConnection(@"dsn=Mydsnname;uid=mydsnid;pwd=mydsnpasssword"); OdbcCommand cmd = new OdbcCommand(); cmd.CommandType = System.Data.CommandType.Text; cmd.Connection = odbcConnection1; odbcConnection1.Open(); for(int i=0; i<ds.Tables["Book"].Rows.Count; i++) { DataRow sqlRow = ds.Tables["Book"].Rows ; cmd.CommandText = "INSERT into TestBookTableTemp (Bookcode, Title,Description,sourceid) VALUES ( , , , )"; cmd.Parameters.Add(" ", (string) sqlR ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DirextX Version?

    The Readme file notes that DirectX Runtime XNA Game Studio Express Setup installs the current version of the DirectX runtime. The runtime is required in order to use the XNA Framework game API. Does this mean XNA stuido is using the October runtime and if I install the october SDK is it going to break anything Darkside wrote: Question still remains. Which version of the DirectX runtime and SDK is the Beta 2 running under October DX runtime updates. DX SDK is not required. Darkside wrote: is it safe to install just the october SDK with the Beta 2 Sure. Darkside wrote: noticed that under the tool options with the beta 2 that XACT is installed as well, so is this XACT from ...Show All

  • SQL Server Need an Expert Advice

    I am using VS 2003 and trying to add a web reference reportservices2005.asmx on windows 2003 server. I am able to do the same thing in win XP machines and works perfectly fine. now facing the problem with windows 2003 server. i need to run or render the reports(RS2005 version) from VS 2003. Pleeeeeease help. Lukasz, i noticed a problem with that, it is not even allowing me to add a webreference from my VS 2003 project to add a reportingservice2005.asmx this problem is only happening on windows 2003 server and it gives me the above message and logs an error under events (application log) if i am creating or trying to add a webreference on a win xp machine, it does'nt create that problem for ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA for VB.NET ?

    I want to ask, are there any chance for support VB.NET in XNA for the next time I develop only data base application using VBA or VB.NET. I don't like to change syntax, so I stay by VB, but I want to use 3D possibility in my application. XNA is good alternative for using direcX. Thanks simon The team has already indicated that support for other .NET languages is something they want to add. It will just take some time. You should be able to use XNA with VB.NET you just won't get the features available in C# Express (starter kits, content pipeline, etc). ...Show All

  • SQL Server Regarding Custom Code

    Hello I have report like this list1 list2 (includes in list1) table (includes in list2) end of list2 end of list1 Now I want to calculate the sum of one column in table when it contains particular value and I want to display in table footer . I already know using sum() fuction.I want to know using custom code calculation for the above problem( How Can I repeat my data set in Custom code function for each row ). So , If anyone knows Please reply. It's Very Urgent Thanks Have a look at these http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=541699&SiteID=1 http://blogs.msdn.com/bwelcker/archive/2005/05/10/416306.aspx ...Show All

  • .NET Development How to read the record data (byte array) while writing a Metafile (WMF/EMF) and edit it

    Hi! Need your ideas urgently! I have a metafile which I wish to convert to PDF on the fly. The idea is to create a metafile template with placeholder text, which will be parsed and replaced by user information at runtime before generating the PDF. When editing the metafile, I have progressed to the following steps: 1. Called the Graphics.EnumerateMetaFile() method, which calls the callback method (lets call it ‘Play’) 2. Called the callback method and obtain the record data public bool Play( EmfPlusRecordType recordType, int flags, int datasize, IntPtr data, PlayRecordCallback callback) { byte [] dataArray = null ; if (data != IntPtr .Zero) { dataArray = ne ...Show All

  • Software Development for Windows Vista Either ActivityType or ActivityName is required?

    I am trying to build a trackingservice and tracking channel and track userdata. after I add the service I am getting the error ' Either ActivityType or ActivityName is required'. if I dont add the service to runtime, workflow is running successfuly. what could be wrong Thanks I got one step further by doing the following , now the workflow will run. the send method is not called TrackingProfile tp = new TrackingProfile (); tp.Version = new Version ( "1.0.0.0" ); UserTrackPoint utp = new UserTrackPoint (); // Adding a user location to the track point UserTrackingLocation ul = new UserTrackingLocation ( typeof ( object ), typeof ( Activity )); ul.MatchDerivedActivityTypes = true ...Show All

©2008 Software Development Network