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

C / C++ / MFC

 
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 
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 
If you're mixing them, then you're going to have some fun...

While it is good practise to use TCHAR so you can make unicode / non-unicode apps from the same code base, there's nothing stopping you explicitly using char / wchar_t, and the A/W versions of function names.

So you could do...

// MyUnicodeApp.cpp
#include "stdafx.h"

#undefine _UNICODE
#undefine UNICODE
#include "MyNonUnicode.dll"
#define _UNICODE
#define UNICODE
#include "MyUnicode.dll"

...


This will be a bit confusing, but it can be done.

I'd try and make them be more uniform if at all possible though!

Have a look at http://www.codeproject.com/KB/string/cppstringguide1.aspx[^] for more information on TCHAR and friends.

Iain.

In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

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 
GeneralRe: Reading Unicode from a text file Pin
LCI26-Mar-09 2:52
LCI26-Mar-09 2:52 
GeneralRe: Reading Unicode from a text file Pin
Michael Schubert26-Mar-09 2:57
Michael Schubert26-Mar-09 2:57 

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.