Dcoder85's Q&A profile
Visual Basic number of rows in a dataset
How do I find number of rows in a dataset I am using Visual Studio 2005 ignore my first response to my question. I finally realized all I had to do was substitue my variable name for the "MessageBox.Show" and it works perfectly. thanks again for your response. ...Show All
Visual Studio Express Editions Having problems installing Program on differnt machines
So, I wrote a program. and installed it on win98, and xp. but i have one or 2 pc's that just will not let me install it on. It gives me An error saying it could not download one or more of the files. needed. however the entire thing is there.. It does use .net 2.0 Any ideas Hi Enlikil, Can you give abit more detail please, like whats the OS, system spec (CPU, RAM) and as mentioned is the .Net Framework 2.0 installed Also can you either past the error message in or attach an image of it please. Thanks Scott ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is there a program that lets me view .fx files other than rendermonkey or FX Composer?
I can write my HSLS codes in notepad and save them as .fx files without a problem, but I cant view them, which isnt that big a deal, I guess. I tried to download RenderMonkey and my connection kept getting reset while I doin so. I was wondering if there are any other files that would do the same basic thing as RenderMonkey or FX Composer that are smaller files. Thanks! Well I don't know of any better tools for authoring FX files than RenderMonkey and FX Composer, but if you have authored your FX files in Notepad and simply want to view them, and if you have installed the DirectX SDK already, you can use the DirectX Viewer: http://msdn2.microsoft.com/en-us/library/bb219745.aspx If you have not alrea ...Show All
Visual C# C# 2005 ignoring STAThread attribute
Greetings. I'm developing a WinForms-driven application, and I need it to use Single Threaded model for COM interop. C# 2003 worked fine with [STAThread] attribute above main() declaration. But we just upgraded our machines to VS 2005, and our application is failing due COM errors. We found C# 2005 is creating the main thread as Multithreading model, regardless the STA attribute. Any idea why is this happening . Here is a snippet of our entry point code, not complex at all. Putting a breakpoint in the first line of main(), already shows the System.Threading.Thread.CurrentThread.ApartmentState as System.Threading.ApartmentState.MTA. #region Main /// <summary> /// The main entry point for the applica ...Show All
Visual C++ Question on including header files to project in VC++
The question might sound dilly but couldnt find a proper answer. I created a new project in VC++ 6.0 and included an existing header file into it but when I try to use it in a cpp file (also in the same project), I still have to include the header file specifying its exact location. I thought if i add the header file to the project, i can just write # include "xxx.h" in my cpp file and the header file would be automatically found. Instead I am having to write the path of the header file in the include. Am I missing something Thanks, KarthikR If the file you mentioned(header) is in same folder as cpp you want to include this header in, then # include "xxx.h" will work. xxx.h must be ...Show All
Windows Forms Data Entry Problem In Asp.Net 2.0
Hello there i have been suffering from a Problem Actually i have a form with Two Textboxes and a Button next to them.Now what i want is whater I Enter in Thoses Textboxes and press Button so data should be saved in Sql 2005 Table and why i have two textboxes because my Table has only two Fields i dont want to use Girdview niether Detail View i want to make manual Form like i used to have in Visual Basic 6.0 please reply me soon Thank in Advance. this is easily done. you need to: create your insert statement (SqlCommand) create, assign, and add parameters to the SqlCommand parameter collection open connection to database execute non query close connection. Be sure to import/use the System.Data.SqlClient ...Show All
Microsoft ISV Community Center Forums Does WER work for Outlook addins?
Hi, My company's product is an addin for Microsoft Outlook. It seems to me that WER is geared toward applications and drivers. It's unclear to me whether or not it's possible to receive Outlook crash dumps based upon the addin that (may have) triggered the crash. ...Show All
Microsoft ISV Community Center Forums Password question
Quick question regarding passwords in VBA I have created a form that requires the user to enter a password. It works fine but I dont want it to display the actual characters that the user is typing, I want it to display bullets. Any suggestions Thanks a lot! Select the text box in the designer, right-click, select properties...in the properties you will see PasswordChar and UseSystemPasswordchar, setting these changes the behaviour of the text box. ...Show All
Visual C# Stripping out \r\n\0 characters from strings
Hi, I'm very new to C# and VS2005, used to working with Pascal. I have a socket within a service written in C# such that when you send data down the socket the service picks up the text and translates it into a set of actions that the service needs to carry out. I am fnding that the text contains some hidden characters that cause problems in the program namely I can't recognise where the end of the string is here is an example code snippet: if ((szData.Contains( "check" ))) //& (socketData.m_loggedin == true)) { appLog.WriteEntry( "Check Command Received and Logged in:" +szData); replyMsg = "Check Command Received\n" ; int i = 1; char [] delimit = new char [] { ' ' } ...Show All
Visual Studio Team System Problem with source control (Data is Null. This method or property cannot be called on Null values)
Hi, VS hangs up during project loading. Re-getting the project from source control does not help. VS installation does not help either :( The following error in the server's event log: Edit: it does not hang. After a few minutes in unfreezes and says 'look into your server event log'. the project is open as source-control ounbound. TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 6/26/2006 12:48:55 PM Machine: VSSERVER Application Domain: /LM/W3SVC/3/Root/VersionControl-1-127957963704837131 Assembly: Microsoft.TeamFoundation.Common, Version ...Show All
SQL Server 2005Express trying to enable Full text indexing.
We have an installation of SQL2005 Express that was loaded via the "SQL2005Express with advanced services" download .exe. Full text indexing wasn't enabled during installation. It says to go to add/remove programs. Going that route when it goes to install FTI it says that it can't find the installation files in what looks to be the origonal "TEMP" folder created and removed during installation. If I run the program installer from the download again it states that SQL is already installed and to use "add/remove programs". We are stuck at this point. Is there an ISO available that could be burned to disk Thanks in advance. I just tried this out myself and it does appear to wor ...Show All
Visual Studio Express Editions Checking if text and combo boxes have data
This is not working. Could someone please help me out. If txtCreate.Text = "" Or cmbLeague.SelectedIndex = -1 Or cmbHomeOff.SelectedIndex = -1 Or cmbHomeDef.SelectedIndex = -1 Or cmbAwayOff.SelectedIndex = -1 Or cmbAwayDef.SelectedIndex = -1 Then ... give error Else ... do something end if always use the length property for textual input. if txtCreate.Text.Length = 0............'and so on as for the combobox's, what you have done is correct - but this is only if the selected item is not selected (the index) so over all, this should work: If Me.txtCreate.Text.Length = 0 Or Me.cmbLeague.SelectedIndex = -1 Or Me.cmbHomeOff.SelectedI ...Show All
Visual C# Heap or Stack
Hi everyone, I have a doubt about some allocation region. object obj = 3; At the above, is the "3" struct object are stored in the heap or stack In my opinion, since it is a struct , it must be stored in the stack. However, while reading a tutorial about this, it claims that "3" is stored in the heap. So I would like to ask why Menawhile, the passage from the tutorial; <quote> Boxing and Unboxing Value types (int, struct, enum) are also compatible with object! Boxing The assignment object obj = 3; wraps up the value 3 into a heap object </quote> Firstly, thanks for your replies. So can we say that we can only determine the memory region of any object by looking its pointers or the variable which hol ...Show All
Internet Explorer Development BUG in IE7 HTML table implementation
I can't seem to get rid of the extra few pixels of white space at the bottom of each table cell that contains an image. The page displays how I want it in Firefox: http://i20.photobucket.com/albums/b243/parsophie/firefox_page.jpg but the problem only occurs in IE: http://i20.photobucket.com/albums/b243/parsophie/ie_page.jpg I have tried adjusting heights, padding, margins etc. values, but I haven't found a solution. Has anyone had a similar problem and/or could help me Thanks This looks like a bug in the microsoft implementation of HTML table formatting. Firefox seems to have implemented this properly, but IE7 hasn't. Am I right, or what ...Show All
Visual Studio How do you create global properties dynamically?
Hello, If I understand the processing order, PropertyGroup elements are calculated first, in the order of appearance, and result in global properties. CreateProperty elements are handled dynamically in the order they are called, and result in local properties, scoped to their calling target. So how can you create global properties dynamically What I am trying to do is call an xml file to get some values, and set global properties based on those values (the values themselves or values derived form them). THX Curt I found some information on this in " Property scope and evaluation order " (http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1011373&SiteID=1). It ...Show All
