|
Can anyone let me know why I see 'Linking...' and after this 'Compiling...' ?
Thank you.
[Sample]
--------------------Configuration: Shared - Win32 Release--------------------
Compiling...
EnumString.cpp
Linking...
Creating library .\Release/Shared.lib and object .\Release/Shared.exp
LINK : warning LNK4089: all references to "IMAGEHLP.dll" discarded by /OPT:REF
Compiling...
Report.cpp
Report2.cpp
ReportPreviewWnd.cpp
Shared.cpp
Generating Code...
Shared.dll - 0 error(s), 3 warning(s)
|
|
|
|
|
Your monitor might be upside down...
"Hey man, Taliban, Tali me Banana."
|
|
|
|
|
i guess slow refresh rate
t!
|
|
|
|
|
big sorry, i did not realize current forum
hm, it me already happened too (no your action after build run?), do not worry
t!
|
|
|
|
|
Isn't it that feature of Pentium when it computes some instructions before it needs them?
|
|
|
|
|
I'm writing a automation EXE server in VC++ 6.0 and I want to send COM/ActiveX events to the calling program... is it possible and how ?
The project was created as a MFC application with Automation support and works fine as a Automation server for my client application.
Now I just need to notify the client of events in my automation EXE application.
Please help.... thanks
|
|
|
|
|
*BUMP*
I really need help here, guys
|
|
|
|
|
|
Hi!
I use Spy++ to watch the messages a windows sends. For example if the user clicks on a menu item Spy++ loggs the following messages:
WM_MENUSELECT
WM_COMMAND wNotifyCode: 0 (sent from a menu) wID:7224
If I doubleclick on the WM_COMMAND log a new windows opens show the parameters (wParam and lParams) sent by WM_COMMAND. Often these values have a wParam like 00001C38.
Now I want to emulate this message. I tried:
SendMessage(wnd,WM_COMMAND,00001C38,0);
But this doesn't compile. So how do I need to write the wParam/lParam parameter shown in Spy++ in order to use it in my own SendMessage function?
thanks in advance
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
Thanks a lot!
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Is there a difference between
#pragma once and
#ifndef _THISDEF_
#define _THISDEF_
...
#endif ?
I've always defaulted to using the #pragma once but have noticed that others tend not to use it and favour the #ifndef instead, why is this? Am I missing something very simple?
Dylan Kenneally
London, UK
|
|
|
|
|
Good point. The #ifndef statement is only included in VC++ for backwards compatibility on older compilers and (according to MSDN) the #if !defined statement is supposed to be used instead (though it gives no reason as to why? surely the #ifndef code would be more portable because of this?). The #pragma statments are platform independent compiler directives, but I'm not sure of the difference between that and #ifndef or #if !defined, if there is any at all. I would like to know for sure though .
Alan.
"When I left you I was but the learner, now I am the master" - Darth Vader
|
|
|
|
|
There is a difference between #ifndef and #if !defined . You can have some operations in the latter case.
For instance:
#define A
#define B
#if !defined A AND !defined B
#include "header.h"
#else
#include "secondheader.h"
#endif
Best regards,
Alexandru Savescu
|
|
|
|
|
The #ifndef block is portable, #pragma is non-portable by definition.
|
|
|
|
|
The #ifndef version has a nice advantage in that you can test whether a header has been included by checking #ifdef _THISDEF_. You can't do that with the #pragma version. And, as has been mentioned, the #ifndef way works on every compiler (for those who have to worry about portability).
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Hello
I have two CDialog based classes, both with toolbars, using the technique used in the MSDN MFC sample dlgcbr32 which describes how to use toolbars and status bars in dialogs by overriding these particular control classes
I created the first class a few years ago and it works. I cannot get the toolbar button states to update in the 2nd class which I recently created, although the class is similar to the first.
I cannot get OnUpdateButtonX(CCmdUI* pCmdUI) to be called - CDlgToolBar::OnIdleUpdateCmdUI isn't being called.
Can anybody tell me what methods or messages need to be present for OnIdleUpdateCmdUI to get called.
Thanks,
John
|
|
|
|
|
Handle the WM_KICKIDLE message (#include "afxpriv.h" to get the definition) and call
UpdateDialogControls(this, FALSE);
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Thanks, I've tried it but no luck.
The OnKickIdle method isn't called.
I'll keep trying but in case anybody has spare time here's a checklist of what's going on:
-Toolbar has same resource ID as menu. The buttons have same IDs as menu items. Menu items are updated Okay but toolbar isn't
-Class has CDlgTool member, which is derived from CToolbar and has OnIdleUpdateCmdUI method, which isn't called
-Dlg shown non-modally
m_calcDlg=new CCalcDlg(this);
m_calcDlg->Setup(m_report,m_UBuckling);
m_calcDlg->Create();
m_calcDlg->ShowWindow(SW_SHOWNORMAL);
After this I swear I'll never write a CDialog based app. ever again!
bye,
John
|
|
|
|
|
I need my program to send a message which I define.
as below:
#define WM_MYMSG WM_USER+100;
WPARAM wp;
wp = MAKEWPARAM((WORD)0x200, (WORD)0x450);
::PostMessage(NULL, WM_MYMEG, wp, 0);
I code a .dll to get this message and then to do something.
The problem is, in the program, I get the correct wp value,
but when I post the message to the .dll file, it get the wrong value.
I use hook function to get this message. It get the message but the WPARAM parameter is wrong.
Does anyone could give me some suggestion ?
Thanks a lot.
|
|
|
|
|
Do you call .dll in your main app?If in this way,do you change the module
state in your .dll?
|
|
|
|
|
Hello,
I am new to MFC and the device context stuff. I have read some sample codes and write a simple program. It has a dialog with a button and a groupbox. When the button is pressed, an image is drawn to the groupbox by retrieving its hDC. This works fine but I don't know how to keep the image visible after refresh. How to handle this (like AutoRedraw in VB?) in VC?
As a related question, I have tried to modified the program so that the dialog is a pop up window rather than the main window. I want to display the image as soon as the dialog is visible. I have tried to put the drawing code in OnInitDialog() and DoModal(), but got no luck. I guess it is the same refresh problem as above, but I am not sure. Will this problem be solved when the above refresh problem is solved? Or I need some more special handling?
Thanks in advance.
|
|
|
|
|
Try to use Invalidate(TRUE) in the OnInitDialog()
|
|
|
|
|
I have a large project which contains some number of VC exe and Dll projects. Threre are number of versions of this project. However, currently I don't manage Version resource and each project contains default FILEVERSION and ProductVersion 1, 0, 0, 1, empty CompanyName etc. Anybody have idea how can I manage version information (except of opening each project and setting these values manually)?
Thank you.
|
|
|
|
|
I want to create one Class : have 2 button (starttime and stoptime) and 2 statictext (display start time and stop time)
when I click to starttime button it get current time and display to statictext and stoptime button too.
please help me, how to write it or send me your source. Thanks
|
|
|
|