473,320 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

"W" version does not work but "A" version does

I have a couple of instances where using "Auto" did not work so I tried the
"A" version of the DLL and it works.
Tried the "W" version and it doesn't.
Anyone have any idea why that might happen?
It is true that with XP Auto uses the "W" version is it not?
Thanks
Nov 17 '05 #1
6 1952

" **Developer**" <RE*************@a-znet.com> wrote in message
news:eC**************@TK2MSFTNGP14.phx.gbl...
I have a couple of instances where using "Auto" did not work so I tried the
"A" version of the DLL and it works.
Tried the "W" version and it doesn't.
Anyone have any idea why that might happen?
It is true that with XP Auto uses the "W" version is it not?
Thanks


Please be more specific, what exactly doesn't work?
Which API are you calling, how does it's signature looks like, how did you
declare it and how was it compiled?

Willy.

Nov 17 '05 #2
OK. It'll take a while. Maybe I can put one into an example.

Looking through my files I not find these, which suggest to me I found these
did not work until I changed to "A"

SHGetFileInfoA

OpenPrinterA

GetPrinterA

DocumentPropertiesA

SetPrinterA

As I remember it, the SetPrinter just didn't change the values with Auto.

The SHGetFileInfoA I just found out did not return the vales of Type and
Name with Auto

So do you know of any situation at all where it is necessary to was the "A"
version?

Thanks

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...

" **Developer**" <RE*************@a-znet.com> wrote in message
news:eC**************@TK2MSFTNGP14.phx.gbl...
I have a couple of instances where using "Auto" did not work so I tried
the "A" version of the DLL and it works.
Tried the "W" version and it doesn't.
Anyone have any idea why that might happen?
It is true that with XP Auto uses the "W" version is it not?
Thanks


Please be more specific, what exactly doesn't work?
Which API are you calling, how does it's signature looks like, how did you
declare it and how was it compiled?

Willy.

Nov 17 '05 #3
I see these are all Win32 API's, what OS are you running this on?
NT4 and higher all have both ANSI and UNICODE versions of these API's, so it
should work with Auto.

Willy.
" **Developer**" <RE*************@a-znet.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
OK. It'll take a while. Maybe I can put one into an example.

Looking through my files I not find these, which suggest to me I found
these did not work until I changed to "A"

SHGetFileInfoA

OpenPrinterA

GetPrinterA

DocumentPropertiesA

SetPrinterA

As I remember it, the SetPrinter just didn't change the values with Auto.

The SHGetFileInfoA I just found out did not return the vales of Type and
Name with Auto

So do you know of any situation at all where it is necessary to was the
"A" version?

Thanks

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...

" **Developer**" <RE*************@a-znet.com> wrote in message
news:eC**************@TK2MSFTNGP14.phx.gbl...
I have a couple of instances where using "Auto" did not work so I tried
the "A" version of the DLL and it works.
Tried the "W" version and it doesn't.
Anyone have any idea why that might happen?
It is true that with XP Auto uses the "W" version is it not?
Thanks


Please be more specific, what exactly doesn't work?
Which API are you calling, how does it's signature looks like, how did
you declare it and how was it compiled?

Willy.


Nov 17 '05 #4
Inline
Willy.

" **Developer**" <RE*************@a-znet.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
OK. It'll take a while. Maybe I can put one into an example.
The SHGetFileInfoA I just found out did not return the vales of Type and
Name with Auto
Please post your code or a repro case, guess your structure definitions are
wrong, normaly you should never explicitely call a W or A version.

So do you know of any situation at all where it is necessary to was the
"A" version?


Nov 17 '05 #5
Thanks, It'll take a while to collect anything that's meaningful and short.
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Inline
Willy.

" **Developer**" <RE*************@a-znet.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
OK. It'll take a while. Maybe I can put one into an example.

The SHGetFileInfoA I just found out did not return the vales of Type and
Name with Auto

Please post your code or a repro case, guess your structure definitions
are wrong, normaly you should never explicitely call a W or A version.

So do you know of any situation at all where it is necessary to was the
"A" version?

Nov 17 '05 #6
I see now why the "A" version worked:
The default enumeration member for C# and Visual Basic is CharSet.Ansi

I needed to change the structure to CharSet.Auto
Then I believe both the structure and function expects/generates Unicode for
XP
Thanks, this is something that's been bothering me for a long while.

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Inline
Willy.

" **Developer**" <RE*************@a-znet.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
OK. It'll take a while. Maybe I can put one into an example.

The SHGetFileInfoA I just found out did not return the vales of Type and
Name with Auto

Please post your code or a repro case, guess your structure definitions
are wrong, normaly you should never explicitely call a W or A version.

So do you know of any situation at all where it is necessary to was the
"A" version?

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: monkey | last post by:
I just learn to make a blank windows frame with python and wxpython. I found the statment "import wx" cannot work as the original "from wxPython.wx import *". I see in the readme file of wxpython...
2
by: David | last post by:
My email application was working a couple of weeks ago, then all of a sudden I get Error Type: (0x8009000F) Object already exists. I checked the permissions on the machinekeys directory...
2
by: David Graham | last post by:
I looked in this newsgroup and I could not find a similiar post. My issue is I have a javascript function. function subImageWaitNav(value0,value1, value2) { value0.src = preLoadImageWait.src; ...
0
by: John Phelan | last post by:
It use to work. I created numerous coppies of my MS Access2003 developed application for distribution using both the new "Startup" and "Package and Deployment" wizards (that incudes "autorun"...
3
by: baumann | last post by:
hi all, i could not understand the "unnecessary" pointer comparison. /* 207 * min()/max() macros that also do 208 * strict type-checking.. See the 209 * "unnecessary" pointer comparison....
8
by: mdh | last post by:
May I ask this. Given the declaration: int myf( int, int); and a function pointer: (*fp)=int myf(int, int); where I am initializing fp to point at myf....or trying to..
12
by: Ed | last post by:
Hi All, The sample code below doesn't work, but if you take out the Question Mark character, "?" in front of the value "Print" of the "action" attribute, it does work! Does anyone here know...
4
by: Wayne | last post by:
I have an Office 2003 database with custom menu bars that work fine under Access 2007 with the following exception. The Officelinks menu item, "Analyze it with Microsoft Office Excel" is grey out...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.