Software Development Network Logo
  • Architecture
  • Visual J#
  • Visual Basic
  • Windows Forms
  • Windows Live
  • Visual FoxPro
  • SQL Server
  • Smart Device
  • Visual C++
  • .NET Development
  • VS Team System
  • Game Technologies
  • Windows Vista
  • VS Express Editions
  • Visual Studio

Software Development Network >> Adam Lofts's Q&A profile

Adam Lofts

Member List

SPAD3S
Amit Singh (Paxcel)
CRISTIANO333
vtcoder
Andrew McKendrick
STM
Leo Dragos
Matt Grove
Superbob
lorenzo polintanjr
EddieOJ
Kiforl
espar
Capt
SkyBlade!
RoviWil
Grand Edgemaster
Bob Clemens
Bill Bickford
venkee
Only Title

Adam Lofts's Q&A profile

  • Visual C++ Compiler bug?

    I get incorrect results when running this app built release. It should print "a=1, b=2" but in release it prints "a=1, b=1". Correct results is obtained if the  member function "function" is put into the cpp file so that the compiler can't inline it. Is this a known compiler bug I'm using  version 7.1.3088. (This is an artificial example to show the phenomenon) /Staffan main.h: #include <iostream> #include "test.h" using namespace std; void print(int a, int b){     cout<<"a= "<<a<<", b= "<<b<<endl; } void main(){     Test test;     print(test.funct ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Picking Problem

    To solve the problem that I exposed in the other threat, I'm making changes to the Directx 9.0 's pick example. I've Tried this to move the position of the mesh: D3DXMATRIX matTranslation; D3DXMatrixTranslation( &matTranslation, 0.0f, 1.0f, 0.0f ); m_pd3dDevice->SetTransform( D3DTS_WORLD, &matTranslation ); m_pObject->Render( m_pd3dDevice ); The problem is that when I call the pick function, it doesn't consider the new world coordinates and it calculates the intersection as if the mesh continues placed in the old world coordinates. How can I make the pick function calculate the intersection in the n ...Show All

  • Visual Basic Win32 API WriteFile "Error Invalid Handle"

    Hello, i wrote a programm which can help to send packets to my USB device but when i try to use the method WriteFile (in sub sendpacket(startsessionpacket)) i get the win 32 error (Error Invalid Handle) howewer work hDevice=createFile (...) great! so what's wrong with my code please Help Me Option Strict On Imports System.Runtime.InteropServices Public Module DeviceIo Dim theDevInfo As IntPtr Dim hDevice As IntPtr Dim usb_packet_size As Integer Dim deviceioResult As Boolean Dim thePacket() As Byte Dim write As Boolean = True Dim SetupDiGetDeviceInterfaceDe ...Show All

  • .NET Development Unable to convert input xml file content to a DataSet from DataSet Designer

    First of all, here's the error: Error 1 Unable to convert input xml file content to a DataSet. 0 is not a valid value for Int32. Input string was not in a correct format. C:\Documents and Settings\dolan\My Documents\Visual Studio 2005\WebSites\ReproProject\App_Code\DataSet1.xsd 1 Second: I didn't do anything other than drag a table from server explorer into the designer. Immediately I save it and try to build the website as a test and get the error displayed above. The server is a SQL 2000 server, because I was hoping I could use ASP.NET 2.0 to replace our production site without having to bring up a SQL 2005 server. I'm not sure if tha ...Show All

  • Visual C++ Build phases

    The compiler /Bt option and linker /TIME option show times for two passes.  What is occurring on each pass, when compiling native In my case, nearly all the time is spend on pass 1 of the compiler and pass 2 of the linker. What is the problem you are seeing Is it a throuhput issue Could you post a sample reproducing the issue Thanks, Ayman Shoukry VC++ Team ...Show All

  • Smart Device Development What event is fired when using a Pen to select a Control?

    Hi, and happy Easter all! I am creating a Forms application for a QTEK Smart Device and was wonder what event is triggered when I select a Control with a pen I can't seem to find a relevant event when searching through a controls event properties. Device: QTEK. CF: 1.1 Thanks Tryst I'm not sure if I understood your question. Are you using a Pocket PC (and you are using the pen to select controls) Which control are you trying to select If it's a button, the event button_Click handles it.. ...Show All

  • SQL Server SQL 2005 - Shared Load Cluster

    Hi This is more a product featuer question which I cant seem to find the answer to If we wanted to share the loads of SQL Server requests over say 2 or 4 servers, is this possible What I mean is basically Active/Active load balancing / clustering So we have one Virtual IP and all requests are forwarded to the least busy server..... J Yes this is possible in SQL Server 2005, you need to install Std Edition to get 2 node clustering, Enterprise Edition will allow you to run up to 8 nodes. ...Show All

  • Visual Studio Team System Getting sharepoint back after Beta 3R migration

    OK, I've got Beta 3 Refresh up and running, but the sharepoint sites didn't take kindly to the database migration (apparently). When I try to open a project site, I get an error message: The virtual server that is referenced here is not in the config database. So, presumably something is amiss in the shareport configuration.  So far though, I'm having a hard time finding my way through the Sharepoint configuration site. So - Which virtual server is referenced here   Exactly which options in the WSS config screens would I use to find it/configure it In the WSS config screens, I see the following virtual servers: Default Web Site&nb ...Show All

  • Visual Studio Express Editions Intellisense Elements Missing

    Hi all, Hopefully someone can help with this matter. I was attempting to bind a data table to a Checkedlistbox and display a selected field. As far as i was aware i could use the Datasource method to do this and then the displayMember method to set the filed i wish to display in the list. When looking through the intellisense options for the checkedlistbox I could find neither of these options. However, if i just typed them in and used them as normal, the code works fine. Does anyone know why the methods are missing from the intellisense and how (if possible) i can go about resolving this.   Many thanks in advance Gran ...Show All

  • .NET Development Timeouts

    My application uses WebServices to transmit data to/from a Windows Form client. We are having a problem on several machines now, where communication with the web service just halts. After 10 - 15 minutes of usage, all web service call just start timing out. Using a trace, we see that no data is ever leaving the client machine and browsing the web still works fine. It seems that all the machines that exhibit this behavior have multiple NICs in them. But the puzzling thing is how the application just stops communicating. Also, if you close the app entirely and go back in it works fine for a period of time again. Any help ...Show All

  • .NET Development .NET remoting error:

    I have a little asp.net application. I'm trying to get .net remoting working. But Im getting this error: Server encountered an internal error. To get more info turn on customErrors in the server's config file. I need to know how to get the specific error I have turned on CustomErrors: <customErrors mode="On" /> But still I get this error please help Also sometimes, when I run my remote code from one end i.e. from myMachine/myApp to server1/myApp (sending serialzed data and such over TCP/IP) it works fine, no probs but going backwards using the same EXACT code i.e. from server1/myAp ...Show All

  • Windows Forms Link or sharing BindingSources between forms

    Hi, My story is the following, I have to forms, first includes a Datagridview and BindingSource,and the other shows details of each record using a BindingSource and BindingNavigator. Problem is that controls does'nt synchronize between forms current selection in grid dont reflect the current record in second form (detail). In second form (detail) I have a method in wich passing the bindingcontext of the first form and the same datasource that I set on BindingSource of the DataGridView, but is not working. Thanks for any suggestion. Maybe a bit late but does this help http://msdn2.microsoft.c ...Show All

  • .NET Development Arguments for Console Application

    I am writting console application using JScript. How do get the command line arguments Possible You can only access .NET objects once you've registered them using regasm. You will not be able to access static members. The following article "Registering Assemblies with COM" describes some steps you need to take to access .NET objects from COM. http://msdn2.microsoft.com/h627s4zy.aspx   ...Show All

  • Visual Studio Team System Control Gallery Component in Visual Studio 2005 Team System?

    Hi, I have a simple question: does Visual Studio 2005 Team System contain a component like the Control Gallery on www.asp.net The thread: http://forums.asp.net/902167/ShowPost.aspx indicates that it does. But the descriptions here indicate that it mainly offers a Source Control system. If it does not have such a component, does anyone know of a .net software that does the job of the www.asp.net control gallery Cheers, Geoff Geoff, to my knowledge there is no such thing in Team system as described in the thread your referring to. In team system You will find that is contains a new version c ...Show All

  • Visual Studio Tools for Office how to export/import data from/to excel files without using excel?

    am makeing a program that uses excel files but i don't want the customer to have to have execl to have the program working (i have excel) is there a way to do it wihout using excel components You could use the ServerDocument support in VSTO 2005 to extract/inject data into the spreadsheet. You can read more about ServerDocument at http://msdn2.microsoft.com/en-us/library(d=robot)/microsoft.visualstudio.tools.applications.runtime.serverdocument.aspx ...Show All

©2008 Software Development Network