Click here to Skip to main content
15,905,419 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionTextBox.AutoComplete .net 2.0 Pin
Chris Richner9-Mar-06 3:36
Chris Richner9-Mar-06 3:36 
Question.NET Framework Pin
FeRtoll9-Mar-06 0:27
FeRtoll9-Mar-06 0:27 
AnswerRe: .NET Framework Pin
Sebastian Schneider9-Mar-06 0:37
Sebastian Schneider9-Mar-06 0:37 
GeneralRe: .NET Framework Pin
FeRtoll9-Mar-06 10:59
FeRtoll9-Mar-06 10:59 
GeneralRe: .NET Framework Pin
CWIZO15-Mar-06 2:37
CWIZO15-Mar-06 2:37 
Questioncustomize datagrid view Pin
Maher Abu Zer8-Mar-06 19:49
professionalMaher Abu Zer8-Mar-06 19:49 
QuestionSecurity.Permissions error Pin
projectcode18-Mar-06 5:12
projectcode18-Mar-06 5:12 
Questionstd::cout Messes Up Filter in OpenFileDialog Pin
ricecake8-Mar-06 4:18
ricecake8-Mar-06 4:18 
Does anybody else experience the following behavior?

When I comment out the line std::cout << 0; in f(), everything works fine. However, if I uncomment the line, then when I change the filter in the OpenFileDialog, all the files in the list disappear.

This is using Visual C++ .NET 2003 (Managed Extensions to C++, not C++/CLI).

  1. I created a new Visual C++ Windows Forms Application (.NET).
  2. I added a button to this form.
  3. I added an event handler for this button that consists of the following:

    OpenFileDialog* dlg = new OpenFileDialog;<br />
    dlg->Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*";<br />
    dlg->ShowDialog();
  4. I added a native C++ file that consists of the following:

    #include <iostream>
    
    void f()
    {
        // Comment the following line to get correct behavior
        std::cout << 0;
    }
  5. I turned off Precompiled Headers for the project. (not essential, otherwise you need to add #include "stdafx.h" to the native file).
  6. Compile and run (click the button then change the file filter).

Note that nowhere in the program did I actually call the function f(). It seems that its mere existence in the project is enough to mess this up.


--
Marcus Kwok
QuestionRe: std::cout Messes Up Filter in OpenFileDialog Pin
ricecake8-Mar-06 5:44
ricecake8-Mar-06 5:44 
AnswerRe: std::cout Messes Up Filter in OpenFileDialog Pin
ricecake4-Apr-06 8:51
ricecake4-Apr-06 8:51 
AnswerRe: std::cout Messes Up Filter in OpenFileDialog Pin
ricecake4-Aug-06 10:35
ricecake4-Aug-06 10:35 
QuestionRegular Expressions Pin
Arkett7-Mar-06 22:59
Arkett7-Mar-06 22:59 
AnswerRe: Regular Expressions Pin
Chandana Subasinghe8-Mar-06 1:03
Chandana Subasinghe8-Mar-06 1:03 
GeneralRe: Regular Expressions Pin
Arkett8-Mar-06 5:22
Arkett8-Mar-06 5:22 
GeneralRe: Regular Expressions Pin
Chandana Subasinghe8-Mar-06 5:24
Chandana Subasinghe8-Mar-06 5:24 
AnswerRe: Regular Expressions Pin
HimaBindu Vejella8-Mar-06 18:36
HimaBindu Vejella8-Mar-06 18:36 
QuestionToolStrip rounded corners Pin
Office Lineman7-Mar-06 6:46
Office Lineman7-Mar-06 6:46 
AnswerRe: ToolStrip rounded corners Pin
Office Lineman7-Mar-06 12:04
Office Lineman7-Mar-06 12:04 
QuestionEmbedding a control in IE Pin
asdasdqasdasd7-Mar-06 5:25
asdasdqasdasd7-Mar-06 5:25 
Questionadd data to xml file Pin
bhavz697-Mar-06 1:57
bhavz697-Mar-06 1:57 
AnswerRe: add data to xml file Pin
Guffa7-Mar-06 3:50
Guffa7-Mar-06 3:50 
GeneralRe: add data to xml file Pin
bhavz697-Mar-06 5:26
bhavz697-Mar-06 5:26 
AnswerRe: add data to xml file Pin
Guffa7-Mar-06 22:24
Guffa7-Mar-06 22:24 
QuestionAJAX Pin
virz7-Mar-06 1:44
virz7-Mar-06 1:44 
AnswerRe: AJAX Pin
Vasudevan Deepak Kumar7-Mar-06 22:10
Vasudevan Deepak Kumar7-Mar-06 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.