Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

DAve

@DAve
About
Posts
12
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Potter goes Badger
    D DAve

    Definitely fun, but its a shame they did not re-do the audio with Potter instead of badger. The Snake (Snape) almost worked though. :-D

    The Lounge c++ csharp com discussion

  • VS.NET 2003 Add Platform
    D DAve

    Does anyone know how I can add a new platform type to an existing solution in VS.NET 2003? Cheers, DAve

    Visual Studio csharp visual-studio question

  • Mail Encoding using MailMessage
    D DAve

    Hi, I should first make it clear I know virtually nothing about c# & .NET (so please speak slowly and use short words:-D) I'm modifying a c# program someone else wrote which, as part of its process sends a mail using MailMessage. This works... However when the message arrives some (not all) of the new lines (CR,LF) are messed up. I noticed that if I open the mail in outlook and go View->Encoding this is set to "Western European (ISO)" if I switch this to "Western European (Windows)" the lines look right again. So I looked into this and noticed the BodyEncoding member, but still can't get this working. My code is MailMessage mail = new MailMessage(); mail.To = "me@somewhere.com"; mail.Cc = ""; mail.Bcc = ""; mail.From = "Someone@SomewhereElse.com"; mail.Body = <String read from a file somewhere>; SmtpMail.SmtpServer = "smtp.MyServer.com"; SmtpMail.Send( mail ); I have tried adding... mail.BodyEncoding = System.Text.Encoding.GetEncoding(1252); and mail.BodyEncoding = System.Text.Encoding.Default; but still the message is always displayed as "Western European (ISO)", does anyone have any idea how I can fix this? Cheers DAve

    C# csharp com help question

  • Include and Dependancy Checker
    D DAve

    Cheers for that, This will indeed show the include heiarachy, which is a great place to start for a manual search. The problem is I was looking for something a little more complex. What I would like is a tool that would look at the include files listed in a CPP and indicate if the included file is actually not needed. Or where a header is included in another header where a predeclaration could be used instead. i.e. #include "cBar.h" class cFoo { cBar *mValue; } Should be... class cBar; class cFoo { cBar *mValue; } DAve

    IT & Infrastructure csharp c++ question

  • Include and Dependancy Checker
    D DAve

    Hi all, I'm currently involved on a C++ project (using .NET 2003) which is taking much too long to build. I believe this is due to uneccessary #include dependancies (i.e. headers included which are not needed by the code in that file, or a where a pre-declaration would do). Does anyone know of a tool which can analyze the code and point out these errors? Cheers, DAve (P.S. I must add I inherited the code... Its not my fault :))

    IT & Infrastructure csharp c++ question

  • Renaming Folders in Explorer
    D DAve

    And for those what want to know more... Just checked on the web. From http://support.microsoft.com/?kbid=282002 Microsoft Knowledge Base Article - 282002 Description of Simple Folder View in Windows XP In Microsoft Windows Explorer on a Microsoft Windows XP-based computer, the following behavior occurs under the new Simple Folder view: When you click a folder in the Folders pane, it is automatically expanded to show its subfolders. When you click a folder in the Folders pane, other expanded folders are automatically closed. The dotted lines that normally connect the folders and drives are not displayed.

    System Admin help question

  • Renaming Folders in Explorer
    D DAve

    13 Minutes... That must be some kind of a record! :) Thanks so much for that! DAve

    System Admin help question

  • Renaming Folders in Explorer
    D DAve

    Hi all, I was wondering if anyone has a solution to this thing thats been bugging me for ages now. In Windows - before XP - you could rename a folder in the explorer folder view by double clicking on it. For some reason this is no longer possible in XP, you must select rename from the RMB menu. Now I can sort of see why since new users may rename important folders, but I WONT! Does anyone have any idea if it is possible to re-enable double click editing of folder names? Cheers for any help DAve

    System Admin help question

  • Console.Writeline does not write to output window
    D DAve

    I just tried something similar & found I had to... ' Create a tool window handle for the Output window. Dim win As Window = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput) ' Create handles to the Output window and its panes. Dim OW As OutputWindow = win.Object Dim OWp As OutputWindowPane Dim textFileOWp As OutputWindowPane Dim found As Boolean Dim enumerator As IEnumerator ' Try to find a pane named "Output" enumerator = OW.OutputWindowPanes.GetEnumerator() found = False Do While enumerator.MoveNext OWp = enumerator.Current If OWp.Name = "Output" Then found = True textFileOWp = OWp End If Loop ' If pane not found Create one If Not found Then textFileOWp = OW.OutputWindowPanes.Add("Output") End If ' Add a new pane to the Output window. ' Add a line of text to the new pane. textFileOWp.Clear() textFileOWp.OutputString("Some Text" & CRLF)
    I hope this helps (I'm a complete novice when it comes to macro programming and am just guessing my way) DAve

    Visual Studio

  • .NET FileSelection Macro
    D DAve

    Hi all, I've written a Macro to output a file to the output window, but the file selection dialog sometimes appears behind the .NET window (so I have to alt tab to it), any ideas how I can force this to the front? I have...

        Dim openFileDialog1 As New OpenFileDialog()
    
        openFileDialog1.InitialDirectory = "c:\"
        openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"
        openFileDialog1.FilterIndex = 2
        openFileDialog1.RestoreDirectory = True
    
        If openFileDialog1.ShowDialog() = DialogResult.OK Then
            ' Display file
        End If
    

    Cheers for any help DAve

    Visual Studio csharp help question

  • Viewing .NET Build Log During Compile
    D DAve

    Hi, I'm building from the command line using .NET with a batch file. "C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\devenv.exe" "d:\Dev\proj\proj.sln" /build "All Debug" /out "d:\Dev\proj\proj.txt" type "d:\Dev\proj\proj.txt" Unfortunaly this does not allow me to see the log file being generated until the build is finished, even various tail utils fail to open the file (I'm assuming due to the file being held open by .NET). I'm sure VC6 outputted to stdout, but .NET does not, any ideas how I could get to see an output in progress? Thanx DAve P.S. I posted this question to the C++ board, before I noticed there was a VS.NET IDE board, sorry for the repitition.

    Visual Studio visual-studio csharp question c++ debugging

  • Viewing .NET Build Log During Compile
    D DAve

    Hi All, First Off, I've been reading the articles here for a while, but have never ventured as far as making a post. So I should say thanx to all for some exceedingly good articles, they have helped me a lot. Now the fawning is out of the way :).. My Question.... I'm building from the command line using .NET with a batch file. "C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\devenv.exe" "d:\Dev\proj\proj.sln" /build "All Debug" /out "d:\Dev\proj\proj.txt" type "d:\Dev\proj\proj.txt" Unfortunaly this does not allow me to see the log file being generated until the build is finished, even various tail utils fail to open the file (I'm assuming due to the file being held open by .NET). I'm sure VC6 outputted to stdout, but .NET does not, any ideas how I could get to see an output in progress? Thanx DAve

    C / C++ / MFC csharp visual-studio question debugging
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups