Click here to Skip to main content
14,768,828 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 22:22
MemberMember 1457555617-Sep-19 22:22 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 22:39
MemberVictor Nijegorodov17-Sep-19 22:39 
GeneralRe: MFC VC++ Pin
CPallini17-Sep-19 22:55
mveCPallini17-Sep-19 22:55 
GeneralRe: MFC VC++ Pin
Member 1457555618-Sep-19 0:49
MemberMember 1457555618-Sep-19 0:49 
GeneralRe: MFC VC++ Pin
CPallini18-Sep-19 1:39
mveCPallini18-Sep-19 1:39 
AnswerRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 22:47
MemberVictor Nijegorodov17-Sep-19 22:47 
GeneralRe: MFC VC++ Pin
Stefan_Lang17-Sep-19 23:40
mveStefan_Lang17-Sep-19 23:40 
QuestionUnresolved extern "dwTlsIndex" exported function in dll Pin
ForNow17-Sep-19 3:41
MemberForNow17-Sep-19 3:41 
Hi
I have a c DLL. the Dllmain and the exported function(s) are in different source files. Since the exported function need the value of the variable dwTlsindex. I decalre as an extern

I both define it and declare it in DllMain

extern DWORD dwTlsIndex;
static DWORD dwTlsIndex;
BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                     )



in the exported function the following is the definition I know I have used the extern storage specifier with out any problem many times maybe there is something different because this is a DLL as the linker cant resolve dwTlsIndex

#else

	 __declspec(dllexport) void opendata(char *);
#endif

	 extern DWORD dwTlsIndex;
	
	 void opendata(char *filename)
	 {
		 typedef void *(DLL_FN)(char *);

AnswerRe: Unresolved extern "dwTlsIndex" exported function in dll Pin
CPallini17-Sep-19 4:19
mveCPallini17-Sep-19 4:19 
GeneralRe: Unresolved extern "dwTlsIndex" exported function in dll Pin
ForNow17-Sep-19 4:42
MemberForNow17-Sep-19 4:42 
GeneralRe: Unresolved extern "dwTlsIndex" exported function in dll Changed DLLMAIN.CPP to DLLMAIN.C clean link Pin
ForNow17-Sep-19 9:02
MemberForNow17-Sep-19 9:02 
Questionmanual kerning with winAPI Pin
Alexander Kindel15-Sep-19 22:38
MemberAlexander Kindel15-Sep-19 22:38 
Questiontypedef for a function for different platforms Pin
ForNow13-Sep-19 4:29
MemberForNow13-Sep-19 4:29 
AnswerRe: typedef for a function for different platforms Pin
Stefan_Lang13-Sep-19 4:58
mveStefan_Lang13-Sep-19 4:58 
GeneralRe: typedef for a function for different platforms Pin
ForNow13-Sep-19 5:36
MemberForNow13-Sep-19 5:36 
AnswerRe: typedef for a function for different platforms Pin
Richard MacCutchan13-Sep-19 4:59
mveRichard MacCutchan13-Sep-19 4:59 
GeneralRe: typedef for a function for different platforms Pin
ForNow13-Sep-19 5:36
MemberForNow13-Sep-19 5:36 
QuestionError 12029 WinHTTP Pin
Diprom12-Sep-19 23:36
MemberDiprom12-Sep-19 23:36 
AnswerRe: Error 12029 WinHTTP Pin
Richard MacCutchan13-Sep-19 2:16
mveRichard MacCutchan13-Sep-19 2:16 
AnswerRe: Error 12029 WinHTTP Pin
Victor Nijegorodov13-Sep-19 3:26
MemberVictor Nijegorodov13-Sep-19 3:26 
GeneralRe: Error 12029 WinHTTP Pin
Diprom13-Sep-19 3:30
MemberDiprom13-Sep-19 3:30 
GeneralRe: Error 12029 WinHTTP Pin
Victor Nijegorodov13-Sep-19 3:38
MemberVictor Nijegorodov13-Sep-19 3:38 
AnswerRe: Error 12029 WinHTTP Pin
Randor 14-Sep-19 4:03
professional Randor 14-Sep-19 4:03 
QuestionVisual Studio 2017 C++ Static analyzer (or in ReSharper C++) Pin
Maximilien12-Sep-19 5:21
MemberMaximilien12-Sep-19 5:21 
AnswerRe: Visual Studio 2017 C++ Static analyzer (or in ReSharper C++) Pin
Stefan_Lang12-Sep-19 6:33
mveStefan_Lang12-Sep-19 6:33 

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.