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

Software Development Network >> Martin Moe's Q&A profile

Martin Moe

Member List

mohdtmn
WV John
pioner
TWild
learnerplates
JohnnieK
Dr3Bob
danni123
KeithCourage
Don Cameron
AE from SFO
Andreas Ohlund
sarika
arafat_nba
SimonS_
coachdunlop
smozaffari
Jakein2006
Spigot
Scionwest
Only Title

Martin Moe's Q&A profile

  • Visual Studio Express Editions Help needed: TCP /IP client-server skeleton

    Hi, I need to write a very simple client/server TCP/IP app in VC express. I thought it to be very easy, but it's not at least for me. (not programmin in C++ since 1999 !!) Can anybody give me a simple skeleton code to do this or a link to an example Thank u . Dario Dalla Libera Ok , I was able to work around this using WebClient Class http://msdn2.microsoft.com/en-us/library/tt0f69eh.aspx Should be able to twink this for my goals... dario ...Show All

  • Visual Basic Newbie Question - Yes I've searched. :)

    Bear with me...the last time I programmed was on my Atari 800 back in 1983. I've decided to take up programming again as a hobby. I've done some online coursework and I believe I'm making some decent progress. I've also ordered a book or two but haven't received them yet. This is a simple process I'm sure...I just haven't found a way to do it yet. I've made a form and a simple SQL Database. What this does is show Last Name, First Name, and a quick summary of the person (in this case historical figures.) I want to add a PictureBox that will change when you click on the name of the person. I've got .jpg files in a folder inside the Project. I've searched Help and the Web and most say with VB it's best to store the locations of ...Show All

  • Visual Studio Express Editions Filter out characters in a string

    I have a column in a datagridview that contains a string. The string has a maximum length of 5 numbers or characters. Most of the entries are three numbers. However, some entries have three numbers followed by one or two characters. Some others are just characters. I need to find a way to be able to filter out any records that contain one or more characters in the string. In other words, I need a filter that will return a record with the following traits: 001 345 732 but, filter out records with the following traits: 001WB WB1 SET What code can I put in a filter that will do what I need The filter that I have right now also filters two other columns based on a TextBox and a ComboBox on the form. The line of code I have right ...Show All

  • Visual Studio 2008 (Pre-release) Binding causing crash

    Hi, I have a situation where a binding is causing my app and eventually VS to crash. Details here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=825408&SiteID=1 If I create the binding in code, everything works as expected. If I do it in XAML, I get the problems mentioned in the above post. Any help much appreciated. Regards, Kent Boogaart I'm not seeing anything wrong in your file. That said, this issue is very old and you were using a very old version of VS. Could you please retry this on beta 2 now and subsequently RTM when it becomes available One thing to check on the unhandled exception is to use a second instance of VS to debug this. Change the debug exceptions to break ...Show All

  • SQL Server passing key decryption password to Stored procedure

    I try to pass the key used to decrypt symmetric key to a stored procedure as a parameter like this: OPEN SYMMETRIC KEY MyKey DECRYPTION BY PASSWORD=@ keypassword; I get an error message saying "Incorrect syntax near "@keypassword". Is there something that I am missing Unfortunately the syntax doesn't allow a variable as a password. You will have to either use dynamic SQL to use the password (make sure you escape the user input properly to prevent SQL injection) or, if it is possible in your particular scenario, consider using the key hierarchy available in SQL Server 2005. -Raul Garcia SDE/T SQL Server Engine ...Show All

  • Visual Studio Team System TFS utilizing existing Sharepoint portal

    Hi all We are looking at implementing a TFS install fairly soon for our production source control. I've been looking at the eval version for the last week or so and have encountered a problem with one of the requirements I've been given. We have an existing Sharepoint portal (2003) server that we have our company intranet on. We are trying to determine if it is possible to configure TFS to create project sites on the sharepoint server as opposed to the app tier. If anyone has any feedback on this it would be much appreciated. P. With TFS V1, it is not possible to configure the project creation wizard to create the portal on a server different from the App tier. However, we will be providing a whitepaper on the MSDN sit ...Show All

  • .NET Development replacing database character type (datatype) in gridview display

    Hi! I'm new to Visual studio and to programming as well. I am currently working on a project that involves searching some data from a database. My problem is that the data in the database contains characters such as: e, a, u. When a search is made for data containing such characters using only ordinary charaters (ex. a, e, u), no results are displayed. I am using the gridview control to display the data. Please help me how will I convert the first mentioned characters to ordinary ones without actually changing them in the database during the search process (I'm using VB for my codes). Thanks . zsabbie The way I can think of is identifying all search characters and their equivalent ordinary character ...Show All

  • Visual Studio 2008 (Pre-release) question about background of ListBoxItem

    My purpose was simple. I want to change the backgound of the item which i selected. So i add a style to the item: <Style x:Key="{x:Type ListBoxItem}" TargetType="ListBoxItem"> <Style.Triggers> <Trigger Property="IsSelected" Value="true"> <Setter Property="Background" Value="Black"/> <Setter Property="Foreground" Value="red"/> </Trigger> </Style.Triggers> </Style> <ListBox> <ListBox.Resources> <Style TargetType="{x:Type StackPanel}"> <Setter Property="Orientation" Value="Horizo ...Show All

  • Visual C++ Instantiantion of abstract class

    I am not sure where I went wrong. I have extracted the additions in the *.cpp and *.h files. : error C2259: 'PathDependentUpAndOutC' : cannot instantiate abstract class In the cpp file: " //second one, Q2 PathDependentUpAndOutC::PathDependentUpAndOutC( const MJArray& LookAtTimes_, double DeliveryTime_, double Barrier_, double Rebate_, const PayOffBridge& ThePayOff_) : PathDependent(LookAtTimes_), DeliveryTime(DeliveryTime_), Barrier(Barrier_), Rebate(Rebate_), ThePayOff(ThePayOff_), NumberOfTimes(LookAtTimes_.size()) { } unsigned long PathDependentUpAndOutC::MaxNumberOfCashFlows() const { return 1UL; } MJArray PathDependentUpAndOutC::Pos ...Show All

  • Windows Forms How can I copy a treeView to listBox?

    Hello, I have a treeview already populated with data. What I want to do now it to populate a listBox control with extactly the same data. Let's say my treeView control contains the following items: Parent + Son - - Grandson 1 - - Grandson 2 + Daughter - - Grandson X - - and so on... I want to make my listBox items as follow: - Son - > Grandson 1 - > Grandson 2 - Daughter - > Grandson X - > and so on... I don't know how many level I'll have at design-time. Please help. Thanks. This seems to me as a typical recursive node-iteration job. Run through all of the nodes and add them to the listbox. Based on the level of the node, you can add a prefix tot the listviewitem to illustrate that. This can b ...Show All

  • Windows Forms Sockets and Windows Forms

    I have a problem with my windows forms application in which I am not quite sure how to troubleshoot. Basically I have a Socket Client/Server program running and the client sends some information to the server via a NetworkStream, the problem is it doesn't always send the information or the server doesn't retreive it (not sure which); I have my server which listens for the data and when that data is retreived it adds it to my listview, but its not working so here we go................... Here is the client code: That's alright, I know VB too. The weird thing though is that it works on and off. Sometimes the data is sent, and sometimes it isn't. I have done the method you described before, but I was hoping I wouldn't have to result to that. ...Show All

  • Visual Studio Simple question

    Is there a way to prevent msbuild to clear the screen in the cmd window when it starts We need to see the output from previous tasks. Is a command window msbuild does not clear the console when it is run in a command window. What may be happening is that your screen buffer is too short (the default is 300 lines which in a build is very short). You can increase this number by right clicking on the title of the command window, going to properties then layout, then setting the Screen Buffer Size height to something larger. ...Show All

  • Internet Explorer Development IE 6 orphan process

    I have a workstation running WinXP Pro + IE 6.0.29 sp2 and it is having issues that when the close button is hit, there is an orphaned iexplore.exe task left in the Task Manager that takes up about 120 MB of memory. After this is repeated a number of times the orphaned task is taking the majority of the 4GB of memory. How can I troubleshoot the problem of why it is getting left around. I have an older machine, same specs that when it hits the same site does not have the same effect. I have verified that there is no spyware or adware running on the machine.......that I can find. I have found more information about this issue. The main webApp the user is hitting is a liferay portal and when the users logs out of the porta ...Show All

  • .NET Development Accessing a POP3/SMTP Email Account through an ASP.NET Page

    HI, Does anyone know how to read POP3 email inbox and save it to SQL database Thanks HI, If you want to split the HTML body from TEXT one, use this code: Dim MB As Indy.Sockets.Text Dim J As Integer For J = 1 To xMsg.MessageParts.Count - 1 MB = xMsg.MessageParts(J) If MB.ContentType = "text/plain" Then BodyText = MB.Body.GetText End If If MB.ContentType = "text/html" Then BodyHtml = MB.Body.GetText Exit For End If Next ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA GSE runs on XP SP2 ... also Media Center??

    I'm about to buy a new PC and want to be sure XNA GSE works with MS Media Center OS. Thanks. Thanks Mark. Do you also know if XNA GSE "undersatnds" XAML, i.e. if I use MS EGD for UI design will I be able to use the files in XNA GSE ...Show All

©2008 Software Development Network