CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12

Thread: Vc++ Faq

  1. #1
    Join Date
    Dec 2001
    Location
    Canada/Montreal
    Posts
    983

    Vc++ Faq

    Hi Guys,

    me and Gabriel are working on a Article about the Frequently asked questions in the VC++ Forum. We have put already some questions, but we are still looking for more questions. So if you think you have a question in mind, which could be definitly added in our Article, then please paste the question and we will take a look at this.

    Thanks to all of you.

    -Sonu
    Sonu [MVP, MCAD.NET]
    Website: http://DotNetSlackers.com

  2. #2
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    hi guys,
    how come visual c doesn't load a listview control in win2000
    while i can load it in win98 (after compile & run build)

    it seems if a listview is on a dialog, the exe wont execute (win2000) while in 98 it does (i put commctl.h)
    please help,
    Ben
    source

    This is something that keeps popping up. People don't call InitCommonControlsEx and then common controls don't work.

    Hi,

    Ok, I have 1 stupid class with 2 stupid member functions and 2 stupid member variables just for a simple test. I assure you that my class is perfectly written. But... There always is a but...

    MY VC6.0 IDE REFUSE TO DO AUTOCOMPLETION. And yes, the AUTOCOMPLETION is set to ON in the Tools->Option Editor tab. I don't say that isn't working all the time, but when you least espect or when you need it most, it will crash.
    Source
    This is a recurring question that pops up once every two days. It's about the VC++ IDE and autocompletion.

    I thought that we were pretty secure in that I can barely figure out some of our code with the source, but my boss has asked me to look into making sure that competitors can't reverse engineer our code. We have some numerical stuff that is kind of special.

    With a dis-assembler, you get C code back? C++ code? How far back can you reverse engineer an *.exe? What are techniques that people use to hack somebody's code? I'm not sure this is worth worrying about - for myself, I think it would always be easier to start with publicly available information and techniques, and develop towards what a program produced, rather than to work backwards from that program and attempt to induce how it worked.
    Source
    Not sure if this is really a frequently asked question, but it is definitely worth reading.

    some tool to view the information provided in a dll file
    anybody know about any tool that is used to view the certain information about the functions provided by dll? tell me plz
    Source

  3. #3
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    MFC vs ATL vs STL
    Sorry about asking such a newbie question, but: what are the differences between MFC, STL and ATL?
    When should I use one or the other?

    Thanks a lot!
    Source
    This is something people confuse when they start out with VC. Many people also post questions like "What is better, MFC or ATL".

    Then there is another type of question that pops up very often (I couldn't find a good reference though :/)
    "My pogram works fine in Debug mode, but crashes in Release mode".

    The answer is in 99% of the cases that there are some unitialized variables or some memory allocation errors.
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

  4. #4
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443
    Thank you, Yves. We'll have a look at the questions and see what we make out of them.

    And keep posting other FAQs, all of you. Thanks.
    Gabriel, CodeGuru moderator

    Forever trusting who we are
    And nothing else matters
    - Metallica

    Learn about the advantages of std::vector.

  5. #5
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443
    I just wanted to keep this thread alive, as a reminder.

    We would *really* appreciate if you guys would help us collecting the most asked questions on VC++. Of course, if you also have the answer handy, we don't say no...
    Gabriel, CodeGuru moderator

    Forever trusting who we are
    And nothing else matters
    - Metallica

    Learn about the advantages of std::vector.

  6. #6
    Join Date
    May 2002
    Location
    Quebec City, Canada
    Posts
    374
    So is this a strictly VC++ FAQ or a VC++/MFC/... FAQ?

    In the forum, people seem to post any windows related question in the VC++ forum and keep the standard or STL related questions for the C++ forum.

    Just curious.
    Martin Breton
    3D vision software developer and system integrator.

  7. #7
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537
    Here's a link for release/debug. I was acutally looking for another one I read along time ago. But I guess this will do. It seems to have the usual suspects


    http://www.pgh.net/~newcomer/debug_release.htm


    I'd like to add... people please run your code thru functional verification testing often. I'm always amazed at how many developers don't check to see that they are freeing handles, or that they are leaking memory. There are plenty of _Crt functions dealing with memory. And ohh my even a _CrtDumpMemoryLeaks(); imagine that! The taskmanger works 2. I've just had to clean up too many other peoples code too often before I even get a chance to write any of my functionallity. I'll get off my soapbox now.

  8. #8
    Join Date
    Feb 2002
    Location
    Makati City, Philippines
    Posts
    1,054
    I am learning your language.

    I can't understand very well the file handling mechanism of C++ (e.g text with delimiters, formatted text, binary, random). Maybe I was thinking too much on the point of view of a VB programmer.

    How do you change that point of view if ever?

    Edit: And I don't know if this is a frequently asked question - sorry if it isn't.
    Last edited by aio; September 18th, 2002 at 08:15 PM.
    Marketing our skills - please participate in the survey and share your insights
    -

  9. #9
    Join Date
    Jun 2002
    Location
    Letchworth, UK
    Posts
    1,020
    Something totally unrelated - is there a way of stopping people posting the same question in more than one forum? Alternatively, would it be possible to link the answers of all the threads from the same question by the same person.

    There are a few culprits who always post questions on all three of the C++ forums. It is annoying answering a query that has already been answered in another forum.

    Also, is there a way of deleting a thread after you've posted it. Very often there are two consecutive threads with the same query. Also, sometimes, someone has accidentally pressed "new thread" instead of "post reply" so you see a reply but you don't know what it is replying to.
    Succinct is verbose for terse

  10. #10
    Join Date
    Dec 2001
    Location
    Canada/Montreal
    Posts
    983
    Originally posted by cup
    Something totally unrelated - is there a way of stopping people posting the same question in more than one forum? Alternatively, would it be possible to link the answers of all the threads from the same question by the same person.
    It isnt possible to stop the people which are posting the same question on several forums.

    There are a few culprits who always post questions on all three of the C++ forums. It is annoying answering a query that has already been answered in another forum.

    Also, is there a way of deleting a thread after you've posted it. Very often there are two consecutive threads with the same query. Also, sometimes, someone has accidentally pressed "new thread" instead of "post reply" so you see a reply but you don't know what it is replying to.
    You can delete your thread, by pressing the "Edit Thread" button and selecting the delete checkbox.

    -Sonu
    Sonu [MVP, MCAD.NET]
    Website: http://DotNetSlackers.com

  11. #11
    Join Date
    Dec 2001
    Location
    Canada/Montreal
    Posts
    983
    To all:

    As we have started the same thread in the VC++ forum, it would be better to propose any further Q/A in that forum.

    Thanks.

    -Sonu
    Sonu [MVP, MCAD.NET]
    Website: http://DotNetSlackers.com

  12. #12
    Join Date
    Jul 2002
    Location
    Poland
    Posts
    18
    What would you say about loading data from file to a listbox?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured