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

Search:

Type: Posts; User: Arjay

Page 1 of 5 1 2 3 4

Search: Search took 0.20 seconds.

  1. Re: [Tutorial] Switch..Case, Loops and 1D Arrays *Heavily Commented*

    Thanks, but the forums aren't the place to post tutorials.

    Please submit this as an article to the main codeguru site.
  2. Re: Process.Start() => speed-- vs. Console

    What do you mean, "visible to a progressbar"? Are you interacting with this process somehow to track its progress and display it in a progress bar? If so, then if its performance is less when doing...
  3. Re: Slightly OT, Visual Studio 2012, and virtual desktops...

    Sorry, I've spent my whole career on Windows and Microsoft technologies. At this point, I don't think I'm smart enough to try to learn all the ins and outs of Unix. A man's got to know his...
  4. Thread: Pl Guide ..

    by Arjay
    Replies
    3
    Views
    153

    Re: Pl Guide ..

    MDI means Multiple Document Interface. In your case, you are acting on a single file, but with mutiple views. MDI would be appropriate if you want to display and work on multiple files at once.
  5. Replies
    3
    Views
    105

    Re: Take screenshot of Window while in Taskbar

    Generally, apps paint their windows differently in minimized mode versus normal mode.
  6. Replies
    3
    Views
    105

    Re: Take screenshot of Window while in Taskbar

    Do you mean minimized, so only the taskbar icon is showing? Or do you mean the window that shows up when you hover over the task bar icon? Or something else?
  7. Replies
    5
    Views
    181

    Re: Unable to add event handler

    If you started out with the drop shadow, what did you do to make it go away? Perhaps you removed it when you changed the code that caused the full namespace to change?
  8. Replies
    13
    Views
    277

    Re: C++ extern question

    The gist of this approach is:
    1. Use TCHAR string forms throughout the app (e.g. LPCTSTR, LPTSTR, instead of char*)
    2. Use the _T("") macro for hard coded string literals (e.g. _T("hard coded...
  9. Replies
    1
    Views
    141

    Re: C# with ACCPAC Question

    Go to Pervasive's website and download the ADO.NET 4.0 database provider. The download should include C# sample code about using the provider.

    http://www.pervasivedb.com/psqlvx/Pages/PSQLVx.aspx...
  10. Replies
    5
    Views
    181

    Re: Unable to add event handler

    The problem is the class name in the xaml file doesn't include the namespace that is in the code behind.
    You have:

    x:Class="MainWindow"
    instead of

    x:Class="Shader.MainWindow"

    You have...
  11. Re: MFC C++ multiple OnSetActive() calls happening at once

    Yes. Putting up a message box is okay (because messages are still getting processed), the problem is after you block the ui thread for an extended period of time.

    That being said, if you recall my...
  12. Replies
    13
    Views
    277

    Re: C++ extern question

    What many folks forget is that Windows stores it's strings as UNICODE (well, on NT based Windows, not 9x systems). So if you compile your program for ANSI, each string call made to the OS gets...
  13. Replies
    13
    Views
    277

    Re: C++ extern question

    @J_W, glad you have this figured out.

    Not that it matters, but you might consider using the TCHAR form of strings so the app can be compiled in UNICODE in the future without a bunch of...
  14. Re: MFC C++ multiple OnSetActive() calls happening at once

    AfxMessageBox calls do take focus, so when they are dismissed the previous window will regain focus. It is puzzling about the order of when the set active messages occur, but keep in mind that you...
  15. Re: login form code help usig ms access database

    Where does this error occur? have you single stepped through the code in a debugger to find the line that throws this error?



    You may have to escape the backslashes in this code as follows:
    ...
  16. Replies
    17
    Views
    492

    Re: only works with cout?

    If the real program is polling key board states and is a console app, you might be better off starting with a windows app (and/or a key board hook).
  17. Replies
    13
    Views
    277

    Re: C++ extern question

    Instead of making it global, why not make it a member of your CWinApp derived class? Then you can access it anywhere by calling AfxGetWinApp().
  18. Replies
    4
    Views
    155

    Re: MFC CRichEditView vs CRichEditCtrl

    In the link that Victor gave, Paul describes the differences in the section where he talks about the CCtrlView. Essentially CCtrlView adds a property and a couple of methods to CView. You certainly...
  19. Re: MFC C++ multiple OnSetActive() calls happening at once

    Phew, I had to recheck to make sure I didn't say send instead of post. ;)
  20. Re: MFC C++ multiple OnSetActive() calls happening at once

    The main thread doesn't need to loop to wait for a worker thread to finish other than the normal message pump type of loop. Generally, some ui controls are disabled while the worker thread is...
  21. Re: MFC C++ multiple OnSetActive() calls happening at once

    I would be inclined not to worry about the strange behavior and move to code up a worker thread to do the lengthy operation. If you prefer, consider using QueueUserWorkItem and have windows do the...
  22. Re: login form code help usig ms access database

    Is the database located at that location? Is the path valid?

    Keep in mind that your connection string is

    OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data...
  23. Re: Dealing with WM_DESTROY while terminating a thread

    My question is why the worker thread needs to have a message pump and a window. Generally, worker threads don't have windows.
  24. Re: Dealing with WM_DESTROY while terminating a thread

    Kind of wondering why you are creating a thread containing a window as generally all the UI related stuff is done in the main ui thread.
  25. Re: login form code help usig ms access database

    Put a breakpoint on the line if(temp== 1) and start debugging the site by pressing F5. Then single-step through the code and look values of the variables. Are your queries returning what you expect?
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width