Type: Posts; User: astanley
Search took 0.02 seconds.
December 5th, 2005, 05:32 AM
' 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...
June 11th, 2004, 10:33 AM
If you have any virus scanning software running, try disabling it.
March 18th, 2004, 11:35 AM
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...
March 11th, 2004, 04:22 AM
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!
March 11th, 2004, 03:56 AM
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:
CMyClass* pMyObject =...
March 10th, 2004, 07:34 AM
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...
March 9th, 2004, 04:19 AM
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.
March 2nd, 2004, 04:11 AM
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...
March 2nd, 2004, 03:04 AM
Does time out work if you run the same release exe outside Visual Studio?
March 1st, 2004, 04:29 AM
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(...)...
March 1st, 2004, 03:13 AM
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.
February 20th, 2004, 06:41 AM
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...
February 19th, 2004, 06:36 AM
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...
February 13th, 2004, 11:30 AM
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)....
February 6th, 2004, 07:11 AM
There is a whole section on this web site for Resizable Dialogs.
February 5th, 2004, 07:54 AM
Look it up in MSDN. Here, I've done it for you
There's a link to a sample program.
February 5th, 2004, 07:38 AM
Try CCheckListBox (in MFC).
February 4th, 2004, 09:56 AM
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)
February 4th, 2004, 05:29 AM
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...
January 29th, 2004, 04:24 AM
Why not use the Windows CopyFile API - much simpler.
January 26th, 2004, 06:10 AM
January 26th, 2004, 05:08 AM
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"?>
January 21st, 2004, 06:39 AM
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...
January 16th, 2004, 03:57 AM
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...
January 15th, 2004, 08:32 AM
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:
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!