|
Thank you first!
Rap off for you,for me,for our human.
|
|
|
|
|
stop posting every question twice!!
Don't try it, just do it!
|
|
|
|
|
Take a look at the Windows Multimedia library of the PlatformSDK, functions like waveInStart, waveInStop, waveOutOpen , waveOutClose
Peter Molnar
|
|
|
|
|
Hi,
I am using MSvc++ 6.0 and I had creat one application in MFC dialoge based using DX9 Sdk .
Now i Want to add this MFC dialoge based application to my new project But when I am adding this code to new project DX9's Class Information Doesn't Coming with and giving me lot of error of class.
I want to add DX9's class to New App. How can i do ?
So any one suggest good trick to do this ?
|
|
|
|
|
Check
- What is your needed header files
- What is your needed static linked libraries (*.LIB)
- What is your needed dynamic linked libraries (*.DLL)
- Or needed COM or ActiveX object (VC6 has some functions to insert the component into your project) in Project - Add To Project
Most of these stuff are avail in MSDN.
I guess there is no quick trick for that.
Hope this helps
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I am having difficulty in adding a getline functions data to a vector, can anyone tell me how to achieve it by getting all the lines and putting them one by one into the vector's elements? I would appreciate any help that I would get, Please help because I've been playing with this one issue for a couple of days and can't seem to overcome this.
|
|
|
|
|
<small><b>Snyp wrote:</b></small>
<i>can anyone tell me how to achieve it by getting all the lines and putting them one by one into the vector's elements?</i>
std::ifstream file(@"c:\myFile.txt");
vector<string> myVec;
string line;
while (file.good())
{
getline(file, line);
myVec.push_back(line);
}
something like that.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
|
Um... no.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Too bad! I don't know how many times I've almost conjured up the darkest of spirits with my ranting after having realized that there are too few \'s...
--
Intellectualize my blackness[^]
|
|
|
|
|
Thank you first!
Rap off for you,for me,for our human.
|
|
|
|
|
There is no ready source code.
CD Audio is just pure WAV audio written to a CD. You can use audio operations for example with DirectSound to access the audio stream and copying it to a buffer. Then use the Windows Media Audio SDK to convert the raw WAV data into WMA format.
See MSDN & WMA SDK for more information about the conversion, and the DirectX SDK for information on how to capture audio data.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Man, I've been working on this for EVER now, and I can't seem to get it right! I've got a toolbar that just won't seem to "take" the XP style buttons! You know, like where the google toolbar buttons have that nice "rounded" look when you mouseover them and whatnot? I want those in my toolbar, but it's just not working! I tried all the stuff on http://msdn.microsoft.com/netframework/using/deploying/default.aspx?pull=/library/en-us/dnwxp/html/xptheming.asp and still can't get it! Any thoughts? It's a DLL, of course... And the actual toolbar is a CWindow, and I'm sending the TB_ADDBUTTONS to it, which work just fine.
|
|
|
|
|
Did you do everything that was told to you on the site? And by the ways the google toolbar uses the xp themeing of the internet explorer instead if its own.
|
|
|
|
|
I did everything! :P I swear! :P And how does it use the xp theming of IE instead of its own?
|
|
|
|
|
I made the manifest, I put it in the resource file, etc etc etc....
|
|
|
|
|
You need to add the line "#define ISOLATION_AWARE_ENABLED 1" before including commctrl.h and the resource id for the manifest should have a value of ISOLATIONAWARE_MANIFEST_RESOURCE_ID which basically equates to 2. You can use reshacker to check the manifest has been added to the DLL. This works for my property sheet shell extension which is just another DLL loaded by explorer.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
Awesome! That WORKED! You rock bigtime!!! Thanks a ton!
|
|
|
|
|
hi
I want to create a new desktop under WIN98.I may create a new desktop under win2000 with "createdesktop" API funtion ,under win98 how to do???
c++
|
|
|
|
|
|
I know it don't support ,but how to realize under win98?
c++
|
|
|
|
|
You need to write a completely new Explorer implementation. However, I cannot help you with this any further, as writing this type of implementation would be a huge job.
For an example, see the desktop replacement software called LiteStep. This program is a replacement for the standard Windows Shell (Explorer). Perhaps it has some free source code that will get you started.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
wrong again!
the multiple desktop feature doesn't come from the explorer, it's a system feature coming from the win32 subsystem in kernel.
Don't try it, just do it!
|
|
|
|
|
hi...
i have a problem in invalidating...
below are my codes
void CEditorView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
if( lHint == 1 ) {
//get back the rect
CRect* pRect = ( CRect* ) pHint;
InvalidateRect(pRect);
return;
}
CView::OnUpdate(pSender, lHint, pHint);
}
which are taken from the OnUpdate handler of my View..
the way OnUpdate is called from my DOC is as below :
void CEditorDoc::SetSquareColor(int i, int j, COLORREF color)
{
ASSERT( i >= 0 && i <= GetGridY() && j >= 0 && j <= GetGridX() );
m_clrGrid.At(i, j) = color;
SetModifiedFlag(TRUE);
CRect pRect( 20, -10, 30, -20 );
UpdateAllViews( NULL, 1, ( CObject* )&pRect);
}
THE PROBLEM
the problem arrives when i do InvalidateRect, the rect passed in as parameter is bnot getting invalidated!!
Now, to check if my parameter is wrong i added code in the OnUpdate to draw a rectangle with the same coordinates.
so now the same code above becomes :
void CEditorView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
if( lHint == 1 ) {
//get back the rect
CRect* pRect = ( CRect* ) pHint;
InvalidateRect(pRect);
CBrush brush(RGB(255,166,166));
CBrush* pOldBrush = dc.SelectObject(&brush);
CRect jrtRect(20, -10, 30, -20);
dc.Rectangle(jrtRect);
dc.SelectObject(pOldBrush);
Invalidate();
return;
}
CView::OnUpdate(pSender, lHint, pHint);
}
what i found out that with the above code, a rectange is drawn in the correct place where i wanted to invalidate the rect!!!
but the rectangle apprears and quickly dissapears!!
so now i know that the co-ordinates i supplied witht the invalidateRect were correct...
then why doesnt the area get Invalidated??
any help is deeply appreciated and thank you for your time...
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40
|
|
|
|
|
I am wondering, since u can pass a style LBS_SORT to the listbox when Initalized. But is there a flag that I can pass to SetDlgItemMessage(...) to sort the LB when I push a button ??? I dont want to have to write my own Sorting function to sort strings Alphabetically.
Thanks
|
|
|
|