Bjorn EP Backlund's Q&A profile
Architecture When and Where to use Interface
Hi All, I have a question here.Im bit confused of interface usage. Is it correct to have a separate separate interface for data objects I have around 10 business classes and have corresponding 10 data classes. Do we need to have a separate separate interfaces for each and every data class What is the correct norms of using interface Please clarify this. Thanks in advance. It depends... are you going to be making these classes COM accessible If so... then yes, you’ve got to use interfaces for everything that will be visible as a COM component. Do you have to use them No, you do not *have* to use interfaces with your classes... and without know much more about your classes, how you use them today and how you ...Show All
Software Development for Windows Vista Getting information about a workflow instance
I am building an Workflow-based application that will contain a "Task List" to inform users when a workflow instance is waiting for their input. I would like to populate this Task List by examining the loaded workflows and determining which are waiting for input from the current user (based upon Role membership). In the WinSDK Samples, the OrderingStateMachine demonstrates how to use WorkflowInstance.GetWorkflowQueueData() to get the list of event messages that the current workflow state can handle. How would I add the following functionality When the workflow is in the "OrderProcessed" state, the order will be assigned to a specific shipping group based on the order's destination, and only the members of that ...Show All
Visual Studio Team System can not Find FxCopSdk.dll And Microsoft.Cci.dll. Please Help
As i have installed FxCop From gotdotnet site. but when i am using the dlls present there it is not getting added into refrence of my project(i am creating new rule). It is showing me No metadata found error. What should i do Its urgent please guide me. They are located in the FxCop or Code Analysis installation directory, which is typically: FxCop: C:\Program Files\Microsoft FxCop [Version] Visual Studio: C:\Program Files\Microsoft Visual Studio [Version]\Team Tools\Static Analysis\FxCop Regards David ...Show All
.NET Development Best way to update a MS Access database
Hi, I`m using a MS Access 2003 database to connect from within my csharp code. I`m using the default design-time generated TableAdapter. Is there any way to understand if an update was successful When I insert a new record into one my tables in access database, how can I be sure that it is correctly inserted Is there any possibility that the record can not be inserted or updated, or the operation can be broken after some of the values are correctly inserted or updated but NOT all and no exception occures in the try catch block of my code where I execute these update or insert statements Shortly, what is the best way to update a database especially when you are using multiple linked tables and you need a return value from ...Show All
Visual Studio Express Editions ListBox question
I am importing a file into my listbox and I want the second value to open up the actual directory where the file above is located. Is there a way to do this Files is simply: nameof-file File-location pointers are always appriciated You wil have to be a little more clear on whats going on and what you want to happen... Is the name of the file the first item in the list box and the directory the second item in the list box What do you want to happen (open Up) with the directory If Directory . Exists ( "ThePath" ) Then Dim MyFiles () As String = Directory . GetFiles ( "ThePath" ) For Each s As String In MyFiles Me . ListBox1 . Items . Add ( s ) Next ...Show All
Visual Basic How to create an instance of a C DLL.
Hi. I want to know about creating an instance of a C DLL and how to use that instance in a VB function on VB6.0. Thanks in Advance. My answer is about VB6, just read it better. Replace Windows libraries with your C library and call functions using API calls as described in the article. ...Show All
Visual Basic Help on making a Defragmenter
Hi, not sure if this question goes here, but, I would like to try make my own defragmenting program, any info on how to or where to start to be able to make this in visual basic 2005 pro, I know the theory, but not sure how I can get the info from a disk, and start putting the files togheter, I would like to start this small project using the basic floopy disk (less risk of ruining my Hard drive) so if anybody can give me a hand or guide me some sample code or in the correct direction, I would appreciate it a lot. In advance I want to thank the people that answer me. Have a nice day Is there any way I can do it in Visual Basic .NET 2005, my future plan is develop my own recovery software, defrag ...Show All
SQL Server Populating staging table using SSIS
Hi, I have a flat file with columns from a geographical hierarchy such as: Country Zone State County City Store Sub Store , etc. The file also has data columns for months to the right of the above columns such as: Jul Aug Sept ......... basically 25 of these columns for two years' data for one product and another set of 25 columns for another kind of product. A typical record in the file looks like: Country Zone State County City Store Substore USA Southeast FL Hillsborough Tampa walmart Fletcher May04_ProdA ....Jun06_prodA May04_ProdB...Jun06ProdB 144 160 180 158 I need to upload this data into a staging table in SQL Server 2005 ...Show All
Visual Studio Express Editions VB Express connecting to SQL database
Can anyone tell me whether its possible to connect Visual Studio Express Edition to a SQL server database not stored on the local host. I rent some SQL space on the net but I only seem to be able to connect to a locally stored database in vb express. Can anyone help me out Thanks.. Hi Yes this is possible. You need to define a connection string to the remote database: For example, the following connection string will connect me to a remote server running SQL Express cnn1 = New SqlConnection( "data source=10.100.25.231\sqlexpress;Integrated Security=true;Initial Catalog=SSOP" ) 10.100.25.231 = IP address of Server. Computer name could be used \sqlexpress = instance of sql Integegrated Security = Windo ...Show All
Windows Forms Fill Ellipse
Hi I was wondering if anyone could help me please, i have the code below, what i need to do is actually have those ellipses filled can anyone help please. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Circles { public partial class Form1 : Form { private List < Circle > m_Circles = new List < Circle >(); private int count; public Form1() { InitializeComponent(); int radius = 1; int x = 230; int y = 175; int x1 = 260; int y1 = 182; int x3 = 283; int y3 = 200; int x4 = 2 ...Show All
Community Chat Some neat things about Vista.
I'm not using the Vista Start menu. I am using someone elses and it didn't come with Help. (I think I know why) Vista's new help engine is called Helppane.exe and simply starting it up doesn't bring up help. In looking into this I discovered that the taskmanager displays somethings that it didn't used to. For example it display command lines for processes that just started up. I start the normal Vista Start button and select Help and when it came up I noticced that the command line was Helppane.exe -embedding All I had to do then was a add that to the link and I now have help. Does anyone else have any interesting Vista tips. I think we'll stat to see a lot more interest this week. Well I take that back in th ...Show All
Visual Studio diff chain size mismatch
Hi What is the cause of the error. We use VSS2005: There is a diff chain size mismatch in file 'abc.asp' (ebseaaaa) at version XX We are getting these error. and we can fix them with ssarc, but it’s loss of data, so how can we prevent them All files is UTF-8 so is it a bug or something Please help Kim While this message may appear when there is database corruption, there is indeed a bug affecting Utf-8 files (and if I remember correctly it occured when one version of the file didn't had UTF8 BOM marker, but the next version had one). According with Patrick ( http://forums.microsoft.com/MSDN/showpost.aspx postid=1055995&siteid=1 ), the fix is available as ...Show All
Visual FoxPro accessing a foxpro table on my website
I have a simple FoxPro table sitting on my website. I need to read and write data to it in an standalone application on my pc. I can get to where I can read the data but I cant change the data. Any help would be greatly appricated. It doesnt have to be fancy I just need a simple way of doing it. Thanks I was in the process of following a suggestion from his site of simply using the USE statement to access the table on the website. That would seam to be all that I need and all works well except that when I attempt to write back to the table it says that it is "Read Only" I have it added to the data envitoment of the form. Any suggestions ...Show All
Visual Basic MP3s
How to run an mp3 file in the same window(NOT TO OPEN windows media player or real player etc...) by using a play click and how to stop it by clicking a stop button, and also a pause button. I need full code for who know. download the DirectX SDK - all examples and source code are included. Its also easily understandable with the naming conventions and method names, you can play the audio files within your application without any players opening. Example, once added a reference to Microsoft.DirectX.AudioVideoPlayback, simply do.... Dim thePlayer as new Microsoft.DirectX.AudioVideoPlayerBack.Audio(" path\filename.mp3 ") thePlayer.Play() ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D Actors and animation for games
Hello I am currently taking part in the XNA GSE beta, but I approach this from the content production side with focus primarily on 3D character motion and facial animation. My expertise is not coding, but intrigued by the press blitz put on by MS I took bait. Here's what I'm thinking. I would like to test and work with those here to collaborate on a project. I can provide some characters and animation in FBX format or X format, which can convert to SWM if necessary. If anyone is working on a FPS or action/adventure, or any game for that matter that would need 3D characters and facial animation please contact me. I can produce prototypes on-the-fly of any basic human in general clothing or more complex needs based on the project. Ultima ...Show All
