|
Hey if you can convert a handle to socket.. it would work... is it possible...
|
|
|
|
|
I don't understand.
Steve
|
|
|
|
|
Ok so i got the variable passed to child threads and they can function..
but i need to pass more than 1 variable to the thread char* s and SOCKET ls;
lets not worry about the return on the child thread right now.... if i can 2 variables passed the whole process can be done inside child thread..
but one question... about that.. unsigned __stdcall test(void* params){ return 3; ) this return here how can i axs that??? can i access a process like int test(){ return 0; } be accessed from open threads at the same time?
btw
rigth now its FTP/WEB SERVER with Advanced custom admin functions with GUI.
-- modified at 12:40 Friday 23rd March, 2007
|
|
|
|
|
hi,
i am doing a prj on face detection. i have now captured and saved the images in VC++ but nw hace to detect only the face part from the entire image..
u hav any clue how to implement it in VC++ ????
|
|
|
|
|
That's way to broad a question for a forum. You should google for articles on what is a huge topic.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
so how do i detect only the face from the image???
|
|
|
|
|
hum, as you seem not to get what christian said, here[^] is a starting point...
hope that helps
|
|
|
|
|
(reprinted without permission! )
You should google for articles on what is a huge topic.
|
|
|
|
|
even better :
You should Google for articles on what is a huge topic
|
|
|
|
|
|
wow, 20 february, it doesn't seem to be that urgent ... !!!
|
|
|
|
|
Hi, we've learned at school that,
in face detection the color of lips can give a clue to find the face
if you find the position of lips you can use the ratio of the face
in human face there's a symmetry and all parts of the face has an arithmetical ratio to another, this may help you,
but it may not be able to use coz women use lipstick,
may be u can use horizontal and vertical histogram together (intersection of them)
or you may use dynamic quantization to find similar colors together as a label
(i mean labelization, like Photoshop's technique, you touch to a pizel then it draws a closed area)
i think the old replyers are right this is a technical research not a part of code
you must search for the academic researches
|
|
|
|
|
|
First ‘Maximilien’ gave you a good place to start, second if you need to ask this question then you may be in over your head. Look for code that can take an image apart. If you can not break it down, then you are in trouble. If you can, than even a pimple can tell you what you need to know.
Keep searching!
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
...<br />
...<br />
BYTE *pbyCmd;<br />
pbyCmd = new BYTE[byCount+1];<br />
...<br />
...<br />
if (pbyCmd) delete pbyCmd;<br />
...<br />
...
Is this correct code. which I am posting here above. Please let me know?
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
G Haranadh wrote: pbyCmd = new BYTE[byCount+1];
Why +1 ?
G Haranadh wrote: if (pbyCmd) delete pbyCmd;
No.
if (pbyCmd) delete [] pbyCmd;
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
BYTE *pbyCmd <code>= NULL</code>;
pbyCmd = new BYTE[byCount+1];
if (pbyCmd) {
delete<code>[]</code> pbyCmd;
<code>pbyCmd = NULL;</code>
}
|
|
|
|
|
Good point, how did I forget it ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks. After long time we met .
Ok If i said
pbyCmd = new BYTE[1];
then?
delete pbyCmd;
delete[] pbyCmd;
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
new -> delete
new[] -> delete[]
|
|
|
|
|
toxcct wrote: if (pbyCmd) { delete[] pbyCmd;
Checking for NULL while deleting pointers feels unnecessary. There is no harm deleting NULL pointers.
And if its dangled/uninitialized pointer, that will cause problem any way.
|
|
|
|
|
Whenever I stumble across a project in Unicode, I can never
compile it. Its always looking for other files.
Is there any easy way to compile a project in Unicode? Something
obvious Im missing.
Any response any one can give me will be greatly appreciated.
Sincerely,
Danielle Brina
|
|
|
|
|
What files is it looking for ? You should have all the files you need, I'd have thought.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
There is a sample project here:
http://www.codeproject.com/listctrl/xlistctrl.asp
If I download and compile it, I get errors. It just seems like
every Unicode project I download compiles with errors. There is
always something missing. It must be me.
|
|
|
|