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

Software Development Network >> Alex Foygel's Q&A profile

Alex Foygel

Member List

Heng-yi Liu
bes7252
rnv
Patrik J
williambeaker
collide
developer810
Yustme
Scythen
pjs.net
PeterZ
zeeshan hirani
Rhubarb
Jay S
Jeanvo
lexa_q
hallscreations
ADub
B Langston
ThirtySix Software
Only Title

Alex Foygel's Q&A profile

  • SQL Server #@ Row 1, Column 7: String data, right truncation @#

    I am trying to BCP a ton of data files into a SQL 2005 database. The first row of data in one of my files looks like: 1000|100000156752|100000176409|100000000000|100000000000|9.4|M|9.4||1/22/1993||1||||100|||||||||1|1/22/1993||||||| The error file has this: #@ Row 1, Column 7: String data, right truncation @# 0 0 0 0 0 .00 17|27.7|M|27.7||2/2/1993||1||||100|||||||||1|2/2/1993||||||| I've built a format file based on the SQL Table definitions with this command: FOR %%f IN (*.*) DO bcp IRIS.dbo.%%f format nul -T -n -t"|" -r"\n" -f%%f.format The format file for lines 1-8 look like: 1 SQLNUMERIC 1 19 "|" 1 SITE_ID "" 2 SQLNUMERIC 1 19 "|" ...Show All

  • Visual C++ Is there any line combo box in VS 2005 or color picker???

    I wanna do something like in Excel Char wizard, User could choose line style and line weight, marker style and color thank you very much, i really need to know as soon as possible. Seems these type of questions are outside the scope of this forum Please check with some developer website like codeguru.com, codeproject.com etc... ...Show All

  • Visual Studio Custom editor in VS 2005 using embedded Visio 2003 Drawing Control

    Hi, I am attempting to create a custom editor integrated with VS 2005 in C#. The editor will use the Visio 2003 Drawing control (which is an ActiveX control) embedded into it. I ran the VS Integration Project wizard, selected a custom editor as an option, chose an extension type, generated my project, and then modified the generated code to use the drawing control instead of the RichTextEditor. If we open up only one document in the solution everything works as it is supposed to. We can load a Visio document, catch the events from the drawing control, and interact with it without problems. If another document in the solution is opened up along side of it (new instance of the editor and the drawing control) it too works ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XBox 360 controllers for the PC

    Hi, I had a question about controllers that plug into the PC. I understand that only XBox 360 controllers are supported by XNA. I also understand (I think) that wired only controllers work as they need to be plugged into the USB port on the PC. Actually the last point is now not valid since I discovered the wireless controller for Windows and 360. But this isn't available until 2007. Does anyone know if this wireless controller is an actual controller or just a receiver for an existing wireless controller Cheers, Steve Yeah I was hoping the receiver would be out for the holidays. Instead I picked up a Play 'n Charge kit and later smacked myself for not reading the FAQ (it doesn't work). I st ...Show All

  • Visual C++ Language Problem

    I have a probem.My Visual c++ Program is from itali.But i don’t speak italian. is it possible to change the language or can i get language packs please help me i dont want to learn italian!! thx Check out http://msdn.microsoft.com/vstudio/express/visualC/default.aspx for downloading the express edition. Thanks, Ayman Shoukry VC++ Team ...Show All

  • Audio and Video Development Can't set Focus

    Hello Guys, I am new to iHD and just started to write some iHD code. Now I arrived at the first problem: <div id="main"> <div id="some_other_div_already_with_buttons" style:display="auto"> <!-- here are already some buttons --> </div> <div id="surrounding_div" style:display="none"> <button id="button" /> </div> </div> Now I want to set the button to visible and set the focus on it: document.getElementById("surrounding_div").style.display="auto"; document.getElementById("button").state.focused="true"; document.getElementById("button").state.unsetProperty(" ...Show All

  • .NET Development XSL transformation omit cdata if the element is empty

    I have a style sheet in which I am putting my data in the cdata section by declaring the nodes name for the cdta section in the style sheet declaration. Now I want's to remove cdta if the element is empty My Stylesheet looks like following < xsl:stylesheet xmlns:xsl = " http://www.w3.org/1999/XSL/Transform " version = " 1.0 " > < xsl:output encoding = " UTF-8 " method = " xml " indent = " yes " cdata-section-elements = " publisher publisherURL lastBuildDate url title referencenumber company postal city state country description date " /> < xsl:template match = " / " > < source > < publisher > Jobs, Inc. < ...Show All

  • Visual Basic Rounding up to the next 100.

    Ok I'm new at this so hope I have the right forum to be asking this question I am writing an application that works out the square area of an item, but the result has to be to the next 100. So for example sake if it is 720 it needs to go to 800 to work out the area, or if it is say 970 it will need to go to 1000. The program is for costing of sheets if your intrested and we cost by per 100mm. Any ideas or samples of code would be greatfully apreciated. Ok I have tried this and it still does not give the correct answer. ie I entered the size for the hight times the depth (900 -140 = 760 should round up to 800, then depth at 550 should round up to 600) the answer would be 0.96 but I get 0.91. I hav ...Show All

  • Visual C# Generic Base Class/Retaining Previous Version of An Object

    I have the following base class: using System; using System.Collections.Generic; using System.Reflection; namespace CharlesLaboratory { public abstract class EntityPreviousState<TEntity> { private TEntity _previousVersion; [NonComparable(true)] public TEntity PreviousVersion { get { return _previousVersion; } set { _previousVersion = value; } } private bool _deleted; [NonComparable(true)] public bool Deleted { get { return _deleted; } set { _deleted = value; } } /// <summary> /// This method returns a set of key/value pairs that contain the names and values ...Show All

  • Microsoft ISV Community Center Forums How Do I Set RecordSource in VBA to a Predefined Query?

    How Do I Set RecordSource in VBA to a Predefined Query For example... Me.RecordSource = qryAllUsers Does not work. Thanks, Dave Is qryAllUsers a String containing the SQL select query text, or is it a QueryDef object RecordSource expects to be passed a String, not a QueryDef. If you're trying to pass the latter, it ought to be snagged as a compile-time error. Can you give any more information about how it "doesn't work" ...Show All

  • Windows Forms How do you convert Plaintext to Rich Text problem free?

    Hi, I'm currently writing a simple text editor in Visual C# 2005 Express which has some syntax highlighting for the MIPS Assembly language. I use a RichTextBox control to color the keywords and it works so far, except for one problem: when I copy text from (or load in) a plain text source file, the text (using Currier New) is out of alignment in some places. In other words, the text is lined up correctly if you view it in notepad, but in my program it seems that anywhere there are tab characters everything is out of whack. Curiously, if you copy the same text into Word Pad, it has the same problem, even if you choose a non-variable width font like Currier New. I guess what I'm trying to say is copying a plain text file into RTF edito ...Show All

  • Smart Device Development How to play MPEG File ?

    Hi, I'm able to play a .WAV file in the Pocket PC using C#, by using pinvoke method. In which i 've imported the "coredll", and then PlaySound() function. Like this, is there any ways to play an MPEG file or Even the other ways like streaming of MPEG file Plz give me suggestions as soon as possible. Thanks, ramakrishna. to play a wave file: http://msdn2.microsoft.com/en-us/library/ms229685.aspx ...Show All

  • Windows Forms Question in ListView Operations

    Hi Guys, I am new to Visual Studio 2005 Express and have a couple of questions regarding the ListView control: Suppose I have a ListView1 control that has two columns; Clumn1 and Column2 How do I add an item to each column separately Whenever I add item it is added to Column1 and I am unable to add an item to Column2 How do I read the items of each column one by one from beginning to end Thanks in advance. A. Shukri The method that you use to add an item returns the object corresponding to new entry. you can access the subitems[1 to numcolumns - 1] to set the values for each columns. You iterate using Items collection to scan all rows, and use the SubItems collection to scan all c ...Show All

  • Visual C# Exception???

    System.ObjectDisposedException: Cannot access a disposed object named "DataGridTextBox". Object name: "DataGridTextBox"......I am getting this exception and unfortunaltly i dont know why or how to catch the exception so i know what line of code is throwing this....any help on how i can get this error handeled Go to menu item "Debug->Exceptions...", find ObjectDisposedException and set "Break when exception is thrown" instead of "Break when exception is unhandled". In VS.NET 2003 it will be slightly different, but you'll easily find this setting. After that run your app and you should fall to debugger at the place where this exception is thrown. ...Show All

  • Windows Forms Change default icon on the application's exe file??

    I have been searching for the answer for this problem for a while now. I have been going through the settings without no luck at all. I have found out how to: * change the icon on the application window's left upper corner * set the icon that's showing in add/remove programs dialog * change the icon on a shortcut placed on the users desctop (by adding the icon to the programfolder and then change the shortcut's icon-property to that icon)... I hope that is how it is supposed to be done ! But how do I change the default icon (white with blue border) on the application's exe file that is outputted to the programfolder by the installer project I have added the icon i want to use in app.rc by using the "Resource View"-windo ...Show All

©2008 Software Development Network