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

Search:

Type: Posts; User: JoeLinkous

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Replies
    55
    Views
    6,634

    Re: Referencing methods.

    You have a method without a return type. (Hint: static isn't a valid return type.)

    Don't fall into the same trap as 90% of other people who try to learn to program: they get a loose idea of some...
  2. Replies
    1
    Views
    4,435

    LINQ, DataTable and DataGridView

    Hello all!

    Visual Studio 2010, targetting the .NET 4 framework.

    I'm working with ADO.NET and need some assistance. Currently, I'm working with a rather sizeable Access database, so I'm caching...
  3. Replies
    8
    Views
    5,922

    Re: Blocked threads in a thread pool

    That's a really good idea. That ties back with your start() and next() idea, where there's a single object that directs the execution of many smaller workers to complete a larger task. I'll play...
  4. Replies
    8
    Views
    5,922

    Re: Blocked threads in a thread pool

    Is there a way to put a Runnable object to sleep so that it gets put back in the queue and doesn't continue processing until it's flagged as awake? I could have Client worker objects that...
  5. Replies
    14
    Views
    1,807

    Re: Persons class

    ...
    8: String CurLine = "";
    ...
    11: InputStreamReader converter = new InputStreamReader(System.in);
    12: BufferedReader in = new BufferedReader(converter);
    ......
  6. Replies
    14
    Views
    1,807

    Re: Persons class

    An alternative to BufferedReader? Blasphemy!

    Off-topic, but my current project requires me to tokenize inbound strings to determine which commands clients are trying to execute, so using this will...
  7. Replies
    14
    Views
    1,807

    Re: Persons class

    The Console object returned by System.console() is null, so when you try to readLine() from it, you get a NullPointerException.

    Try reading from System.in (an inputStream). A quick Googling found...
  8. Re: need help to write a code to parse an address

    Don't just copy your homework assignment here and have us do it for you. Have you started it but got stuck somewhere? Have you finished it but it doesn't work quite right? Please ask specific...
  9. Replies
    2
    Views
    1,022

    Re: Protection to my software

    Bump. I've always been interested in learning how this is done in professional software. The following link is something I found after a quick search. It seems like too simple of an algorithm, but...
  10. Replies
    8
    Views
    5,922

    Re: Blocked threads in a thread pool

    It's still polling the connections, just less often. There's a lot of overhead involved in thread scheduling, plus you're adding unnecessary delay to the response time, so this doesn't feel like a...
  11. Re: [QUESTION] Java: Help with Optimizing Code

    Don't use global variables. It's a design decision in Java, not a weakness. Global variables are for people still using procedural languages and is counter-OOP.

    One improvement I see is to combine...
  12. Replies
    8
    Views
    5,922

    Re: Blocked threads in a thread pool

    Thanks, keang! That article is pretty good.

    I think we may have to go with non-blocking sockets. Your idea about constantly polling for input would work for small numbers of clients, but if you...
  13. Replies
    2
    Views
    4,087

    Re: Understanding of Unit Testing

    Destructive testing is key to unit testing a single class. For instance, lets say we have a Calculator class, and one of its methods is divide(int dividend, int divisor). One of your unit tests...
  14. Re: [RESOLVED] Java help with basic object programming

    edit: Didn't see that this was resolved.
  15. Replies
    8
    Views
    5,922

    Blocked threads in a thread pool

    Hello all!

    We're working on a MUD. Runnable worker objects are created for each Socket accepted, and then they are executed by a fixed thread pool. The Runnable objects stop running after a client...
  16. Replies
    2
    Views
    4,021

    Re: Using Boost::Asio

    Alright, I solved the problem. I needed to execute it like this:

    "g++ main.cpp -o main -lboost_thread -lboost_system"

    My first problem was using "-llibboost_thread" instead of "-lboost_thread"....
  17. Replies
    2
    Views
    4,021

    Using Boost::Asio

    I'm using Ubuntu 8.10, and gcc 4.3, and have installed all of the Boost 1.35 libraries available in the package manager.

    What I want to use is Boost's Asio. I've copied the example code from the...
  18. Thread: Hash Tables

    by JoeLinkous
    Replies
    2
    Views
    936

    Re: Hash Tables

    Thanks!

    I also found the following page after doing a little digging.

    http://www.codeguru.com/cpp/cpp/cpp_mfc/stl/article.php/c15303__2/

    I had a hell of a time finding anything useful using...
  19. Thread: Hash Tables

    by JoeLinkous
    Replies
    2
    Views
    936

    Hash Tables

    So I finally installed Ubuntu Desktop 8.10 on my laptop and moved from C# to C++, but I'm having a pretty crippling issue. I can't figure out how to use a hash map in gcc 4.3.1.

    I've found three...
  20. Replies
    2
    Views
    618

    Standard Components

    So I was skimming through my software engineering book, and I came upon a small section saying that we should try to develop or use standardized components for use in our programs so we spend less...
  21. Replies
    4
    Views
    752

    Re: From C# to C++

    Thanks for the answers, guys!

    laserlight: I didn't know C# was even available outside of the .NET Framework in Windows. That's really good to know.

    Red Squirrel: It never crossed my mind to use...
  22. Replies
    4
    Views
    752

    From C# to C++

    My original language of choice was C++, but I really started learning once I got into Java then C#. I've started programming a MUD in C#, and I've got most of the framework in place (network support,...
  23. Replies
    1
    Views
    759

    Reading flakey files

    I'm trying to write a translator program that converts one file format to another. The original format has null characters scattered everywhere, so it's keeping me from reading much of it. The null...
  24. Replies
    109
    Views
    21,683

    Re: What languages to use?

    Wow guys, excellent discussion! For this particular project, .Net seems to be the best way to go. What about the version of VS? VS2005 seems to contain most of the stuff I need and is relatively...
  25. Replies
    109
    Views
    21,683

    What languages to use?

    The advice from experienced programmers is needed and would be greatly appreciated. For the last few years, I've been focusing mainly on console-based C++ programming. Unfortunately, I've been having...
Results 1 to 25 of 54
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured