Mark Coleman's Q&A profile
.NET Development StreamReader encoding autodetect, and fallback default problems, plz help
Hi Im having some problem to get StreamReader behave "correct" ( ) Take a look: fileStream = new StreamReader (fileInfo.OpenRead(), Encoding .GetEncoding(1252), true ); ... As I understand this will check first bytes of file for UTF8 mask and if there isn't it will fallback to default encoding 1252 But no metter which file I oppen I allways get fileStream.CurrentEncoding = 1252. I Tryed with many different files and chechek that EF BB BF in place, but no UTF8 returned from CurrentEncoding. Thanks for helping ! Thank tou wery much for your answer. You are correct i'm trying to use BOM autodetect, the problem is system needs to process two types of text files Windows1252 en ...Show All
SharePoint Products and Technologies Steps to upgrade wss2.0 to 3.0????
I have wss2.0 in single server and a instance "<Localserver>\SHAREPOINT" in sql server where is my wss2.0, i have install 3.0 but dont now what to do to upgrade, they say to upgrade the pages and that, but cant upgrade the database to work because is in "<Localserver>\MICROSOFT##SSEE" can you give so steps i have to do to make the upgrade of the database wright or any site, i try to follow then manual but i cant, like prescan.exe /all "work fine" and "stsadm.exe -o addcontentdb -url http:// <Localserver> -databasename wss_Content_1478758232 -databaseserver crm" that create in wss3.0 administrator but dont now what to do more...... Please give me sites or anything else to make the migration..... ...Show All
SQL Server File Metadata and the Foreach Loop Container
Hello, I want to set up a Foreach loop container to loop through several flat files. I have a connection manager set up for individual flat files. The metadata for the files is all the same. They are fixed width files, and contain sixty five columns. I didn't see a place in the container properties to configure the metadata of the files. How can a Foreach Loop Container 'know' the metadata of the flat files that I want to loop through Thank you for your help! cdun2 I tried to implement this by following SSIS Tutorial Lesson 2 and the pkg only processed the last file in the list. From one I can tell from the project log, it didn't even loop through the other files, though it did process the las ...Show All
Windows Forms References in serialized code
I am trying to understand the logic of the designer serialization process when it comes to serializing reference expressions. Let's say I have a class A: class A { object _obj; public A(object obj) { _obj = obj; } } and let's say I have a TypeConverter which is able to construct a proper InstanceDescriptor. Now in the designed component's InitializeComponent() I have this line: this.componentOfTypeA = new A(this.someOtherComponent.aPropertyOfTypeB); This undergoes deserialization properly but upon serialization the reference expression is replaced with a declaration of a new local variable: B b = new B(); this.componentOfTypeA = new A(b); How can I prevent this ...Show All
Visual Studio Tools for Office URI Formats are Not Supported
Software: VSTO SE, Visual Studio.NET 2005 Solution Platform: MS Word 2003 Template I'm using the following code to open the SaveAs dialog with file name created in prompt, and set to the path of a common web folder. However, the error I get back says that "URI Formats are Not Supported". Please advise as to how I can edit this code for the save to web folder. Thank you, for any assistance you can provide. sample code: Private Sub FileSaveWebFolderWithNamingProtocal() Dim eRom as string eRom = " http://www.eromaddress.org/erom/foldername/subfoldername/ " ChDir(eRom) With Application.FileDialog(Microsoft.Office.Core.MsoFileDialogType.msoFileDialogSaveAs) .InitialFileName = varia ...Show All
.NET Development streaming wave data
Hi I need to play streaming wave data. I need to create the wave data dynamically and pass it to a buffer in real time. The buffer will never be empty. I have found a few c++ examples but i am hopeing to save a lot of time if i could find some examples in vb.net. I have vb.net 2005. I asume that i'll be using direct sound. I already can do it by creating wave files on the fly and playing them. But the latency and the inconsistancy that arises from reloading new wave data in the form of a streamed wave file makes it not usable. Where do i look Thanx Jerry Cicierega The Windows QoS APIs are designed to add prioritization to network traffic for multimedia streaming scenarios. Unf ...Show All
Game Technologies: DirectX, XNA, XACT, etc. RTS Game Basics - Need Help - Total Noob
I've searched these forums and while I have found many solid answer to many specific problems I'd like to get some general help. In fact I believe that if I can be helped that many people could benefit greatly from this thread. Here is some background on my skills: I'm completely new to C#, but am currently exposed to a very limited amount of JAVA at work currently. My programming skills are entirely .Net and Visual Basic 5 and up with an intermediate skill level. I'm very competent in .Net and chances are the only reason I'm not an expert is because my career has never given me the opportunity to work on something complex enough to develop the experience needed to reach that level. If it's not work related I don't do any coding, instea ...Show All
Internet Explorer Development password text field
hi, does anyone know how to write code to show (*) (star) password instead of (.) DOt password. Is there is way that we can convert to star text for password! i like to have something different. please help thanks. Alidad I think you should be able to change the password character Have a look at http:// msdn2.microsoft.com/en-us/system. windows.forms.textbox.passwordchar(VS.80).aspx ...Show All
Visual C# Class Library Application Settings Don't Appear in app.exe.config
I have a desire to define application settings within Class Library projects as well as the main application project. I was hoping the Class Library application settings would be accessible in the app.exe.config file. Is this possible I created a winform application with a class library project. I added application settings using the settings designer in both projects. After compiling the application, I was able to access the application project's application settings in the app.exe.config. Where/how can I access the class library's application settings I was able to work around this issue by manually transferring the section element and ClassLibraryNamespace.Properties.Settings elements from the class library app.config to the main ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DrawIndexedPrimitives parameter naming
Am I the only one who thinks that the parameter names for GraphicsDevice.DrawIndexedPrimitives() are totally confusing, some even misleading Maybe someone could help me clear this up: primitiveType - Clear. What kind of primitives I'd like to draw baseVertex - MSDN states: " offset from the start of the index buffer to the first vertex index ". Is this an offset that is added to each index in my index buffer If so, I think the docs should explain this more explicitely. minVertexIndex - What's this A safety feature so I don't draw vertices out of the current batch numVertices - Clear, but redundant (due to primitiveCount ). How many vertices I want to be drawn. MSDN states: " A number of vertices used during the call ...Show All
SQL Server Enterprise Manager in version 2000
Typically when I bring up Enterprise Mgr, I get the options to look at the databases, tables, etc. Now, when I choose EM, it brings up the Microsoft Management Console without anything in it except 'Console', 'Window', and 'Help'. When I open a new window, I can see the databases etc. but the top of the window says 'SQL Server Enterprise Manager [2:Console Root\Microsoft SQL Servers]' and a few of the icons are grayed out like 'New Database', 'New Login', and 'New Job'. I haven't changed anything that I know of. Please Help! thx Kat A reinstallation of SQL Server solved the problem. I think it came up because I'm working on an old laptop while my newer one is getting fixed. Not much space, memory, and it is slow. Oh, the joy of ...Show All
SharePoint Products and Technologies what happens to SPS Areas when upgraded to MOSS 2007?
Hello, Our organization is heavily using areas and sub areas for business divisions (finance, IT and etc). We are planning to upgrade to MOSS 2007 .I know that SPS Areas no longer exist in MOSS 2007 and therefore they would be chnaged to subsites, but I don't know what is the disadvantage of this change in terms of hirarchy (taxonomy) to us Any planning article on this Thanks a lot Erik, Are you using Site Definition or site templates stored in the SharePoint 2003 database.if you are using Site Defintion,you can create the upgrade definition files and upgrade them .I believe the Site Templates stored in the database will migrate over as it is. Noel ...Show All
SharePoint Products and Technologies Help with View Filtering
I need to create a view where the filter actually checks for missing values in a date field. Field is called Date Completed. I need a view that displays everything that has not been completed yet In the List view I can filter by (Empty)... but how does that translate into a View Thanks Rick Instead of typing the word Empty, try leaving the field empty, as in blank with nothing in it. It works for me. -Brian ...Show All
Visual Studio Express Editions Container control?
Hi. I'm trying to make a control that can contain other controls. I make a UserControl, but I can't get it to work. I can't drop another control on it. Sorry for the newbie question, but in VB6 I only had to set a property to make it a container control. I'm really a bit confused. Any help Thanks. Oh my god! I'm feeling like a nOOb. All of your answers worked. The problem I had was that I put a panel into the control, so the other controls couldn't show up. Thanks to all who helped. ...Show All
.NET Development Large Database Update Methods
I have a large product database table that I need to do updates on. It has over 600,000 records. I need to update pricing usually once a month for the products. I get a price file from a vendor that then needs to be looped through and any changed prices need to be updated to the database. Best method for this large a database I was thinking of looping through the price update file and then using a direct sql t-sql type update like: update table set values x where productcode = partnumber cmd.executenonquery(). I don't think a want to try a dataset or adaptor for this large a table The code seems to run but not update the database and I expect I also need a commit command or acceptchanges command after the updates. I exp ...Show All
