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

Search:

Type: Posts; User: greg_dolley

Page 1 of 12 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    41
    Views
    6,048

    Re: C# vs C++ in server apps

    Yes, it's possible to do it in MC++.

    Greg Dolley
  2. Replies
    41
    Views
    6,048

    Re: C# vs C++ in server apps

    I haven't seen it, but you could have easily done this in order to free the queue resources:



    {
    MessageQueue ^mq = gcnew MessageQueue("DestinationQueueName");
    mq->Send(gcnew Message("my...
  3. Replies
    41
    Views
    6,048

    Re: C# vs C++ in server apps

    Arjay, remember there are different implementations of STL, written by different companies. Their class structures, function parameters, etc. are all the same, but how the functions are coded is...
  4. Replies
    41
    Views
    6,048

    Re: C# vs C++ in server apps

    Arjay, and in MC++ it gets even easier! ;) Check it out:



    MessageQueue ^mq = gcnew MessageQueue("DestinationQueueName");
    mq->Send(gcnew Message("my message"));


    Greg Dolley
  5. Replies
    41
    Views
    6,048

    Re: C# vs C++ in server apps

    Are you serious?! Hmmm... Why is this?

    Greg Dolley
  6. Replies
    41
    Views
    6,048

    Re: C# vs C++ in server apps

    They're close but not exactly the same.

    Greg Dolley
  7. Replies
    41
    Views
    6,048

    Re: C# vs C++ in server apps

    CPUWizard, if you're using the old CLR syntax where the "new" keyword can create either a managed or unmanaged object, yeah it's easy to make a mistake and accidentally write unsafe code. But with...
  8. Replies
    41
    Views
    6,048

    Re: C# vs C++ in server apps

    IMHO, I don't see why programmers shy away from managed C++ (MC++). Seems like a lot of people are using C# instead of MC++. I use MC++ when I need performance or when I want to use templates and...
  9. Replies
    29
    Views
    3,610

    Re: Very simple mathematic question

    Very easy:



    void do_something(void)
    {
    double number;
    double percent;
    double result;
  10. Replies
    29
    Views
    3,610

    Re: Very simple mathematic question

    Yup, that is wrong. Sorry. ;) The % sign is a modulus operator. It gives you the remainder of a division operation. For example, 2 % 10 = 0 because two divides evenly into 10 leaving no remainder;...
  11. Re: ClassView is not showing my classes (VC++, namespace, headers) ?!?!?

    I changed the options in my profile, so you should be able to send me emails now. :)

    Greg Dolley
  12. Re: ClassView is not showing my classes (VC++, namespace, headers) ?!?!?

    Wow, that's really strange. Can you send me the project (zipped preferably)? I can try it in my Visual Studio and do some experiments.

    Greg Dolley
  13. Replies
    8
    Views
    6,766

    Re: TrackPopupMenu question

    I'm not 100% sure on this one, but here goes:

    When you specify 0 as the first parameter to TrackPopupMenu() and use the ON_COMMAND handler, don't you specify the resource id of the menu item in...
  14. Re: Stumped from the beginning, mock database

    Do you have to use fstream? If you are writing a series of just one struct to a file, then I would just use fread() and fwrite(). Those are functions that read/write plain binary data to/from a file....
  15. Re: ClassView is not showing my classes (VC++, namespace, headers) ?!?!?

    Close Visual Studio, delete the .ncb file (this would be in the project root folder), reopen the project, and do a "Rebuild All." Now check the class view window. If it still displays no classes, let...
  16. Replies
    11
    Views
    1,965

    Re: Purpose of Header Files?

    When you create a program bigger than one source file, you will see. ;) Also, when sharing a class you wrote with other developers, all working on the same program, you want them to include your...
  17. Replies
    18
    Views
    4,900

    Re: Display CFormView

    Hmmmm.... There's too little information to go on. Is it possible for you to attach a zip of your project? I can figure it out pretty quickly then.

    Greg Dolley
  18. Replies
    11
    Views
    3,936

    Re: Set the Title bar Height Programatically

    OK, I'll just spill it, even though it's long and tedious, here's how I make a custom height for title bars, toolbars, and docking panes...

    Even though the app has the non-client area owner-draw,...
  19. Replies
    11
    Views
    3,936

    Re: Set the Title bar Height Programatically

    Only for your application.

    Greg Dolley
  20. Replies
    11
    Views
    3,936

    Re: Set the Title bar Height Programatically

    As far as I know, you can't do this to an individual window. But you can make your dialog NC owner-draw allowing you to draw the title bar yourself.

    Greg Dolley
  21. Replies
    6
    Views
    1,001

    Who Knows of a Good Registry Cleaner?

    I'm trying to find a good registry cleaner. Who has a good one to recommend?

    Greg Dolley
  22. Replies
    34
    Views
    3,007

    Re: OT: A different kind of puzzle

    Light both ends of the one hour rope. This will take 30 minutes to burn. When it is burnt out, light both ends of the half hour rope. This one will take 15 minutes to burn. When it is done, you have...
  23. Replies
    4
    Views
    4,893

    Re: Problem while using GetWindowTextW()

    cilu is right, there's no way you can get handles of the controls because the control itself doesn't exist. It looks like you're wanting an easy way to do it. If so, try using DDX through the wizard....
  24. Replies
    2
    Views
    805

    Re: What dose it mean?

    The practice of commenting every function is rarely followed completely. If you can do it 100% of the time, that's really good.

    Greg Dolley
  25. Replies
    1
    Views
    773

    Re: Doubt Debug option

    Why do you have "WRITE<...>"? Do you know angular brackets are not used this way?

    You didn't ask a question in your post, so I'm not clear what you want help with. Do you need help in...
Results 1 to 25 of 280
Page 1 of 12 1 2 3 4





Click Here to Expand Forum to Full Width

Featured