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

Search:

Type: Posts; User: J_W

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    3,458

    Re: creating an instance of a mfc derived class.

    Ok point taken, will do. However many times on here I do get good input on here as to specifically where to RTFM, as your current post content (in addition to the RTFM) helps also. Thanks.


    ...
  2. Replies
    5
    Views
    3,458

    Re: creating an instance of a mfc derived class.

    Oh, ok, for some reason I thought that might foobar the MFC framework that made it protected. Wonder why the derived CFormView class has a protected ctor and the other derived classes don't. Maybe I...
  3. Replies
    5
    Views
    3,458

    creating an instance of a mfc derived class.

    I need to create an object of a mfc derived CFormView class that's not in the doc/template (a second view class).
    but it was generated with a protected ctor. Here's the code explanation with...
  4. Replies
    5
    Views
    1,511

    Re: Include file semantics?

    I like that even better, now the includers (the cpp files) don't even have to worry with it, since it's covered right in the original header. I've never seen this method before, thanks.



    Ah...
  5. Replies
    5
    Views
    1,511

    Re: Include file semantics?

    Outstanding decipher, the voice of experience speaks.

    So then in my novice mind I'm guessing that since #include "ViewSwitchDoc.h" was always in the ViewSwitchView.cpp implementation file, this...
  6. Replies
    5
    Views
    1,511

    Include file semantics?

    Compiler error output,
    1>MainFrm.cpp
    1>z:\. . . . viewswitchview.h(19) : error C2143: syntax error : missing ';' before '*'
    1>z:\. . . . viewswitchview.h(19) : error C4430: missing type specifier...
  7. Replies
    3
    Views
    1,719

    Re: Event handler wizard question

    No it's the Pro Version, bought and paid for, albeit I got it late, about 3 yrs ago at a discount price. But it's a registered bonafide package.

    It's not a big problem anyhow cause there really is...
  8. Replies
    2
    Views
    1,066

    Re: Quick Find window size

    Not sure bout 2010, but 2005 it's only sizable by dragging the edges.
  9. Replies
    3
    Views
    1,719

    Event handler wizard question

    For 2005 Visual Studio (v.8) in the wizard for adding an event handler, I found info at this link
    http://msdn.microsoft.com/en-us/library/23w347xy(v=vs.80).aspx
    that is not the case with my 2005...
  10. Replies
    13
    Views
    3,204

    Re: C++ extern question

    Thanks I stored that info on my drive. BTW what's your input on using fstream etc C++ stream classes with wchars. I've read in the past that you have to always open the file in binary mode and work...
  11. Replies
    13
    Views
    3,204

    Re: C++ extern question

    Well that's an aspect I've never realized before.



    I tend to agree with that logic in as much as I can encompass the whole of it.
  12. Replies
    13
    Views
    3,204

    Re: C++ extern question

    Good point Arjay, actually I used to use TCHAR all the time, but some folks seem to think it a performance hit (in some scenarios of Unicode compiles) and lean towards just making two separate...
  13. Replies
    13
    Views
    3,204

    Re: C++ extern question

    YES! Thank you, I spotted it myself as soon as I posted it, Yea right! you are probably saying. But as soon as I looked it on the forum my mind woke up. Thanks to VictorN and you both.
  14. Replies
    13
    Views
    3,204

    Re: C++ extern question

    Yes I did in the MyFileClass.cpp file.
    *later update edit-> Opps just saw my stupid error thank you so much for jogging my dumb inexperienced mind.
    See code fix inserted. Ahhhhhh what a stupid...
  15. Replies
    13
    Views
    3,204

    Re: C++ extern question

    Thanks you are right. (I will research my original question of "extern" later in the docs.)
    I will now try your get the pointer method above.

    I had already had trouble with my previous...
  16. Replies
    13
    Views
    3,204

    C++ extern question

    MFC application.
    I created a file access class for simple debug stuff that's not needed to run thru the document's serialize. I want to be able to call it from anywhere or any class, so I figured I...
  17. Replies
    7
    Views
    1,733

    Re: Question fstream logistics

    Wow that is one of the better threads I've ever read on this. Thanks for fronting it to me. The answers where mixed as usual but very thorough and informative.
  18. Replies
    7
    Views
    1,733

    Re: Question fstream logistics

    Thanks that's a good point. I have another question on that subject.
    1. Do a lot of folks still consider the recompile portability of TCHAR a good thing now days or are more folks leaning towards...
  19. Replies
    7
    Views
    1,733

    Re: Question fstream logistics

    Thank you for that verification. I should have done that, I know from the past that can be quite tedious and time consuming, but no excuse.



    I figured that might be the case, but glad you...
  20. Replies
    7
    Views
    1,733

    Question fstream logistics

    The following code compiles with no errs and works.
    However my VC Pro 2005 Intellisense shows a bunch of stuff but does not show anything for-> ::in <-OR-> ::out ON <-std::fstream::

    I'm wondering...
  21. Replies
    7
    Views
    1,952

    Re: Need help with error C2664

    Point understood, thank you. 100 bytes compared to 4.
  22. Replies
    7
    Views
    1,952

    Re: Need help with error C2664

    Thanks for the explanations. I kinda see what your are taking about. I guess I need to do some experimental evaluations to make it more clear to me. I had always thought an Char array was the same as...
  23. Replies
    7
    Views
    1,952

    Need help with error C2664

    I have a question as to why the two shown func args are different? See comments (yes I am novice)

    struct MyFileClass
    {
    .....other code

    void MyFileOut( TCHAR* pS, DWORD pVar)
    {
    ...
  24. Re: SXS: Invalid parameter(s) passed to FindActCtxSection*()

    Ok so you have heard of it. Actually there is more to it than just static linking if you read some of the blogs. In any case so far it appears MS has not offered anything for it.
  25. Re: SXS: Invalid parameter(s) passed to FindActCtxSection*()

    Well actually since I haven't used my compiler since the April update, I kinda felt like I would be one of the last folks to find this out. I guess maybe only a few folks are still using MFC now...
Results 1 to 25 of 30
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured