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

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

ClaesWedin

Member List

prk72
Sundararajan
ahmedilyas
Mowali
Vinodonly
Kinju
Penicillin
Riphat
Kranthi Ranjan
Sondre - MSFT Regional Director
R Raghu
ryan.berry
Spydaz
laboremus
A.Russell
willajo
Syed Faraz Mahmood
albidochon
Vince206
Alexey Rokhin
Only Title

ClaesWedin's Q&A profile

  • Visual C# Analog Clock algorithm?

    Hello, I have a lot of source code for how to create an anlog clock but i cant understand the algorithm, esp use of 'sin' and 'cos', so please any one can help me with a tutorial for the understanding of the algorithm, Thanks and regards I'll take this chanllenge... All these kind of algorithms draw lines from a point (center of your clock) with different length/width/color (hour arm, minute arm, second arm), towards different angle (different time). Assume your clock center is at (x,y), the length of the arm is r, and the angle is a, then you need to calculate a second point (x1, y1) so you can draw a line between (x,y) and (x1, y1) to paint a clock arm. If you have difficulties with 'sin' and 'cos', you can just use ...Show All

  • Visual C# Guide on Cross Threading

    Anyone have a good guide on cross threading Essentially, I'm trying to access a Windows form control outside of the thread it was created in. Any help would be greatly appreciated. in what way I guess you would do the same thing if you want your main thread (UI) to call/create/show another form rather than from the other (non UI) thread. the code posted/link posted applies generally for anything you do cross threading, however the only thing that changes is just the parameters really and thats it. So instead of taking in a bool value, you can have an int value, or a string, or whatever. The delegate signature must match the method signature, as you can see ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Debug Console?

    I'm new to C#, XNA, and DirectX but I've been doing C++ and OpenGL for a while now so I'm not COMPLETELY new. But my question is how do i create a "debug console" in XNA (will be used on XP, not 360) By debug console I mean a command window( cmd in windows ) that outputs the information i specify while the game is running. Hi there, I think you're looking a method of writing to a debug type log The following command will output a line to the console: Console .WriteLine("This is a test"); You can access the console in the IDE by using the View Menu and selecting Output (or CTRL-W). Hope this helps! ...Show All

  • SQL Server Date formats in SSIS

    Hi once again guys, I seem to be struggling with everything in SSIS these days! I have a datetime field and I want to convert it to the following format in my derived column component : yyyy.mm.dd I also have another datetime field but this time I am only interested in the time values and I want to get : HH:MM How do I go about doing this in the SSIS expression builder Please help. Hi Jamie, The error message isn't very specific to be honest, but the expression is highlihted in red so obviously it doesn't like something about it. I'm getting depressed now. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Is an Xbox Live connection required to play games on the 360?

    I don't plan on deploying my project(s) to the 360 anytime soon, but am wondering if an Xbox Live connection is required to run the XNA Game Launcher. If I deploy my game while the Xbox is connected to Live and then proceed to disconnect (say, if moving the system to another location where a network connection is unavailable), will I still be able to run the XNA Game Launcher This question is more out of curiosity, because I doubt I will ever not be connected to Live unless due to a network problem. You must be connected to Live in order to run the XNA Game Launcher. If you become disconnected, the XNA Game Launcher will notify you and exit back to the dashboard. --Stephen ...Show All

  • .NET Development Browsing for SQL Server

    Im writing a Windows app that get data from a sql sever database. Im trying to see if there is a pretty little control that browses for servers in VS2005. Ive seen many apps that use a similar looking sql server browser ...it has a tree view with the SQL Server icons and stuff. Just shows all the SQL servers connected in a network. I couldnt seem to find it on the controls list..does anyone know how I can get this Hi, There is no such control built-in, but maybe there is a third party control vendor that sells such a control. Regards, Charles ...Show All

  • SQL Server Adding assembly file to AS database via AMO

    I am trying to add an assembly reference to an AS database using AMO objects. The class Microsoft.AnalysisServices.Assembly class does not expose any file property or source property to assign the assembly file path. With SQL Management Studio, I can right click on the Assembly folder and add a new assembly. I want to do the same thing in code. Can someone provide me with an example Thanks!! The AmoAdventureWorks sample that is shipped with SQL Server has the following C# routine which does what you want. static void CreateStoredProcedures(Database db) { // Create the CLR assembly ClrAssembly clrAssembly = db.Assemblies.Add("StoredProcedures"); clrAssembly.Imper ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Tutorials or pointers needed

    Hello people, I want to get some pointers on how I could make a simple 3D "rectangular" environment where I could put some floating object inside and a camera inside that rectangle backed on one of the rectangle's walls. Like if someone was trapped inside a huge metal tank with some boxes or whatever floating everywhere. Huge thanks guys, Stef Ahhhhhh!! Excellent!! I am familiar with win32/MFC C++ programming since I've worked for 2 years using that... Man do I miss these years! Not because now sucks but, during that time, the projects were so cool and the colleagues less obnoxious! Anyways! Thanks a lot for the pointers, I'll devour them once I get some time to! Later, Stef ...Show All

  • Visual Studio Tools for Office Can a VSTO 2005 Excel Application be started from a web application?

    This honestly has become about as frustrating as ever, folks. I've read post after post after post, just about every "How To" written, and just about every last bit of the VSTO architecture on MSDN. I know that an Excel application can be called from a Windows Form based on 10,000 posts and examples. I haven't once found anyone who tried to start an instance of Excel from a button click event off of a web page. I know that that may sound kinda silly, but that's what my client wants. So - first question: Can an Excel application (i.e. an Excel worksheet with C# code-behind, developed using VSTO) be opened using the C# code-behind for an ASPX (2.0) web application Currently, I get a "Remote Procedure Call failed" error, ...Show All

  • Windows Forms slide out pannel

    in VB 2005, Windows forms, is there such a thing as a "Slide out Pannel" I have a form with a split container. I would like to have a button in the left side and when clicked, have another pannel (or something) slide out into the right pannel. Any Ideas THANKS, Carl Check this thread ... ...Show All

  • Visual Basic Delta file copy - How

    Hi, I have seen a lot of applications that can detect what part of a file has changed and can copy only that part to the file on a target server. i can not find anything my self so i am here. does anyone know how to or know a site explaining how do this in vb.net. This is a cool feature that i would love to add to an ftp app that i have written. Cheers Rich If the app you wrote is an FTP client, you just need to start the transfer where it left off (and the FTP server needs to support resume). See http://www.codeproject.com/internet/pauseresume.asp. I know the code there is C++ but the author gave the necessary steps to resume uploads and downloads. ...Show All

  • Audio and Video Development HD-DVD DONE!

    32 Hours and Im ready to burn!!! Thanx a million Jeff you were the primer! Do I just burn my 2 folders to a DVD-9 as Data or is there a trick to get the Toshiba HD-XA1 to play that way I tried it today with a dual layer project and it didn't work. I can't say for sure that it's not the media that is causing the issue though. I used Verbatim DVD+R DL media and the player said it wasn't a vaild DVD. The same process with a single layer project worked. That was on some generic DVD-R media. So I can't say for sure whether or not it will work. You may have to give this one try on your end to what results you get. ...Show All

  • .NET Development Blocking / Purging IE History in WebBrowser host app

    Hi A project that i'm working on hosts a browser control and needs to prevent it from writing history entries. I cannot find a solution maybe someone here can lend a hand... Clearing the entire history is too invasive; i only want to prevent local files that are loaded within my app from being appended to the global history (the control's history is not important, my app has no back buttons). Also it must not interfere with other instances of IE that may be running at the time. Ideally i'd be able to select which URL paths are committed. Is there an event that can be handled for doing this or a com interface that i should be looking at I've looked into selectively purging the history but as this cannot be done while expl ...Show All

  • Windows Forms Detecting design-time mode in Windows form ( or Web Form ) code

    How do I detect in my Windows form ( or Web Form ) code whether I am running in design-time mode or not I need to have slightly different logic due to the fact that at design-time the appSettings of my web.config file are evidently not available aand always return null. There must be a bool or enum to tell me what mode I am in at the form level, but I can not find it in the documentation. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Creating a simple Box with D3DXCreateBox

    Hi, i have a problem with D3DXCreateBox. I simply want to render a box of size 100, 100 and 1 in a windowed application. So i have the following: void render( ){ //Mesh LPD3DXMESH mesh; pD3DDevice->Clear( 0, 0, flags, D3DCOLOR_XRGB( 255, 255, 255 ), 1.0f, 0 ); pD3DDevice->BeginScene(); D3DXCreateBox(pD3DDevice, 100, 100, 1.0, &mesh, NULL); mesh->DrawSubset(0); pD3DDevice->EndScene(); pD3DDevice->Present( NULL, NULL, NULL, NULL ); //this is ugly but works mesh->Release(); buffer->Release(); } When i call render in the main loop it only clears the scene but does not render the box. while ( 1 ) { // Only render when there are no messages if ( P ...Show All

©2008 Software Development Network