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

Software Development Network >> Dan Scott's Q&A profile

Dan Scott

Member List

MauriceSibrandi
doener
gafferuk
rWarrior
Cactus77
VoiceOfExperience
FWX
Stephen Lin
Nfrf
KevMac
Murali Krishna K
Ion101
SteffoS
danni123
MBM_Mimo
sammy chen
furjaw
divya mittal
geertdeprez
Steve Harding
Only Title

Dan Scott's Q&A profile

  • Smart Device Development how to create file

    hi how to create a file at sd or mmc card The develop platform is c# .net cf 2.0. the sample code is better. thank you I was going to post that... :-) Ilya - is there some class (like driveinfo) for the .NET CF that we can use to determine if there is a storage card available ...Show All

  • SQL Server Error while Browsing Cube

    We have a cube with only one partition.While trying to browse the cube it is showing the following error. OLE DB error: OLE DB or ODBC error: You do not have permission to run 'SP_TRACE_CREATE'. ;42000 My user name is in the admin group and I am able to Procecc the cube successfully. Please Help. You should set your storage mode to MOLAP to disable proactive caching. You also go through all of your partitions to make sure the storage mode is set to MOLAP. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All

  • Visual Studio Team System Team System add-on for SQL 2005 Management Studio

    Just noticed that Team System add-on is not available for SQL 2005. What's a problem How I can store my database in TFS source control I found MSSCCI Provider which enables Team System on plug-n window but I don't get how to use it. Check-in, check-out are not visually available anywhere within a Management studio as well as server mapping... After you create a new project in SSMS, the File->Source Control menu should include "Add Solution to Source Control" and "Add Selected Projects to Source Control", which are pretty much self explanatory. After you add the project to Source Control, the menu (and context menu) should include all expected SCC commands (get, checkin, checkout et ...Show All

  • Visual C# File.Move works but can't open the file

    Hi i have an application that i listen file system with file system watcher and then i am able to move any file to another folder. When i use File.Copy method it always works fine but sometimes(not everytime) after that i can not open file with the code below FileStream fs = File .Open(path, FileMode .Open, FileAccess .Read); fs.Close(); it gives error just as "File already in use", and this situation continues forever(till i close application). But if i try to open the file manually from its new folder, its okey i open it. Where am i wrong and why does it sometimes work and sometimes not Anyone any idea Thanks a lot ! that's definitely points to my mistake, i must be careful while ...Show All

  • Architecture O/R Mapping

    O/R mapping is quite interesting.  I would like to post this question for discussion. I have the following classes: Employee, FullTimeStaff, PartTimeStaff, etc.  FullTimeStaff and PartTimeStaff have many attributes and behaviors in common and also many other unique attributes and behaviors.  So, FullTimeStaff inherits from Employee and PartTimeStaff also inherits from Employee. Do you think it is good to map both FullTimeStaff and PartTimeStaff to a single table called Employee (the table contains an extra field to identity whether he is full time or part time) in the database I have a table keeping all FullTimeStaff and PartTimeStaff and we also have a StaffType field to classify them. I have a staff ID to get a ...Show All

  • Visual Basic from dgv to excel start on line 18

    I'm able to print from dgv to excel with the following. Dim r As Integer Dim c As Integer For r = 0 To InvoiceDetailsDataGridView.Rows.Count - 1 For c = 0 To InvoiceDetailsDataGridView.Rows(r).Cells.Count - 1 Dim s As String = InvoiceDetailsDataGridView.Rows(r).Cells(c).Value xlsheet.Cells(r + 1, c + 1).Value = s Next But how can I get it to start in excel line 18 Dim r As Integer Dim c As Integer = 1 Dim rc As Integer = 18 For r = rc To InvoiceDetailsDataGridView.Rows.Count - 1 For c = 0 To InvoiceDetailsDataGridView.Rows(r).Cells.Count - 1 Dim s As String = InvoiceDetailsDataGridView.R ...Show All

  • Windows Forms Delegates, frozen form and threads

    Hi All I am developing an example that simulates a loading data process through delegates.It begins with delegate definition and a piece of code called doTask. // Delegate pointer to a doTask function public delegate ArrayList delTarea (); // Delegate var delTarea dTask = null; // doTask function private ArrayList doTask() { ArrayList list = new ArrayList (); int count = 10000; int step = 100; while (count > 0) { lista.Add(count); System.Threading. Thread .Sleep(step); count -= step; } return list; } After that, I generate a button ev ...Show All

  • Visual C# or operand on Enum type

    I need help to do the or operator on Enums. Here is what i am trying to do. Type type = ... . if (type.IsEnum) { Enum e = Activator.CreateInstance(type) as Enum; foreach (string name in Enum.GetNames(type)) { e |= Enum.Parse(type, name) as Enum ; } } The bold line get compilation error: Operator '|=' cannot be applied to operands of type 'System.Enum' and 'System.Enum' . Is there some way to go around the problem Peter Gustafsson Enum is a class and it does not define any or operator (or other logic/arithmetic operators). The best thing that you can do si to use an int instead of Enum and add th ...Show All

  • .NET Development Application Settings

    I created a Windows Service which has a Settings.setting file with several parameters. I also created a Setup project which accepts several parameters. These are then updated to the config file that stores the Settings.setting parameters. When I debug the setup I can clearly see that the parameters (custom ones) are written to the config file. But when starting the service which happens after manipulating the config file, the default values are retrieved using Properties.Settings.Default.<ParamName>. I must be forgetting something... Anyone have a suggestion Hello All. Steven: I'm having my own case of brain fever with application configuration, so I figured I'd try to lend a hand. So far, ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Creating sprites for 2D games

    How do I create sprites for 2D games with bird eye's view of the game world For example, for a 2D driving game, I want to create sprites so that a car can travel in eight directions using the keyboard and gamepad. If I press the up arrow key, the front of the car should point upwards. If I press the left arrow key, the front of the car should point to the left. Should I use tiles instead of one big bitmap file for the ground How do I set up the ground so that it scrolls in eight directions I went through some tutorials on some websites. I downloaded the XNA Game Studio and Visual C# programs yesterday morning. I can't get to that page from work and I don't remember exactly how the data was set up. It should ...Show All

  • Smart Device Development Getting SSL, Web Services, and Mobile Devices to connect.

    I have written a web service that is running on a windows 2003 IIS instance with SSL enabled. I am trying to determine how to get the mobile device to connect with the web service. I have basic authentication enabled, and the device keeps returning "The trust with the remote computer could not be validated" (or something similar) on the connect() attempt. Can someone point me to a good resource that explains how to get the mobile(PPC, SmartPhone) devices to connect. They are both running .NET 2.0 apps/services. Thanks in advance, Nick ...Show All

  • Visual C++ LNK1181: can't open it's own .obj as an input??

    I have this one project that is part of a larger "solution" with many projects. I am using VC++ 8. When I try to build it from the command line, as: msbuild MyProject.vcproj /p:Configuration=Release ... then it fails on a linker error: LNK1181: cannot open input file '.\Release\MyProject.obj' (the project contains a MyProject.c and .h file, so that's why the object file is named the same) However, when building from in the IDE, it builds fine. This object file is created as a result of building this project. Why is the linker looking for it as input I checked all the project linker settings and can't find a mention of that object file anywhere, which is as I expected since the IDE builds it fine. I know ms ...Show All

  • Windows Forms localization and resource files

    I am using the namespace.properties.resources to localize strings throughout a large solution containing 55 projects. (I went to the properties of the project, add resource file.) I need to be able to have these .resx files translated to many different languages after I am done. can I use this method to switch between languages what is the naming convention for the resources.resx files to differentiate btwn cultures resources.en-US.resx, by any chance how do I change the culture to point to the correct .resx file app.config & web.config what is the syntax of that please help! as much as I would love to use the localizable property for even just the forms, I can't. some developers, that ...Show All

  • .NET Development Close current application & start another one

    I would like to close my running application and programmatically start an updater which will update the above application. When the update process completes, the updater should close and the application should run again. What should I do you could try this: To exit the application: Application.Exit(); to kick start another process: System.Diagnostics.Process.Run(" path\filename.ext "); this would apply for both apps, your current app and the updater. Does this help ...Show All

  • .NET Development IsolatedFileStorage and Saving/Loading

    I would like some resources or information on how IsolatedFileStorage knows where to save or load files from... The problem I am having, is that we are using IsolatedFileStorage to save application settings. So it is using machine storage. We do not use ClickOnce deployment, however we are going to be using dotfuscator on the final EXE we ship. I noticed the other day that settings I had saved in the non-dotfuscated EXE would not load in the dotfuscated EXE. I would imagine that this is because the main assembly was renamed. I also noticed that the settings wouldn't load if the folder the EXE was located in was changed. Is there a way I can make our EXE file use the same IsolatedStorage folder whether it's dotfuscated or not, or no matter ...Show All

©2008 Software Development Network