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

Search:

Type: Posts; User: astanley

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Error 4605 calling Word.Document.Save with Word 2002 SP1

    See this:


    ' mobjCurrentDocument.Save with Word 2002 gives the error 4605:
    ' "The Save method or property is not available because this document is in
    ' another application".
    ' This was raised...
  2. Replies
    11
    Views
    892

    If you have any virus scanning software running,...

    If you have any virus scanning software running, try disabling it.
  3. Use CStdioFile::WriteLine to generate a csv file,...

    Use CStdioFile::WriteLine to generate a csv file, then launch the file in Excel with this:


    ::ShellExecute(m_hWnd, _T("open"), strFileName, NULL, NULL, SW_SHOW);

    where strFileName is the name...
  4. Thanks guys; I remember now reading that you have...

    Thanks guys; I remember now reading that you have to use new to create an object. The implications didn't sink in, but they have now!
  5. C# equivalent of C++ NULL pointers for objects?

    I'm trying to improve my understanding of C#.

    In C++ I could use NULL objects to check for the existance of an object, which gives the following consise pattern:

    C++


    CMyClass* pMyObject =...
  6. Replies
    4
    Views
    571

    In C++, there is no way to automatically convert...

    In C++, there is no way to automatically convert enums into string equivalents.

    The Visual Studio IDE is able to do it because it has access to your source code, which your running program doesn't...
  7. Error 4605 calling Word.Document.Save with Word 2002 SP1

    I have a test VB6 exe project with a WebBrowser control, called web1 (added via Project, Components, Microsoft Internal Controls). My project also references the Microsoft Word 10.0 Object Library.
    ...
  8. Replies
    37
    Views
    3,364

    Bear in mind gstercken comments. I would add...

    Bear in mind gstercken comments.

    I would add this. Run the release build exe (which should contain the debug info as per our instructions yesterday) outside of Visual Studio.

    Once it is...
  9. Replies
    37
    Views
    3,364

    Does time out work if you run the same release...

    Does time out work if you run the same release exe outside Visual Studio?
  10. How to get IErrorInfo from IDispatch call to VB6 component

    I'm using this function to call a VB 6 ActiveX component from my VC6 ATL component.

    When the VB 6 component throws an exception (raises an error), this is caught in CallByNameEx by the catch(...)...
  11. Replies
    37
    Views
    3,364

    There is no reason why the time out code should...

    There is no reason why the time out code should not work in a release build, so a bug must have been introduced some where. You need to debug the release build to find this bug.
    ...
  12. Replies
    4
    Views
    599

    Pardon me for butting in, but I think what ...

    Pardon me for butting in, but I think what Krishnaa means is that if you hook WH_GETMESSAGE, and the WM_SETTEXT message, then you will be able to detect when the application sets the text of the...
  13. Control Panel, Display, Effect, untick "Hide...

    Control Panel, Display, Effect, untick "Hide keyboard navigation indicators until I use the Alt key".

    This is ticked by default (no indicators), which I find very annoying, and is one of the first...
  14. Replies
    5
    Views
    452

    It is good design to release resources within the...

    It is good design to release resources within the same scope as they are acquired. So if you allocate memory in your document, you should also release it within your document (e.g., on destruction)....
  15. Replies
    9
    Views
    2,297

    There is a whole section on this web site for...

    There is a whole section on this web site for Resizable Dialogs.
  16. Replies
    13
    Views
    784

    Look it up in MSDN. Here, I've done it for you...

    Look it up in MSDN. Here, I've done it for you

    There's a link to a sample program.
  17. Replies
    13
    Views
    784

    Try CCheckListBox (in MFC).

    Try CCheckListBox (in MFC).
  18. Yes, your code is how it should be done - but...

    Yes, your code is how it should be done - but check for a NULL pointer (just in case):



    nIndex = 0;
    CPerson* pPerson = m_myListBox.GetItemDataPtr(nIndex);

    if (pPerson != NULL)
    {
    ...
  19. The assignment here: CPerson* pPerson = new...

    The assignment here:


    CPerson* pPerson = new CPerson(PersonDlg.m_sPersonName, PersonDlg.m_nSex, PersonDlg.m_DataOfBirth);

    is safe because we then store the address the pointer points to into...
  20. Replies
    4
    Views
    509

    Why not use the Windows CopyFile API - much...

    Why not use the Windows CopyFile API - much simpler.
  21. Replies
    4
    Views
    768

    Does this...

    Does this help?
  22. Replies
    4
    Views
    768

    Create a manifest file call myapp.exe.manifest...

    Create a manifest file call myapp.exe.manifest (where myapp is the name of your application. Put this in it:



    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly...
  23. Replies
    4
    Views
    594

    If you are using the TCHAR.H data types, you...

    If you are using the TCHAR.H data types, you should also use the equivalent string functions, e.g., _tcscpy, not strcpy.

    psvUser and psvPassword are pointing to single characters which have not...
  24. Replies
    5
    Views
    722

    The WM_TIMER message is not accurate for what you...

    The WM_TIMER message is not accurate for what you require; they are processed at low priority, and are often delayed whilst other higher priority messages are processed. I think what you need is...
  25. Replies
    37
    Views
    3,364

    This is the approach I've taken to this problem...

    This is the approach I've taken to this problem in the past, and it works very well.

    In your app's InitInstance, hook into the Windows mouse and keyboard hooks:



    m_lpfnKeyboardHook =...
Results 1 to 25 of 83
Page 1 of 4 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center