Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: Calling javascript function from mfc activex control Pin
CPallini26-Mar-09 7:24
mveCPallini26-Mar-09 7:24 
GeneralRe: Calling javascript function from mfc activex control Pin
led mike26-Mar-09 8:11
led mike26-Mar-09 8:11 
GeneralRe: Calling javascript function from mfc activex control Pin
CPallini26-Mar-09 8:18
mveCPallini26-Mar-09 8:18 
GeneralRe: Calling javascript function from mfc activex control Pin
B060611526-Mar-09 18:53
B060611526-Mar-09 18:53 
GeneralRe: Calling javascript function from mfc activex control Pin
B060611529-Mar-09 19:15
B060611529-Mar-09 19:15 
AnswerRe: Calling javascript function from mfc activex control Pin
David Crow26-Mar-09 5:58
David Crow26-Mar-09 5:58 
GeneralRe: Calling javascript function from mfc activex control Pin
B060611529-Mar-09 19:18
B060611529-Mar-09 19:18 
QuestionUsing dll with non-unicode in a unicode dll Pin
Ergodyne26-Mar-09 4:59
Ergodyne26-Mar-09 4:59 
Hello,

I have a problem with a program I'm working on where I am using a couple of dll's to share functions. My question is how to overcome the problem when one dll is written using unicode and the other is not using unicode.

As it seems to me, the problem is that the linker does not recognize the function created in the other dll (even thought it is defined in the same header).

I have tried turning off the Unicode and this will work.

This is what is defined in the StdAfx.h file in the project using unicode.
#define _UNICODE
#include <tchar.h>

#define UNICODE	
#include <windows.h>


When I comment out the _UNICODE and UNICODE definitions I will compile but when they are present I get the error

LNK2019: Unresolved external symbol "__declspec(dllimport)int __cdecl SomeFunctin(wchar_t*, int)... "

The function that I am trying to reach has the following header definition

int SomeFunction(_TCHAR *pszPath, int accessMode );


My guess is that the _TCHAR has different definitions (for some reason) when using unicode and not using it since the compiler seems to expect the function to use wchar_t* as first parameter and not _TCHAR*

Anyone who has any ideas about how to solve this?
AnswerRe: Using dll with non-unicode in a unicode dll Pin
Joe Woodbury26-Mar-09 5:41
professionalJoe Woodbury26-Mar-09 5:41 
AnswerRe: Using dll with non-unicode in a unicode dll Pin
Iain Clarke, Warrior Programmer26-Mar-09 6:34
Iain Clarke, Warrior Programmer26-Mar-09 6:34 
GeneralRe: Using dll with non-unicode in a unicode dll Pin
Nemanja Trifunovic26-Mar-09 8:11
Nemanja Trifunovic26-Mar-09 8:11 
QuestionDialog operations slow in windows Vista Pin
sskinamadasoft26-Mar-09 3:50
sskinamadasoft26-Mar-09 3:50 
AnswerRe: Dialog operations slow in windows Vista Pin
Eytukan26-Mar-09 4:04
Eytukan26-Mar-09 4:04 
GeneralRe: Dialog operations slow in windows Vista Pin
sskinamadasoft26-Mar-09 4:11
sskinamadasoft26-Mar-09 4:11 
GeneralRe: Dialog operations slow in windows Vista Pin
Eytukan26-Mar-09 4:18
Eytukan26-Mar-09 4:18 
GeneralRe: Dialog operations slow in windows Vista Pin
sskinamadasoft26-Mar-09 22:33
sskinamadasoft26-Mar-09 22:33 
GeneralRe: Dialog operations slow in windows Vista Pin
sskinamadasoft26-Mar-09 4:46
sskinamadasoft26-Mar-09 4:46 
GeneralRe: Dialog operations slow in windows Vista Pin
Luc Pattyn26-Mar-09 7:28
sitebuilderLuc Pattyn26-Mar-09 7:28 
QuestionFlash Pin
john563226-Mar-09 3:11
john563226-Mar-09 3:11 
QuestionRe: Flash Pin
CPallini26-Mar-09 3:19
mveCPallini26-Mar-09 3:19 
AnswerRe: Flash Pin
Eytukan26-Mar-09 3:52
Eytukan26-Mar-09 3:52 
QuestionReading Unicode from a text file Pin
LCI26-Mar-09 2:07
LCI26-Mar-09 2:07 
AnswerRe: Reading Unicode from a text file Pin
Code-o-mat26-Mar-09 2:13
Code-o-mat26-Mar-09 2:13 
AnswerRe: Reading Unicode from a text file Pin
«_Superman_»26-Mar-09 2:17
professional«_Superman_»26-Mar-09 2:17 
AnswerRe: Reading Unicode from a text file Pin
Michael Schubert26-Mar-09 2:50
Michael Schubert26-Mar-09 2:50 

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.