|
|
I want to oprn an avi movie in the media player in a vc++ program..
Thanx in advance
doudou
|
|
|
|
|
Experiment with ShellExecute . You don't need to specify the executable name for the Windows Media Player, just the name of the .AVI file (ShellExecute will know how to locate the player for the file.)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Simple:
Use "Media Player ActiveX",its one standard activex in visual studio.
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Use MCI functions....
Regards....
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
is it possible to change the project after the application has been created. i.e., I'm using a demo software of the net, project was called OpenGL, but I wanna change the name. If I can't do that, I atleast wanna be able to change the title when i bring up the MDI window. I don't want it to say openGL. How can I do this?
|
|
|
|
|
Yes is posible. Edit the file .dsw and .dsp with notepad and change the names and reference to old name...
Y think that CP has any aplication that make that, but is more quickly edit the files and change the names that look for the application...;)
Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
If you want to change the application name that appears in the captions of the various windows created by the app you can do that by modifying the relevant strings in the string table resource (e.g. IDR_MAINFRAME, IDR_<yourappname>TYPE, AFX_IDS_APP_TITLE etc).
Cheers
Steen.
"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|
|
Hi, I'm just starting to learn visual C++.
Can someone give me a simple and concise explanation of the differences between a win32 debug and a win32 release application. i.e., what does each mean, and how will it affect the program.
|
|
|
|
|
"Debug" and "Release" are different configurations under which you can produce the final executable from your project files. Debug .EXEs are meant to be used in the debugging process, while release .EXEs do not have any such debugging aids and are typically smaller and faster. When compiling in debug mode, the macro _DEBUG is defined, while in release mode it is NDEBUG which is defined (also, _DEBUG is not defined in release mode, of course). Some of the debugging aids included in a debug executable are:- Debugging versions of the functions in the C run-time library that check for common errors like passing null pointers, memory leaks, etc.
- Macros such as
assert are included in the executable.
- Information is included that gives you the possibility to set breakpoints, watch the contents of variables in run-time, do step-by-step running, etc.
- The code is not optimized to preserve a mapping between source code and generated machine code. In release mode, a lot of optimizations are applied that frequently reverse the order of sentences, eliminate temporary variables, an so on.
So, use debug mode when testing your program and release when giving it away.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Joaquín's reply explains the differences between Debug and Release mode very well. I'd just add that if you execute code (that must run in release mode) using ASSERT , you should change it to VERIFY . Eg:
ASSERT (x > 0);
ASSERT (myFunction (x) == SUCCESS);
should be
ASSERT (x > 0);
VERIFY (myFunction() == SUCCESS);
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Does anyone know how can I get the information about the avaible dial-up connection accounts of a computer? I need to get the phone number and the username for all the avaible dial-up accounts.
Mauricio Ritter - Brazil
Sonorking now: 100.13560 Trank
|
|
|
|
|
Sure. Use <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rasclnt_3rar.asp">RasEnumConnections</a> to get a list of available connections. To retrieve number and user, use <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rasclnt_4boz.asp">RasGetEntryProperties</a> and <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rasclnt_681f.asp">RasGetEntryDialParams</a> , respectively.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I've got only october's MSDN issue where the quite little information is given on how to use that "Visual Styles API". Can anyone give a link to some detailed manual???
konst
|
|
|
|
|
|
Are you joking? There's nothing useful. Do you think that that writing can really help to make the program like "Style XP" !?
konst
|
|
|
|
|
|
I want to create .mak file.
how do i write it , it should be able to compile all my .c files
and run the program
|
|
|
|
|
If you are starting from a regular Visual C++ project, the command Project -> Export Makefile... generates an equivalent .mak file that you can later edit and polish up to meet your needs (basically, adding automatic execution after build, I guess).
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
How I can run addIns in debug version ?
I use VC++ 6.
Thanks!
User
|
|
|
|
|
This is an extract from the WndTabs v2.5 addin help file:
"To debug a DevStudio Add-In, you must load DevStudio with the Add-In disabled (i.e., go to Tools|Customize|Add-Ins and disable the add-in). When you load DevStudio the next time, the add-in will not be in memory, so you will be able to overwrite the .dll file when you compile the project.
After the compilation, execute the program. Since the add-in is nothing more than a .dll, you will be prompted for a program to run. Specify the full path to MSDEV.EXE. You'll get a warning message specifying that your program has no debugging information, because MSDEV.EXE itself has none. This warning can be safely ignored.
Once MSDEV.EXE is running under the debugger, you can reactivate the add-in from the Tools|Customize|Add-Ins dialog. The add-in will be loaded with it's debugging information (if you compiled a Debug build), and you should be able to set breakpoints and debug at will. The next time you run MSDEV.EXE from the project workspace, the add-in will get loaded with it automatically."
Gavin
|
|
|
|
|
from CHtmlView or WebBrowser control?
I need AddNamedItem() badly.
OutlookExpress seems to be able to do that
function updateAccountInfo()
{
if (OutlookExpress.mailAccounts != null)
{
szUser = OutlookExpress.userName;
cMail = OutlookExpress.mailAccounts;
cNews = OutlookExpress.newsAccounts;
}
else
{
szUser = "";
cMail = 1;
cNews = 1;
}
....
|
|
|
|
|
hello, for the past week ive been building a tictactoe program and while building it, i have encountered alot of bugs and errors. is there any technique i can use to find bugs besides usings assert statement. well, anyways, thank you for ur help...
|
|
|
|
|
|
Hi!
Write slow, even if You can write fast, double check functions/methods/algos.
Review code You have recently wrote, test often (from user point of view - use release
version), etc.
It is better to write 50% slower and generate less errors, than write fast generate many errors, and then spend huge amount of time on corrections.
(of course, those are my opinions)
Mukkie
|
|
|
|