Software Development Network Logo
  • Microsoft ISV
  • IE Development
  • SQL Server
  • Smart Devicet
  • SharePoint Products
  • Visual C#
  • .NET Development
  • Visual FoxPro
  • Audio and Video
  • VS Team System
  • Windows Forms
  • Windows Vista
  • Visual Studio
  • Visual C++
  • Visual Basic

Software Development Network >> barkest's Q&A profile

barkest

Member List

Leonard Lee
Cest la vie
MrJavaGuy
SLV
NetPochi
Boulderdude
Roy mm
Musafir
legojedi
AndyL
alienated
Chimme
Zooz
Marco Bergonzini
Mnd1
Emadkb
Clemens Vasters - MSFT
Dave Midgley
Shmelly
Sigge
Only Title

barkest's Q&A profile

  • Windows Forms Why My Custom ToolboxItem did not work?

    public class ActivityToolboxItem:ToolboxItem { //private Type m_Type = null; public ActivityToolboxItem() { } public ActivityToolboxItem(Type pComponentType) :base(pComponentType) { //this.m_Type = pComponentType; } public override string ComponentType { get { return base.ComponentType; } } } and then in IToolboxUser Implementation. public bool GetToolSupported(ToolboxItem tool) { if(tool.TypeName == "WindowsApplication5.MyActivityA") { return true; /// } return false; } the "WindowsApplication5.MyActivityA" class is decorated with ToolboxItemAt ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Ball Collison for pool/ collision

    hi, ive been making a pool/ billards game in xna in the past weeks and i am having trouble with the collison. im currently using boundingsphere's and they work when the white ball hits but when the ball comes back at it, it stops moving. Any Help http://www.gamasutra.com/features/20000516/lander_01.htm You will need to log in to access this article however it covers pool physics :) ...Show All

  • Visual C++ How to detect mouse click in the child window created by the CHTMLEDITVIEW VC++. NET

    Hi, Seek help urgently. Anyone knows how to detect mouse clicks in the child window view that was created by the CHTMLEDITVIEW (base class) MFC of VC++.NET 2003 i.e. When i clicked " File -> Open -> " powerpoint.ppt" ( document ) The powerpoint slide will open in a MDIChildWnd. ( if i am not wrong, it is a web browser view ) I tried to use the WM_ONLBUTTONDOWN events provided in the CChildFrame, but i could not detect any mouse clicks. I have tried searching for solution but i couldnt find any. Can anyone help im stucked in this problem for almost a week. Really appreciate if anyone could help. tks. terr Hi brian, tks for the tips on that. I used the Spy++ to check which ...Show All

  • SQL Server Using SMO to create SQL Express accounts?

    Hi, Please could someone let me know what the minimum Server and Database roles are for an Account to use SMO to create further accounts, using SQLSever accounts and not Windows authentication. I'm finding it hard to find the right documentation.... Could someone give me a link into SQ Server Books 2005 (Express) online, that explains SQL Server security from the ground up. ie What all the roles are for etc. Thanks John Hi, I searched again, and found a link to the info I was looking for, at http://msdn2.microsoft.com/en-us/library/ms187648.aspx But I would still be oblighed if someone can answer the first part of my post above. Thanks John ...Show All

  • Visual Basic Slow execution of DTS packages from code

    A DTS package on SQL server 2000 takes about 30 seconds to run locally on the server, within Enterprise Manager. When run from a VB.Net program (in VS 2005) it takes 10 minutes to execute. Any ideas as to why Here is the code I am using (A reference was set to the COM DTSPackage dll) Imports DTS Public Function gbExecuteDTS( ByVal sPackageName As String ) As Boolean Dim oPkg As Package2 Const DTSSQLStgFlag_UseTrustedConnection = 256 oPkg = New Package2 oPkg.LoadFromSQLServer(gsSQL_SERVER,,,DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrustedConnection,,,,sPackageName) oPkg.Execute() oPkg.UnInitialize() End Function Any suggestions are greatly appreciated. Thanks, Ian Digby ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How to Animate Meshes? FBX?

    Is there a tutorial or sample on how to animate 3d meshes in GSE out there What I'm looking for is how to import fbx files with animation data and how to use that information. Cheers Alfons   AlfonsAberg wrote: Is there a tutorial or sample on  how to animate 3d meshes  in GSE out there No, not for FBX files.  MSFT has stated they will release an animation example at some undisclosed period of time.  This is a very commonly asked question, so you can find more info by doing a forum search. ...Show All

  • Windows Forms Display a specific item from a DataGrid

    I've successfully created a datagrid using an oledbdataadapter. The application displays and updates as advertised! Now I'd like to create a button that would generate a message box. In the message box I'd like to display a single, specific item from the data grid. Here's the question(s) - is this possible - and if so how do I specify the item For simplicities sake please assume that the first record(row) is where we'll find the record. Here's some sample information: Target dataset: Properties.Locations Data Table: Demographics Specific Item: Customer_Name (fifth item/column in the grid) Thanks you would go through the datasource for this accessing the rows/columns by index or columnName. Exa ...Show All

  • Software Development for Windows Vista Issue with spaces in ressources filename

    Hi, I tried the example of the rehosting of the designer ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/WFDsgnRehst.asp ) and found that there was an issue when you save the project in a folder with spaces (typically "Documents and settings").. The compilation fails , "Error CS2001: Unable to find the source file 'and' Error CS2001: Unable to find the source file 'settings/User/foo.rules'" the issue comes from theses lines: Try the following instead: string resources = "/resource:\"" + rulesFile + "\"," + this .NameSpace + "." + this .TypeName + "." + "rules" ; ...Show All

  • Visual C++ Visual C++ Path

    Hey, I'm an aspiring C++ programmer and Ive so far learn't these things: - C++ Basics (Variables, Structs, Functions, All the console stuff) - Winsock (Most of the TCP and UDP stuff) - STL Thats what I've learn't so far. Now, Im wondering what else I need to learn before I can make games (3D Games mainly): I know I need Direct3D, DirectSound and the stuff I've already got. What else do I need to do Also, I would not only like to learn games but basic programming (making professional apps). Is there an internet list or could someone make me a quick one of topics i should Google or books I need to read. That would be great... Thanks, Daniel I don't want to hurt your feelings, but I find it funny how many pe ...Show All

  • Software Development for Windows Vista Enumerating Audio Source Lines in Vista ?

    hi, What Interface or API to use for enumerating Audio Source Lines (i.e Line IN, microphone, phone Line, CD Audio) In Vista That sounds right - capture endpoints are input sources and render endpoints are outputs, so capture sources won't affect speakers (that's ok, since speakers make really lousy microphones ). ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Order of DeviceLost, DeviceDisposing, DeviceCreated, DeviceReset, etc?

    While the documentation documents the GraphicsDeviceManager.DeviceDisposing, GraphicsDeviceManager.DeviceCreated, and GraphicsDevice.DeviceLost and GraphicsDevice.DeviceReset events, it doesn't document when these will be invoked, and in what order. Assuming the user drags the window from one device to another, I would ASSUME I'll get the following sequence of events: GraphicsDevice.DeviceLost GraphicsDeviceManager.DeviceDisposing <new device is created> GraphicsDeviceManager.DeviceCreated (I can hook up to the new device events here) GraphicsDevice.DeviceReset However, there's nothing that actually guarantees that I'll get the DeviceLost and DeviceReset events. Currently, I don't have a multiple-device system to test on, so I can't ...Show All

  • Visual Studio 2008 (Pre-release) Triggers!

    Hello everyone, I am trying to create a trigger that is true to have it change a property value of a different element. Here is an example <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " xmlns:mc=" http://schemas.openxmlformats.org/markup-compatibility/2006 "> <StackPanel> <StackPanel.Resources> <Style x:Key="MyStyle " TargetType="{x:Type ComboBoxItem}"> <Style.Triggers> <Trigger Property="ComboBoxItem.IsSelected" Value="True"> <Setter TargetName="txtMyTextBox ...Show All

  • Visual Studio Team System Unit tests not running in parallel on agents

    I have a fairly long-running unit test that I'm running on a test rig with 4 agents. The unit test is data-driven, with several users in a single database table that are each executed when I run the unit test outside of a load test. The load test I'm trying to run only runs this one unit test. I have configured the load test to run with a constant user count of 2 and all 4 agents are available. As each user in the database table is executed in any running instance of the unit test, it is marked as DONE, which means it won't be run again by another unit test. The basic idea here is that I have all these users that I want to run once in a load test and I don't care which instance of the load test runs them. I just need to push through en ...Show All

  • Visual C# C# using C++ dll throwing exceptions

    I have a C# application which dynamicly loads a C++ dll Is it possible for the C# application to catch exceptions thrown by C++ dll shade wrote: That was not what I asked for, I wish to able to throw exceptions across lannguages. As was said - yes, you can throw exceptions across languages as long as they are thrown from managed code. However, If you are throwing an exception (SEH) from unmanaged code being called through p/invoke, the p/invoke layer will wrap it and throw a managed exception for you - you'll lose a lot of information, though. ...Show All

  • .NET Development How come Console.WriteLine() does not work any more

    Hi all, I have a C# winform application. If users run it from the command lines and pass a /Help or / to it, it does not invoke the winform, but instead uses the Console.WriteLine to display the help and then exit. I know for sure this works before, at least prior to my upgrading the VS2005 with SP1. Now suddenly, the WriteLine() does not work any more. If I enter /Help or / , the WriteLine() basically executed but does not write any thing on the console. And then the program exits ...peacefully. Note that I debug the code and indeed the WriteLine()s are executed. Within the VS IDE, it does write the messages to the output panel. But from the DOS command, nothing is displayed. Here is the code: static int Main( string ...Show All

©2008 Software Development Network