ATL / WTL / STL
|
|
 |

|
If you are writing code for windows NT and not for Win9x and its friends then forget about the A version of your program and simply stop maintaining it. This results in much less trouble for programmers, cleaner easier to read code. Actually WinNT uses utf16 internally so all A functions are just functions that do string conversions before and/or after calling a W version. Win9x is almost dead and the same is true for the A version of programs that is simply a heritage from old times.
|
|
|
|

|
You have a good point. My problem (and notice my phrasing) is that I dislike unicode. All the various option make dealing with it an absolute pain.
If you (you in the general sense) want to use computers, then it is time to exit the hieroglyphics epoch and move into the age of alphabets. If you cannot fit your character set into 256 limit then, in my not so humble opinion, you do not have an alphabet.
Yeah, I know I may be in the minority, and no, this is not intended as the start of a flame war. Just my opinion.
I have spent "WAY" too much time trying to figure out the syntax of dealing with unicode. And finally, I work in the military world and my code will never ever be used in the world of hieroglyphs. Straight up ASCII is much easier to deal with.
Thanks for your time
|
|
|
|

|
You have to deal with unicode if you make applications to sell worldwide. 256 characters isnt enough for example for chinese character sets (maybe for simplified chinese) and china is a big market. Unicode isnt so painful if you use utf8 that is more natural to use in C/C++ program because you can write "string" instead of L"string" and you have to convert from utf8 to utf16 only when you call winNT api. Thats what I usually do and this way your program becomes easy to port to other platforms too (linux, mac, ...).
|
|
|
|

|
Review all the macros available to help with unicode/non-unicode compilations from MFC:
What are TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR (etc.)?[^]
If you don't want to use MFC, you can always make your own macros to do the same thing... they're all relatively straight forward.
|
|
|
|

|
I try to create MDB file with the MDW file from x64 bit application in x64 machine.
the API "SQLConfigDataSource" fails while compiling my code for 32 bit architechture works fine.
_bstr_t bstrAttribute = "CREATE_SYSDB=\"" + bstrPathMDW + "\"";
BOOL bResult = SQLConfigDataSource(NULL, ODBC_ADD_SYS_DSN, L"Microsoft Access Driver (*.mdb)", bstrAttribute))
{...
}
So the problem appears when i compile my code for x64 bit architechture.
Please any help its so urgent.
|
|
|
|

|
khaliloenit wrote: So the problem appears when i compile my code for x64 bit architechture. Please explain what problem; we cannot see your screen, nor guess what you may be doing.
One of these days I'm going to think of a really clever signature.
|
|
|
|

|
The problem is not related to compilation error.
The compilation is Ok.But when i run my code the API above fails.
The question is what is the reason for its fails from x64 architecture application on x64 machine.
NB: I work with mdb files
|
|
|
|

|
khaliloenit wrote: when i run my code the API above fails. Well, as I said, we cannot see your screen so we have no idea what may be happening.
One of these days I'm going to think of a really clever signature.
|
|
|
|

|
Hello All,
I have a CAB file which has a COM DLL and .INF file. My application is embedding this component in a JSP page and it is working fine in IE7 & IE8 but failed to work on IE9.
Any suggestion on how to solve this issue
|
|
|
|

|
Where can I get books on ActiveX and COM. I started with an ActiveX book (ATL) and it began by stating I must know COM. I wound up with Dale Rogerson's "Inside Com" Its on Amazon but no soft copy. I don't want any more hard copy books. Every where I find a PDF or ebook version they want me to first down load their downloader. Their code could have anything in it so: No! to that. So: What books do you recommend to a novice that needs to write an ActiveX component. The container is a commercial product and I need to write a video display for some very custom video input. I am happy to pay, but it must be a soft copy. Thanks for your time EDIT: Another book I need: Win APIs. The APIs and method that are needed to directly use TPC/IP. I want the ability to bypass all the cycle stealing intermediate classes and go directly to the API. I am having a difficult time with my searches on this and prefer a book that someone recommends rather than a stab in the dark.
-- modified 2 Jan '13 - 10:38.
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin