JoneLee's Q&A profile
Visual Studio 2008 (Pre-release) Reposting: Rerouting Com+ call
hi, I have a 4-server cluster that has CLB. All the calls are routed to the CLB through NLB nodes that route to the next server in the cluster that has lowest CPU usage. All of the 4 CLB cluster run a set of COM+ applications. I would like to know if there is a way to re-route the call from one CLB server to another and PASSING THE WHOLE CALL CONTEXT so that the target server can reply directly back to the client. Is there any way to let the target (rerouted) server know about the Caller (origin) and set any context property so that this server can return to the Client directly thanks rb hi, I have a 4-server cluster that has CLB. All the calls are routed to the CLB through NLB nodes that route to the next server i ...Show All
SQL Server QI for IEnumVARIANT failed on the unmanaged server
I have an SSIS project created with Beta 2 of VS2005. When I try to open the SSIS Package in the Designer with the final version of VS2005 I get the error message: Microsoft Visual Studio is unable to load this document QI for IEnumVARIANT failed on the unmanaged server Before that happens there is a warning Message: "Document contains one or more extremely long lines of text. These lines will cause the editor to respond slowly when you open the file. Do you still want to open the file " When click on Yes to this question the above Error occurs. In the Beta I got the same warning message, but the package was still able to load in the designer. Is there a way to recover or migrate my package so that I can use it in the final VS2 ...Show All
Visual Basic how to download a file using buffers
hi. im trying to download a file using httpwebrequest and httpwebresponse and i get the response stream into a stream but what im tryiing to do is to buffer the download so it only downloads say 2kb each time it calls the stream.read and then writes to 2kb to a file it appends but i can only do it if i set the offset to 0 otherwise it comes up with the error: system.argumentoutofrangeexception specified argument was out of range of valid values. Parameter name: size at system.net.connectstream.read(byte[] buffer, int32 offset,int32 size) but the size parameter is not a negative value and it is in range of the size of the file can someone please help me i know it will be something simple i am missing :) thanx ive done the exa ...Show All
Software Development for Windows Vista ASP.Net state machine not performing state transitions
Hi, I'm trying to use a WWF state machine using ASP.NET to emulate an ATM. I have my project setup like the sample ASP workflow order system discussed in other posts, where I separate my ATM logic, my website, and a state machine workflow library into three separate projects under one solution. The issue I am having is that the state machine isn't performing state transitions. The flow is supposed to work like this: On the default.aspx page the user gets a language selection with 2 buttons, 1 for English and 1 for Spanish. Clicking "English" fires the first event for the workflow which I called LanguageSelectionEvent. That event is supposed to perform a page transition to the next step of the ATM where the user enters ...Show All
Visual C# stackalloc in two dimensions?
I've seen examples where "stackalloc" is used to allocate a (non-garbage collected) chunk of memory as follows: int size; size = 5; int* ptr = stackalloc int[size]; ptr[0] = 1; ptr[1] = 2; etc... My question is how do I accomplish this but in a two-dimensional array...is it: int* ptr = stackalloc int[size,size]; ptr[0,0] = 1; ptr[0,1] = 2; etc... Lastly, must I manually deallocate the memory or does that happen automatically when I leave the unsafe block If manually what is the syntax As always thanks everyone! There's no two dimensional support with stackalloc. You can allocate size*size bytes and access ptr[x, y] as ptr[y + size*x]. You don't have ...Show All
Windows Forms Regarding Textbox resizeing in runtime...........
Hi, my question is ...How to resize a text box in runtime.... can we show the boder line resize frame during runtime... thru which the user can resize a picuturebox or textbox or anything..... Is this possible....!! Thanks, sathyan You could implement your own "designer" so that your form would have a design time look like Visual Studio has. See this article: http://msdn.microsoft.com/msdnmag/issues/06/03/DesignerHosting/ ...Show All
Visual C++ Hashtable in C++
Hi, I need to use a hashtable in C++. Apparently there isn't one, so I tried to use the hashtable in the System.Collections. After enabling the /clr in the solution explorer I can use a hashtable within functions, but not globably, which is my need. If i try to declare the hastable globaly it gives me this error: Error 1 error C3145: 'hs' : global or static variable may not have managed type 'System::Collections::Hashtable' Anyone know a way around this or of a different hashtable class that I can use There's also unordered_map which is what will likely be in the standard. There's an implementation in Boost which seemed to work quite nicely for me (apart from some pretty obvious ODR violation ...Show All
Visual Basic command line args used in sql statement
Hi, How can I pass command line args to my sql statement I have an example below that works fine using a synthetic array; passing a variable; and retrieving the desired results...But I want to use command line args for my variable... 'Working example with synthetic array - works perfectly Imports System.Data Imports System.Data.SqlClient Public Class Form1 Sub Main( ByVal args As String ()) End Sub Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim conn As New SqlConnection( "Server=xx.xx.xxx.xxx;Persist Security Info=True;Password=pass;User ID=user;Initial Catalog=patient_tracker" ) Dim ds ...Show All
Visual Studio Express Editions Open projects with?
From the beginner's guide that includes video's and projects on the website. You are able to download the videos and the projects. After downloaded what do you open the projects with so that you can view them properly ... they are practice projects not recently made ones in VB in case anyone is confused. I am not quite sure what kind of file it is, the basic file type description says "file" that is all, i looked in the file's properties and it didn't say anything else besides the author was MSDN... sorry that's all i know, i downloaded it from this site ...Show All
SQL Server Problem loading XML Files
I have been trying unsuccessfully to load a directory full of XML files into SQL Server 2005 Standard. I have not been able to make it work, and I would be grateful for any advice. A simple version of the files that I am trying to load is TEST.NWS just below. I have removed almost all of the content from the files, leaving as a file TEST.NWS. (Hopefully I have not cut out too much.) This version of the test file leaves me with the same error messages I have with the full file. I have a directory with many such files and each file is much too big to edit manually. ---------------Start TEST.NWS----------------------- < xml version="1.0" encoding="UTF-8" > <NewsML Version="1.2"> <New ...Show All
Game Technologies: DirectX, XNA, XACT, etc. low fps
i'm confused about fps in my programme. i draw 200 textured triangles in 640x480 window but get only approximately 160 fps. it's strange but when i zoom out from triangles fps growth momentally, but when i close... PreferMultiSampling = false ; SynchronizeWithVerticalRetrace = false ; RenderState.DepthBufferWriteEnable = false ; (i need it coz, ill render triangles with transparent textures) i use DrawIndexPrimitives, i.e. useing vertex and index buffer. any ideas how to increase fps Well, I don't know if it's good or bad, but i just ran an empty project that only contains one draw call to clear my screen to CornflowerBlue and was only achieving 270 FPS, which translates to 3.7 milliseconds of overhea ...Show All
.NET Development Column Names
Hi, I have an Excel data sheet that I need to read and select the pertinent rows to load into a dataset. The data will then be checked against a database and the new data will be added. I have several questions/problems, the first of which has to do with Column names: My Excel sheets have column headers, BUT the header names are not located in the first row, rather they are located in the 5th row of the sheet, always. I would ignore this issue altogether and simply use column position as a locator for the data, but the sheets do not always have the same number of columns (ie sometimes columns are missing). Therefore I need to know which columns contain which data. How can I specify the columns such that the correct data get inserted into ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Need HELP reading a sprite file!
I've got an old game from 1996, it's really simple. Has great sprites I want to pop into an XNA project, but I'm unsure how to read the file because it's in a strange format. The file extension is .AR I know the .AR files contain multiple frames of sprite animation, and you can see the internal sprite names with a hex editor. I was thinking maybe it's a unix archive but I doubt it. Anyway, how do you recommend I read these Thanks, Glenn. I did actually send an email to the project manager for the game, we'll see if I get a response. In the meantime, I think I can video capture the animations I want and make my own sprites. Are there any design patterns for sprite animation The XNA kit prob ...Show All
Visual Basic Show Pictures in rows (e.g. Emoticons)
Hello I have a number of small picutures and all of them has the same size. How can I show them in rows in VB2005 Look at this picture: http://www.onh1986.3000mb.com/vb.jpg And when I click one, I want to show it in a separate picture box. How can I do it Thanks Well what you could do is create, say, a panel control, stick the images on there in any order you want using picturebox controls and then put code in the click event of each one to load up a picture preview form to display the image. If you need the scrollbars, simply put a panel control inside another panel control and put scrollbars into it. If you'd like me to send you some sample code, I'd be happy to do s ...Show All
Visual C# Unable to find SHObjectProperties
Hi.. I am using the SHObjectProperties. I have written the code as: public partial class Form1 : Form { [ DllImport ( "shell32.dll" , EntryPoint = "SHObjectProperties" , CharSet = CharSet .Auto)] public static extern bool CallPropDialog( IntPtr hwnd, GetProperties dwType, string szObject, string szPage); public enum GetProperties { SHOP_PRINTERNAME = 0x00000001, // lpObject points to a printer friendly name SHOP_FILEPATH = 0x00000002, // lpObject points to a fully qualified path+file name SHOP_VOLUMEGUID = 0x00000004 // lpObject points to a Volume GUID }; private void Form1_Load( object sender, EventArgs e) { CallPropDialog ( ...Show All
