Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

UNICODE

Name: N00b 2010-07-07 20:41

Hi, i'm quite new to programming and i am getting an error saying MBCS is no longer supported and i should use UNICODE builds.

I want to know what one is so i can do it and continue programming, can anyone explain please?

Name: Anonymous 2010-07-07 20:42

no exceptions

Name: Anonymous 2010-07-07 20:58

Less of this.

Name: N00b 2010-07-07 21:38

Something to do with UTF-8?

I really need some help /prog/, don't be a cunt.

Name: Anonymous 2010-07-07 21:42

>>4
/prog/ is being a ``cunt'' because you're an idiot who can't specify his question properly, but if you could do that, you'd already be able to find the answer yourself.

Name: Anonymous 2010-07-07 21:43

Name: Anonymous 2010-07-07 22:20

>>6
His question would be off-topic there. The reason he's not going to get any help here is because he's a moron and expects us to read his mind to get the details of his situation, not because it's necessarily off-topic.

Name: Anonymous 2010-07-07 22:52

>>7
His question would be off-topic here
FTFY. He's asking for tech support. The problem isn't related to programming. Sure, tech support is probably only topical in /adv/ and maybe /comp/, but /g/ seems to think it is the be-all of computing.

Name: Anonymous 2010-07-08 12:06

What else information wise is there you need?
It's asked me to do a unicode build, i don't know what one is.

I used a third-party library.

Name: Anonymous 2010-07-08 12:09

i'm
Faggot.

i am
Faggot.

i should
Faggot.

UNICODE
Is that an acronym? Faggot.

i can
Faggot.

Name: Anonymous 2010-07-08 12:43

>>9
A start would be to specify what the fuck ``it'' is.

Name: Anonymous 2010-07-08 13:19

>>11
Error    2    fatal error C1189: #error :  "Sorry, please use UNICODE builds (MBCS is no longer supported)"    c:\program files\microsoft visual studio 9.0\vc\include\blah.h    82    myProgram

then at lines 81 to 83 it reads:

#if defined(WIN32) && !defined(UNICODE)
#error "Sorry, please use UNICODE builds (MBCS is no longer supported)"
#endif

I searched for unicode but they are the only two finds.

Name: Anonymous 2010-07-08 13:26

>>12
What the fuck is the matter with you?
So you're trying to use Visual Studio and Visual Studio is giving you that error? Is that's what's going on? Is it really that hard to guess that that is something that would have been useful to say in your first post, instead of assuming that everyone uses the same tools you do, and only those?

Name: Anonymous 2010-07-08 13:30

It's funny when Windows users think they can be programmers.

Name: Anonymous 2010-07-08 13:39

>>14
Hey, I have Cygwin installed.

Name: Anonymous 2010-07-08 13:41

>>13
i apolygise, but could you give me some direction? it's doing my nut.

>>14
gotta start somewhere.

Name: Anonymous 2010-07-08 13:41

>>16
I'll do your nut, buddy

Name: Anonymous 2010-07-08 13:44

>>16
Not with Visual Studio. Especially not if you can't read simple error messages. Ditch it and use Python and a real editor.

Name: Anonymous 2010-07-08 14:06

You have to understand that there are three types of characters in C++ on Windows:

char: 8-bit
wchar_t: 16-bit
TCHAR: wchar_t in Unicode build, char in ANSI build (MBCS).

Name: Anonymous 2010-07-08 14:14

>>19
Ok, so go through changing the char types acordingly or edit my program on, say, a virtual machine of windows 98/ME?

hmmm..

Name: Anonymous 2010-07-08 14:23

>>20
I think you'd need to change the character set in the project options. But before 2008/I Visual Studio had not set/UNICODE/MBCS

now it had not set/UNICODE/Multi-Byte
And fuck do i now what Multi-byte is...

Name: Anonymous 2010-07-08 14:43

Name: Anonymous 2010-07-08 17:40

wchar_t has nothing to do with Unicode. It is basically a useless type and should be ignored.

Name: Anonymous 2010-07-08 17:54

>>23
Completely useless, unless you want to program for the operating system with over 90% market share.

Name: Anonymous 2010-07-08 18:00

>>24
PROGRAM FOR MY ANUS

Name: Anonymous 2010-07-08 18:15

>>24
There is no operating system with over 90% market share. There isn't even an operating system family with over 90% market share, and it's doubtful there ever was.

Name: Anonymous 2010-07-08 18:16

>>26
The first one ever once had over 90% market share.

Name: Anonymous 2010-07-08 18:22

>>26,27
Actually, windows has over 90% right now.[1]
_________________
References:
1. http://marketshare.hitslink.com/operating-system-market-share.aspx?qprid=10

Name: Anonymous 2010-07-08 18:28

>>28
SHARE MY ANUS

Name: Anonymous 2010-07-08 18:37

>>28
If that is the same company that claimed Mac OS X had 10% market share last year, then I'm not sure their stats are worth paying attention too

Name: Anonymous 2010-07-08 18:48

>>30
No OS market share statistics are perfect, but I think the ones cited are a pretty good indication of the general ebb and flow. If you think you have some better statistics, by all means, post them.

Name: >>31 2010-07-08 18:53

Note that I didn't acknowledge these are the same statistics that stated Mac OS X had 10% last year, as I'm unsure, although it has around 10% now so what is the problem exactly?

Name: Anonymous 2010-07-08 18:58

>>32
My problem is that I dispute that Mac OS X has 10% market share, and the only way I can see that happening is if the statistics in question are heavily america-centric.

Which is probably the case, since I think the original source for that claim was http://blog.quantcast.com/quantcast/2010/02/os-share.html

Name: Anonymous 2010-07-08 19:05

>>23-24
Since when is wchar_t Windows-specific, anyway? I've used it in the past for Unicode-aware Linux applications.

Name: Anonymous 2010-07-08 20:13

>>34
I, too, #include <windows.h> in my Linux applications.

Name: Someone else 2010-07-08 20:27

>>35
wchar.h here (for wchar_t).

As for Win32, in MSVC, MS had the brilliant idea of making a type(macro TCHAR) which would represent normal characters(char) or multibyte ones in one case, and "UNICODE" (UTF-16, WCHAR, or wchar_t) in the other case (depends if UNICODE macro is defined). Similar _t* macros are defined for various API calls and libc functions. The idea is that you can build both ANSI and UNICODE applications form the same code. ANSI applications can be useful if compatibility with even old Win32 platforms is desired (9x had crappy unicode support), and in fact, most applications these days tend to be ANSI apps and only a few properly support UNICODE.

It might be worth mentioning that even if this is a MSVC extension, there is nothing preventing you from implementing a setup like this in portable C, as long as your C library has unicode versions of standard libc functions.

Name: >>34 2010-07-08 20:38

>>35
wchar_t is defined in wchar.h, as >>36 pointed out, and in stdtypes.h.
I was worried I was missing some obvious way of doing Unicode on other platforms, but as usual, it turns out it's you guys who don't know what the fuck you're talking about. I grepped the source of a few common utilities, and it turns out wchar_t is used quite a lot on Linux.

Name: Anonymous 2010-07-08 21:31

>>33
Why would you care about the opinions of foreigners? That's the sort of bullshit that caused UNICODE in the first place!

Name: Anonymous 2010-07-08 21:36

it turns out it's you guys who don't know what the fuck you're talking about
You'are right, this is actually what's happening. No 'jokes' were made ITT.

Name: Anonymous 2010-07-08 21:36

>>38
$ grep -vc "^[a-zA-Z']*$" /usr/share/dict/american-english
226

Name: Anonymous 2010-07-08 21:38

>>39
Yeah, >>24 was clearly kidding in his implication. Fuck you and your attitude towards serious discourse.

Name: Anonymous 2010-07-08 21:40

>>37
from progrider include oblivious, aspergers

Name: Anonymous 2010-07-08 21:44

>>40
* unamerican-english

Name: Anonymous 2010-07-08 21:45

>>41
serious discourse.
Σ(゚Д゚ )

Name: Anonymous 2010-07-09 0:14

OS X could become a serious contender to Windows if Apple completely changed the way they market themselves. Have OS X allow third-party developers to make drivers for their hardware and PC makers like Dell give their customers the option of having their PCs loaded with Windows or OS X. There would no longer be a need for the entire Hackintosh scene anymore, and it would have the potential to really kill Microsoft dominance on the PC.

Sadly, none of this will probably ever happen.

Name: Anonymous 2010-07-09 2:51

>>45
Once you do that, OS X will be as unstable as Windows; probably worse, for the first few years, and that will give it a reputation that will kill it before it gets on its feet.

Name: Anonymous 2010-07-09 3:17

CreateMutexW(L"anus", 0, NULL, NULL, NULL);

Name: Anonymous 2010-07-09 8:04

>>46
Once you do that, OS X will be as unstable as Windows
Not really. And if you think Windows is really unstable, then either you forgot about the dreadful 9x era (Windows 95/98/ME, especially ME.), or haven't used any version of Windows on a daily basis pre-XP.

Name: Anonymous 2010-07-09 8:07

>>48
Yes, because OSX is designed for Apple-produced hardware.

Name: Anonymous 2010-07-09 11:52

>>49
Most of the "hardware" in Apple machines are produced by third parties. OS X has the ability to support much more hardware than it currently does. Maybe during the "beige box" era Apple produced everything inside a Macintosh, but these days, they're pretty much just flash overpriced PCs. Apple excels in software, particularly OS X and gang, also making a killing on other things, iPods, etc. So it should really re-think how it does business home computer wise.

Name: Anonymous 2010-07-09 11:53

>>50
Whoops, flash = flashy.

Name: Anonymous 2010-07-09 13:42

Don't you guys realize that Apple has EOL'd OS X anyway? The desktop is dead. Get with the times.

Name: Anonymous 2010-07-09 13:53

The desktop is dead.
Yeah, and the internet is only a content distribution medium, and flash is a brilliant way to design web sites.

Name: Anonymous 2010-07-09 14:05

so, what we're all wondering is..

Is OP Trippin'?

Name: Anonymous 2010-07-09 14:12

>>52
get with the iTimes
ftfy

>>53
Hey, it's 20TEN. The internet is a passing fad.

Name: Anonymous 2010-07-09 22:59

Name: Anonymous 2010-07-10 0:13

>>55
Game: Blouses.

Name: Anonymous 2010-12-17 1:40

This post brought to you by the Gay Nigger Association of America

Don't change these.
Name: Email:
Entire Thread Thread List