Click here to Skip to main content
16,015,559 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CRichEditCtrl show text? Pin
Nuri Ismail16-Aug-10 22:55
Nuri Ismail16-Aug-10 22:55 
GeneralRe: CRichEditCtrl show text? Pin
yfpfly5-Sep-10 17:28
yfpfly5-Sep-10 17:28 
QuestionHow to write Password code in cpp Pin
ganesh_IT16-Aug-10 21:32
ganesh_IT16-Aug-10 21:32 
AnswerRe: How to write Password code in cpp Pin
Code-o-mat16-Aug-10 22:10
Code-o-mat16-Aug-10 22:10 
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 
Hello,

I wanted to move the implementation of some of my functions to a DLL and update only the DLL and do not touch the GUI.I normally use STL and i learnt that STL and DLLs together can create some problems. Lets say i have such a function below and that Point3D vector will be given from another DLL (which deals IO stuff).

1. DLL
TEST_API double calcPerimeter(const std::vector<Point3D>& pts)
{
	double p = 0.0;
	for(std::size_t i = 1; i < pts.size(); ++i)
	  p+= calcDistance(pts[i-1],pts[i], false);

	p = sqrt(p);
	return p;
}


2. DLL

i want to export a std::vector<point3d> from a function.

Will this work or even if it works under what conditions? By the way, I will use the same compiler for exe and dlls.

How will you implement above? (a very simple data holder (Point3D vector) in a DLL and in another DLL just bunch of functions which operates on that data?

Best Regards.

Bekir.
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 
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 

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.