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

Software Development Network >> Thomas S. Andersen's Q&A profile

Thomas S. Andersen

Member List

ListrCZ
Larry.Dugger
ChrisMcCabe
Tomas Restrepo
NPrinsloo
Simon Dahlbacka
JimbyHere
David Sakhelashvili
swaroop.m
LennardF1989
Gregoryew
Prasanna_Iyer_d76ea7
ChristopherC
kadabba
kampak1111
_mAyDaY_
Logica
Joe Rattz
Luigi Fonti
Tommysaurusrex
Only Title

Thomas S. Andersen's Q&A profile

  • .NET Development saving objects to application throwing null reference error

    I am having a problem and I don't know why. I am trying to save a datatable to application state and I cant seem to be able to acheive this. Here is what i'm doing: Sub Application_Start( ByVal sender As Object , ByVal e As EventArgs) Dim sqlConn As New SqlConnection(PubVars.connString) Dim sqlCmd As New SqlCommand("SELECT * from tbl1", sqlConn) Dim allMembersDset As New DataSet Dim allMembersDA As New SqlDataAdapter(sqlCmd) allMembersDA.Fill(allMembersDset, "tbl1") sqlConn.Close() Application("allMembers") = allMembersDset.Tables("tbl1") End Sub When I try to retrieve this table from another page like this: Dim dt As New ...Show All

  • Visual C# c# and fortran

    Hi, I'm trying to use Fortran routines in c#, for that, I think, I need to create a dll from the fortran source, and then import and declare the routine in the c# code. This is what I'm doing: Fotran code: SUBROUTINE KEPLER (S) IMPLICIT NONE !DEC$ ATTRIBUTES DLLEXPORT :: KEPLER !DEC$ ATTRIBUTES C, REFERENCE, ALIAS:'KEPLER_' :: KEPLER INTEGER I1,I2,K CHARACTER*1 S Command line for dll generation: gfortran -c kepler.f gfortran -shared -o KEPLER.dll This is how the dll is imported: [ DllImport ( @"KEPLER.dll" , EntryPoint = "KEPLER" )] public static extern void KEPLER( string output); when I run my application, where I call the KEPLER(S) routi ...Show All

  • Smart Device Development Error in Accessing SQL CE

    Hi iam using Pidion (BIP 500) using CE NET 5.0. When i try to access Database (SQL CE 2005) in this Device iam Getting a error as Can't find PInvoke DLL 'sqlceme30.dll'. I tried the same application using EMulator its working well out there but only when it's run in the device its giving me the error. I tried to create a new SDF File using Query Analyser and it gave me a error as "Failed to Intialize the Provider. Please Make sure the SQL Server Mobile Edition is properly Installed" Anyone can guide me on this issue. Thanks in Advance Biju If you mean your program is not working on the device (as in fails to load SQL Mobile on that device), that is probably because some OS dependencie ...Show All

  • Visual C++ How to get status for printer using DeviceIOcontrol

    Hai, I am new guy to this forum seeking your help. I want to enumerate the printer devices connected to the system and then want to check the status whether it is connected or not to PC. I used setDiEnumDeviceInfo and createfile to get the handle of the printer device but cant able to get it through.Could anyone tell me How to get the GUID for the printer device.Also tell what is Control codes used for this ... Are you sure, you want use DeviceIOControl There is nice API in Windows GDI, thats alows: Enumeration of printers To get print status To get printer properties Send escape codes. etc. http://msdn2.microsoft.com/en-us/library/ms535673.aspx EnumPrinters PRINTER_INFO_2 typedef struct _PRINTER_INFO ...Show All

  • SQL Server In 2000 is it possible to list second parameter based on the first parameter selection

    Hi In 2000 is it possible to list second parameter based on selection in the first parameter list Cheers Hi, In 2005 this is available by default but in 2000 it isn't. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All

  • Visual Studio Tools for Office Debug deployed solution

    I can launch my deployed VSTO doc, then switch to my VS solution and debug-attached to the correct Word process and debug things. But how can I debug ThisDocument_Startup as there is nothing to attach to at this point I need to be able to fully step through a deployed Word VSTO solution. TIA Yes you can, I do this often. Just add a MessageBox as the first line in ThisDocument_Startup ... when your message box displays, go to attach to the process, find WINWORD.exe (should be only one of these), attach to it, set your break-point in your code, then click the 'OK' button on your message box ... assuming that you have set a valid break-point, VS should stop on it when it gets hit. Hope this helps ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DirextX Version?

    The Readme file notes that DirectX Runtime XNA Game Studio Express Setup installs the current version of the DirectX runtime. The runtime is required in order to use the XNA Framework game API. Does this mean XNA stuido is using the October runtime and if I install the october SDK is it going to break anything Darkside wrote: Question still remains. Which version of the DirectX runtime and SDK is the Beta 2 running under October DX runtime updates. DX SDK is not required. Darkside wrote: is it safe to install just the october SDK with the Beta 2 Sure. Darkside wrote: noticed that under the tool options with the beta 2 that XACT is installed as well, so is this XACT from ...Show All

  • Visual Studio Tools for Office VSTO 2005 SE Deployment Problem

    Hi, I am creating a Excel 2007 VSTO COM Add-In using VSTO 2005 SE . It runs perfectly fine when I build it and run the in development computer having VS 2005 . However, when I try to install the setup.exe or .msi file for the same addin in the client machine or Virtual PC having the following configuration: 1. VSTO Runtime 2. Office 2007 3. .NET 2.0 Framework it does not seems to load . I also did caspol settings to make it Fully Trusted . I get the following error " Not Loaded. A runtime error occurred during the loading of the COM Add-in ." Can someone please help me on this Thanks in advance hi, did you check that the PIAs are installed for the office 2007 if they are not - it wi ...Show All

  • Visual Basic Dynamically load a DLL in VB.net

    Is there a way to Dynamically load a DLL in VB.net Dunno where else to ask this question, so decided to post it here...tq Actually, I have yet to write the code. After I got the error " Failed copying C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce400\X86\symbol.all.x86.cab to the device " while testing the app on Windows CE Emulator, I had stop coding with the assumption of the Symbol libraries would not load to devices other than Symbol devices. ...Show All

  • Windows Forms Windows Form to access websites?

    I play a browser-based game. I'd like to make a windows form UI for it, mainly to improve navigation and a bit of automation. To do so I have to; 1) 'fake' http posts (as in submitting html forms) 2) be aware of response.redirects (I might tell it to load page1.aspx, but that in turn might load page2.aspx. I need to know which page is sent back to me). 3) 'fake' certain things like cookies, agent strings etc. Any clues on how to go about this Even a starting point for my research would be appreciated. Many thanks Hi,, jzfredricks Try to use the WebBrowser control, and any question about handling the communication between WebBrowser control and your WInForm app, see this article. Regards. Ye ...Show All

  • Visual C# How do I get the number of nodes selected in the treeview control?

    I'm trying to get the number of selected nodes in a treeview control. Is there a way to get this without writing loops thank in advance. You can only select a single node in a tree view (AFAIK). The selected node is accessible through the SelectedNode property. Michael Taylor - 9/15/06 ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Recommendations for physics

    Hi, I know XNA doesn't include physics. Does anyone know of a good C# physics engine If there isn't a C# one around, how about a C++ or Java open source one that can be ported... Thanks, T You might check out this 2D physics engine for XNA: http://www.codeplex.com/FarseerPhysics ...Show All

  • Smart Device Development How to check whether my PDA is connected through GPRS using .NET Cf code?

    Hi, In my application, i want to check whether my PDA is connected through GPRS How do i check this Are there any registry entries for this Hi Do you want to check whether the PDA has an active GPRS connection If you do so, and you are using Windows Mobile 5.0 then try the following State and Notification Broker properties: SystemState.ConnectionsCellularCount - gives you the number of open cell connection (GPRS/UMTS...) SystemState.ConnectionsCellularDescriptions - name of the open connection ...Show All

  • Visual Basic how to create custom forms

    hello everyone, i need to create a custom form of shape round, which should have a deferent title bar which is curvy on the top is it possible to do that, if so , pls tell what things i have to change(learn) thanks , rajamohan.m thanks nobugs, the code works perfectly, according to the code the the border the minimize buttons and maximise buttons should be placed manually to be specific with the location which the form elements can be seen.. any way thanks once again ...Show All

  • SQL Server License Question

    Hello, I have a question concerning the license requirements for SQL Server Express Edition. I read from a previous MSDN license agreement for MSDE the following non-competition section: "7.6 If you choose to redistribute MSDE, you also agree: (i) that your application shall not substantially duplicate the capabilities of Microsoft Access or, in the reasonable opinion of Microsoft, complete with same; and (ii) that unless your application requires your customers to license Microsoft Access in order to operate, you shall not reproduce or use MSDE for commercial distribution in conjunction with a general purpose word processing, spreadsheet or database management software product, or an integrated work or product suite whose compo ...Show All

©2008 Software Development Network