|
Dream on. You can take a 2D image and turn it to 3D, you just don't have enough info. You can hazard a guess based on edge detection, I suppose...
Christian Graus - C++ MVP
|
|
|
|
|
Have a look at the different algorithms for Texture Mapping and/or Bump Mapping .
|
|
|
|
|
Can somebody help me in this ..
i need to get the size of the file in my FTp client application in MFC also i need to get the data bytes tranferred while uploading or downloading from FTP server ..
Which API is suitable..
Thanks
Shikha
|
|
|
|
|
u can read or write file from ftp by using wininet.h .
InternetReadFile(, , , ) function gives the number of bytes read.
|
|
|
|
|
thanks for reply....
i just check it out ...
Thanks
Shikha
|
|
|
|
|
Let me know that work or not.I made the project which downloads the file from ftp server and shows the progress in progressbar.I can guide u further
|
|
|
|
|
Hi,
I am looking for a free tool to run on Windows XP which can sniff & parse the packets captured on a particular windows Socket.
the tool I look for not to use the Mac to capture packets.
I need to capture & parse the packets transferred between 2 process over the windows socket on the same machine, ie, without splitting them over 2 machines on LAN.
I am aware of ethereal but it captures over the mac layer.
Windump doesn't parse & display the packets only shows the traffic info
Kindly suggest any other free tool
Thanks,
|
|
|
|
|
By MAC I thought you meant Macintosh and your post made no sense!
Anyway I wish I could help. I was going to suggest ethereal
|
|
|
|
|
hi
i contact with a exe then when Execution,task manager show 2 process with similar path and name
i thought the exe used from crate process function,but this function needed
path and file name.
in this function when i pass curent file name,my aplication encounter with endless loop.
how can i do it?
|
|
|
|
|
Can you be more specific I guess you have a problem,if its a problem can you show your code that has problem
|
|
|
|
|
i want an idea for implement projtct that can execute in 2 process.
for example we have a simple project,we add createprocess function in the it.
for using this function we must send a path to it.
i want pass simple project name to it.in this case encounter with endless loop.
|
|
|
|
|
It sounds like you're going to need a full path to differentiate between the two files.
Or you could change the name of one of them
|
|
|
|
|
You said you want to use CreateProcess but you dont have path of project but I have a question wheres this project on memory or you have only a name?
|
|
|
|
|
I have a float value (123.456789).In this i want only two fractional digits (like 123.45).I dont want to copy this value into string variable and format it.How can i do this directly?Is any functions are available?
E-Ramu
|
|
|
|
|
floats are approximations, so there's really no way to get the exact value you want, but the closest would be to multiply by 10^the number of decimals, throw away the decimals ( by cast to int, or by calling floor ), and then divide again.
Christian Graus - C++ MVP
|
|
|
|
|
int i;
i=(123.3456)*100
float f=i/100;
|
|
|
|
|
Hello,
I have taken this code from somewhere i dont remember, and changed to work with doubles (since the int variable may not store the double variable)
double round(double Num, double Seed)
{
// get rational factor
double fac = Num / Seed;
// get natural factor
fac = (fac < 0) ? (ceil(fac - 0.5)) : (floor(fac + 0.5));
// fac = (fac < 0) ? static_cast<int>(fac-0.5) : static_cast<int>(fac+0.5);
// return multiple
return fac * Seed;
}
use it with round(3.8984, 0.01) for example....
Bekir...
|
|
|
|
|
hello
I use MFC in PPC to create a dialog to playback a video by direct show.
Because use direct show to playback, it will crate a video window view in toplevel.
But I wish the video is overlaped with the dialog and if some UI is showed in toplevel I can find by the message of the dialog.
Pls tell me how to solve the issue and thanks a lot.
Any suggestion is useful!! Thanks!!
|
|
|
|
|
I'm not sure I understand your question. Is the DirectShow window covering the dialog?
|
|
|
|
|
Yes. Use DirectShow will cover the dialog.
Any suggestion is useful!! Thanks!!
|
|
|
|
|
Assuming you are using one of the video mixing renderers (VMR-7 or VMR-9 then check this
out...
Using Windowless Mode[^]
Unfortunately, when using windowed mode, there's no interface to get the HWND for the window.
You can set its parent through the IVideoWindow interface but can't get its HWND to use as a
parent.
Anyway, windowless mode gives you much more flexibility/control.
Mark
|
|
|
|
|
hi,
i need to show a wait cursor while i'm savin on button click. i don't want to use CWaitCursor class. any other way?
|
|
|
|
|
You can use LoadCursor . But I would prefer CWaitCursor .
|
|
|
|
|
Well, why on earth do you want to do it the hard way ? Your other option is a try catch block that copies the code out of the CWaitCursor class.
In other words, the CWaitCursor encapulates the only way to create a wait cursor.
Christian Graus - C++ MVP
|
|
|
|
|
SetCursor(LoadCursor(NULL, IDC_WAIT));
and when you're done
SetCursor(LoadCursor(NULL, IDC_ARROW));
- S
50 cups of coffee and you know it's on!
|
|
|
|