Search:
Type: Posts; User: Helmut Danzl
Search:
Search took 0.03 seconds.
-
September 11th, 2002, 02:04 AM
This example is wrong because a Unicode character array and a BSTR are not the same thing!!!
A BSTR is a pointer to the beginning of the unicode character array but it is preceded by a 4-byte...
-
September 10th, 2002, 02:30 PM
Yes, you can use CDatabase::SetQueryTimeout (or CDaoDatabase::SetQueryTimeout to set the number of seconds to allow before a query attempt times out.
Even if it is not stated explicitly in the...
-
September 10th, 2002, 07:07 AM
Shouldn't it be
for(it = pList->begin(); it != pList->end(); it++ /* not ++it */) ??
I think your loop is running beyond the list because you are using a pre-increment operator.
Now it is more...
-
September 8th, 2002, 03:32 AM
I'm quite sure that the way is correct. You only have to play with your parameters in FindResource.
You have inserted a custom resource and gave it a name, right.
Use this name as second parameter...
-
September 7th, 2002, 12:22 PM
Use GetParentFrame() to obtain the CWnd* pointer of your MDI-frame and call GetMenu() on this window.
-
September 7th, 2002, 12:08 PM
The documentation of the OPENFILENAME structure says for the lpstrFile member:
"If the buffer is too small, the function [GetOpenFileName] returns FALSE and the CommDlgExtendedError function returns...
-
September 7th, 2002, 11:54 AM
Use FindResource or FindResourceEx to obtain a handle of your resource, then LoadResource and LockResource.
The last method gives you a void* to your resource data.
-
September 5th, 2002, 01:09 AM
ModifyStyle is declared as
BOOL ModifyStyle( DWORD dwRemove, DWORD dwAdd, UINT nFlags = 0 );
So if you want to remove the maximize/minimize box you have to exchange your parameters.
There is...
-
September 4th, 2002, 10:27 AM
COM is based on RPC and RPC requires marshalling and unmarshalling of function parameters from the caller to the callee and back.
So COM has build in support to marshall standard data types but if...
-
September 4th, 2002, 09:47 AM
I believe the problem is that you are using MAPI which requires a MAPI provider (usually the e-mail client installed on your system like Outlook, ...).
So you always have to cope with the behaviour...
-
September 4th, 2002, 02:54 AM
Completely rebuild your project (menu Build - Rebuild all)
or
delete all your files in the Debug/Release subdirectory
-
September 4th, 2002, 02:51 AM
Use WM_KEYUP and VK_SNAPSHOT:
BOOL CxxxView::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message == WM_KEYUP && pMsg->wParam == VK_SNAPSHOT)
...
}
I used Spy++ to find out which message are...
-
September 3rd, 2002, 08:07 AM
Is it true that your are asking what data type to use?
If yes then use char or unsigned char; __int8 is also a valid type name which is recognized by VC++. These datatypes occupy 1 byte and...
-
September 3rd, 2002, 07:58 AM
Hi,
you have to subclass your edit control:
- Declare a new class which inherits from CEdit.
class CMyEdit : public CEdit {
...
};
- Declare a member variable m_myEdit of class CMyEdit in...
-
September 2nd, 2002, 02:25 AM
Well, you have many user input which gives a list like this:
Timestamp of user input -> Reminder timespan
-----------------------------------------------------
9/1/02 10:00:00 -> 5 minutes...
-
August 24th, 2002, 04:19 PM
Change the style before the window becomes created by overriding the virtual PreCreateWindow function:
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )...
-
August 24th, 2002, 11:22 AM
Hi,
you should be aware that SHGetSpecialFolderPath may not be available on every system - especially on older systems.
The function has also be superseded by ShGetFolderPath with comes with the...
-
August 24th, 2002, 11:07 AM
Have you tried SetForegroundWindow (applies only to top-level windows)?
Helmut
-
August 24th, 2002, 11:02 AM
Hi,
since your application object is a global variable you can make an "extern" declaration.
But you can also use the AfxGetApp() function.
Helmut
-
August 24th, 2002, 10:53 AM
Hi,
there are other ways to get the main window:
First there is the function AfxGetMainWnd().
Then there is a nice article in MSDN which describes the "Relationships Among MFC Objects" (you...
-
August 24th, 2002, 10:44 AM
Hi,
there is a better way than handling the WM_SIZE message -handle WM_GETMINMAXINFO instead:
void CMainFrame::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
{
lpMMI->ptMinTrackSize = CPoint(200,...
-
August 22nd, 2002, 02:33 AM
Sorry, I can't believe that your program just "dies".
If you have enclosed every smart pointer operation into a try - catch block you should get an exception.
Please send your source code or a...
-
August 20th, 2002, 07:05 AM
What is the type of your pComputer / pGroup variable?
Helmut
-
August 20th, 2002, 02:09 AM
Hi fongjeffrey,
you can do the same thing with COM and - as I believe - in a much more elegant and efficient way.
Just write a small ATL COM object and declare the class factory as singleton. And...
-
August 20th, 2002, 01:52 AM
There is a lot of work done in CString::GetBuffer and CString::ReleaseBuffer.
So if you don't want to loose any performance then casting is the fastest solution.
Besides there is no drawback with...
|
Click Here to Expand Forum to Full Width
|