sangminny's Q&A profile
Visual C++ Using CLR
Standalone using CLR Is it possible, if not, what are the advantages of using CLR Thanks, Chris If you want to be technical about it, they don't. The issue isn't quite as black-and-white as you're making it out to be. There aren't many applications out there that are truly "standalone" in the sense that they rely on no external libraries or functions. The fact that your managed application requires the .NET framework to run doesn't make it any less "standalone" than an application that requires DirectX to display its graphics. This will increasingly become less of an issue as folks move to Vista, which will come with .NET framework (right ). If what you are asking is & ...Show All
SQL Server How to print reports programmatically?
Hi, Our case is that we're making a system (win form) based on Sql Server 2005 (incl. Reporting Services 2005) and .Net 2.0. We want to add a "Print" button to our win form, whose job is to print a report based on user input. We want this printing to happen on a printer connected to the client machine, and without any print-dialogs poping up. Some of the reports must also fit into predefined forms already on the paper (so we need the text on the report to be on the exact same places each time). I've seen different suggestions; printing EMF, printing using the webcontol in .Net og an Acrobat Reader plugin... What is the best way to do this Any experiences Regards, Tomsi We have used some ...Show All
Game Technologies: DirectX, XNA, XACT, etc. From Express to Pro
First off, let me say that this news about being able to develop and test my code on my 360 for an amazingly low price sounds excellent. I do have a quick question though. Will there be some established way to go about trying to get a game on Live Arcade that was developed with Express I know that I will definitely grab Express as soon as it's available and also have the subscription to be able to test my games on the 360, but I'm curious what my options would be if/when I write a great game :) Will there be some way to use the completed game as a pitch, or would it first be necessary for me to buy the Pro version If I had some sort of confirmation that the game would be put on Live Arcade then expenses for the Pro version wouldn't be a ...Show All
Visual C++ VS2k5 .Net - Recompling previous versions Problem
Hi all, I wrote a program in VS2k3 .Net a couple of years ago, and recently I wrote a program in VS2k5 using the ver. v2.0.50727. of .Net. The thing is when install the program complied in VS2k5 .Net on a computer that is running the program complied in VS2k3 .Net, I receive an error: Different version of .Net required. So I install the newest version of .Net, but then the program compied in VS2k3 .Net doesn't want to work So my question is, everytime Microsoft releases a new .Net framework, does the whole program have to be re-complied / re-written Thank you Regards Programm3r Program written in VS2003 can run under .NET Framework 1.1 or later. Install .NEt Framework 2.0, both programs can run under it. .NET Framew ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Per vertex fog (Custom Effect)
I just want to make a simple per vertex fog with XNA, I thought, it will be easy, but... The problem is: if I set everything correct (I think), only the objects get the fog, not the scene/ screen! But why I set this parameters: FogEnable = true; FogColor = 1.0f; And I use the FOG semantic in the vertex shader: OUT.FogD = saturate( (fFogEnd - d) / (fFogEnd - fFogStart) ); So why happen this Here is the code, if it's needed: Code (txt) ...Show All
Visual Studio Express Editions Problem with DBNull values on form
I am encountering a problem with a form comprised of several textboxes, comboboxes, and pictureboxes. I have a save button that when you click it, it saves the new record to the underlying datatable. However, the record will only save if every textbox, combobox, and picturebox has been given data (in other words, is not null - or DBNull). My problem is, not every record will necessarily need every control to have a value. In my dataset, all the controls allow DBNull values and for every textbox I have changed the NullValue property to "Nothing" as opposed to "Throw Exception". However, it will not let me do that for a textbox that is bound to a Double data type, a textbox that is bound to a DateTime data type, and for t ...Show All
Visual Studio 2008 (Pre-release) List questions
Hello, I would like to create a list of custom controls with databinding and I would like to place them within a canvas with each control having a different position. I tried it with a ListBox, but it didn't work, so now I'm a bit lost. Any suggestions Greetings, Arnoud You need to replace the ItemsPanel. Here's a quick XamlPad ready sample: < Grid xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " > < ListBox ItemsSource = " {Binding XPath=//item} " > < ListBox.DataContext > < XmlDataProvider > < x:XData > < items xmlns = "" > ...Show All
SQL Server Trigger data corruption
I have a weird issue with a trigger... I have a table called category, which has a column [Name], and a record "113_Install". I have the following query in an AFTER UPDATE trigger on this table: INSERT INTO DataPump_PendingCategory (CategoryName) SELECT i.[Name] from DELETED After changing the data in Category, I see the following record in my pending table..."113_Ins D" or something similarly corrupt looking. From what I can tell, both of the tables have the same settings, any thoughts I can't see anything in there that might be contributing to the problem. It looks like the next step, albeit, not a pleasant one, is to script out the FK constraints, Data, then DROP the table and recreate it -AND hopefull ...Show All
Visual Studio Express Editions OutOfMemory Exception Error
I'm working on a rather complicated program using signature tablets. Someone signs the tablet, displaying their signature on screen. That signature is then broken down into a unicode byte string to be saved into a database. So far, so good. When I open a second form, designed to display entries from the database, it gets as far as the code below and give me an error message saying 'OutOfMemory Exception is unhandled'. This is the code designed to retrieve the unicode string from the database and turn it back into a signature. Dim ImgData As String ImgData = RegisterdbDataSet.Time_In_Table.NewTime_In_TableRow.Signature_Data() Dim bytes As Byte () = System.Text.Encoding.Unicode.GetBytes(ImgData) FileOpen(1, Envir ...Show All
.NET Development A direct connection to another computer and connecting to a remote unix mysql server, vb 2005
I'm lost without my winsock, I want to create a direct connection to another computer to send strings back and forth, well i can't seam to figure out or find much out there on this for visual basic 2005. And managing a remote unix mysql server, it won't seam to let me add it as a data source. You have to talk to the SQL folks about this. For Winsock connections just use System.Net.Sockets class. There are a zillion samples out there to help you out Just search Socket C# on msn ...Show All
Visual Studio "Get Latest Version (recursive)" gives list of files for each project
Hi All, We are trying to implement MS-SCC API functions (v1.3) for a SCM. When a solution is opened in VS2003/VS2005 with multiple projects and choose option "Get Latest Version (recursive)" for a solution, SccGet() function is called with list of file for each project. I want to show list of all files in a dialog box. While if "Get Latest Version (recursive)" is selected for a project, it shows all files (including files from directory). Can't distinguish whether SccGet() function is get called from solution node or project node or file node. Any pointers Thanks, Abhay Hi Alin, I have implemented SccBeginBatch and SccEndBatch functions with some message. But these functions are NOT g ...Show All
Visual Studio 2008 (Pre-release) How to get ObjectAnimationUsingKeyFrames to work programmatically
Hi everyone... For learning purposes I'm playing around with animation. One thing I can't get for the life of me to work is ObjectAnimationUsingKeyFrames. This should be relatively simple so I'm probably missing something. In the following code I'm simply trying to make a Storyboard that hides an "element" (which can be any FrameworkElement) after one second by updating its Visibility property. However it will not work. Any idea what I'm doing wrong I've only seen examples of keyframes in XAML but I believe I'm doing the same sort of things as all those. Help is appreciated! --- // Create the storyboard Storyboard storyboard = new Storyboard(); // Add keyframe to turn off from element visibility ObjectAnimationUsingKeyFrame ...Show All
SQL Server Cont see Cube in AS 2005
Hi I have built a cube in Analyses Services 2005 and the cube is working. I can browse the cube in Management Studio. But when making a new connection to the cube in excel I cant see the cube. I can establish a connection to the server but when I need to select the cube in the drop down the list is empty. This is a problem connecting to the cube on the dev server and when connecting to my local cube. Does anybody have an idea what can be causing this Thanks Sorry, I think my first post was a bit misleading. This is an error when I try to connect to the dev server or my local AS. I don’t want to connect to both at once. ...Show All
Visual C# HOW TO DO A DATAGRIDVIEW WITH FIREBIRD
Hi y'All Does anybody know how to gridview a firebird backend. It would help a lot if you can provide a few lines of straight to the point sample code. . ...Show All
SQL Server Primary Key Question
I have been developing a .NET Web app with an SQL Server 2005 Express database. Since I've been testing insert and delete code with a large data source, the Primary Key column which is also an autoincrement integer column is now at very large numbers (starting at over 40,000 now). I've tried doing a shrink on the database, but other then reducing the database size, it has done nothing to reduce the Primary Key numbers. Is there a command way to reduce the starting number back to 1 or do I need to completely reconstruct the database from scratch TIA No dice. Neither of those options does it. That I want is, for example, a way of changing the lowest Primary/Identity Key value from 40,000 to 1. Th ...Show All
