Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionClass with parameter of type Pin
Jeroen De Dauw28-Dec-09 12:30
Jeroen De Dauw28-Dec-09 12:30 
AnswerRe: Class with parameter of type Pin
Luc Pattyn28-Dec-09 12:35
sitebuilderLuc Pattyn28-Dec-09 12:35 
GeneralRe: Class with parameter of type Pin
Jeroen De Dauw28-Dec-09 13:16
Jeroen De Dauw28-Dec-09 13:16 
GeneralRe: Class with parameter of type Pin
Luc Pattyn28-Dec-09 13:18
sitebuilderLuc Pattyn28-Dec-09 13:18 
GeneralRe: Class with parameter of type Pin
Jeroen De Dauw28-Dec-09 13:39
Jeroen De Dauw28-Dec-09 13:39 
GeneralRe: Class with parameter of type Pin
Luc Pattyn28-Dec-09 13:46
sitebuilderLuc Pattyn28-Dec-09 13:46 
GeneralRe: Class with parameter of type Pin
Jeroen De Dauw28-Dec-09 23:44
Jeroen De Dauw28-Dec-09 23:44 
QuestionReading in Unicode text Pin
elmernite28-Dec-09 10:48
elmernite28-Dec-09 10:48 
Here goes, I'm trying to read Unicode text in from a ini/uni file.

I've made the call to GetPrivateProfileStringW

[DllImport("KERNEL32.DLL", EntryPoint = "GetPrivateProfileStringW",
  SetLastError = true,
  CharSet = CharSet.Unicode, ExactSpelling = true,
  CallingConvention = CallingConvention.StdCall)]
        private static extern int GetPrivateProfileStringW(
          string lpAppName,
          string lpKeyName,
          string lpDefault,
          string lpReturnString,
          int nSize,
          string lpFilename);


And this is what I use at the point of actual calling.
string returnString = new string(' ', 32768);
GetPrivateProfileStringW(fetchUniSection[n], fetchUniInfo[i], "FAIL", returnString, 32768, containingFolder + @"\BiblioSelfCheckDefault.uni");


I get the text, but rather than be in proper Chinese, Japaneses, Arabic, etc.. it is just garbage characters.
Can anyone tell me what I am doing wrong? As far as I can tell, it is taking my input and forcing it onto ASCII.
Thanks!

-Elmernite
AnswerRe: Reading in Unicode text Pin
Luc Pattyn28-Dec-09 11:15
sitebuilderLuc Pattyn28-Dec-09 11:15 
QuestionRe: Reading in Unicode text [modified] Pin
elmernite29-Dec-09 3:58
elmernite29-Dec-09 3:58 
AnswerRe: Reading in Unicode text Pin
Luc Pattyn29-Dec-09 5:20
sitebuilderLuc Pattyn29-Dec-09 5:20 
GeneralRe: Reading in Unicode text Pin
elmernite29-Dec-09 5:56
elmernite29-Dec-09 5:56 
QuestionC# and Open Gl Pin
awaistariq28-Dec-09 7:44
awaistariq28-Dec-09 7:44 
AnswerMessage Closed Pin
28-Dec-09 7:51
stancrm28-Dec-09 7:51 
GeneralRe: C# and Open Gl Pin
harold aptroot28-Dec-09 8:54
harold aptroot28-Dec-09 8:54 
AnswerRe: C# and Open Gl Pin
#realJSOP28-Dec-09 9:41
mve#realJSOP28-Dec-09 9:41 
QuestionRegistry Pin
sanforjackass28-Dec-09 7:39
sanforjackass28-Dec-09 7:39 
QuestionCreating a Class that can be a list? Pin
bbranded28-Dec-09 5:20
bbranded28-Dec-09 5:20 
AnswerRe: Creating a Class that can be a list? Pin
Luc Pattyn28-Dec-09 5:37
sitebuilderLuc Pattyn28-Dec-09 5:37 
GeneralRe: Creating a Class that can be a list? Pin
bbranded28-Dec-09 5:40
bbranded28-Dec-09 5:40 
GeneralRe: Creating a Class that can be a list? Pin
Luc Pattyn28-Dec-09 7:13
sitebuilderLuc Pattyn28-Dec-09 7:13 
GeneralRe: Creating a Class that can be a list? Pin
DaveyM6928-Dec-09 10:23
professionalDaveyM6928-Dec-09 10:23 
GeneralRe: Creating a Class that can be a list? Pin
ProtoBytes28-Dec-09 12:14
ProtoBytes28-Dec-09 12:14 
GeneralRe: Creating a Class that can be a list? Pin
Luc Pattyn28-Dec-09 12:19
sitebuilderLuc Pattyn28-Dec-09 12:19 
AnswerRe: Creating a Class that can be a list? Pin
Saksida Bojan28-Dec-09 5:37
Saksida Bojan28-Dec-09 5:37 

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.