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

Search:

Type: Posts; User: Access_Denied

Page 1 of 4 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: How can I identify which of two subclassed controls the mouse is over?

    Then why not put a method in there? C++ supports multiple inheritance, so why not create a base class with a pure virtual method? Then you can call the method no matter which control it is and get...
  2. Replies
    6
    Views
    6,537

    Re: MFC "The parameter is incorrect"

    Sorry, I didn't make that entirely clear. (I was also a bit wrong anyway.) Break All just puts me in a call stack with all library calls. (The actual error box is in user32.dll.) But there are no...
  3. Replies
    6
    Views
    6,537

    Re: MFC "The parameter is incorrect"

    I'm afraid posting the project wouldn't be possible. Even if I got the OK from my boss to post the code, it takes a few hours to get it all configured to run properly in Visual Studio. Obviously...
  4. Replies
    6
    Views
    6,537

    MFC "The parameter is incorrect"

    I know that this issue is fairly common, but it's also fairly vague. I'm having one heck of a time tracking it down, so I was hoping somebody who has seen it before would be able to help. My issue is...
  5. Replies
    0
    Views
    775

    MFC Printing Issue

    Hi guys, I'm having a bit of trouble with printing in my application. My biggest problem is that I know NOTHING about printing. I've poked around here and there, but for the most part, I leave it as...
  6. Replies
    1
    Views
    18,736

    Re: Cross Site POST with Javascript

    I don't know if anybody else will ever have this same problem, but I was able to solve it. What I did was add "Access-Control-Allow-Origin" to the header of the response with the value "*". (I'll be...
  7. Replies
    1
    Views
    18,736

    Cross Site POST with Javascript

    Hi guys,

    I'm having a bit of trouble with Javascript. I have't been using it very long, so try to bear with me. I realize that AJAX wasn't meant to do cross site requests, but I see that there are...
  8. Replies
    6
    Views
    3,017

    Re: C# To C++

    The rough overview is that it's reading in a file, doing a regular expression find and replace, then writing that data back to the file. It really should be broken into a few different lines to be...
  9. Replies
    1
    Views
    1,283

    Re: C# Tutorial for a Java Programmer

    It's the first link on Google.
  10. Re: ShellExecute crashes Dev Studio 2008 SP 1

    Could you give us some more information? Like what kind of 'crash' are you getting and what the call stack looks like? Have you tried debugging to see if any of the variables contain garbage data...
  11. Replies
    3
    Views
    5,366

    Re: CHeaderCtrl background color.

    This seems to be quite common lately. CodeGuru should install that vBulletin plugin that warns you when you're about to reply to an old thread like this. (Or does it already? I've never tried. :p)
  12. Replies
    0
    Views
    729

    Windows Deployment

    I'm developing a C++ (MFC) application in VS2008. For a long time, we used Installshield (v8 or something) to deploy our program. The only problem was that Installshield was on a virtual machine on...
  13. Replies
    12
    Views
    2,647

    Re: How to debug without debugging?

    But I haven't really been able to reproduce the bug. I've been able to reproduce something that has the same effect as the bug, but there's about 1,000 things that produce that same effect. I may not...
  14. Replies
    12
    Views
    2,647

    Re: How to debug without debugging?

    That's exactly what I've done. I used the debugger to set the path to the database to just an empty path before initializing the database object. I came up with the same situation as the customer....
  15. Replies
    12
    Views
    2,647

    How to debug without debugging?

    So I'm in a bit of a pickle. Recently, I released an update for the program I work on. This update was a bit unique because it was the first time I did a branch and merge in Git with the code base....
  16. Replies
    15
    Views
    14,180

    Re: How to decouple resource.h fro. .rc file

    Try using forward slashes '/'. They work just fine in Windows and will eliminate any escape character errors. Also, try using an absolute path ("C:/.../proj-main/resource.h"), just in case Windows...
  17. Replies
    15
    Views
    14,180

    Re: How to decouple resource.h fro. .rc file

    By your own file, I meant your own path. I'm assuming that the path of the shared resource file is different than just "resource.h" for at least one of the projects. So "resource.h" might turn into...
  18. Replies
    15
    Views
    14,180

    Re: How to decouple resource.h fro. .rc file

    Did you try replacing ALL instances of "resource.h" with "yourfile.h"? I know in my .rc file there's more than one, but I only saw that article mention one.
  19. Replies
    15
    Views
    10,554

    Re: Memory Mapping in Visual C++ programming

    This may seem obvious, but I have to ask before continuing: are you using a mutex or semaphore to protect access to the memory? Because yes, you do indeed have to maintain timing between the...
  20. Replies
    9
    Views
    6,486

    Re: Find all instances of type

    I'm not 100% sure, but I'm pretty sure the answer is no. But remember, since C# has garbage collection, if there's an instance of it on the heap, you do have a reference to it somewhere. I think the...
  21. Re: If there a way to close an application?

    Use the GetForegroundWindow function from the the Windows API.

    http://msdn.microsoft.com/en-us/library/windows/desktop/ms633505(v=vs.85).aspx
  22. Re: If there a way to close an application?

    A quick Google search would have given you the answer you are looking for:

    http://support.microsoft.com/kb/305603
  23. Re: Value from one column but not another

    How are you currently handling the mouse clicks? If you're handling them though the MouseDoubleClick event, I'm willing to bet there's a way to do it there. The MouseEventArgs parameter will give you...
  24. Replies
    9
    Views
    6,091

    Re: Subclass HeaderCtrl in ListCtrl

    My friend, you are a life saver. Worked like a charm. I can't believe that this didn't show up in any of my 100+ searches. :/ Oh well, at least it's now documented for people in the future.

    Thank...
  25. Re: alternative to MFC in Visual C++ Express 2010?

    Are you a student or have a .edu email address? If so, you can sign up for the Dreamspark program and get VS2010 Professional for free for 1 year.
Results 1 to 25 of 97
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured