Click here to Skip to main content
15,890,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCorrectly displaying unicode characters Pin
Waldermort4-Aug-06 18:50
Waldermort4-Aug-06 18:50 
AnswerRe: Correctly displaying unicode characters Pin
Michael Dunn4-Aug-06 19:52
sitebuilderMichael Dunn4-Aug-06 19:52 
GeneralRe: Correctly displaying unicode characters Pin
Waldermort4-Aug-06 20:58
Waldermort4-Aug-06 20:58 
AnswerRe: Correctly displaying unicode characters Pin
Taka Muraoka4-Aug-06 19:52
Taka Muraoka4-Aug-06 19:52 
GeneralRe: Correctly displaying unicode characters Pin
Waldermort4-Aug-06 21:06
Waldermort4-Aug-06 21:06 
QuestionPainting RichEditView Pin
nightrider134-Aug-06 14:25
nightrider134-Aug-06 14:25 
QuestionCustom Ctrl error Pin
CodeGoose4-Aug-06 13:16
CodeGoose4-Aug-06 13:16 
QuestionSmall Error Pin
Falconite7774-Aug-06 12:35
Falconite7774-Aug-06 12:35 
Hey guys, im trying to unmangle c++ decorated names. The code is below. I think there is something wrong. If i comment out the "printf("final : %s\n",final);" line, the output seems fine. Else now, it throws some garbage.

ANy help will do...thanks Smile | :)

Cpp file

#include "mangie.h"
#include <stdio.h>


void main()
{
char *ac;
char *aa;
int a33;
char* final;

ac = "?hello@@YAXXZ";

*final = UnMangle_symbols(ac,aa);

printf("\n\n\n\n");
printf("final : %s\n",final);

}

char UnMangle_symbols(char *mang, char *unmang)
{
int siiiz;
char *errormsg = "Error";
//mang = "?hello@@YAXXZ";
if (UnDecorateSymbolName(mang,unmang,siiiz,UNDNAME_COMPLETE))
{
printf("Undecorated name %s\n", unmang );
return (char)unmang;
}
else
{
return *errormsg;
}
}


Header file
-------------
#include <windows.h>
#include <winsock.h>
#include "DbgHelp.h"

char UnMangle_symbols(char *mang, char *unmnag);
AnswerRe: Small Error Pin
Graham Shanks4-Aug-06 14:02
Graham Shanks4-Aug-06 14:02 
QuestionVisual Studio Question Pin
JKallen4-Aug-06 12:17
JKallen4-Aug-06 12:17 
AnswerRe: Visual Studio Question Pin
Michael Dunn4-Aug-06 13:41
sitebuilderMichael Dunn4-Aug-06 13:41 
AnswerRe: Visual Studio Question Pin
Steve Weeks4-Aug-06 17:35
Steve Weeks4-Aug-06 17:35 
QuestionVisual Studio 2003 Debugger and Execptions [modified] Pin
kpeng14-Aug-06 11:39
kpeng14-Aug-06 11:39 
AnswerRe: Visual Studio 2003 Debugger and Execptions [modified] Pin
kpeng18-Aug-06 12:41
kpeng18-Aug-06 12:41 
QuestionHow does AfxGetApp() work? Pin
Ali Tavakol4-Aug-06 11:28
Ali Tavakol4-Aug-06 11:28 
AnswerRe: How does AfxGetApp() work? Pin
PJ Arends4-Aug-06 16:39
professionalPJ Arends4-Aug-06 16:39 
AnswerRe: How does AfxGetApp() work? Pin
Joe Woodbury4-Aug-06 16:40
professionalJoe Woodbury4-Aug-06 16:40 
Question"hard-wired" in C++ Pin
Jay034-Aug-06 10:10
Jay034-Aug-06 10:10 
AnswerRe: "hard-wired" in C++ Pin
RChin4-Aug-06 11:14
RChin4-Aug-06 11:14 
AnswerRe: "hard-wired" in C++ Pin
Ravi Bhavnani4-Aug-06 11:53
professionalRavi Bhavnani4-Aug-06 11:53 
AnswerRe: "hard-wired" in C++ Pin
Rilhas6-Aug-06 3:39
Rilhas6-Aug-06 3:39 
QuestionVisual Studio Net 2003 does not catch divide by zero with doubles Pin
kpeng14-Aug-06 6:45
kpeng14-Aug-06 6:45 
AnswerRe: Visual Studio Net 2003 does not catch divide by zero with doubles Pin
Zac Howland4-Aug-06 7:03
Zac Howland4-Aug-06 7:03 
AnswerRe: Visual Studio Net 2003 does not catch divide by zero with doubles Pin
Chris Losinger4-Aug-06 7:04
professionalChris Losinger4-Aug-06 7:04 
AnswerRe: Visual Studio Net 2003 does not catch divide by zero with doubles [modified] Pin
Sarath C4-Aug-06 7:09
Sarath C4-Aug-06 7:09 

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.