|
Sorry,
the right flag is called SND_ASYNC and not SND_ASYNCH.
You can read about all in MSDN.
Greatings Mario ///
----------------------
www.klangwerker.de
rocknix@lycos.de
mario@klangwerker.de
----------------------
|
|
|
|
|
... and the same for synchron playing:
SND_SYNC and not SND_SYNCH
---------------
P.S.: If you got problems with unknown flags take a look at the header-file. All flags are declared there.
Greatings Mario ///
--------------------
www.klangwerker.de
rocknix@lycos.de
--------------------
|
|
|
|
|
Hello,
I'd like to write a Program that
can be executed in pure DOS.
Is there a way to write DOS-Programs with Visual C++6?
thanks in advance,
FoxHunter
|
|
|
|
|
File -> New
Projects tab
choose 'Win32 Console Application'
Regards,
Daniel
|
|
|
|
|
Yes, but this will actually create a program that requires Win32 -> You want be able to run this program only in DOS;P
|
|
|
|
|
Yes...only DOS!
I'd like to program a little Password-protection that starts before the Desktop ist being loaded.
I'd like to start the program from the
autoexec.bat
I have written that program in quickbasic, but i'd like to program it in c++
|
|
|
|
|
Oh dear,
someone takes a simple bootdisk, removes the entry from your autoexec.bat and runs windows as usual -
and what about your password than ??? Why don`t you use the bios-password protection ??
Greatings Mario ///
--------------------
www.klangwerker.de
rocknix@lycos.de
--------------------
|
|
|
|
|
Yes, you're right...but i want to program more dos programs than just that crappy password protection.
I could do that in qbasic, but i don't like the programming environment of qbasic.
So how can i do that now?
thanks
|
|
|
|
|
I dont really know if you can write real dos-code with vc. I have never tried.
Maybe use an older DOS-Compiler from Borland or something else.
Sorry - Mario ///
--------------------
www.klangwerker.de
rocknix@lycos.de
--------------------
|
|
|
|
|
You need VC 1.52 I think.
This is the last version that you can compile and make dos app.
Good luck,
Dror
|
|
|
|
|
Hi,
I think you could try (and I know its not VC++) downloading Turbo C++ from the Borland museum - a bit naff but it still works for DOS stuff.
cheers,
Andrew.
|
|
|
|
|
Hello,
I have a question regarding the way that the ComboBox control looks in MFC. - When I put the ComboBox on my dialog, and add some items in it, when I press the controlling button(the one that shows the list) it shows just a single item with two scrollbar buttons -> how to fix that so I can view my items in a normal list - like this
ComboBox
-----item----|
-----item----|
-----item----|
-----item----|
-----item----|
Thanks - Deian
|
|
|
|
|
in the dialog editor, click on the combo drop-arrow button. then resize the rectangle that appears. this controls the size of the drop down list.
-c
|
|
|
|
|
Hello,
I have a question regarding the way that the ComboBox control looks in MFC. - When I put the ComboBox on my dialog, and add some items in it, when I press the controlling button(the one that shows the list) it shows just a single item with two scrollbar buttons -> how to fix that so I can view my items in a normal list - like this
ComboBox
-----item----|
-----item----|
-----item----|
-----item----|
-----item----|
Thanks - Deian
|
|
|
|
|
I've the sollution for you: Beginning Visual C++ 6 by Ivor Horton
Considdered to be the worlds fastest knoppenbonker.
10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute). Greatings to my Guru "The bokkelul"
And experience with the one and only NewEra Guru.
|
|
|
|
|
Or open the dialog for resource editting, click on the dropdown button and change the size.
If you want to change the list height of the combobox during runtime. Create a new class and let it inherrit from CCombobox, add the message handler:
ON_CONTROL_REFLECT(CBN_DROPDOWN, OnDropdown)
and edit the OndropDown function like this:
void CMyComboBox::OnDropdown()
{
// This limits the maximum number of visible entries to 7
int nLines = min( max(GetCount(), 1), 7 );
CRect lprect;
GetWindowRect( &lprect );
lprect.bottom = lprect.top + nLines * GetItemHeight( -1 ) + lprect.Height();
SetWindowPos(NULL, 0, 0, lprect.Width(), lprect.Height(), SWP_NOMOVE | SWP_NOZORDER );
}
Good luck
Le Ridder Noir
Considdered to be the worlds fastest knoppenbonker.
10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru.
|
|
|
|
|
Or open the dialog for resource editting, click on the dropdown button and change the size.
If you want to change the list height of the combobox during runtime. Create a new class and let it inherrit from CCombobox, add the message handler:
ON_CONTROL_REFLECT(CBN_DROPDOWN, OnDropdown)
and edit the OndropDown function like this:
void CMyComboBox::OnDropdown()
{
// This limits the maximum number of visible entries to 7
int nLines = min( max(GetCount(), 1), 7 );
CRect lprect;
GetWindowRect( &lprect );
lprect.bottom = lprect.top + nLines * GetItemHeight( -1 ) + lprect.Height();
SetWindowPos(NULL, 0, 0, lprect.Width(), lprect.Height(), SWP_NOMOVE | SWP_NOZORDER );
}
Good luck
Le Ridder Noir
Considdered to be the worlds fastest knoppenbonker.
10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru.
|
|
|
|
|
I have a problem with a popup menu - namely I want to set up a menu so it has some default commands that get added, and acted on within OnContextMenu, but I want to add them to an existing menu and send off my messages if any of the existing commands are selected. I can make one or the other happen, but not both. I have the command returned and am switching it's value. Basically I want to know what to put in the default case, where one of the id's I am looking for is not the value returned....
Thanks as always
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
I have a little problem - when I change my toolbar background to a gradient in OnEraseBackground, buttons that have a transparent colour set remain square, with the underlying colour unchanged.
Can anyone tell me how to fix this ?
Thanks
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
I am writing a wordprocessor application using CRichEditView as my view, I can do
all that
Word Procssor stuffs like "wordpad" application. But I want to implement cool
WYSIWYG page effet
like Microsoft Word (or any leading Word Porcessor).This involvs drawing page
borders
on the view and somehow move the cursor from one page to next page.....
Someone give me an idea, how to start? or where to for more details etc.....
_dave
|
|
|
|
|
I'm developing a program required to use Synchronization function WaitForSingleObject(). It may take several seconds or longer to run this function, therefore, I want to add a Progress Bar control to let the user knows how long do they need to wait. However, I cannot find the source code of this WaitForSingleObject() function, so I cannot put the progress bar SetPos() in that function. I've tried to set the progress bar move by timer...but when the program run WaitForSingleObject(), the progress bar stopped!
Do anyone know how to solve this problem?
|
|
|
|
|
WaitForSingleObject is a Windows API function. There is no source code for it.
You can't do what you are suggesting. About the closest you could get is to give WaitForSingleObject a timeout value, update the progress bar, then go back to waiting. That is a poor design, however, since your main message pump is locked and if some other window obscures yours, it won't redraw when the window is removed.
You usually want to use WaitForSingleObject in a worker thread, where message pump updates are not a problem.
|
|
|
|
|
Is that mean that if originally the timeout value is 16000....(WaitForSingleObject(xxxx, 16000)), then I split it into ... let say....5 ......e.g.:
WaitForSingleObject(xxxx, 3200);
Call ProgressBarControl;
WaitForSingleObject(xxxx, 3200);
Call ProgressBarControl;
WaitForSingleObject(xxxx, 3200);
Call ProgressBarControl;
WaitForSingleObject(xxxx, 3200);
Call ProgressBarControl;
WaitForSingleObject(xxxx, 3200);
Call ProgressBarControl;
So that the progress bar can update every 3200 time interval?.....
Sorry...I just a beginner in MFC programming;P
|
|
|
|
|
How to determine current logged on user?
|
|
|
|
|
You know, I don't usually get bent out of shape over simple questions, but it just annoys me sometimes that people don't use the resources that are at their disposal. VC comes with documentation that provides very easy searching for such things.
GetUserName() is what you want.
|
|
|
|