|
CString strText;
strText.Format(_T("%s"), szString);
Marcus
Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope
-- Daniel Burnham
|
|
|
|
|
or more simply....
CString strText(szString);
John
|
|
|
|
|
you can just go CString str = (some char*) and it'll work
: Wherever you go, there you are, and you wish you were somewhere else :
|
|
|
|
|
I am trying to start off and make an MP3 player using DirectX. But i need to know where to start. If anybody can give me anyhelp on getting started on this small project it would be greatly appreciated.
thebh_bad
|
|
|
|
|
There's full source on CP, look for MPEG and you'll find the article. It's in C though, so it only allows one song played at a time ( it's all done using global variables and functions ). There's plenty of info on mp3 decoding on the net, just fire up google and search for 'mp3 c++ source'.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Hi everyone,
I need to programatically mute the volume of the soundcard in a machine (just like clicking on the volume control icon in the tray.
Anybody know a quick way of doing this?
Cheers,
Paul
|
|
|
|
|
I'm not a multimedia seasoned pro, but have a look at waveOutSetVolume() or any of the other functions under Windows Multimedia in the Platform SDK in the MSDN library. That's where I'd start.
J
|
|
|
|
|
Thanks for pointing me in the right direction Jamie.
Cheers,
Paul
|
|
|
|
|
I am having an intermittent problem with a DLL function call and thought that the PWALK Platform SDK tool would help me debug things.
However although I got the project to compile it doesn't seem to work. I am running on NT and there is an MSDN article that suggests this only works in 16 bit land. Has anyone got this to work on NT, or has used an equivalent tool?
Ta
Jim
|
|
|
|
|
Has anyone had any experience trying to display CMYK Color Space TIFFs using GDI+ and the Image/Bitmap class?
The TIFF when displayed has the colors all messed up. A corresponding TIFF in the RGB color space displays just fine.
Thanks
Andy Brace
SW Development Engineer II
Qwest
A clear conscience is usually the sign of a bad memory.
|
|
|
|
|
Hi,
I have a dialog having several conrols eg. CEdits, CListbox, and CGridCtrls (MFCGridCtrl in my problem).
When I want to click a button in my dialog
First I want to get a list of all controls and then
get handles/pointers to a certain kind of control (eg CGridCtrl).
I tried GetActiveWindow, GetNextWindow, FindWindow("CGridCtrl", NULL)
but I could not manage.
Any idea?
|
|
|
|
|
Try
CWnd* CWnd::GetDlgItem (int nID) const;
or for HWND handle
void CWnd::GetDlgItem (int nID, HWND* phWnd) const;
|
|
|
|
|
You can make use of GetNextWindow() and then check the pointer using
if (pWnd->IsKinfOf(RUNTIME_CLASS(CGridCtrl))
{
CGridCtrl* pGrid = (CGridCtrl*)pWnd ;
}
Roger Allen
Sonork 100.10016
If I'm not breathing, I'm either dead or holding my breath.
|
|
|
|
|
I'm using OpenGL to help me design 3D graphics software. I'm just practising now. I used the tutorial on nehe.gamedev.net to create my openGL window. How can I add stuff like dialog boxes and push buttons and menus on the screen which will execute different commands to the software. I have a book on visual C++, but when I'm using OpenGL as my API, that book seems useless to help me with the non graphics part. It all seems so different. Please tell me if I have to do everything using only OpenGL syntax now that I've made the window with OpenGL?? Cause then I'm guessing I'd need the OpenGL book.
|
|
|
|
|
First there are several samples here:
http://www.codeproject.com/opengl/
The most common practice is to have a display window showing the OpenGL as a child to the application (or frame/view/whatever.) Buttons etc are not in that window.
|
|
|
|
|
You can find some samples and tutorials in the MSDN...
Regards...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
http://devcentral.iticentral.com/articles/C++/openGL/default.php
http://nehe.gamedev.net/
|
|
|
|
|
|
I believe you'll find none of the NeHe tutorials use MFC. We are building an OpenGL app and do not use MFC, and I create dialogs and so on in the standard, non-MFC way. You can find examples here that build a framework for GL using MFC, or you'll need to learn Win32, and maybe buy Petzhold.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
None of the tutorials use MFC, just the plain win32 API. However, I'm pretty sure there is an MFC framework example on the site included. If you understand OpenGL, then creating MFC OpenGL apps shouldn't be much of a problem. Be prepared though, 99% of the OpenGL examples you'll find around are going to be win32. Learning win32 is a great bonus though, and there's no better book than Petzold.
Simon
Nobody does chicken like MFC
Sonork ID 100.10024
|
|
|
|
|
Check out the OpenGL section of this and at Code Guru. There are several very good examples that use MFC and support printing and print preview. They worked for me.
|
|
|
|
|
hello
i have created an application (e.g.- a.exe)
& i want to open or run it from another application (e.g.- b.exe) how can i do that ?
regards
Chanda.com
|
|
|
|
|
CreateProcess, ShellExecute, ShellExecutEx
Normski. - Professional Windows Programmer
|
|
|
|
|
|
Thanx a lot for immediate reply.
Chanda.com
|
|
|
|