|
Hi Whitesky,
Am about to move now. I go through your link by tomorrow and let you know the result.
Thank you very much,
With Regards,
Sangeetha.
|
|
|
|
|
And also out MD told that there is a project already. When he runs that project, it directly displaying the dialog box as our ordinary dialog based application.
He asked for a thing, that is, a full screen animation or splash screen with animation(but should be in full screen mode) should be displayed for some time immediately when they run the exe. And after that only, the dialog box can be viewed.
This is his requirement. Can you understand..? Or i again blabbered..? Sorry for the problem am creating to you.
Expecting ur reply tomorrow,
Thanking you in advance,
With Regards,
Sangeetha.
|
|
|
|
|
You show your animation and after time 5 or 10 seconds show dialog if use of MCI functions you can use of ShowWindow they have handle for window
|
|
|
|
|
Hi,
Am displaying the animations as well as the dialog as the user wish. But i need to show those animations in full screen mode just like games. How to achieve this..?
With Regards,
Sangeetha.
|
|
|
|
|
Sangeetha,
You've got to decide what is that exactly you need to do. After that, you need to decide how to go about it. Now you've chosen some custom class to show a splash screen and then planning to showing it in full screen or a GIF on that would simply not help. Ask specific questions and you'd get plenty of help.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Hi,
Sorry.. I will avoid this in future. What i want exactly is:
1. I need to show some animations for few seconds before the application's dialog box is opened.
2. In this, one problem is there. The problem is, the project is completed already. But the user wishes some animations need to be displayed before the main dialog is getting opened. So i need only to develop the animation part in Visual C++ and add to that project that is developed and is in use already.
3. That animations should be shown in full screen mode.
4. The animations may be of any sort. It may be a bitmap display with animations displayed into it, or of any sort. But the condition is, that should be in full screen mode.
This is the requirement.
Sorry for confusing before,
With Regards,
Sangeetha.
|
|
|
|
|
|
The animation may be of any size. But it should be displayed in full screen mode like games.
With Regards,
Sangeetha.
|
|
|
|
|
I think you can play your avi and change size of with MoveWindow if you use of MCI functions they have a handler to window that you can set size of this window to full screen
|
|
|
|
|
Thank you, whitesky.
With Regards,
Sangeetha.
|
|
|
|
|
Sangeetha_J wrote: I need to add animation to my splash screen.
There is a function called AnimateWindow if you want to animate the window itself. But if you want to display a moving image inside the window then CAnimateCtrl should be of some help to you.
Lookup AlphaBlend too.
|
|
|
|
|
Hi,
Am using CAnimateCtrl class to accomplish the given task. I had posted the reply to Brahma with the code lines am using.. please have a look on it. And further am working now to open and display the avi files in a place inside the splash screen itself, considering itself as the parent window for the CAnimateCtrl class.
Thanking you,
With Regards,
Sangeetha.
|
|
|
|
|
You can workaround the following way.
1. Create a separate dialog resource, which would do all the animation stuff for you. And this dialog will go full-screen. (I will guide you further if requried)
2. After this dialog is finished, your app will be loaded.
Now please tell what kind of animation it is. Is it an AVI or GIF or both or what else. You need to be sure about this.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
I thought of displaying an AVI file. And please guide in creating a separate dialog resource with animation..
With Regards,
Sangeetha.
|
|
|
|
|
Is it okay if your splash screen is a separate executable and your app just runs that executable before loading itself?
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Yeah, this is what i need brahmma.
With Regards,
Sangeetha.
|
|
|
|
|
I am really really busy. But since we've come to this extent I will try and give you a solution. Now we will build a separate executable file, which would serve as a splash screen for your application (may be in the future some other app also can use it with modifications).
Let us prepare the splash screen Executable separately first.
1. Create a dialog based application (Don't add about box and unwantd stuff).
2. Add your animation (AVI or GIF or whatever) and play it successfully.
3. Now all you need is, this has to be full screen and preferably a black background.
4. Go to the InitInstance() function and use the SetDialogBkColor() function in it to make the dialog black:
SetDialogBkColor(RGB(0,0,0),RGB(100,150,150));<font color=green>
5. Go to the InitDialog() function and make it full screen. (Add the following code before the return statement in InitDialog() . This code will remove the caption and border of the dialog and make it full screen too!
<font color=green>
int cx, cy;
HDC dc = ::GetDC(NULL);
cx = GetDeviceCaps(dc,HORZRES) +
GetSystemMetrics(SM_CXBORDER);
cy = GetDeviceCaps(dc,VERTRES) +
GetSystemMetrics(SM_CYBORDER);
::ReleaseDC(0,dc);
SetWindowLong(m_hWnd, GWL_STYLE,
GetWindowLong(m_hWnd, GWL_STYLE) &
(~(WS_CAPTION | WS_BORDER)));
::SetWindowPos(m_hWnd, HWND_TOPMOST,
-(GetSystemMetrics(SM_CXBORDER)+1),
-(GetSystemMetrics(SM_CYBORDER)+1),
cx+1,cy+1, SWP_NOZORDER);
6. If you need to display a picture as a background for your splash screen dialog and not a color, read this[^] article. It is really simple to do. (BTW remove that SetDialogBkColor() stuff if you use this)
Now your splash screen is ready.
How to use it from another application?
1. Use ShellExecute() or CreateProcess() to show this splash executable.
2. Wait for a second or two using Sleep() command.
3. Then use PostMessage() from your application to close the splash screen.
You should be able to do it on your own. Need you require help, ask. Let me know if it helped.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Hi Brahmma,
Its working very well. Thank you a lot.
With Regards,
Sangeetha.
|
|
|
|
|
Sangeetha_J wrote: Hi Brahmma,
Its working very well. Thank you a lot.
With Regards,
Sangeetha.
Good to know that. You're welcome.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Exe and PDB having different names
Hi,
My project has some special needs that due to them the building (using
a make file system) is done in the following way : build A.win and
A.pdb then B.exe is created from copying A.win. I am talking about DEBUG mode.
My goal is to analyze a mini dmp file using WinDgb while what I have is
B.exe and A.pdb
The pdb is good for debugging B.exe - I can debug using VS 2003 by
attaching to the process and I was able to open the mini dmp files
successfully at some point last week.
I ran the chksym utility and it confirms the A.pdb and B.exe match
Now I am struggling with some symbol matching problem in WinDbg.
I have the unable to verify checksum problem and thats fine since I am
in debug mode.
However, I also have :
*** ERROR: Symbol file could not be found.
used !sym -noisy and then reloaded the module and got
A.pdb - mismatched pdb
*** ERROR: Symbol file could not be found.
Renaming does not seem to solve anything.
I rebuilt my project, opened the executable and its the same problem.
Please help...
--
Thank you!
|
|
|
|
|
Hi there,
Could anyone suggest me a way to display desktop window in another application's window?
thanks,
NG
|
|
|
|
|
Hi,
I have one basic doubt in vc++ settings ,
why we are using seperate lib files for debug and release mode,
For ex: strmbasd for Debug
strmbase for Release,
other than the size,what is the difference between debug and release mode.
Thanks in advance,
Siddharth
|
|
|
|
|
|
Thank u so much
Siddharth
|
|
|
|
|
When you build in release mode the code is optimised and sometimes these optimisations can "trick" the debugger. For example you may get incorrect values in the watch window. In a debug build all optimizations are turned off. Also, many libraries and the CRT have extra sanity checks that are only compiled in debug builds.
Steve
|
|
|
|