TheGeoff's Q&A profile
Visual Basic R
I'm sure this is possible to do. I am working with a UTF8 encoded file. When the file is opened in VB and loaded into a text box, the line breaks are converted to squares. Each line break is represented by two sqaures. I have been using code to replace bad chars, but the problem with it is that it replaces a single instance of the square with a LB. So I am getting too many LB's. How can I replace this with a single line break TIA Problem Solved! Since I am loading the file into a RichTextBox control I used the following code for the TextChanged Private Sub rtf1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rtf1.TextChanged Dim txt txt = ...Show All
.NET Development C# CodeVariableDeclarationStatement with array initialization
Hi there, I would like to generate the following using CodeDom object [] arguments = { Field1, Field2, Field3 }; I have arguments as procedure.Parameters collection. I think it must be like this: CodeVariableDeclarationStatement cd1 = new CodeVariableDeclarationStatement ( "object[]" , "arguments" , parameterListCodeExpression); I need hellp with correct code for parameterListCodeExpression. thanks in advance Thanks a lot, it was very kind of you and really usefull I have another issue, could you explain how to pass key word out in argument expression for this example ret = SqlCommandGenerator.ExecuteCommandQuery(sqlConn, null , ( MethodInfo ) MethodB ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Question regarding making landscape in 2D
My question is rather simple. I have a texture and a landscape map to apply it to. It is possible to make a rectangular sprite in XNA, but is it possible to cut a part from it Here's an example for better understanding of what I'm aiming for: http://img335.imageshack.us/img335/9972/examplent7.jpg The only way I can think of is to make a different texture for every sprite, changing its shape every time. But that really it not the easiest and smartest way... What he wants to do is basically just masking, correct Take a tiled rectangle of the texture that will cover the entire background (either the sky or the ground ), plus a little extra tiling since that is just how it comes out. Then set total tra ...Show All
SQL Server SSIS CAL licensing
Hello, How does licensing of SSIS work on a CAL basis As far as I'm concerned there are no users of it per se cos its a back-end process. Therefore, do you only need one CAL Thanks Jamie On a side note, this third party book also contains the same bogus licensing information. Microsoft SQL Server 2005 Reporting Services 2005 ...Show All
Visual Studio Express Editions Media Player in the Toolbox.
During my experiment with Visual C++ 2005 Express Edition, I deposited Windows Media Player into the Toolbox Component section, and used it successfully like any other tools. I do have nevertheless problem with the related Help system. I would like to have F1 to show the descriptions of the methods and properties of the Media Player (like I have it on other tools.) I do have Media Player SDK. Please instruct me how can I make Media Player tool to behave like the other tools Thanks for any guidance. Don't kill the patient, it is now visible by people that frequent the Visual C++ Express forum. Not exactly an Express kinda question but I dare not move it again. Windows Media player uses a COM inte ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help XNA
this forgives the wrong English is not my language But we go there I read regarding the XNA if it inside functions of the VS2005 where I compels my application to twirl in Xbox, PS3 and PC I lowered the XNA “March 2006” to put I I did not see in it one the Class of the Directx for games I function thus I I develop with the DirectX I can develop in the Vb.NET with XNA Thanks What about people that want to learn how to use XNA , you know, beginner or starter developer that want to learn how to make games. There Will be a Express Edition of XNA like Visual Studio Express Edtition For learn. ...Show All
Microsoft ISV Community Center Forums Programming Adobe Acrobat Reader 7.0
I have succesfully programmed Adobe Acrobat Standard 7.0, see code snippet below:- Dim objAcroApp as AcroApp Set objAcroApp=CreateObject("AcroExch.App") ' Starts up Adobe Acrobat Standard 7.0 Dim objAcroDoc as AcroAVDoc Set objAcroDoc=CreateObject("AcroExch.AVDoc") ' Create an object to allow a file to be opened However, when it comes to using the ActiveX Adobe 7.0 Type library with Reader 7.0 it seems it can't be done - DDE technology is the only answer. Has anyone out there got prior experience as I seemed to have strayed into a bit of a minefield ! Somewhere where I can look at code samples would be a great help. Thanks you Robert Snedden, Edinburgh ...Show All
SQL Server [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.
I am using PowerDesigner to reverse engineer a SQL 2000 database. I am getting the following error. I can't find out what this error means. Does anyone know Unable to list the users. [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. SQLSTATE =37000 This error is caused when the client is asking the server to prepare a statement which has errors. For example if there is a syntax error in the statement that is being attempted to be executed and SQLPrepare ODBC API is called on it, you will hit this problem. Do you know if the T-SQL you are trying to execute valid or not. To find out the exact problem try using SQL Profiler to see which statement failed to exec ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DreamBuildPlay is up!!!
Now go register!! Actual contest details to come the week of Feb 5th I don't really know any valid zipcode and phone number for the US, nor any address for that matter. Thanks for the advice, anyway! I guess I'll just have to wait until they fix this. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Smooth movement
I did a "game" where a ball bounce around the screen. It's running at 60 fps but it isn't a smooth movement. It's an issue from XNA Framework Beta I am working with SpriteBatch class... You do (must ) change fChange from {0, 0} at some point right If you didn't you'd most likely perceive no change what so ever. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. TorqueXNA
I had a look at the XNA version of the Torque 2d engine and noticed that it converted 4mb worth of png files into over 60mb of xna files; Is this a Torque issue or xna as its a massive increase and would make releasing any games online a virtual impossibility. XNA comes with several built in texture processors. If you're using the 32 bit one, then obviously you won't get any compression. If you are concerned about size on disk, it's easy to change this to use the DXT processor. My point is that the content pipeline is optimised for loading speed, rather than for size on disk. That means we store data directly in the same format that the GPU wants to consume, so we don't have to do any slow conversions in the loading co ...Show All
Visual Studio 2008 (Pre-release) WCF Installation without internet connection
Hi, Since i'm using Virtual PC i can not connect with Internet. So how to install WCF without internet connection Is complete installable available Rgs Vasu just download the windows SDK for the same and it will work for you regards Nishith Pathak http://dotnetpathak.blogspot.com ...Show All
Software Development for Windows Vista deleting activities from the designer using the DEL key
I am working with the workflow rehosting example from MSDN. After I have dragged an activity from the toolbox onto the designer surface, immediately pressing the DEL key to remove the just inserted activity does not work for me. Only after I have single clicked on the activity, the DEL key works and removes the activity. Activities are shown as being selected, after they have been inserted from the toolbox (the selection markers are displaced). Does someone have an idea, why the DEL key does not remove the activity on the first trial I am assuming you are looking at the sample - http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/WFDsgnRehst.asp I couldn't repro the problem you are talking. ...Show All
.NET Development Node vs. Element? Collapsing... Elements?
I've been developing a customized C# XML serializer, because of the lack of support for Generics using the XmlSerializer class, and I use the XmlElement quite a bit. One of my questions is what is the major difference between a Node and an Element I see that the XMLElement class inherits from XmlLinkedNode, which inherits from XmlNode, so does the word "element" simply define a "group of nodes", but can be a single node I am just curious about is all. Whatever the "group" is, my real question lies with how to programmatically collapse these "groups" My Xml file will be representing a config file that can easily end up to be 20+ pages long, so it would be really helpful to collapse ...Show All
.NET Development ANNOUNCING: Xml Notepad 2006
Download, including source code, from: XML Notepad 2006 Design doc at: http://msdn.microsoft.com/library/en-us/dnxmlnet/html/xmlnotepad.asp Handy features include: Tree View synchronized with Node Text View for quick editing of node names and values. Incremental search (Ctrl+I) in both tree and text views, so as you type it navigates to matching nodes. Cut/copy/paste with full namespace support. Drag/drop support for easy manipulation of the tree, even across different instances of XML Notepad and from the file system. Infinite undo/redo for all edit operations. In place popup multi-line editing of large text node values. Configurable fonts and colors via the options dialog. Full find/replace d ...Show All
