User Profile

Collapse

Profile Sidebar

Collapse
bfoo75
bfoo75
Last Activity: Mar 12 '08, 11:56 PM
Joined: Feb 1 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bfoo75
    replied to USB RegisterDeviceNotification
    in .NET
    Huh... well I feel stupid. How come all these tutorials make out that you have to register the device notification?

    I think last time I had it compilable I was using a different filter for the message. Thanks for the clear-up tho!
    See more | Go to post

    Leave a comment:


  • bfoo75
    started a topic USB RegisterDeviceNotification
    in .NET

    USB RegisterDeviceNotification

    I've been doing lots of research on controlling USB devices in C# and ran across a few tutorials that seemed good until I started trying to code them. It seems like everyone seems to know how to use the function RegisterDeviceN otification to register the form to recieve WM_DEVICECHANGE messages.

    I've gotten as far as importing the function from user32.dll and setting up the device filtering, but I don't really understand the concept...
    See more | Go to post

  • yeah your right. Sorry I don't work with bitwise ops very often.
    See more | Go to post

    Leave a comment:


  • bfoo75
    replied to Generic linked list in c
    in C
    Anyone know why that is? I mean the deprecated null pointer.... I ran into some situations that required it in directx. It had to do with passing lists of points to draw routines. Is there some syntax to replace the functionality? or is one of those things that they just assume is bad design if you need to use it?
    See more | Go to post

    Leave a comment:


  • bfoo75
    replied to deriving and 'overloading' of an attribute
    in C
    you could always make an abstract base class:
    Code:
    class base {
      public:
        virtual void doit() = 0
    }
    
    class A : class base {
      protected:
        vector<int> data;
      public:
        doit(){
          // work on the onedimensional data
        }
    }
     
    class B : class base {
      protected:
        vector<vector<int>> data;
    ...
    See more | Go to post

    Leave a comment:


  • I think the problem you have is understanding this pseudo-code:

    To test for each digit value, bitwise and 'i' with 'mask'
    when the result for the bitwise and is true, print the number '1'
    when the result for the bitwise and is false, print the number '0'

    then shift mask one place to the right


    It took me a few reads to understand excactly what he is saying, but what he wants is you...
    See more | Go to post

    Leave a comment:


  • I think we can all agree that age has nothing to do with programming or this problem. Besides that, it might be nice to keep the remarks to a minimum, I know how it feels to be new and post on forums and getting a response that seems hostile like this one would deter me contributing to a forum... especially since I am new.

    Sorry if this is offends you... I enjoy reading these forums and I'd prefer not to see this turn into...
    See more | Go to post

    Leave a comment:


  • bfoo75
    replied to beginner: console cursor movement
    in C
    iomanip.h was the library I was thinking of, although conio.h also looks like it has functions to read from the console stream.

    If you go search iomanip.h +gotoxy in google, you get a buncha posts about problems with compiling and stuff about Turbo C++ 3.0 and graphic libraries. That might have been what I was thinking with the differences in libraries, so you might have to track them down. Hope that helps.
    See more | Go to post

    Leave a comment:


  • bfoo75
    replied to beginner: console cursor movement
    in C
    I did a project like this in highschool.... although I don't know how to read in a character thats already on the screen.... If I remember right it was just a matter of finding the right library to use. I wanna say Conio.h, but I havn't programmed in C++ using console graphics for about 5 years. The function you would use is a gotoxy(x,y) and it just rewrites over whatever you output after that. I wish I had my old assignments so I could tell...
    See more | Go to post

    Leave a comment:


  • bfoo75
    replied to Slow Sql Query
    Ahhhh never mind. Problem Solved. I created indecies as well as keys and everything spead up. Thanks so much for the help, the suggestions were excactly what I needed. Cheers - Will
    See more | Go to post

    Leave a comment:


  • bfoo75
    replied to Slow Sql Query
    Thanks for the response guys... I've managed to speed up 2 of my 4 slow queries with the keys for one of the databases, but the queries that access the tables with 300+ columns are still performing very slow. They're already keyed with 6 different columns and I'm querying using 3 in the where clauses. I'm assuming I shouldn't index them if they are already keyed.

    Here are the remaining Queries:

    Code:
    ALTER PROCEDURE
    ...
    See more | Go to post

    Leave a comment:


  • bfoo75
    started a topic Slow Sql Query

    Slow Sql Query

    Hi there, I'm new to this forum, but I've come here quite a bit to find solutions to problems other people have encountered... I'm currently trying to query a database up to 5000 times as fast as possible to retrieve certain pricing data for a list of companies. I've run into a few queries that seem to be taking much longer then others and ultimately slow down my function call to a point where it is no longer useful. For instance... I have...
    See more | Go to post
No activity results to display
Show More
Working...