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

Software Development Network >> Patrick ODay's Q&A profile

Patrick ODay

Member List

mr.flx
Kjeld Tommeraas
mspres
kiki10
bpfh
Jacquemin
Alkazam
msafi311
bxs122
Techie-Vicky
Marco Foco
Pubsnack
Hatem Rabie
Brian Nordberg
Damien Armstrong
shamim
Whitehorsevideo
Michael V
Quammy
Sweed
Only Title

Patrick ODay's Q&A profile

  • Visual C# Writing data to a text box

    Hi all I am trying to read a file and display the information to a text box. I can read the data using FileStream fs = new FileStream("filename", FileAccess.Read); StreamReader sr = new StreamReader(fs); and Console.WriteLine(sr.ReadLine()); writes to the console how do I display the result in a text box so that I can then select the info I want with the mouse thanks Chris Hi, You can use the following code snippet: FileStream fs = new FileStream("filename", FileAccess.Read); StreamReader sr = new StreamReader(fs); and textBox1.Multiline = true; textBox1.Text=sr.ReadToEnd(); ...Show All

  • Visual C# Convert array to Class

    Hi, C# Gurus, I'm switching from MFC/C++ to .Net/C# recently. Really miss the POINTER, you can convert any pointer to any type easily. I have a case need some help, please. Here's the C++ code : I have a byte array myArr[100] contains data read in from COM1. myArr = {1,2,3,11,12,13,. . . . . . . . . . . .} and classes CX, CY, CZ . . . . . . . . class CX { byte a; byte b; byte c; . . }; I can convert the byte array to any of these classes : CX *pCX = (CX * )myArr ; and start refer the data in the array : pCX->a, pCX->c . . . . . . later on for new data in myArr, I can conver ...Show All

  • Visual Studio November DSL toolkit: how to add commands to context menu?

    hi, I want to a add a command to the context menu. how can i do that with the new november toolkit I know that this is explained in a paper(customizing features in MS Tools for Domain Specific Languages (September 2005 CTP)) for  the semptember toolkit. i tried to map it to the november dsl version(since the structure of the projects changed) but it seems not to work. E.g there is no File " Designer\Diagram\PkgCmdID.cs " and " DesignerUI\Header Files\PkgCmdID.h " , it think was replaced by  " Designer\Shell\GeneratedCmd.cs " and " Designer\ctccomponents\GeneratedCmd.h ". So far I did  the following: Added a constant defini ...Show All

  • Visual C++ Build a console program for AMD Athlon 64 bit

    What complier and linker settings do I need I tried X64, but the linker choked on the first object I gave it.  How do I tell the compiler what to do Thanks, Now that I've installed the correct compiler it gets to link, but with lots of unresolved library externals. Error 1118 error LNK2001: unresolved external symbol __imp_MultiByteToWideChar tickernet.obj  etc. Any ideas ...Show All

  • SQL Server link SQL 2005 server

    Any body tryed to link SQL2000 to SQL2005 or other way arround. add sql2k to sql2005, and vice versa, as linked server is a supported scenario. for example, from a connection to your sql 2005, run the following commands to add sql2k as a linked server: sp_addlinkedserver 'sql2k' sp_setnetname 'sql2k', <machine name>\<instance name> where 'sql2k' is the linked server name of your choice, <machine name> is the hostname of the machine where your sql 2000 is installed, and <instance name> is the name of your sql 2000 instance.  If it is a default instance, then simply sp_setnetname ' ...Show All

  • .NET Development Parameters in a sql statement

    I am creating a simple sql statement that returns all from the table that is equal to Comp_UserID. The problem I am having is that I want to pass in the Comp_UserID as a variable. I am not sure of how sql parameters work, i have tryed searching the msdn network but I can see nothing for begineers so if anybody has any useful links that would be great. Below is the code I am using. //This is statement works correctly SqlDataSource1.SelectCommand = "SELECT * FROM ApprovedComponents WHERE Comp_UserID = 61" ;   //Now I tryed inserting the variable like I would pass a variable to a function but it does not work, int ...Show All

  • Windows Search Technologies Search string?

    I get a little problem: all projects on our server are named YY-XXX (06-422, for example). When I search on 06-422, I can' find nothing but unrelated documents. I presume it has something to do with the '-' sign. looks like it plays it '06 but NOT 422'. Searching for "06-422" doesn't help neither. Is there a workaround TIA Hugues Hello Hugues, This one is interesting. Your line of reasoning makes perfect sense (the - acting as the 'NOT' operator). Strangely, I've been unable to replicate this problem on any of my test machines. I've been able to find files named 06-442, tr ...Show All

  • SQL Server Failed to generate a user instance of SQL Server

    I am trying to create an SQLExpress database file (mdf) in VS2005 but I get the following error: "Failed to generate a user instance of SQL Server due to a failure in making a connection to the user interface. The connection will be closed.” I also get this same error if I try to open an existing database from the VS samples. Any Ideas Thanks, Dave T Ok got this much figured out, still having other problems, but this part of the problem is fixed. lol ...Show All

  • Visual C# A problem about binary file source safe versioning

    Does anyone of you ever try to check in your binary files for versioning We have this habit since the day when we work on VB projects. Since COM versioning is very important, we have very clear habit to keep different versions of the DLLs. Now in .net, with VS.NET 2003, we realize there is a very strange behaviour which prevents binary files checking from working properly. Lets say, we have 3 projects: ClassLibrary1, ClassLibrary2, WindowsApplication1 -->: reference ClassLibrary2 --> ClassLibrary1 WindowsApplication1 --> ClassLibrary1, ClassLibrary2 When I have checked out all WindowsApplication1 binary files, while leaving ClassLib ...Show All

  • Visual Basic System.DllNotFound Exception

    I'm migrating from VB 6.0 to VB.NET 2003. There is a particular file abc.dll that I'm not able to add reference to, though its a dll file. When I try to reference it, the error is 'This is a not a valid assembly or COM component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure the file is accesible, and that it is a valid assembly or COM component' How can I reference this file If this is not being seen as a COM component you likely need to do a P/Invoke against it. In your old VB6 project, did you have a few ‘define function’ statements that reference ...Show All

  • Visual Studio 2008 (Pre-release) how to save a richtext formatted string in wpf

    hi, i am wondering about how to save rich text component string to a file and retrive it with the formatting. thanks prasanth http://blogs.msdn.com/jfoscoding/archive/2006/01/16/513383.aspx ...Show All

  • Windows Forms launch winform apps from winform apps.

    This is probably a simple matter, But I can't find a reference to it. I have a VS.Net solution that contains two forms applications. I need to be able to launch them independently so they are set up as two seperate applications. I also want to be able to launch app2 from app1. Does anyone have a link to some info or sample code Thank You ...Show All

  • Windows Forms Prerequisites??

    Thanks in advance for listening to this dumb question.  When I try to publish with the prerequisites set to  "Create setup program" and  "Download prerequisites from the same location as my application" I get the error message:   "Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\instmsia.exe' in item '.NET Framework 2.0' can not be located on disk. See Help for more information. Ophthalmology" Build is aborted. I don't know what to do or maybe I have the dotnetfx in the wrong place for install Frank I had a great Christmas and ...Show All

  • SQL Server Error importing data from oracle database to an SQL database

    Hi! When i was importing a database table from an Oracle Database to a SQL database table, the wizard returns this error: Could not connect source component. Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider.  If the component supports the "DefaultCodePage" property, the code page from that property will be used.  Change the value of the property if the current string code page values are incorrect.  If the component does not support the property, the code page from the component's locale ID will be used. Error 0xc0204018: DTS.Pipeline: The "output column " ...Show All

  • Visual Basic Startup object - Sub Main or Form

    Hi all, I would like to know the differences between using Form vs Sub Main as startup object. Which is best way to start the application What are the pros and cons of using these methods. Thanks. Nitin. if you use sub main then you cannot enable the application framework, which enables you to app splash screens with minimal effort amogst other things. This requires the startup object to be a form. ...Show All

©2008 Software Development Network