Click here to Skip to main content
15,892,797 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to write Password code in cpp Pin
Cool_Dev16-Aug-10 22:29
Cool_Dev16-Aug-10 22:29 
GeneralRe: How to write Password code in cpp Pin
ganesh_IT17-Aug-10 2:14
ganesh_IT17-Aug-10 2:14 
GeneralRe: How to write Password code in cpp Pin
Cool_Dev17-Aug-10 2:21
Cool_Dev17-Aug-10 2:21 
QuestionDLL and STL in function parameters Pin
beko16-Aug-10 21:02
beko16-Aug-10 21:02 
AnswerRe: DLL and STL in function parameters Pin
Aescleal16-Aug-10 21:28
Aescleal16-Aug-10 21:28 
AnswerRe: DLL and STL in function parameters Pin
Moak17-Aug-10 0:28
Moak17-Aug-10 0:28 
GeneralRe: DLL and STL in function parameters Pin
beko17-Aug-10 1:08
beko17-Aug-10 1:08 
GeneralRe: DLL and STL in function parameters Pin
Moak17-Aug-10 1:27
Moak17-Aug-10 1:27 
I hate to say it, but in this case use only fundamental/primitive types and pointers. For example use as arguments buffer and buffer size/elements, avoid unnecessary data copying, e.g. caller provides buffers big enough to hold results.

You gave a function using STL, here is a slight variation of it:

TEST_API double calcPerimeter(const Point3D* pPoints, int nElements)


/M

GeneralRe: DLL and STL in function parameters Pin
beko17-Aug-10 2:10
beko17-Aug-10 2:10 
GeneralRe: DLL and STL in function parameters Pin
Aescleal17-Aug-10 2:54
Aescleal17-Aug-10 2:54 
GeneralRe: DLL and STL in function parameters Pin
beko17-Aug-10 3:22
beko17-Aug-10 3:22 
GeneralRe: DLL and STL in function parameters Pin
Aescleal17-Aug-10 3:28
Aescleal17-Aug-10 3:28 
Questionprocessor time Pin
AbhiHcl16-Aug-10 19:51
AbhiHcl16-Aug-10 19:51 
AnswerRe: processor time Pin
Aescleal16-Aug-10 21:03
Aescleal16-Aug-10 21:03 
AnswerRe: processor time Pin
Moak17-Aug-10 0:55
Moak17-Aug-10 0:55 
QuestionHow to rotate a rectangle in Bitmap Pin
raju_shiva16-Aug-10 19:27
raju_shiva16-Aug-10 19:27 
AnswerRe: How to rotate a rectangle in Bitmap Pin
Peter_in_278016-Aug-10 20:32
professionalPeter_in_278016-Aug-10 20:32 
GeneralRe: How to rotate a rectangle in Bitmap Pin
raju_shiva16-Aug-10 22:57
raju_shiva16-Aug-10 22:57 
QuestionReading Directory Pin
Fareed Rizkalla16-Aug-10 16:18
Fareed Rizkalla16-Aug-10 16:18 
AnswerRe: Reading Directory Pin
Cool_Dev16-Aug-10 18:09
Cool_Dev16-Aug-10 18:09 
AnswerRe: Reading Directory Pin
«_Superman_»16-Aug-10 18:16
professional«_Superman_»16-Aug-10 18:16 
GeneralRe: Reading Directory Pin
Aescleal16-Aug-10 21:06
Aescleal16-Aug-10 21:06 
GeneralRe: Reading Directory Pin
«_Superman_»16-Aug-10 21:43
professional«_Superman_»16-Aug-10 21:43 
GeneralRe: Reading Directory Pin
Aescleal17-Aug-10 5:30
Aescleal17-Aug-10 5:30 
QuestionReading CPU Temperature (including each core temperature) without third party tools Pin
ant-damage16-Aug-10 11:21
ant-damage16-Aug-10 11:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.