J. Wind's Q&A profile
Windows Forms Event-based Asynchronous Pattern: exceptions re-thrown loose stack trace?
Hi. When you use the Event-based Asynchronous Pattern , you have a background thread that can use one AsyncOperation objet to post messages to the calling thread (UI thread in most cases). While posting a progress message may never be a problem, you may also post some more important messages to the calling thread. In that case the calling thread may throw an exception telling he couldn't handle the message. Someone must catch these exceptions. So when the calling thread throws an exception, I let the backgournd thread get notified of it, so that he can stop if necessary. In my case I have a "async inside" object that hides the async mode. It has a ShowModal() function that displays a progress form. This function exits when the pro ...Show All
Silverlight (formerly WPF/E) Integration with Server Side
I did a quick look in samples and I realize that it is no more .NET code to work with WPF application for WPF/E. Is it the only way to communicate with server side, via Javascript, AJAX and Web Services, or is it possible like WPF to work in C#. With this CTP you can use C# on the server side (like any ASP.NET application) and emit XAML and Javascript. In the future we will also support managed code integration on the client side. ...Show All
Visual Studio Team System Web Test Not working in my case
Dear all, can any one tell me why web test is failing to record the browser actions.The scenerio what iam executing is as follows I Have to two web forms namely Login.aspx(default page) & home.aspx In login.aspx page i accept the username and password and validated them and then i will open a home.aspx in other window after that login window will be destroyed. But when i try to execute the about secenerio it is not go to the home.aspx,instead it is still showing Login.aspx page one I am guessing there is something happening in javascript that is not getting recorded correctly. Checkout this whitepaper for debugging webtests: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=177957&SiteID=1 ...Show All
Visual Basic Creating Dynamic Link Library
Hi all, I'm used creating Windows Applications in VB2005, but now I need to create a DLL for use in a little project of mine but I don't have any experience creating them in vb2005. I did watch a code of a vb6 dll but that didn't really help me. Maybe someone can give me a quick start. Like what type of project I should use, maybe some initial code etc. Thank you in advance. If you write methods in you class library then you may or may not need to create constructors. For you example, you class libary could contain a module or a class with shared method and you simply pass the parameters to the method. This way you can simply call the methods and provide all the required info to run t ...Show All
Visual Studio 2008 (Pre-release) Setting Window.Icon to Vista 256x256 PNG icon causes a FileFormatException
If I set the Icon property to a Vista icon, I get a FileFormatException stating that the image format is unrecognized. If I try the same thing with an old Windows XP icon (without PNG compressed images) it works correctly. I simply cannot believe that WPF doesn't support Vista icons. Asbjorn When you save the icon file with a 256x256x32 size picture without PNG-compressing the picture, WPF seems to be able to cope with it. For example in Axialis Icon Studio you can rightclick the icon and disable the PNG-compression. I reckon there are other tools to do the same thing out there somewhere. ...Show All
Visual Basic How to insert data (probably simple question)
I am quite newbie and I have one, probably simple question. I try to insert data into my database (SQL Server 2005) with this code (VS .NET 2003): Friend Sub Datainsert(ByVal Name As String, ByVal Surname As String, ByVal DateOfGame As Date) Dim ConnectMe As New Odbc.OdbcConnection ConnectMe.ConnectionString = "Driver={SQL Native Client};Server=localhost;Database=ProjektKoncowy;Trusted_Connection=yes;" Dim Writeit As New Odbc.OdbcCommand("INSERT INTO ProjektKoncowy.dbo.Wyniki (Name, Surname, Points, Status, DateOfGame, KindOfGame, Autor) VALUES (Name, Surname , ' 3 ', ' 1 ', DateOfGame ,' 4 ','John Smith')", ConnectMe) Writeit.Connection.Open() Writeit.ExecuteNonQuery() ConnectMe.Close() End Su ...Show All
Visual Studio Tools for Office Dealing with traceability when inserting values from an add-in in Word 2003 & 2007
Hi, we plan to develop an add-in for word that will retrieve information (for instance, a list of string values) from a web service and insert the selected value (the selected string) into the active word document at cursor position. We unfortunately have several constraints on the way the inserted value should behave: it can not be modified except by re-using an add-in control (we then must be able to add event handling) it have to keep traceability information provided by the web service (kind of attached data that have not to be displayed) inserted values, traceability data and above behaviours have to be kept when closing and reopening the document inserted values must at least be displayed when us ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Models drawing in front of Sprites
I have one class, GameScreenManager, handling all of my 2d images. I have another, GameLevel, handling all my 3d assets (models). Both of these are drawable components, added to the Game. Both classes are drawing their graphics appropriately, but the 3D graphics are always occluding the 2D. I have set: GameScreenManager.drawOrder=2; GameLevel.drawOrder = 1; and have tested to show it is in fact drawn in the order I tell it. I have tried setting all my 2d graphics' LayerDepth to both 0 and 1 when Drawing (not sure which value means 'closest to player') and neither value changes anything. How can I tell my 2D Sprites, "draw on top of all other graphics no matter what" I don't know if this will change anything, but turn ...Show All
Windows Forms datagridview of listview?
while both datagridview of listview has the same features when it comes to populating data from database, what would you recommed to use ot let me ask it in this way: when to use datagridview and when to use listview datagridview allows you to format the way the data can be seen and allows you to edit the data if you like on the fly in the grid as well as removing data too I believe. Same thing can be done in the listview but not as easy as datagridview. There are also many many more features in the datagridview than a listview and datagridview was designed for this purpose - pretty much a mini database representation and functionality locally on the client. you can add controls in a datagridview column as w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft's future policy for redistributing Xbox 360 games?
Before I commit serious time and effort to the XNA framework, I'm wondering if anyone knows Microsoft plans for allowing us to redistribute our games for Xbox360. I'm an academic. Let's say I want to make some educational/simulation games that my students can use on the Xbox 360. Will I be able to provide them with a CD or download link in XBox live As far as I can tell so far, the only games I can write are for myself. There is no announced policy on distribution through Xbox live, so you probably shouldn't count on the availability of such a mechanism. In fact, I'd go so far to say that if you're going to be distributing the software to students (and running on school machines I'd imagine) you might ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Some basic query about XNA Game Studio Express
Hi, My question might be little irrelevant to this forum, but I could not stop but ask since the XNA Game Studio Express Beta2 has been released. I was thinking how relevant the game development expereince in XNA Game Studio Express I was thinking od writing a new engine in my part time and was looking for some option for game development Api. I have good knowledge in OpenGL and now was thinking od writing a game engine using Managed DirectX. While considering different options the idea just popped into my mind that why not using XNA express Now my question is how relevant the expereince of XNA Game Studio Express in professional game development world If someonw developed a game in XNA express is this expereince count into XBO ...Show All
Smart Device Development cab compression reading
hello, i have make the cab file on compression mode = false when i read this cab as rb it will allow me to change the name of the file name (by wb) because all the names of the file are in actuall format i easy manage it. so what i want to know is that when i make the cab file on compression mode =true it will make the file but i am unable to find that name whats sort of CRC checking i have to perform to change the file name on compression. or i have to do some other thing how i manage reading cab on compress mode. thanks Salman ...Show All
SQL Server Bulk Insert -- Access denied issues
Problem: Insert a network file in the DB using BULK Insert Works for a local sqlcmd connection. Does not work for a remote sqlcmd connection. SQL Server is running on Machine 'WalRepTest'. User account for SQL Server Service: 'Domain\vivek_uppal'. This has admin privilieges on SQL Server machine and the machine hosting the file. I have 2 scenarios. Scenario 1 behaves as expected, Scenario 2 causes error. Scenario 1. Connect using sqlcmd from local machine Machine: WalRepTest Windows user: Domain\vivek_uppal Sql login using the cmd ...Show All
SQL Server validateExternalmatadata
Hello All, In my pacakge, i'm transfering data from one server to another server. For this in my data trasfer task, i selected ole db source & sql server destination. when i'm going to run the package it give worning message to me for syncronization of metadata. if i set validateExternalMetadata to false then it work fine. Is there any thing that i miss. Please let me know. SSIS keeps a record of your external metadata - i.e. The datatypes and sizes of all the external columns that you will be selecting from/inserting to. the process of validating external metadata checks that external metadata to check that it complies with the datatypes/sizes of the columns in the data flow. If they disagree then you will get a war ...Show All
Visual Studio 2008 (Pre-release) WS-Trust and Occasionally Connected Smart Clients
I want to use WCF to communicate with a service that uses wsFederationBinding. The catch is that I'd like to be able to queue up signed and encrypted messages to the service using cached SAML tokens that might expire. When a connection to the service finally becomes available, what will happen if the token has expired The documentation says that the client channel will automatically renew the token, but I assume this is only for new messages, not pre-existing queued messages. Another twist is that messages in the client's queue may be from multiple users with different tokens. Is WS-Trust even usable in this occasionally connected smart client scenario If so, what are some starting points for enabling this scenario with WCF Oran ...Show All
