Home > database >  Minghua function under PB10.5 is invalid for superior
Minghua function under PB10.5 is invalid for superior

Time:10-01

Shenzhen Ming hua 4442 chip IC CARDS of the same program running under PB9 but has been under the PB10.5 tip: MessageBox (' system ', 'password error check! ', stopsign!) For how to solve!

CodePudding user response:

API function? Have this definition? ; Ansi

CodePudding user response:

External statement function, need to pay attention to

CodePudding user response:


The Function Int csc_4442 (Long dev, Int Length, Ref String ata_buffer) Library "Mwic_32. DLL" Alias FOR "csc_4442; Ansi
"
But I still can't

CodePudding user response:

Pb10.5 default are unicode characters, so when you are in the calling function to call the corresponding function of unicode

CodePudding user response:

Thanks for the zeal of each friend. Thank you!
The problem they met last year, I also made many attempts as you proposed, but still no progress.
Hope you continue to pay attention to this problem, we do it together, to help more friends to solve difficult, ha ha.

CodePudding user response:

For example,
This method is called before pb9
The Function Boolean getxxx (string dwContext) Library "XXX. DLL" Alias for "getxxxA
"
After the pb10
The Function Boolean getxxx (string dwContext) Library "XXX. DLL" Alias for "getxxxW
"
Because of the character set is different, so called, the main difference here
A, W

CodePudding user response:

Definition: to
The Function Int csc_4442 (Long dev, Int Length, ref blob ata_buffer) Library "Mwic_32. DLL" Alias FOR "csc_4442; Ansi
"Call before
Blob somevar
Somevar=blob (your original string, encodingansi!)
Use somevar function variables

CodePudding user response:

Tell you the most effective way, in the pb9 prepared after upgrading to pb10 directly, or pb11, then watch his code change, direct copy the past good, that's what I do, earlier I N much time wasted. Ha ha. Really bad we in communication.

CodePudding user response:

The brothers into upstairs? Also let people live? I the amount of code that has more than 100 m, I cry...

CodePudding user response:

Pb9 is ANSI, pb10.5/11 is unicode

CodePudding user response:

Sybase is an irresponsible man, didn't he make upgrade

CodePudding user response:

Need to modify the DLL, I have been solved,

CodePudding user response:

refer to the eighth floor peixun response:
tell you the most effective way, in the pb9 prepared after upgrading to pb10 directly, or pb11, then watch his code change, direct copy the past good, that's what I do, earlier I N much time wasted. Ha ha. Really bad we in communication.


So no use, can not solve the problem

I have already solved

CodePudding user response:

We also met the same problem, is mainly a asc_hex and hex_asc through PB11 cannot pair after the call, cause the failure of password check, could you tell me how to get upstairs, teach teach

CodePudding user response:

up

CodePudding user response:

Modify the DLL to solve it

CodePudding user response:

references 9 f K1933 response:
upstairs brother into this? Also let people live? I the amount of code that has more than 100 m, I cry...


100 m? A little exaggeration

CodePudding user response:

This modified DLL? Thank you very much!

CodePudding user response:

Mwic_32. DLL can be sent to me? Thank you very much! [email protected] thank you! I'm doing pb10.5 minghua IC card read not understand!

CodePudding user response:

Mwic_32. DLL can be sent to me! Thank you very much! IC card [email protected] pb10.5 Ming China

CodePudding user response:

Can actually write a conversion DLL,

Because you know how to call DLL, today, so that you can only this parameter to him rewrite.
Depending on the type of order parameter and you call, you write a DLL in VC, contains only one function is ok.
According to ANSI method in VC (i.e., the original method call DLL) of minghua call, get data, converted to UNICODE, again as the new function of VC return values for PB calls, you can normal use.

When used, the VC DLL in PB registration:
The Function Boolean getxxx_new (string dwContext) Library "vc. DLL" Alias for "getxxxW
"
Then, how do you used to call DLL that function of Ming China, just call the function of VC, other functions or normal call DLL, today don't have to change. Only ANSI turn UNICODE problem. This method is very useful.

CodePudding user response:

Principle is very simple, minghua DLL in ANSI mode can get correct data.

Then I can use VC to call it the function and according to the ANSI way, of course, also like to get the right result. And then in the VC can the correct result to UNICODE. Namely wide character. Can through the MultiByteToWideChar function transformation, for example:
Char * szProgID="my Chinese program name";
WCHAR szWideProgID [128].
Long lLen=MultiByteToWideChar (CP_ACP, 0, szProgID, strlen (szProgID), szWideProgID, sizeof (szWideProgID));
SzWideProgID [lLen]='\ 0';

Can also be accomplished by A2W macros.

CodePudding user response:

If you need, can contact me QQ: 30101, I'll transfer you.
  • Related