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

Search:

Type: Posts; User: jonathan.allen

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    4,678

    Re: Using MPI in C++ Solution

    Sweet, sounds good, I think I get all that, I'll give it a go and be back on if there are any problems...

    Thanks for you help!
  2. Replies
    4
    Views
    4,678

    Re: Using MPI in C++ Solution

    Oki doki. I think I understand that. So, for example, code could be something like this:


    int main(int argc, char *argv[])
    {
    int active, nTasks, rank, n;

    active = MPI_Init(&argc, &argv);...
  3. Replies
    4
    Views
    4,678

    [RESOLVED] Using MPI in C++ Solution

    Hi guys,

    I'm wondering whether it's possible to implement MPI to execute a process in parallel from deep within a C++ solution.

    I've created a solution on VS2005 that links to several static...
  4. Replies
    16
    Views
    2,355

    Re: Assigning Member Name from String

    Right, ok, thanks guys, I'll think about using CMap next time if I absolutely have to link a variable to a string, but where possible will avoid it, very useful to know, cheers.
  5. Replies
    16
    Views
    2,355

    Re: Assigning Member Name from String

    Paul,

    Thank you for your extensive explanation, I understand what you mean, and you're right in the mistake I was making, forgetting what "CArray" really means, now that you've reminded me I can...
  6. Replies
    16
    Views
    2,355

    Re: Assigning Member Name from String

    Victor, you're quite right, your way of defining the way is how I should do it rather than the quick fix I described - I took the idea of a "quick" fix too literally and didn't think to simply define...
  7. Replies
    16
    Views
    2,355

    Re: Assigning Member Name from String

    Yes, I've been having a look at that myself, it'll take me some time to through it, but for now I've applied the following quick fix so my program can run while I'm reading:



    CArray<CPen*,...
  8. Replies
    16
    Views
    2,355

    Re: Assigning Member Name from String

    There are many times I think they made it certain ways to be evil! ;)

    Ok, seriously, I'll not do it this way if you think this, smart pointers are something I haven't come across before but I'll...
  9. Replies
    7
    Views
    1,020

    Re: Enabling Mainframe Menu Item

    Got it!

    Thanks guys! All the pieces have finally fitted together in my brain correctly!

    Cheers!
  10. Replies
    16
    Views
    2,355

    Re: Assigning Member Name from String

    For those who also get the final error I mentioned, I found this solution to edit the class constructor to permit this solution to work:

    http://stackoverflow.com/questions/864864/error-using-carray
  11. Replies
    16
    Views
    2,355

    Re: Assigning Member Name from String

    Of course! Why didn't I think of that?!

    I've created an array of pens, however VS doesn't like me setting the array as:

    for(int i = 0; i < 4; i++)
    {
    penArray.SetAt(i, CPen(PS_SOLID,...
  12. Replies
    7
    Views
    1,020

    Re: Enabling Mainframe Menu Item

    Sorry for the lateness of this reply, I've been focussing on other issues, as this function of my program is only to make the GUI look nicer, so not the most important for me!

    However, I'm still...
  13. Replies
    4
    Views
    1,799

    Re: Updating Dialog Box From Child Class

    Sorry for the late reply, but I wasn't able to work a solution for this issue so reprogrammed my program to avoid encountering the problem instead.
  14. Replies
    16
    Views
    2,355

    Assigning Member Name from String

    Hi guys,

    I have a little query for you that I haven't been able to find a solution for.

    I want to set the name of a member by referencing a string. To me this seems like quite a straightforward...
  15. Replies
    4
    Views
    1,799

    Re: Updating Dialog Box From Child Class

    Sorry, I should have also mentioned that FirstTask.h looks like:

    #pragma once
    class CFirstTask
    {
    protected:
    CRunDialog sendMessage;
    public:
    CFirstTask(.....)
    };
  16. Replies
    4
    Views
    1,799

    Updating Dialog Box From Child Class

    Hi,

    I'm having a little trouble trying to update an item within a dialog box from a class that is a child of the class belonging to the dialog box. I may have become confused further as I'm using...
  17. Replies
    7
    Views
    1,020

    Re: Enabling Mainframe Menu Item

    Ah, missed one little bit of information off. Another peculiarity is that once the buttons have been enabled, when I hover the mouse over the "Run" button on the main menu, the linked "Run" button...
  18. Replies
    7
    Views
    1,020

    Enabling Mainframe Menu Item

    Hi,

    I have a slightly strange issue with enabling a menu item on the mainframe window of my MFC project. Basically, my programme requires the user to input various pieces of data, after which...
  19. Replies
    6
    Views
    8,247

    Re: VS2005 MFC Debugger Stopping Time

    Hi Paul,

    I knew I shouldn't have used the word "definitely" in my last post! It meant that I would have obviously missed one of my lines for sizing a vector and yes, one was wrong (although, it...
  20. Replies
    6
    Views
    8,247

    Re: VS2005 MFC Debugger Stopping Time

    Thanks for your replies.

    @GCDEF:
    The problem is that I can press the "stop debugging" button but that's when the problem starts and the lag starts

    @Paul:
    Thanks for your advice, I had a...
  21. Re: Finding Text File Line Length and Reading into Array in MFC C++

    Yep, that worked perfectly, tokenize() is the way to go! :)
  22. Replies
    6
    Views
    8,247

    VS2005 MFC Debugger Stopping Time

    Hi all,

    I've been writing an MFC programme in VS2005 in C++ and have recently run into some issues during debugging. When I debug the code it will run perfectly well until the point I end the...
  23. Finding Text File Line Length and Reading into Array in MFC C++

    Hi,

    I'm a newbie to C++ and MFC environments, so I'm sorry if this question is really obvious to answer but I've been searching forums and can't find a solution.

    Basically, I have a programme...
Results 1 to 23 of 23





Click Here to Expand Forum to Full Width

Featured