Click here to Skip to main content
15,914,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralExecute RTF file. Pin
DanYELL27-Oct-04 10:31
DanYELL27-Oct-04 10:31 
GeneralRe: Execute RTF file. Pin
RobJones27-Oct-04 10:40
RobJones27-Oct-04 10:40 
GeneralCSocket::OnReceive problem Pin
ali khalilvand27-Oct-04 8:41
ali khalilvand27-Oct-04 8:41 
GeneralCapture window bitmap from another running program Pin
MugWumpBW27-Oct-04 8:35
MugWumpBW27-Oct-04 8:35 
GeneralRe: Capture window bitmap from another running program Pin
l a u r e n27-Oct-04 15:10
l a u r e n27-Oct-04 15:10 
GeneralRe: Hiding Afx Pin
Maximilien27-Oct-04 7:52
Maximilien27-Oct-04 7:52 
GeneralRe: Hiding Afx Pin
jmkhael27-Oct-04 8:08
jmkhael27-Oct-04 8:08 
GeneralUnicode compiling Pin
Timothy Grabrian27-Oct-04 7:41
professionalTimothy Grabrian27-Oct-04 7:41 
I have a app that needs to read and write stuff to the reg, I have my custom Reg functions in a seperate CPP file "RegHelpers.cpp" along with a header file "RegHelpers.h".

If I uncomment these 2 lines it gives a "unresolved external symbol" error for the functions in "RegHelpers.h"

//#define _UNICODE
//#define UNICODE
#include <windows.h>
#include <tchar.h>
#include "resource.h"
#include "RegHelpers.h"

I can not figure out what the problem is!!!
To make my program fully Unicode don't I need to change some Preprocessor settings?

Also, I used to use strings like this all the time:
LPSTR String = new char[256];

then I learnt about unicode, so I started doing them this way:
PTCHAR String = new TCHAR[256];

Do I need to do "new TCHAR[256 * sizeof(TCHAR)];"?
Also should I change them from PTCHAR to LPTSTR?
Do I really need to use the new operator on my strings?

Haha I'm really starting to hate data types.

wWw.KruncherInc.cOm
GeneralRe: Unicode compiling Pin
l a u r e n27-Oct-04 15:11
l a u r e n27-Oct-04 15:11 
GeneralRe: Unicode compiling Pin
Timothy Grabrian27-Oct-04 15:25
professionalTimothy Grabrian27-Oct-04 15:25 
GeneralRe: Unicode compiling Pin
Ryan Binns27-Oct-04 18:40
Ryan Binns27-Oct-04 18:40 
GeneralHiding Afx Pin
Leyu27-Oct-04 7:28
Leyu27-Oct-04 7:28 
GeneralDrawing a line, fast! Pin
Obliterator27-Oct-04 6:43
Obliterator27-Oct-04 6:43 
GeneralPorting VB GUI to VC++ Pin
flashback827-Oct-04 6:39
flashback827-Oct-04 6:39 
GeneralRe: Porting VB GUI to VC++ Pin
BlackDice27-Oct-04 7:15
BlackDice27-Oct-04 7:15 
GeneralRe: Porting VB GUI to VC++ Pin
BlackDice27-Oct-04 7:19
BlackDice27-Oct-04 7:19 
GeneralRe: Porting VB GUI to VC++ Pin
flashback827-Oct-04 9:36
flashback827-Oct-04 9:36 
GeneralRe: Porting VB GUI to VC++ Pin
ThatsAlok27-Oct-04 18:58
ThatsAlok27-Oct-04 18:58 
GeneralCheck for Updates Pin
Anonymous27-Oct-04 6:04
Anonymous27-Oct-04 6:04 
GeneralRe: Check for Updates Pin
Ravi Bhavnani27-Oct-04 6:20
professionalRavi Bhavnani27-Oct-04 6:20 
QuestionIs the window on top? Pin
RobJones27-Oct-04 5:57
RobJones27-Oct-04 5:57 
AnswerRe: Is the window on top? Pin
David Crow27-Oct-04 6:04
David Crow27-Oct-04 6:04 
GeneralRe: Is the window on top? Pin
RobJones27-Oct-04 6:42
RobJones27-Oct-04 6:42 
GeneralFigured it out Pin
RobJones27-Oct-04 6:54
RobJones27-Oct-04 6:54 
GeneralC++ Windows Program Pin
Member 139789327-Oct-04 5:54
Member 139789327-Oct-04 5:54 

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.