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
J

Joseph Dempsey

@Joseph Dempsey
About
Posts
166
Topics
30
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Compiler Error in Template Functions...? [modified]
    J Joseph Dempsey

    ok... not sure whats going on there but i tried repasting it with and w/o the checkbox and it still shows up erred. Its missing the angle brackets obviously. The code itself is correct syntactically. Just pretend they are there :) If you're real interested in seeing the actual file i can email it. * EDIT: Screw it... just removed HTML completely. should show up right now.

    -- Joseph Dempsey Sr. Software Engineer joseph_r_dempsey@yahoo.com

    C / C++ / MFC help c++ com question

  • Compiler Error in Template Functions...? [modified]
    J Joseph Dempsey

    It was already checked. It shows up fully in my browser (chrome) and in IE just fine. Not sure why you can't see it.

    -- Joseph Dempsey Sr. Software Engineer joseph_r_dempsey@yahoo.com

    C / C++ / MFC help c++ com question

  • Compiler Error in Template Functions...? [modified]
    J Joseph Dempsey

    I have run into a very strange error today and was wondering if anyone else has seen this. Some digging on google suggests it might be a compiler error. I've seen this on VS2008 and GCC 4.1.2. I was able to build a test harness to repro the issue. It is below:

    #include class Cloneable
    {
    public:
    template TYPE* clone() const { return dynamic_cast< TYPE* > ( clone() ); }
    virtual Cloneable* clone() const = 0;
    };

    // simple template class that defines an interface
    // for cloning objects.
    class X : public Cloneable
    {
    public:
    X(int _y ) : data(_y) { }
    virtual ~X() { /* DO NOTHING */ }
    virtual Cloneable* clone() const { return new X(data); }

    protected:
    X() { /* DO NOTHING */ }
    int data;
    };

    class Y : public X
    {
    public:
    Y(double f, int y) : X(y), dataf(f) { /* DO NOTHING */ }
    virtual ~Y() { /* DO NOTHING */ }

    virtual Cloneable\* clone() const { return new Y(dataf, data); }
    

    protected:
    double dataf;
    };

    // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

    int main(int argc, char* argv[])
    {
    X* x = new X(1);
    X* x1 = x->clone();

    Y\* y = new Y(2.12, 4);
    Y\* y1 = y->clone();
    
    delete y;
    delete y1;
    delete x;
    delete x1;
    
    return 0;
    

    }

    The clone fails in both cases in the main function. It should cast properly. There seem to be two ways to fix this. If i move the templated function from Cloneable to X & Y it works in both cases. The other is to use clone() in the main function and dyna cast there. A standard C cast in the templated function also doesn't work. Its like the compiler is erroneously changing the protection level on the function and then gets confused and just dumps out the error.

    1>Compiling...
    1>main.cpp
    1>.\main.cpp(40) : error C2275: 'X' : illegal use of this type as an expression
    1> .\main.cpp(12) : see declaration of 'X'
    1>.\main.cpp(40) : error C2059: syntax error : ')'
    1>.\main.cpp(43) : error C2275: 'Y' : illegal use of this type as an expression
    1> .\main.cpp(24) : see declaration of 'Y'
    1>.\main.cpp(43) : error C2059: syntax error : ')'

    Anyone seen this work in a different compiler or know of a workaround to make it compile (aside from the ones I mentioned)? -- Joseph Dempsey Sr. Software Engineer joseph_r_dempsey@yahoo.com

    modified on Friday, November 5, 2010 2:18 PM

    C / C++ / MFC help c++ com question

  • Professional Icon Packs
    J Joseph Dempsey

    I've paid for them before. The one I used was http://www.iconexperience.com/[^]. They are great quality icons, have a full range of sizes and also include the png versions of each icon in both a shadow and non-shadowed form for all sizes. I paid something like 350 at the time (its been a few years now) but I felt like it was a pretty good value for what I got. I know there are a few others that I looked at and thought were good quality as well but most of them seem to cost over 500.

    -- Joseph Dempsey jdempsey@irritablegeek.com

    The Lounge question

  • Visual Studio Dual Boot Scenario
    J Joseph Dempsey

    Never really thought about it that way but its a bit late for that for me. I already have my vista machine fully up and running with everything installed on it.

    -- Joseph Dempsey Sr. Software Engineer joseph_r_dempsey@yahoo.com

    The Lounge csharp visual-studio com windows-admin

  • Visual Studio Dual Boot Scenario
    J Joseph Dempsey

    Yeah I thought of this but I just wanted to avoid trying it and then screwing up my install if it doesn't work the way it should. Well I suppose I'll just ghost my machine first then give it a go :)

    -- Joseph Dempsey Sr. Software Engineer joseph_r_dempsey@yahoo.com

    The Lounge csharp visual-studio com windows-admin

  • Visual Studio Dual Boot Scenario
    J Joseph Dempsey

    Does anyone here have an experience dual booting vista/xp/2k (any combo) and having a single visual studio install. I know some programs offer a "registry only" install so that you can use the same physical installation. I don't want to have to keep multiple copies around but I need to run vista and xp. I tried a quick Google and came up with a whole lot of not much. Any tips, hints, tricks or pointers in the right direction would be greatly appreciated.

    -- Joseph Dempsey Sr. Software Engineer joseph_r_dempsey@yahoo.com

    The Lounge csharp visual-studio com windows-admin

  • How to relax in tense moments?
    J Joseph Dempsey

    I agree. I actually make it a point to take a 10 minute walk during every day. Helps break up the day a bit and lets the body and mind unwind a bit before getting back to work.

    Joseph Dempsey joseph_r_dempsey@yahoo.com Software Engineer Boxely Team, AOL, LLC. www.boxely.com

    The Lounge tutorial question

  • Is it worth using?
    J Joseph Dempsey

    Thanks for the comments. Its good to see that people have nice things to say about both the product and the level of support for that product. You just don't see that much anymore. This give me hope that the toolkit will integrate nicely into my application and perform well. Thanks again!

    Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge

  • Is it worth using?
    J Joseph Dempsey

    Thanks for the feedback. Considering that I really liked it at first glance and you have seemed to have no issues with it I will probably end up with that toolkit. I'm going to demo it first of course but so long as that goes well I'll check it out. Thanks again!

    Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge

  • Is it worth using?
    J Joseph Dempsey

    I am getting ready to embark on a new project using MFC and I'm looking for a good UI control library. I came across the ToolkitPro suite by Codejock. I've heard their name around here before but am curious what the overall opinion is of this suite/company. If anyone knows anything about the following it would be of great help. 1) Does anyone know how usable the control suite is and how well it seems to perform? 2) What is the company's support like? 3) Is the code mostly reliable? (How often do you find bugs and how does this tie into #2?) 4) Other misc. comments, warnings or praise welcome :) Also, if anyone knows of any other UI toolkits / control suites out there that provide a good level of functionality, reliability and performance I would love to hear about it. Please note though, I am only interested in libraries that can be used in a MFC/C++ project. Thanks for any help :)

    Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge

  • Reasons for Leaving - #1
    J Joseph Dempsey

    Miszou wrote:

    1. I have been asked to remove all source code from Vault[^] and place it on the network, so that others can work on it.

    whoa. Uh, thats some stupid folk you got there. I hope you have found a new employer that is not the storage facility for lost village idiots. My sympathies. I used to work for a employer like that (*cough* US government *cough*).

    Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge html database com sysadmin question

  • Boy arrested for opening christmas gift early
    J Joseph Dempsey

    I read this article on CNN and it talks about the boy having ADHD (attention deficit hyperactivity disorder). My brother and cousin both have ADD (-H) and unless you have experience dealing with these kind of kids you best not pass judgement on the mother. It is extermely hard to raise children like this and sometimes drastic measures can be helpful. I'm not saying this was right but I will not also jump the gun and say it was wrong. Unless you are part of the situation don't make assumptions about the parenting skills of another person who you've never even met. The true tragedy here is that this story made the news. A semi-personal issue not went national simply because it was an XMAS present that was involved. How very sad.

    Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge csharp html com question

  • MS not going bust just yet then!
    J Joseph Dempsey

    amen.

    Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge business sales announcement

  • ShoZu
    J Joseph Dempsey

    amen. Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge csharp html database com

  • take this test
    J Joseph Dempsey

    100 CENTS IN A DOLLAR, 90 DEGREES IN A RIGHT ANGLE, 18 HOLES ON A GOLF COURSE, 26 LETTERS OF THE ALPHABET, 29 DAYS IN FEBRUARY IN A LEAP YEAR Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge com tools help question

  • Let It Snow!
    J Joseph Dempsey

    Heh, I live in Northern Va. Virginia's weather can lead our forecasters to drink, i swear it. Last time it snowed (right before thanksgiving), it the temp was 50F the day before. Amaazing. They are calling for 1/2 foot tonite. Lots of sleet and ice also :( Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge csharp com

  • A tale of one upgrade - This will blow your socks off!
    J Joseph Dempsey

    A good guess would be http://www.easesoft.net/[^]. ;) Of course, this is just a guess. Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge sysadmin data-structures business question discussion

  • 11-year old boy disqualified from driving for a year
    J Joseph Dempsey

    Jeffry J. Brickley wrote: Not suprisingly we are in the top 15 states on danger on the roads due to DUI. Just so i'm sure not to visit.... where do you live? Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge com question announcement

  • Lotus Gotes and it's evil inventors
    J Joseph Dempsey

    ............. ............. and breathe...... see, don't you feel better now ;P Joseph Dempsey joseph_r_dempsey@yahoo.com

    The Lounge css com business collaboration help
  • Login

  • Don't have an account? Register

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