|
For play .dat files you can use of DirectX.did you can play other formats like avi,mpeg or no?
|
|
|
|
|
in my project i m using MCIWnd for playing audio and video files.
avi,mpeg,and wmv formats are play well but for dat files it gives an error.
so plz tell me how can i play .dat files in MCIWnd and how can read and write .dat and .avi files?
thanks
|
|
|
|
|
v.j wrote: avi,mpeg,and wmv formats are play well
So I think you must use of DirectX for show dat.
|
|
|
|
|
hi all,
I'm using List control for displaying the data from database in my MFC dialog box. Along with the database data, i have been using the first coloumn for serial number. After displayin all these information i want access the second coloumn from the list control.
Can anybody tell me how to access the second column of List control
thanks in advance
||SnAkeBed||
|
|
|
|
|
LVITEM has some members for it iItem,iSubItem.
int InsertItem(
const LVITEM* pItem
);
|
|
|
|
|
SnaKeBeD wrote: Can anybody tell me how to access the second column of List control
Subitem = 1
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I am using VS 2005 team edition to build a DLL and lib with with exports
My question is the following first
1) can I direct the .DLL and .LIB to 2 different directories ???
2) How do I sepcfiey this by this I mean in VS Property-->Linker-->General-->Output file
I have the Follwing Values $(OutDir)\$(ProjectName).dll
First seems like this points to where .dll is created how about the .lib .exp etc I guess it ends up in the same place can I create the .dll in place and the .lib in other directory
Second where are these ($OutDir) and $(ProjectName) variables set and can change them to point them to go to a different directory
|
|
|
|
|
ForNow wrote: 1) can I direct the .DLL and .LIB to 2 different directories ???
DLL path : VS Property-->Linker-->General-->Output file
lib path : VS Property-->Linker-->Advanced->Import Library
ForNow wrote: Second where are these ($OutDir) and $(ProjectName) variables set and can change them to point them to go to a different directory
OutDir : Vs Property->General->Ouput Directory
ProjectName: name of your VS project
|
|
|
|
|
Thankx
My next questions is the names in the Pane(s) $targetdir/$targetname/$outdir/$Projectname how can set thier values
Thankx
|
|
|
|
|
Hi,
I have an activeX control in my window.
Now inside my activeX control, i want to get the window pointer.
Can any one help me in getting the activeX container pointer
Thanks in advance.
|
|
|
|
|
dear all
the following is my code, why setw and setprecison couldn't work correctly here...that means no space after setw(3)...the precision is not just 6....
#include <iomanip>
using std::setw;
using std::setprecision;
int n,i,j;
double a[number][row][column];
for ( n=0; n<number; n++)
{
for ( i=0;i<row;i++)>
{
for (j=0;j<column;j++)> {
a[n][i][j] = (double)rand()/RAND_MAX;
cout <<setw(3)<<setprecision(6)<< a[n][i][j]<< " ";
}
cout <<"\n";
}
}
thanks
Li Zhiyuan
5/10/2006
|
|
|
|
|
cout << setprecision(7);
cout << fixed << a[n][i][j];
Maxwell Chen
|
|
|
|
|
thanks, how is setw(3)? it also couldn't work,
Li Zhiyuan
5/10/2006
|
|
|
|
|
Follow the same manner.
Maxwell Chen
|
|
|
|
|
i tried already..like prvious code what i passed here...no any space kept there, please help, thanks..
Li Zhiyuan
5/10/2006
|
|
|
|
|
Hi...
I am trying to write a program(C++) to control desktop computer performance.
the purpose is to lower down thermal, power consumption, and noise when computer is idle but not suspended.
where can i find the related technique? or articles?
Thanks in advance.
|
|
|
|
|
dear all
how to create a dinamic array in c++? anyone has example code?
for example: a =10,b=3,c=4;
and then double aa[a][b][c]= (double)rand()/RAND_MAX;
thanks
#define number 10
#define row 3
#define column 4
void printarray (double arg[], const int number,const int row,const int column)
{
for (int n=0; n<number; n++)<br="" mode="hold"> for (int i=0;i<row;i++)>
for (int j=0;j<column;j++)> arg[number][row][column] = (double)rand()/RAND_MAX;
cout << arg[n][i][j] << " ";
cout << "\n";
}
int main ()
{
double firstarray[number][row][column];
printarray (firstarray,number,row,column);
return 0;
}
any problem for this code? but after debugged..problem...
error C2143: syntax error : missing ')' before 'constant'
Li Zhiyuan
5/10/2006
|
|
|
|
|
Did you change name of variables?
double arg2[], const int number2,const int row2,const int column2)
|
|
|
|
|
thanks, solved already..but my friend said this is not dynamic array..he asked me to create a dynamic 2D array...how to create? but i can create 1 D dynamic array....thanks
Li Zhiyuan
5/10/2006
|
|
|
|
|
|
thanks, but company limited me to use what u sent..do u have other options, thanks.
Li Zhiyuan
|
|
|
|
|
Why your company limited you?
|
|
|
|
|
Hello,
I am trying to build a Microsoft Text Service sample code from Microsoft site: "Simple Text Service Demo" . I have platform SDK for windows server 2003 and Visual Studio 2005 installed.
I have opened an empty Dll project in Visual Studio 2005 and built the project.
The problem is that when I try to register TextService.dll I get the message:"textservice.dll was loaded but DllRegisterServer entry point not found".
Does anybody have an idea what seems to be the problem?
Should I change the project settings?
Thank you very much,
T.R.
|
|
|
|
|
Did you add a .def file to your project that exports the DllRegisterServer function
(or did the sample code include a def file that you need to add to your project)?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I have a property sheet (in wizard mode) and on one property page of this sheet, I have a pop up dialog.
This pop up dialog has a tab control which is again showind a child dialog (no border, style = child).
So the picture looks like this
Property Sheet
Property Page launches
CMyDialog (pop up)
CMyDialog has CTabCtrl and Child dialog to show on the tab.
This child dialog doesn't receive any messages. If I click on the dialog, nothing happens. Tabs get changed though.
I am wondering if its a focus problem? how should i fix it.
The code to add this child dialog with the tab control looks like this
Init of Tab Control :
Tab Contrl->Add tabs;
Create a vector of dialogs
Instantiate the dialog class, add it to vector
Create and Repos the dialog window, and say ShowWindow.
Thanks in advance,
Misha
Evil triumphs when good people sit quiet...
|
|
|
|