|
lucy wrote:
Is there any problem deleting myproject.clw?
no, just anoying
After I found out you can save the workspace without restarting VC (or all added files will be lost after a Windows crash), I thought even the wizard can be "forced" to be smart.
|
|
|
|
|
I wanna start WWW service and FTP service in IIS.. with MFC (or WinAPI.. whatever)..
so i made a routine to start / stop IISADMIN service and W3SVC, MSFTPSVC in Windows 2000 advanced Server.. but it didn't work for starting IIS....
What do i do for stating IIS?
I guess an API would be in MSDN... but i haven't found it yet...
Help me plz
|
|
|
|
|
There's a Starting a Service[^] sample on MSDN. Basically, you'd be doing the equivalent of hitting Start Menu | Run typing net start w3svc , but using the StartService API.
"The greatest danger to humanity is humanity without an open mind." - Ian Mariano
http://www.ian-space.com/
|
|
|
|
|
First, thanks for your reply...
but.. I mean...
Already I used StartService API and success using it..
I wanna make running WWW service in IIS..
for example..
If I try to connect localhost with web-browser, the index page have to be seen....
But Running IISADMIN service and W3SVC service is not enough... (i can't connect my localhost with web-browser)
maybe it needs something more.....
|
|
|
|
|
Perhaps you need to look deeper into it. It works when you do it manually?
BTW, you only need to start w3svc, iisadmin will start on its own if you do that.
"The greatest danger to humanity is humanity without an open mind." - Ian Mariano
http://www.ian-space.com/
|
|
|
|
|
Well.. i guess so... (^_^)
Anyway... thanks for your answers
Have a nice day.
|
|
|
|
|
In need to perform the initialization of a window derived
from CDialogBar. Is there a method like OnInitlDialog (CDialog)
in CDialogBar ?
I have tried to use OnCreate method, but when OnCreate is called
DDX variable doens't exists jet!
|
|
|
|
|
I init my dialog bars the first time they're shown (override OnShow() ). Same with modeless dialogs.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hello,
i want to leave the CButton ( Pushbutton ) in pressed state until
i press him again. How can i solve this problem ?
Thanks !
Marco
|
|
|
|
|
Use a check box control instead. And make sure the "Push-Like" property is checked.
How low can you go ? (MS rant)
|
|
|
|
|
Ahhhh, Thanxs a lot !
Marco
|
|
|
|
|
I have a control which contains an array of CDialogs. They can be expanded or collapsed. When expanded, and if there are many of them, there is a strong need for a scroll bar. We've implemented a scroll bar and the functionality is great, but the drawing/redrawing makes it look pretty bad.
It's a kind of list control... When the items are collapsed, they are only a few pixels in height. When the user expands any of them, a gap is inserted after that item - enough to draw in the dialog which it represents... It's basically an enhanced version of the "Rollup Control" found at:
RollupCtrl Article
Currently, we're using MoveWindow() for each item. We've tried using DeferWindowPos to speed things up/improve the drawing... but it's made no difference
You can see the control by downloading an exe I uploaded just now:
Click to download the zip file (39k)
I've posted on various forums, and haven't had anyone even attempt to provide a solution. There must be something obvious I'm missing out...
Thanks in advance....
|
|
|
|
|
Draw the dialogs onto a seperate bitmap, then copy that bitmap onto your DC in one go.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian Graus wrote:
Draw the dialogs onto a seperate bitmap, then copy that bitmap onto your DC in one go.
do you mean, cause all the DCs to be pointing to ONE "memDC" ?
Jason
|
|
|
|
|
I meant drawing them yourself. Otherwise, stopping them from calling OnEraseBackground is also a good idea.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
When moving a lot of windows around, I have found a main problem of flickering to be the cause of OnEraseBkgnd(). I n the past I have solved this by exlcuding the area of the controls that are shown from the erase area like this:
BOOL CSGAControlView::OnEraseBkgnd(CDC* pDC)
{
static int dont_erase_indexes[] =
{
IDC_STANDARDS_TRAY_SGA,
IDC_STANDARDS_TRAY_LDA,
IDC_THUMB1,
IDC_THUMB5,
IDC_THUMB2,
IDC_THUMB6,
IDC_TRAY1_TEXT,
IDC_TRAY2_TEXT,
IDC_TRAY3_TEXT,
IDC_TRAY4_TEXT,
IDC_TRAYNAME4,
IDC_TRAYNAME3,
IDC_TRAYNAME2,
IDC_TRAYNAME1
} ;
CRect clip ;
for (int i = 0 ; i < sizeof(dont_erase_indexes) / sizeof(int) ; i++)
{
if (GetDlgItem(dont_erase_indexes[i])->GetStyle() & WS_VISIBLE)
{
GetDlgItem(dont_erase_indexes[i])->GetWindowRect(&clip);
ScreenToClient(&clip);
pDC->ExcludeClipRect(&clip);
}
}
pDC->GetClipBox(&clip);
pDC->FillSolidRect(clip, GetSysColor(COLOR_BTNFACE));
return FALSE;
}
I havn't been able to run your example exe as I don't have gdiplus, but hopefully this is releated to your problem.
Roger Allen
Sonork 100.10016
I have a terminal disease. Its called life!
|
|
|
|
|
This is very interesting - I look forward to trying it out.
Thanks!
Jason
|
|
|
|
|
I understand this requires two bytes instead of just one byte as compared to ascii, but how would I implement unicode in a control like an edit control...?
Does the system do this automatically if you switch your locale settings...?
It must do this, otherwise if I passed 4 bytes to say DrawText() or TextOut() and expected something like farsi output I would actually get 4 ascii characters instead...???
Just curious...
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hockey wrote:
your locale settings...?
Your locale settings is never unicode. That's a codepage (usually 1252, and it covers standard 0-127 ASCII codes, plus 128-255 local-specific codes).
Hockey wrote:
DrawText() or TextOut()
DrawTextW()
TextOutW()
In other words, without explicitely compiling with the _UNICODE switch (not possible on W9X by the way), DrawText() and TextOut() will be mapped to the local WIN32 DrawTextA() and TextOutA() implementation.
How low can you go ? (MS rant)
|
|
|
|
|
.S.Rod. wrote:
Your locale settings is never unicode. That's a codepage (usually 1252, and it covers standard 0-127 ASCII codes, plus 128-255 local-specific codes).
Interesting...atleast now I have some understanding as to how UNICODE works...
Thanx
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
|
imariano wrote:
use COM
??? How, I thought the only way was to use unicows.lib ?
Max.
|
|
|
|
|
Oops, I didn't mean to put that blurb about COM in there 8)
You might be able to get away with a Unicode-internal COM component, since COM passes BSTR ings around. But it's the long way around, I think, and you still will not get full a Unicode API set on 9x/ME.
"The greatest danger to humanity is humanity without an open mind." - Ian Mariano
http://www.ian-space.com/
|
|
|
|
|
If you want to use Unicode ina window like and Edit box, you would simply use CreateWindowW to create the Edit box instead of CreateWindowA. When you compile your app, if you set the program to compile unicode, it will automatically map all of the functions like CreateWindow to CreateWindowW or DrawText to DrawTextW.
However a Unicode app will not work on Win9x unless you have the layer for Unicode installed on that machine.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Thanx for the reply
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|