Click here to Skip to main content
15,911,890 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Slow access to array Pin
John R. Shaw8-Oct-05 21:20
John R. Shaw8-Oct-05 21:20 
GeneralRe: Slow access to array Pin
rudo329-Oct-05 0:26
rudo329-Oct-05 0:26 
GeneralRe: Slow access to array Pin
John R. Shaw9-Oct-05 0:54
John R. Shaw9-Oct-05 0:54 
GeneralRe: Slow access to array Pin
rudo329-Oct-05 3:08
rudo329-Oct-05 3:08 
GeneralRe: Slow access to array Pin
John R. Shaw12-Oct-05 11:18
John R. Shaw12-Oct-05 11:18 
QuestionFree C++ .Net compiler questions Pin
Jim Crafton8-Oct-05 9:11
Jim Crafton8-Oct-05 9:11 
AnswerRe: Free C++ .Net compiler questions Pin
John R. Shaw8-Oct-05 23:11
John R. Shaw8-Oct-05 23:11 
GeneralRe: Free C++ .Net compiler questions Pin
Jim Crafton9-Oct-05 4:56
Jim Crafton9-Oct-05 4:56 
OK, thanks!
However when I tried to build with it, I get link errors saying it can't find msvcrtd71.lib (or something like that).
I tried a simple test with the following:

//test.cpp
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

extern "C" {
__declspec(dllexport) void doit();
}

void doit()
{
	int f = 90;
	f += 345;
}


When I build this with /MDd (or /MD) I note that despite the fact that NO CRT code is used (as far as I can tell), it automatically links and uses the MS CRT DLL anyways!!!

My understanding is that you cannot use STL in DLL's that are NOT built with "Multi-threaded DLL" code generation options. So if you have DLL A and it uses STL (and has functions that use std::string) and have DLL B, that also uses DLL A, and both use std::string, then you must generate them using the "Multi-threaded DLL" code gen option.

What I remember is that if you just use the "Multi-threaded" option (i.e. static linkage to the CRT) then the strings will become corrupted.





¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
QuestionModeless dialog communicating with parent dialog Pin
fjlv20058-Oct-05 9:08
fjlv20058-Oct-05 9:08 
AnswerRe: Modeless dialog communicating with parent dialog Pin
Jose Lamas Rios8-Oct-05 14:32
Jose Lamas Rios8-Oct-05 14:32 
QuestionRe: Modeless dialog communicating with parent dialog Pin
fjlv20059-Oct-05 18:42
fjlv20059-Oct-05 18:42 
QuestionHow in CEdit to install the cursor in anchor point? Pin
pup20028-Oct-05 7:36
pup20028-Oct-05 7:36 
AnswerRe: How in CEdit to install the cursor in anchor point? Pin
Mircea Puiu8-Oct-05 21:03
Mircea Puiu8-Oct-05 21:03 
AnswerRe: How in CEdit to install the cursor in anchor point? Pin
John R. Shaw8-Oct-05 21:39
John R. Shaw8-Oct-05 21:39 
QuestionCButton with Bitmap Transparency Pin
fjlv20058-Oct-05 5:02
fjlv20058-Oct-05 5:02 
AnswerRe: CButton with Bitmap Transparency Pin
Lane Yu8-Oct-05 8:24
Lane Yu8-Oct-05 8:24 
QuestionRe: CButton with Bitmap Transparency Pin
fjlv20058-Oct-05 9:14
fjlv20058-Oct-05 9:14 
AnswerRe: CButton with Bitmap Transparency Pin
PJ Arends8-Oct-05 18:23
professionalPJ Arends8-Oct-05 18:23 
AnswerRe: CButton with Bitmap Transparency Pin
Lane Yu8-Oct-05 18:46
Lane Yu8-Oct-05 18:46 
Questionuse of extern keyword Pin
swaapu8-Oct-05 2:46
swaapu8-Oct-05 2:46 
AnswerRe: use of extern keyword Pin
G Haranadh8-Oct-05 3:08
G Haranadh8-Oct-05 3:08 
AnswerRe: use of extern keyword Pin
Bob Stanneveld8-Oct-05 7:02
Bob Stanneveld8-Oct-05 7:02 
AnswerRe: use of extern keyword Pin
John R. Shaw8-Oct-05 22:14
John R. Shaw8-Oct-05 22:14 
Questionhow to use ADO to store and retrieve image data from Oracle using VC++ Pin
snprani8-Oct-05 2:07
snprani8-Oct-05 2:07 
GeneralRe: how to use ADO to store and retrieve image data from Oracle using VC++ Pin
G Haranadh8-Oct-05 9:53
G Haranadh8-Oct-05 9:53 

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.