|
Hi,
I have a CPropertySheet embeded in a CPropertyPage.
Can anyone tell me how to move or size the embeded property sheet?
Thanks in advance
Ferdinand
|
|
|
|
|
Hi everyone,
I have again question I read about Certification from microsoft MCAD/MCSD
here[^] but i want to know
for which languages is it for VC++
|
|
|
|
|
You should read the full page, in particular the content of the exams. ASP.NET, VB.NET, C#.NET... Think of .NET as an extension to all of the programing languages.
|
|
|
|
|
Thanks waldermort for help i read full page but i cant find that VC is in these exams or not and i want to know do you have any document for VC like document for C# or ASP.NET
|
|
|
|
|
Hi everyone,
When i want to open my project i get this error
Project 'C:\MyBook\MyBook.vcproj' failed to open.
Thanks
|
|
|
|
|
try deleting all of the extra files that VS adds to the directory. But make sure not to delete the .dsp and .dsw files.
|
|
|
|
|
I dont have .dsp or .dsw i use VS2003 which files i need to delete
|
|
|
|
|
Hi,
I want to get the active childframe in a MDI application when I am in the ViewClass. I need a pointer of CWnd to use it as parameter for MDIActivate.
Can someone tell me how to get it?
Thanks for help
yummi
|
|
|
|
|
Hello
1- CWnd::GetActiveWindow() . Doesn't it work with you?
2- Or even better CWnd::GetTopWindow() .
Regards
|
|
|
|
|
Hi Nader,
thanks for your reply. So I got the window, but I can't use it for what I want to do.
In my MDI application I open new childframes automaticly but I want to stay the actually childframe in front.
I tried this way:
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
CErgebnislisteView *pView = (CErgebnislisteView *) pChild->GetActiveView();
for(i=0; i< arrVerz.GetSize(); i++)
{
theApp.OnOldTurnier();
}
pChild->SetActiveView(pView);
Do you have an idea how do do it?
yummi
|
|
|
|
|
yummi wrote: CErgebnislisteView *pView = (CErgebnislisteView *) pChild->GetActiveView(); //Open new childframes for(i=0; i< arrVerz.GetSize(); i++) { //set some variables and open it with the next line theApp.OnOldTurnier(); } //activate the old childframe pChild->SetActiveView(pView); //nothing happens
pView is already active view. why you are setting it to active again. It must be working.
|
|
|
|
|
Hi Prasad,
thanks for your reply. I want to reach, that after I opened a few new childframes, that the chilframe that was on top before I open the new ones, is on top again. With the line pChild->SetActiveView(pView) I tried to reach it.
grettings
yummi
|
|
|
|
|
Hi Pasrad,
with your hint I find the solution. Thank you very much.
Before I open the new childframes I get the state of the childframe with
pChild->GetWindowPlacement(&lpwndpl);
and after I opened the new childframes I only do
pChild->SetWindowPlacement(&lpwndpl);
That works
Many Many Thanks
|
|
|
|
|
welcome.
yummi wrote: Hi Pasrad
I hope,you want to say 'Prasad',
|
|
|
|
|
Thanks
modified 28-Sep-16 7:30am.
|
|
|
|
|
You probably need to call ShowWindow for your controls after you create them.
Software Zen: delete this;
|
|
|
|
|
Hi all,
i play a sound using:
PlaySound(MAKEINTRESOURCE(IDR_WAVE),AfxGetInstanceHandle(),SND_PURGE | SND_RESOURCE | SND_ASYNC);
i stop this sound using:
PlaySound(NULL,AfxGetInstanceHandle(),SND_PURGE | SND_RESOURCE | SND_ASYNC);
But when i call the above line again (PlaySound with NULL), the sound is being played again
is there a way to avoid this problem?
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Hi all,
all the links that appear in CRichEdit Ctrl are based on the window scheme i am using.
is there a way to tell the rich edit that all my link will apear in a blue color regardless the window scheme i am using?
thanks in advanced
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
int x = 4;
cout<< x+3;
i want to know what is the type of variable holds the expression x+3 in the cout statement.
******************
******************
** Ahmed Ismail **
******************
******************
|
|
|
|
|
as both operands of the operator + are integers, the resulting variable is also an integer...
|
|
|
|
|
I think that it's atemporary variable which made in the run time
from the type int to hold the output then it will be destroyed.
|
|
|
|
|
it should be int but it is Compiler to decide wrt its Type Expressions
|
|
|
|
|
Hello,
I' tried to develop a small application that's able to play MP3s in a windows service. My intention is to build a small media-player. The core of it shall run as a service and the communication between service and frontend is then some kind of IPC (not so important at the moment).
My question is, why applications like Winamp don't want to work as a background service. It only works, if I allow these applications to interact with my desktop. It even does not work, with fmod, that does not rely on a GUI:
===================================================
if (!FSOUND_Init(44100, 64, 0))
{
debug_stream = fopen("c:\\temp\\wmus.log", "w");
fprintf(debug_stream, "%s\n", FMOD_ErrorString(FSOUND_GetError()));
fclose(debug_stream);
exit(EXIT_FAILURE);
}
===================================================
This snippet always fails with "Error setting cooperative level for hardware." when started as a service (it works, when it's executed by a logged-in user) and I think, that this messages comes from DirectSound, since FMOD (http://www.fmod.org) relies on it.
Best regards and thanks for reading,
Rainer
|
|
|
|
|
I would guess the basic problem you're having is that, since sound is owned by the active desktop, you can't play sound from a service without letting that service interact with the desktop. The whole point of a service is to do work in the background without interacting with the user.
If the effect you are looking for is to have the player running 'in the background' without a main window, you can do that by making the main window a hidden one. You can then set a notification icon to interact with the application when you need to.
Software Zen: delete this;
|
|
|
|
|
This is the same with any data type, when 1 large number is added to another and the result is larger than the data type can hold, it wraps around. i.e.
ULONG size1 = 0xFFFFFF00;<br />
ULONG size2 = 0xFFFFFF00;<br />
size1 += size2;
The output is less than the input. I want to check for this problem and if it's there I would prefer the output to be the max value the data type can hold. What is the best way to approach this?
|
|
|
|