|
|
thanks for all, it works fine !!
|
|
|
|
|
I have written a simple audio player that uses MCI to audition audio files from a Windows file dialog, as well as from our own graphic UI.
Unfortunately, since writing it we have learned that MCI does not support several audio file types, notably 24-bit files.
We'd like to rewrite the class to use WMP, but documentation for that technology is hard to find.
Can anyone recommend a way to use WMP to implement the following interface?
class AudioPlayer
{
public:
AudioPlayer();
~AudioPlayer();
void OpenFile(const tstring& strFileName);
void CloseFile();
const tstring& GetFileName() const;
void Play();
void Stop();
bool IsPlaying() const;
bool CanPlay() const;
};
|
|
|
|
|
|
Hello programmer's
I need to help
How to change MCI_DGV_SETVIDEO_BRIGHTNESS in the MCI_SETVIDEO
I Can't use this parameter it's not response to Value
Thanks for answer
|
|
|
|
|
Hi...
I'm an administrator in a big network,
i Have made a small app in vb that manages the ip address in the network (it gives u free ip by selecting the desired segment, show reports and etc...)
i wanna integrate this app into active directory so when someone adding new computer he can also get a new ip quickly for this computer.
is there any way that i can add a menu into the menu bar in "active directory users and desktops"?
or if any1 have other idea how i can integrate this app into active directory.
thanks a lot
and sorry about my crappy english.
|
|
|
|
|
|
no...
i wrote a program in vb.
now i want to integrate this program into a compiled exe.
let's say i wanna add a new menu to notepad.exe menu bar.
is this possible?
|
|
|
|
|
Hello guys,
Consider I have some text data(maybe a Microsoft Access database *.mdb file
too), and I want to save them as Microsoft Excel file.
How can I achieve that ?
thanks.
PS. I have MFC Dialog based Application
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
-- modified at 9:25 Saturday 4th February, 2006
|
|
|
|
|
I haven't actually tried this, but you might be able use Microsoft's ODBC driver for Excel[^].
Steve
|
|
|
|
|
You might want to save the data in Comma Separated Variable (csv) format. Excel can open csv format files directly. For instance:
int value1 = 20;
int value2 = 32;
float value3 = 10.3f;
FILE* myFile;
myFile = fopen("c:\\temp\\foo.csv", "wt");
if(myFile)
{
fprintf(myFile, "%d, %d, %.1f\n", value1, value2, value3);
}
fclose(myFile);
Graham
|
|
|
|
|
thanks Graham.
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
I use this one since a long time. You're able to modify it like you want.
http://www.codeproject.com/printing/testexcel.asp
|
|
|
|
|
meinhard_risch wrote: http://www.codeproject.com/printing/testexcel.asp
Good link, thanks
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
Suppose that I have a CString variable inside it there is a float,
How can I affect this value to a variable float:
Ex
CString varstr("1258.59");
float varfloat;
How to affect 1258.59 in varfloat ?
I learn my self
|
|
|
|
|
One way would be the following:
double dval = _tstof(varstr);
You'll need to make sure <tchar.h> is included.
Steve
|
|
|
|
|
|
try strtod or neutral _tcstod
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow cheers, Alok Gupta VC Forum Q&A :- I/ IV
|
|
|
|
|
Hey everyone.
I keep getting this error while using Visual C++ 2005 Express Edition, does anyone know how to fix this?
Error 1 error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [15]' to 'LPCWSTR' d:\my documents\visual studio 2005\projects\hello-win32\hello-win32\page1.cpp 17
Thanks in Advance
|
|
|
|
|
Wrap the strings in your MessageBox in the _T macro like this:
MessageBox(NULL, _T("Hello"), _T("Hello"), MB_OK);
If you get an error saying _T is not defined add #include <tchar.h> to your project (in the precompiled header would be the best).
Steve
|
|
|
|
|
It sounds like your program is set to compile for UNICODE, which implies that most Windows API functions that take strings expect UNICODE strings. The LPCWSTR in this case refers to a 'Long Pointer to Constant Wide-character STRing'.
The previous suggestion is correct; wrap your strings in the '_T("string") ' macro call, which is #define 'd in tchar.h . _T("string") evaluates to L"string" when compiling for UNICODE, and just "string" when compiling for MBCS.
Software Zen: delete this;
|
|
|
|
|
Hello!!
I am doing MFC programming after a very long time. I had forgot all the basic concepts.
I am working on an mfc sdi application. Could anybody tell me how to add a dialog to it.
I want the dialog to be displayd when i click on a specific menu item.
Thanx
"If you change then change for the good."
|
|
|
|
|
I think by default, there willl be a "About" dialog box when u choose the mfc sdi application, right? Just add a dialog from the resource and see how it map the message then that's it!
|
|
|
|
|
i am looking on the net for a long time for an example code that shows how can i resolve Channel.
does anybody know?
thanks.
|
|
|
|
|
can somebody help my please?
|
|
|
|