|
it's quite a stupid question...
how to disable creating help files in created project? i selected this property while creating a project and now i'd like to turn it off but i can't find it in project properties (perhaps i'm blind )...
|
|
|
|
|
One way, although maybe not the best, is to open the Project Dependencies dialog. Simply remove the checkbox from the help project.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I recently starting using a 2D Active X Control I found at this site. But does anyone know where I can found a good tutorial of how to set up a graphical control that plots x, y points...or a tutorial that explains how they work. I want to understand the details.
Jerry
|
|
|
|
|
Hello,
I have stumbled upon a (what I think) minor problem, but can not solve it.
(see: problem).
Disabled controls...
I have a dialog in a docking bar (resizeable), in that dialog I have 1 custom made
timeline control (similar to Adobe Premiere and such) and 3 buttons.
All controls, including, the buttons are added through the Dialog editor.
The control works flawlessly, no problem, but all the buttons are inactive..
No matter what I do, they never become active (click able)..
Any idea would be most appreciated..
Thanks
Fredrik Kling
More info:
- SDI application
- Dialogs constructed by allocation, like (from the mainframe):
<br />
ptrDlgDocManager = new CDlgDocManager();<br />
ptrDlgDocManager->SetSizeDockStyle(SZBARF_DLGAUTOSIZE);<br />
if (!ptrDlgDocManager->Create(this,IDD_DIALOG_DOCUMENT,CBRS_BOTTOM | CBRS_FLYBY | CBRS_GRIPPER | CBRS_SIZE_DYNAMIC, ID_VIEW_DOCUMENT))<br />
{<br />
return -1;<br />
}<br />
ptrDlgDocManager->EnableDocking(CBRS_ALIGN_ANY);<br />
DockControlBar(ptrDlgDocManager);<br />
|
|
|
|
|
i don't understand why you say both taht you use MFC but no CDialog...
anyway, if you have the ID of you buttons, why not doing so :
CButton* MyButton = (CButton*)GetDlgItem(IDC_MYBUTTON);
MyButton->EnableWindow(TRUE);
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
While its hard to be sure, this is what I think your problem is...
You have created a CDialogBar. During idle moments, MFC tries to synchronise the enable / disable state
of its buttons with the rest of the application. This is the same mechanism that makes your menu items
enabled disabled.
If you look up CDialogBar, you see its inherited from CControlBar. That has a virtual function OnUpdateCmdUI.
If you override that, MFC will no longer enable / disable your controls depending on whether they have
command handlers in other parts of your application.
class CMyDialogBarThatDoesntUpdate : public CDialogBar
{
...
virtual void OnUpdateCmdUI( CFrameWnd* pTarget, BOOL bDisableIfNoHndler )
{
}
...
};
That should remove this bar from the update mechanism.
Iain.
|
|
|
|
|
Thank you!
Problem solved...
> If you override that, MFC will no longer enable / disable your controls depending on whether they have
> command handlers in other parts of your application.
Ok, thats why it worked in another application... (The handler was present in the MainForm)
Never thought of why, probably because it had a handler then...
Thanks alot..
// Fredrik
|
|
|
|
|
Hi,
I've got a problem compiling my code on some machines. The code in questions uses
#include <cdosys.h>
On my machine, that's not a problem, it compiles and links without a hitch. On other machines in the office I get the following output from the compiler:
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(523) : error C2061: syntax error : identifier 'RecordCreateOptionsEnum'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(532) : error C2061: syntax error : identifier 'RecordCreateOptionsEnum'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(543) : error C2061: syntax error : identifier 'RecordCreateOptionsEnum'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(845) : error C2061: syntax error : identifier 'RecordCreateOptionsEnum'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(863) : error C2061: syntax error : identifier 'RecordCreateOptionsEnum'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(892) : error C2061: syntax error : identifier 'RecordCreateOptionsEnum'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(1099) : error C2061: syntax error : identifier '_Stream'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(2276) : error C2061: syntax error : identifier '_Stream'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(2371) : error C2061: syntax error : identifier '_Stream'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(2374) : error C2061: syntax error : identifier '_Stream'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(2377) : error C2061: syntax error : identifier '_Stream'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(2844) : error C2061: syntax error : identifier '_Stream'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(2856) : error C2061: syntax error : identifier '_Stream'<br />
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\cdosys.h(2868) : error C2061: syntax error : identifier '_Stream'<br />
c:\develop\proj\myfile.cpp(578) : error C2039: 'Update' : is not a member of '_NoAddRefReleaseOnCComPtr<struct CDO::ADOFields>'
Anyone got any ideas what the problem could be? Both machines have the latest SDK, properly referenced, and the latest service packs installed. Both machines are WinXP pro and the dev environment in MSVC 6.
-Dy
|
|
|
|
|
it is clearly a SDK problem.
it seems that the sdk is not well referenced (even if you believe it is).
now, how to resolve this, i'm struggling.
i don't know at all.
perhaps if you provide more infos... (computers differences)
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
As you have the proper files on both machines, I'd suspect the ordering of the include directories.
One PC may look in the platform SDK directory first, and find the header there, and the other PC
might look in the visual studio include directory first, and find the header there...
That problem might not be with cdosys.h, but with a header *it* includes. One version defines _Stream
etc, and the other does not.
In VC6, look at Tools | Options, Directory tab, and pick Include on the Combo box. There are black
arrows to rearrange the order.
Have a look at the working machine, and replicate the order on the not-working machine!
Good luck,
Iain.
|
|
|
|
|
What is the difference between an accelerators and a hotkey?
Software Developer
Sanjay Khapre
|
|
|
|
|
|
toxcct is 90% right. People use the two names interchangably. Hot Key is a common user name
for an accelerator.
Being pedantic...
An accelerator is a part of an accelerator table. (LoadAccelerator , TranslateAccelerator , etc.) It only works when your application has the keyboard focus.
A Hot Key is a a system wide key (RegisterHotKey , UnregisterHotKey ). When pressed, windows send a WM_HOTKEY message to you. It works all the time. You could use it to make a certain key combination do something even when your application is hidden. (eg. screen capture, etc). I would not recommend having it active all the time, as it may collide with accelerators of other applications.
Iain.
|
|
|
|
|
|
Gosh, I don't normally get voted on! And to think I was trying to kill time productively while I
struggled to work out a problem of *mine*!
Iain.
|
|
|
|
|
Some also confuse one or both of those words with a "mnemonic", which is the underlined character you get on dialog controls allowing you to focus or activate that control using the <ALT> key along with the key of the underlined character.
They (mnemonics) are also used on top-level Menus and Menu Items (although you do not need to use the <ALT> key when a menu or menubar is active).
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Hi all,
I'd like a little help. I am writing a Setup program and have come up against the problem of installation over a network. The program currently works perfectly installing on Windows machines locally but I am trying to consider how a network admin might install across a network. Currently the setup would require individual installations on each machine due to the fact that local registries are set by the setup program.
I guess what I'm asking is, what is best? Do network admins usually install systems individually or is there a method of cascade installation which can be applied?
Many thanks
u6ik
|
|
|
|
|
u6ik wrote:
Do network admins usually install systems individually
In windows this is the case. But there are tricks we sometimes use to do a full install of all applications then mirror the disk and use special software to make windows create a new uid for the machine. However this generally only works on very similar systems (same hardware).
John
|
|
|
|
|
Thanks for the feedback. My favourite kind of problem... A problem that's not a problem. Looks like I'm onto testing
Cheers
u6ik
|
|
|
|
|
One thing you can do to make it less work for network admins is to allow the media to be copied (not installed) to a server share and then installed individually from there to each pc instead of having to carry a cd around to 1000 computers. In some places (my hospital) we have computers without cds so allowing pcs to be installed in this way is essential.
John
|
|
|
|
|
Piracy aside, this is probably the way the product will be released for institutions. A licenced network release
u6ik
|
|
|
|
|
How can I make a simple shell with c or c++ . have you any program
about shell writen in c or c++.
|
|
|
|
|
ok ok, i stop after this one
my question (cross posting avoided again) is this one[^]
any suggestion on how one can set the focus again to an already existing ainstance of a program ?
thanks to all of you in advance
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
(cross posting avoided again)
Oops, I Posted my answer there!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
toxcct wrote:
any suggestion on how one can set the focus again to an already existing ainstance of a program ?
Something like:
if (bFound)
{
if (it's a popup window)
SetForegroundWindow(handle to the popup window);
if (it's an icon)
ShowWindow(handle to the popup window, SW_RESTORE);
return FALSE;
}
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|