|
It seems StretchBlt() function stretches big size images fit to destination rect of smaller, but it shows small images as such if destination rect is bigger than source rect. How to stretch the small images to fit in big control? Is there any property for the DC for this?
Best Regards,
Suman
|
|
|
|
|
It should stretch it if you destination width/height are larger than the source width/height, you just have to make sure your destination dc (hdcDest) is created with the right dimensions. Can you post your code?
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
plz tell how can play .dat files with the use of MCIWnd?
|
|
|
|
|
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?
|
|
|
|