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

Software Development Network >> Dan Mikkelsen's Q&A profile

Dan Mikkelsen

Member List

Tom_Liu
Attila Fogel
velkan
jameyer
SmallRat
Adrien Regimbald
Zulbaric
sql2005 user
Andymcdba1
NonExisto
PIEBALD
JustPlayingAround
Krutika
barkingdog
svxtc
Euclidez
darknessangel
thomas_schmidt
Douglas H. Troy
PrasannaVenkatesh
Only Title

Dan Mikkelsen's Q&A profile

  • Smart Device Development eVC4.0,MFC,SDI application - Proper way to change font for a static control?

    I have a problem getting my font changed for a view in my SDI application. I have done what I thought was the logical way of seting the font for my static control that is on the dialog template that the view is useing. Here is what I've done and produces nothing because the OnInitialUpdate function is NEVER called. class declared as: class MyView: public CFormView member variable of that class: CFont m_titleFont; In the implementation I have the OnInitialUpdate overridden with the following: m_TitleFont.CreateFont(16, //nHeight 0, //nWidth 0, //nEscapement 0, //nOrientation FW_BOLD, //nWeight FALSE, ...Show All

  • Visual Studio Express Editions Using print preview control

    Dear friends, I have asked here a function to control the scrollbars of PRINT PREVIEW CONTROL. You answered me to use a function that uses OS call "Sendmessage". I put the code in my program, it works, but I would to know if I could use a function similar to one that I use to change Zoomlevel , maybe prtPreview.Movescrollbars(...). I have not found any info in MSDN documentation, please answer me, here is the code I wrote (it works): In the Form declaration section: 'Declare print preview control constants Private Const WM_VSCROLL As Integer = &H115 Private Const SB_PAGEUP As Integer = 2 Private Const SB_PAGEDOWN As Integer = 3 Private Const SB_ENDSC ...Show All

  • Visual Studio 2008 (Pre-release) WPF is Crashing!

    Hi All, I'm running the WPF SDK Demo called: MediaGallery and the following error occures: "Unhandled exception at 0x5302444d in SDKSample.exe: 0x0000005: Access violation reading location 0x00000001" Looking at the call stack, it seems that milcore.dll calls WindowsCodecs.dll on function: !5302444f7 that calls !5302444d in the same dll. Does any guy in the WPF team knows what is the problem with milcore Where can I find PDB files for milcore.dll and WindowsCodecs.dll Did I missed any codec or using the wrong codec Sounds like an install issue. Take a look at the workaround Mark Grinols suggests in this thread . Follow the steps, replacing "WinFX Beta 2" in those instructions wit ...Show All

  • SQL Server Sum measures

    I have two dimensions DimFactory and DimDate and a factSale having measure NewPens. The attributes and heirarchy of DimFactory are Company->Division->Region->Branch I would like to calculate the total number of NewPens for a Company, Division, Region and Branch for a week in a query. I create calculated member(s) that returns the Sum of NewPens for a company, division and region. The MDX expression is as shown below. with member measures.SumCompany as SUM( { DimFactory.Company.members * [Dimdate].[Week Of Year] } , [Measures].NewPens) member measures.SumDivision as SUM( { DimFactory.Division.members * [Dimdate].[Week Of Year] } , [Measures].NewPens) member measures.SumRegion as SUM( { DimFactory.Region.members * [Dimda ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Is it safe to inherit Xna.Framework.Game and move it to a DLL?

    Hey all, Sorry for the second silly question - the documentation is a little rough around the edges. I'm looking to create an "engine library", so that a new game can just reference the DLL and inherit from my custom class (which inherits from Xna.Framework.Game). Are there any pitfalls in doing this ie, Xna.Framework.Game -> EngineGame : (inherits) Framework.Game --> MyGame : (inherits) EngineGame I don't see why there would be a hiccup in doing this, but once again, the documentation is rough around the edges and I don't want to commit a lot of work to a flawed design. ...Show All

  • SQL Server How to Schedule and Run a SSIS package

    Hi Does any one know how to run How to Schedule and Run a SSIS Package for certain time intervals I have created an application which will do some data transfering from one database to another databse based on the start time and end time values(Which is been already configured in some tables). What I am exactly looking is that my application should do data transffering Based on only the time intervals(Startime and End Time) I wanted to execute my package only these time intervals. How to do this Can any one help please. Thanks & Regards Deepu M.I It sounds like you have a custom application that runs the packages at certain intervals. If that's the case, th ...Show All

  • SQL Server What is the type of object returned by AquireConnection

    Hi, I cannot seem to find the documentation on what is returned when you call ConnectionManager. For example in the code below I'm using an FTP Connection Manager. The cn variable is a System.__ComObject and I cannot see how to determine what com type it actually is, nor can I find any API documentation which describes the types each connection manager "manages". The reason I'm trying to do this is I want to create a script which enumerates the directoy listing of an FTP site, I've got it working using varaibles but I'm trying to see if it's possible to use the connection manager instead. Dim cmgr As Microsoft.SqlServer.Dts.Runtime.ConnectionManager = Dts.Connections( "FTP Connection Manager" ) Dim cn ...Show All

  • Windows Forms setup/deployment using windows Installer

    Hey all, I think I’m over my head here looking for some direction. I’ve build a program and used Click Once to deploy it,--works find, but now I’ve added some item i.e. ActiveX Controls which have to be register to the user machine. So, as I understand I can no longer use Click Once and need to use Windows Installer. I’m using Visual Studio 2005 which has a setup/deployment Wizard for window installer, the only problem I have know idea what it needs when the screen comes up and say, “Choose file to include.” Does anyone know of a good book or reference material that will help me understand the window installer and what I need to use it I know probably easy, I blame it on my Irish ancestor and 6 month of programming experienc ...Show All

  • SQL Server SQL server 2005 POOR performance on a good dev machine

    Hi there, I was wondering why my installation of SQL server 2005 on my Del inspiron notebook is so slow when using the Management Studio. I get the message that sql server is waiting for a process to finish quite often and it just seem to be bloody slow in general- like when i populate a table by hand I have a dual core intel 2.6gHZ Dell Inspiron with 1gigs of RAM and a 7200rpm drive. It should be more than sufficient. Regards Mike I am having exactly the same issue on my dual core AMD. It runs faster on my 2.8 celeron laptop on MSDE 2000. Something is wrong with SQL Express and dual core. I wish MS would get on this problem ...Show All

  • Visual Studio 2008 (Pre-release) Listbox - Center item

    Hi I'm trying to create an album-viewer of all my music albums. To this I'm using a ListBox with Orientation ="Horizontal" - this is all fine, and I can see my albums. But my issue is, that I want to center the item I just pressed. How can I do that Is there an alternative to ListBox which is better to use for this purpose I'm not clear on what you're trying to do. When you say that the ListBox's Orientation="Horizontal" do you mean that its ItemsPanel's Orientation is Horizontal What do you mean by saying that the selected item should be "centered" Centered vertically Horizontally ...Show All

  • Visual FoxPro GRID HELP

    hI! I HAVE PUT A GRID IN A FORM BUT THE CURSOR DOES NOT MOVE TO THE SECOND ROW.SO PLEASE HELPPPPPPP! also when i run this form a pop-up window come open with 3 options 1)do you want to add records in a parent table 2)do you want to add records in a child table 3) do you want to add records in both so i want this pop-up window to stop coming up when i add new record I take it that you have used the form wizard to build these forms because this is not native behavior. You would be better off not to use the wizards. There is too much baggage that comes along with them (as you are now discovering). ...Show All

  • Visual C++ Update of activeX problem

    Hi all, I am using Visual Studio 2005 and is having this really annoying problem when I am doing some updates to activeX controls. These controls are developed using MFC activeX wizzard. Lets say that I am using one of my own activeX controls in a container application. Then one day I do some updates to the control, for example I add a new method to the control. Now I want the changes in the control to be reflected in the application using the control. I am looking for the possibility to uset the latest control versions in my container app. It is possible that this feature is already there, but so far I havent found it. I work my way around this problem, but it is very bad practice. When I have made some updates to my control and ...Show All

  • Visual Basic Progress bar help

    can anyone please help me out on making my progress bar to work whilst it loads website etc... here is my current code it dose come up with a syntax error where it says CopyFile. [code] Private Sub CopyWithProgress(ByVal ParamArray filenames As String()) ' Display the ProgressBar control. ProgressBar.Visible = True ' Set Minimum to 1 to represent the first file being copied. ProgressBar.Minimum = 1 ' Set Maximum to the total number of files to copy. ProgressBar.Maximum = filenames.Length ' Set the initial value of the ProgressBar. ProgressBar.Value = 1 ' Set the Step property to a value of 1 to represent each file being copied. ProgressBar.Step = 1 ' Loop through all files to copy. ...Show All

  • .NET Development .NET Framework Access to Remote File Share

    Does anyone know of any .NET classes or techniques for accessing a remote file share on a different domain without using calls to unmanaged Windows API dlls I have a .NET application running on a machine in domain A that needs to access a share on a machine in domain B. I'm trying to find a way to connect to the domain B share and provide the necessary credentials without requiring user intervention. An interactive user would simply access " \\domainB\sharename " and enter credentials when prompted, such as "domainB\username" & "password". I've seen some solutions that involve calls to advapi32.dll (to create an authentication token) or mpr.dll (to create a drive mapping), but I'd like to accomplish ...Show All

  • SQL Server How to make a File Share Subscription running on Vista?

    I recently migrate to Vista.   I had a bunch of reports with file share subscriptions that were running fine on XP.   After installing reporting services on vista (that part only was a challenge), I re-created my subscriptions using the report manager.   As expected, when a subscription is executed, the ‘last run’ column shows the last time the report output has been delivered to the file share and the ‘status’ column shows ‘New Subscription’.   I thought that this was the signature of a successfully configured subscription.   But surprisingly, there is nothing in the file share. The directory is empty.   Anybody has an idea why   Anybody knows how I could possibly find information on my ...Show All

©2008 Software Development Network