CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: RobR

Page 1 of 6 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Can a WCF service hosted in a Windows service questions

    Thanks very much! The app.config file in your article appeared fundamentally similar to mine, but after a couple of minutes staring at it I noticed you had an endpoint like this:

    ...
  2. Can a WCF service hosted in a Windows service questions

    The only examples I've found of hosting a WCF service in a Windows service have the WCF service configured inside the Windows service's OnStart() method. I would think that would severely hamper the...
  3. Visual Studio: Can I control where invisible controls go?

    Greetings!

    In MS Visual Studio (I'm using 2008, but I've seen this in other versions), I can drop an invisible control, such as a update timer or a file open dialog box, onto a form. It will show...
  4. Re: Can I stop Visual Studio 2008 from overwriting my application configuration file?

    There are read-only settings, but they need to be changed for different test configurations. App.config and its automatic overwriting of myprogram.app.config makes it unsuitable for that purpose.
  5. Re: Can I stop Visual Studio 2008 from overwriting my application configuration file?

    Thank you for that reply.

    Unfortunately, that is not going to help. I think that the use of app.config in this application was a poor choice. The problem is that the configuration parameters are...
  6. Replies
    4
    Views
    6,962

    Re: Help using SQL in C#

    Here's a very rough pseudocode example using old-style coding (not using ADO.Net):



    SomeDatabaseClass db = SomeDatabaseClass.Open("my database name");
    SomeTableClass table = db.Open("my table...
  7. Can I stop Visual Studio 2008 from overwriting my application configuration file?

    A colleague wrote an application named "cranesimulator" in C# and Visual Studio 2008 that contains settings in a configuration file. There is a file in the project named "app.config". When the...
  8. Replies
    0
    Views
    1,731

    Looking for automatic build tool

    Greetings!

    I am looking for an automatic build testing application that meets the following criteria:
    1. Well-written, comprehensive manual
    2. Easy setup of the tool itself
    3. Easy...
  9. Thread: foreach loop

    by RobR
    Replies
    1
    Views
    1,144

    Re: foreach loop

    Please put code inside a code block ("[ c o d e ]" (no spaces) in front of it and "[ / c o d e ]" (again, no spaces) behind it), and please indent your code. Without those, it is very difficult to...
  10. Can a WebBrowser just show data in a CSV file instead of opening Excel?

    Greetings!

    Visual Studio 2012 Express

    I want a WebBrowser control to show data contained in CSV format on a web page. I just want it to show the data (so I can import it as text into my C#...
  11. Re: Lambda expression to get a list of members from a list of objects?

    Many thanks for your clear answer!

    RobR
  12. Lambda expression to get a list of members from a list of objects?

    I don't even know how to come up with a good title for this question.

    I am using VS 2008. I have a little user control that has a method whose argument is of type List<String>. I have a list of...
  13. Replies
    1
    Views
    1,262

    Is this control included in Visual Studio?

    I often see a control that consists of two vertical lists side by side with arrows on buttons between them. The left list typically shows available items and the right list typically shows active...
  14. Re: InvalidCastException when getting first result from LINQ query

    Update: If I do not specify an explicit list of fields, I can pass the query object into a data view control, and the control will display the contents of the table as expected. If I want to use...
  15. InvalidCastException when getting first result from LINQ query

    Greetings!

    I am a complete newbie at LINQ. I am trying to get my first simple little application using it to run. It's built in Visual Studio 2008, using DevArt's LinqConnect product to talk...
  16. Replies
    3
    Views
    626

    Re: Why isn't a base class function visible?

    Thanks very much for your reminders and suggestions.

    RobR
  17. Replies
    3
    Views
    626

    Why isn't a base class function visible?

    Greetings!

    I have the following code:

    Base class header file:


    class ADODIRECT_API CADODirectRecordset : public CADORecordset
    {
    public:
  18. Re: How to generate a class with properties from an ActiveX control?

    Which do you recommend I use? I mainly ask out of curiosity, since I already found an answer. I don't know if it's the best answer. I had been using "MFC Class from ActiveX Control". That gave me...
  19. How to generate a class with properties from an ActiveX control?

    Accidental double-post. I don't see how to delete the second one.
  20. How to generate a class with properties from an ActiveX control?

    Greetings!

    I am using Visual Studio 2008.

    I need to generate a wrapper class for an ActiveX control that has public methods and a public property. The generated class has no methods for...
  21. Replies
    1
    Views
    1,790

    Re: Registry can be read in debug, not in release

    Here is sample code that demonstrates his behavior:




    public System.Collections.SortedList GetSystemDataSourceNames()
    {
    System.Collections.SortedList dsnList =...
  22. Replies
    1
    Views
    1,790

    Registry can be read in debug, not in release

    Greetings!

    I am using VS 2008 on a Windows 7 64-bit operating system.

    I have written a helpful tool whose first step is to read a list of 32-bit ODBCs from the registry. In debug mode, it...
  23. Re: Inconsistent exception behavior in FirstOrDefault() method with lambda expressiio

    Hmmm... It seems there is something else going on in the program that first seemed to show me this problem. In this code:



    private void button1_Click(object sender, EventArgs e)
    {...
  24. Re: Inconsistent exception behavior in FirstOrDefault() method with lambda expressiio

    I think Richardson's Second Law of Computational Unpredictability comes into play here: the word "should" has no meaning.

    I'll have to put together a tiny test program that I can paste here.
    ...
  25. Re: Inconsistent exception behavior in FirstOrDefault() method with lambda expressiio

    I mean that the list is empty. The List<Field> object had been created, but no Field objects had ever been added to the list. The List<Field> object's Count property is zero.

    RobR
Results 1 to 25 of 134
Page 1 of 6 1 2 3 4





Click Here to Expand Forum to Full Width

Featured