|
Perhaps MFC DLL hell?
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I had the same problem under XP.
I installed SP6 for VC++ and it fixed the problem.
Google: Visual C++ 6.0 service pack 6 download
|
|
|
|
|
Thanks! That's brought it back. Life is good again.
|
|
|
|
|
Hallo friends,
I need to enable the auto scrolling feature in my CRichEditView SDI Application , that i must not everytime scroll down with the mouse, please help.
i use the following code in CTest_View.cpp but it did not work:// class CTest_View: public CRichEditView
BOOL CTest_View::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style &=~ (ECO_AUTOHSCROLL | ECO_AUTOVSCROLL);
cs.style |= (WS_HSCROLL | WS_VSCROLL);
cs.style |= (ES_MULTILINE | WS_HSCROLL | WS_VSCROLL | ES_DISABLENOSCROLL);
return CRichEditView::PreCreateWindow(cs);
}
|
|
|
|
|
Source code is following:
<br />
<br />
#pragma once<br />
#include "afxwin.h"<br />
<br />
<br />
<br />
class AFX_EXT_CLASS CSuiBianEdit : public CEdit<br />
{<br />
DECLARE_DYNAMIC(CSuiBianEdit)<br />
<br />
public:<br />
CSuiBianEdit();<br />
virtual ~CSuiBianEdit();<br />
<br />
protected:<br />
DECLARE_MESSAGE_MAP()<br />
};<br />
<br />
<br />
<br />
#include "stdafx.h"<br />
#include "SuiBianEdit.h"<br />
#include ".\suibianedit.h"<br />
<br />
<br />
<br />
IMPLEMENT_DYNAMIC(CSuiBianEdit, CEdit)<br />
CSuiBianEdit::CSuiBianEdit()<br />
{<br />
}<br />
<br />
CSuiBianEdit::~CSuiBianEdit()<br />
{<br />
}<br />
<br />
<br />
BEGIN_MESSAGE_MAP(CSuiBianEdit, CEdit)<br />
END_MESSAGE_MAP()<br />
<br />
|
|
|
|
|
Is it possible to write a program in C + + by means of the diary?
thank you
soso
|
|
|
|
|
You mean you want to use your diary to write a program?
|
|
|
|
|
yes, I want to use my diary to write a program (C++ Code),how Do I do?
thanks
thank you
soso
|
|
|
|
|
1. Make sure that your diary has all the necessary libraries. You'll find these under December 12th
2. Your diary has to be ISO/IEC 14882:2003 compliant. Note: Pink diaries are not compliant (besides, only girls use these)
3. The compiler that comes with your diary must not put any secrets into the compiled binaries. Please check with your local diary dealer.
Once these specs are met you're good to go!
|
|
|
|
|
Yes!
On the first day- only write #include statements.
On the second day- write function definition for main
On the following day- write one and only one line of code
and so on and so forth according to your diary schedule.
or
do you want to write a program that allows the user to maintain his day to day work in the form of a diary.;
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Really I want to write a robot program how many days I need to write it a CENTURY ?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
No! The ANSI C++ standards explicitly forbids this!
The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
Yes its possible if you want to have nice diary you need to write a graphic diary.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Yes, but remember to keep it locked so that your younger sibling does not get a peek.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Yes, provided you have a pen or pencil with you.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I prefer to write mine by means of the dairy. I like a nice cheese sandwich and a glass of milk - helps me to concentrate on the coding
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Is there any changes in CView::OnFilePrintPreview() between V6.0 and VS2005. Same bare bones application acts differently on both when doing FilePrintPreview as far as the print preview frame itself. Am I missing something, or what has changed?
Thanks
sft
|
|
|
|
|
Why I can use file to the handle in functions which needs
a handle to the volume, for example ZwFsControlFile with FSCTL_QUERY_USN_JOURNAL
in kernel mode?
If I will try the same in user-mode (with DeviceIoControl and FSCTL_QUERY_USN_JOURNAL),
DeviceIoControl fails.
This is working only with kernel handle and only in WinXP an Vista, not
in W2000! It is by design, bug or is it only my misunderstanding?
Thanks
|
|
|
|
|
Hi all,
My application is for windows Vista and XP.
There are more than on Hard drive connected to my machine. I need to get Drive Letters of the Hard drive from which my system is booting.
By using GetLogicalDriveStrings Function I can get the drive letters of all Hard drives. But how can I differentiate that this particular drive letter is the partition name of my booting Hard drive?
The structure of disks are:
disk0(Booting with this)- C D G
disk1- E F H
disk2- I J
I need to get the C,D,G only.
Thanks
Madan
|
|
|
|
|
Call GetLogicalDrives to get all the available drive letters.
Call GetSystemDirectory to get the drive which contains the OS.
Open the volume using CreateFile("\\.\C:", ...
Here replace C: with the drive letter returned in GetSystemDirectory .
Call DeviceIControl of the returned handle with the IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS code to get the hard disk number.
Now you know the hard disk number of the drive containing the OS.
Repeat the CreateFile and DeviceIoControl on all the other drive letters and compare the hard disk number with the one you got earlier.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks for your kind support.
I will apply it today.
Thanks
Madan
|
|
|
|
|
Hi all,
I wanted to know,that is Edit control's scroll bar enabled from win32 code?
|
|
|
|
|
What do you mean, exactly
(Usually, when using Win32 API , you have the window handle of the scrollbar, to deal with)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I am having one Edit Control on my application and edit control having VScroll bar in disable mode. at one stage i need to know that this Vscroll is enabled or not? for that i need handle of VScroll bar.
Thank You.
modified on Friday, May 29, 2009 8:13 AM
|
|
|
|
|
zakkas2483 wrote: I wanted to know,that is Edit control's scroll bar enabled from win32 code?
bool IsVScrollEnabled( HWND hEdit ) <br />
{ <br />
return (( ::GetWindowLong(hEdit, GWL_STYLE) & WS_VSCROLL ) == WS_VSCROLL ); <br />
}
Same for hscroll, hope this helps?
|
|
|
|