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

Software Development Network >> Jason Callas's Q&A profile

Jason Callas

Member List

Bastiaan Molsbeck
Mikx
davidguygc
polymorphicx
Jules Bonnot
nastynate
Anon.
SweptSquash
Lili Gao
Phil Nicholas
atngold
Rob1234
alien-
juryq
Sarath.
pc0416
GoBlue!
errolian
JohnTMSDN
lk_spec
Only Title

Jason Callas's Q&A profile

  • Visual Studio 2008 (Pre-release) DLINQ - "Column referenced is not in scope: "

    Hi Guys, I get this error when ever I walk over a table in the object model with out projecting it and then perform a select. IE This query works. var myQuery = from student in Data .Students                          where student.ID == studentID                          select new                          {             ...Show All

  • .NET Development Control Telnet Client from Process Object

    Has anyone been successful in controlling the XP telnet.exe or Putty's plink.exe from a Process object I can run DOS commands and other applications with redirected input/output, but simply get a hung application when trying to run a telnet client. Does anyone have a simple example they could share, or another way of doing a simple Telnet connection Thanks. Figuring out what to respond is what documentation is meant for... (In case you don't want to spend time figuring that out you could also re-use a library as .net telnet ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Shooting

    What code could u use for something to shoot. would this event work: if(GamePad.GetState(PlayerIndex.one).Buttons.A == ButtonState.pressed) shoot = true; if(Shoot = True) { bullet.X = Player.X; bullet.Y = Player.Y; buller.Y += bulletSpeed; shoot = false; } An easier way, that would be much more scalable is to possibly use a list of bullets, that contain bullets that have been fire. Check the input of the player, if the button to shoot is pressed, create a new bullet, and add it to the list of bullets. And every frame, you update all the bullets. struct myBullet { int x, y; int speed; int damage; } List<myBullet> _Bullets; public void CreateBullet() { myBullet bull = new myBullet ...Show All

  • SQL Server Address field problem.

    I have a number of text boxes (one on top of the other) to display the addresses in my report. I have Address_name, Address1, Address2, Address_city, Address_State, Address_PostalCode - Each with its own text box except for the city, state, and postal code for which I just combined the fields. However, I have many who do not have any data for Address2 and don't want an empty line in the address. Is there an expression I can use to display the next line or move/shift up the remaining parts of the address Would the iif and isnothing expressions be helpful, and if so, how do I write it correctly I see, thanks for the info. I will try this in about an hour or so, I'll post back and give you an update. Than ...Show All

  • Visual Basic Insert statement

    Hi gurus I am on sql2000 and vs2003 Please what is wrong with the following: dim stringcommand as string dim command as sqlcommand stringcommand="INSERT INTO TABLE (COLUMNAME) VALUES('TEXT')" command= new sqlcommand(stringcommand,conn) ' I already have connection open command.executenoquery() I get and the following error " An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional information: System error." Thanks for any help gurus ...Show All

  • SQL Server problem in inserting a record whose values are of date and time format.

    hello, I am trying to insert date and time into my table. insert into <table_name> values('12/12/2006','12:23:04'); but it displays error at " ; " can anyone help me to figure out the problem Thanks a lot in advance. Regards, Sweety ...Show All

  • Visual C# Help refactoring a method

    I want to get rid of repetative code in the attached method I created (like in my If statements as you can obviously see, most is repeated but just for different product types) but not sure the best way to restrucure it: http: / / www. webfound. net/ forum_ posts/ repetative. txt Hi, I would use the Simple factory design pattern to create instance of Product. And then I will create an interface named IProductLoader (for example). I will create another abstract class named BaseProductLoader that implements IProductLoader and give basic implementation to the Load operation. Then I will add 3 classes that inherit the BaseProductLoader: SampleProductLoader, TrackProductLoader and AlbumProductLoader. I hope this helps ...Show All

  • Visual Studio Express Editions Playing the Percentages?

    Here's my code, dim decPercent as Decimal decPercent = (pbxResize.Width / pbxResize.Image.Width) * 100 tssSize.Text = "Percent = " & decPercent.ToString I get answers something like 41.7367345283 I want the answer rounded up or down, if possible, or just to display 41 . Thanks for looking Graham Andrew/Dave, Thanks for clearing that up for me, it has worked a treat. Will remember for future use. Graham ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XACTENGINE_E_FAIL on XACT3DApply() call

    Hey all, I'm having an interesting problem where when it executes the BOLD piece of my code, everything else is returning S_OK, but you want to see it anyway: // Prepare the sound this->pSoundBank->Prepare(m_pCueIndices[nRandom], NULL, NULL, &pCue3D->pCue); pCue3D->vEmitterPosition = vPos; // Use one emitter over and over again that's what we're trying here m_pManager->GetManagerEmitter().Position = pCue3D->vEmitterPosition; // Let the engine calculate dist between listener and emitter, check for failure hr = XACT3DCalculate( m_pManager->Get3DAudioHandle(), &m_pManager->GetPlayerListener(), &m_pManager->GetManagerEmitter(), &m_pManager->GetDSPSettings() ); if (FAILED(hr)) ...Show All

  • SQL Server SQL Server 2005 Business Intelligence Development Studio Not installed with Reporting Services

    I have SQL 2005 reporting services installed and running, however I do not have the BI dev studio installed and cannot figure out how to get it installed. The report server is operating correctly since I have developed reports on another pc using VS 2005 and uploaded them to the server. How do I get the BI dev studio installed on the server The SQL Server Business Intelligence Development Studio is installed as part of the SQL Server Tools installation. If you did not install Tools along with SQL Server Reporting Services, re-run Setup.exe from your intallation media. One thing I should call out.. if you had installed SQL Express Edition prior to installing SQL Server 2005, you will need to uninstall SQL Server Tools as inst ...Show All

  • Visual Studio Cannot change the reports of ReportViewer control

    I am using a tree to select various reports to be displayed into the ReportViewer control on a winform app. However, only the first report is displayed and the control does not reload any other reports. Using the following code does not change the report being displayed: this .reportViewer1.LocalReport.ReportPath = "selected report path" ; this .reportViewer1.RefreshReport(); Is this a limitation of the control Is the only solution to re-create a ReportViewer control for each report to be displayed Thanks. Fred, You need something like this: private void ExecuteReport(DataTable theDT, string theReportName,string theRptDataSetName, ReportParameter[] theParams) { ReportViewer ...Show All

  • Visual Studio Express Editions Is it safe to delete these files ?

    Is it safe to delete the files that are in the bin\Debug and bin\Release folders littleguru wrote: Quote: Where oh where is this command ! ! VB.NET doesn't offer that command ... VB.NET (even the express version) DOES have the clean command...it is not in the build menu by default ...however if you right click on the menu bar and then select customize you will find the 'clean' command s listed in the build menu that can be dragged onto your menu bar ...Show All

  • Visual Basic Trouble preventing duplicate instance of application

    Hi, Regarding preventing or allowing a second instance of my application to run...I need the user to have a choice, so coded up the following. Friend Class FormSplash ... (the splash form is active for < 2 seconds) FormSplashLoad() ... If (closeCuz2ndInstance()) Then Application.Exit() End If ... continue with initializations ... close splash and open subsequent form(s) Function closeCuz2ndInstance() As Boolean 'Check to see if another instance of this program is already running. 'If so, ask user what they want to do. 'Reply True iff there are other instance(s) and the user wants to close. Dim openAnyway As Boolean If (PrevInstance()) Then openAnyway = MsgBox(& ...Show All

  • Visual Studio Tools for Office Access raw binary document

    Hi! We're developing a COM Add-In for Word 2007 and need to access the raw binary document from within the plugin. We tried to read the document using a FileStream using the ActiveDocument.FullName Property. But access to the file is propably locked by the Word Application process. So my question now: is there any possibility to read the full binary document as we couldn't find any property within the Word Document Object Model to get access to it. Thanks for your help guys, Arne Hello Arne, have you tried with those parameters FileStream fs = new FileStream (fileName, FileMode .Open, FileAccess .Read, FileShare .Read); Hope this helps, greets, Helmut ...Show All

  • Smart Device Development how to catch email sent event from the device[via managed or unmanaged code]

    Hi All, I am using windows mobile 5.0.[both pocket pc as well as smart phone version] I am facing a problem in catching email sent event.I have an application which is runing as a service application. There is both managed[C#] as well as unmanaged[c++] modules are in there. I have to do some insertion in db on email sent and recieved event.I have catch the email recieved event via a manged code and done my process. But I have search a lot but can't find any help on how can I catch the email sent from the device by any mean that is managed or unmanaged [some body advices me about IMAPISession.Advise method in my other post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=780469&SiteID=1 ] I search a lot But can't fi ...Show All

©2008 Software Development Network