Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OT - Welcome Pin
Ma7moud El-Naggar31-Mar-09 8:58
Ma7moud El-Naggar31-Mar-09 8:58 
GeneralRe: OT - Welcome Pin
CPallini31-Mar-09 9:32
mveCPallini31-Mar-09 9:32 
QuestionWhat is the best solution for this problem?? Pin
Kiran Satish26-Mar-09 8:36
Kiran Satish26-Mar-09 8:36 
AnswerRe: What is the best solution for this problem?? [modified] Pin
CPallini26-Mar-09 8:56
mveCPallini26-Mar-09 8:56 
GeneralRe: What is the best solution for this problem?? Pin
Kiran Satish27-Mar-09 7:04
Kiran Satish27-Mar-09 7:04 
QuestionActive Directory ExecuteSearch enum results with LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER Pin
Petr Stejskal26-Mar-09 6:16
Petr Stejskal26-Mar-09 6:16 
QuestionHow to set Header and footer in Excel file With use of MFC in VC++6.0 [modified] Pin
rocky8226-Mar-09 6:06
rocky8226-Mar-09 6:06 
AnswerRe: How to set Header and footer in Excel file With use of MFC in VC++6.0 Pin
Michael Schubert26-Mar-09 6:16
Michael Schubert26-Mar-09 6:16 
GeneralRe: How to set Header and footer in Excel file With use of MFC in VC++6.0 Pin
led mike26-Mar-09 8:35
led mike26-Mar-09 8:35 
JokeRe: How to set Header and footer in Excel file With use of MFC in VC++6.0 Pin
CPallini26-Mar-09 9:16
mveCPallini26-Mar-09 9:16 
AnswerRe: How to set Header and footer in Excel file With use of MFC in VC++6.0 Pin
David Crow26-Mar-09 8:37
David Crow26-Mar-09 8:37 
QuestionHow to update the CFormView Pin
Koutans26-Mar-09 5:52
Koutans26-Mar-09 5:52 
AnswerRe: How to update the CFormView Pin
Stuart Dootson26-Mar-09 8:13
professionalStuart Dootson26-Mar-09 8:13 
QuestionCalling javascript function from mfc activex control Pin
B060611526-Mar-09 4:59
B060611526-Mar-09 4:59 
AnswerRe: Calling javascript function from mfc activex control Pin
led mike26-Mar-09 5:57
led mike26-Mar-09 5:57 
GeneralRe: Calling javascript function from mfc activex control Pin
Michael Schubert26-Mar-09 6:03
Michael Schubert26-Mar-09 6:03 
JokeRe: Calling javascript function from mfc activex control Pin
Cedric Moonen26-Mar-09 6:05
Cedric Moonen26-Mar-09 6:05 
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?

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.