Click here to Skip to main content
15,892,161 members

Xiangyang Liu 刘向阳 - Professional Profile



Summary

    Blog RSS
3,127
Author
2,569
Authority
17,706
Debator
44
Enquirer
1,120
Organiser
2,050
Participant
0
Editor
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralYour articale about sending a window message to a program running on remote host Pin
DavidR_r18-Jun-04 2:44
DavidR_r18-Jun-04 2:44 
GeneralRe: Your articale about sending a window message to a program running on remote host Pin
Xiangyang Liu 刘向阳18-Jun-04 4:03
Xiangyang Liu 刘向阳18-Jun-04 4:03 
GeneralHow to install XYNTService under an account besides Local System Pin
john.berry23-Jun-04 7:03
john.berry23-Jun-04 7:03 
GeneralRe: How to install XYNTService under an account besides Local System Pin
Xiangyang Liu 刘向阳23-Jun-04 7:48
Xiangyang Liu 刘向阳23-Jun-04 7:48 
GeneralRe: How to install XYNTService under an account besides Local System Pin
john.berry23-Jun-04 8:07
john.berry23-Jun-04 8:07 
GeneralInvokeMethod & PropertyGet vs. DispatchMethod Pin
brafalowski13-Jul-04 16:29
brafalowski13-Jul-04 16:29 
GeneralRe: InvokeMethod & PropertyGet vs. DispatchMethod Pin
Xiangyang Liu 刘向阳13-Jul-04 22:37
Xiangyang Liu 刘向阳13-Jul-04 22:37 
GeneralInvoke Failure Pin
brafalowski16-Jul-04 15:49
brafalowski16-Jul-04 15:49 
Hello Again,
I have a rather strange situation with XYDispDriver. I'm calling from Java into a JNI DLL that instantiates a class that wraps a few more classes that use XYDispDriver class. The DLL has just a few methods. We'll just call them method1 and method2. Here's the classes:
class Application
{
XYDispDriver dispDriver;
Connection* pConnection;

public:
Application(){dispDriver.CreateObject("MyControl")};
Connection* getConnection()
string getPropertyId() // dispDriver.GetProperty("Id");
class Connection
{
XYDispDriver dispDriver;
Session* pSession;

public:
Connection(const XYDispDriver &src);
Session* getSession()
string getPropertyId() // dispDriver.GetProperty("Id");
}
class Session
{
XYDispDriver dispDriver;

public:
Session(const XYDispDriver &src);
string getPropertyId() // dispDriver.GetProperty("Id");
}

The JNI DLL looks like this:

//Global declarations
Application* pAppl;
Connection* pConnection;
Session* pSession;

JNIEXPORT ... method1()
{
pAppl = new Application();
pConnection = pAppl.getConnection();
pSession = pConnection.getSession();

cout << pAppl->getPropertyId() << endl;
cout << pConnection ->getPropertyId() << endl;
cout << pSession ->getPropertyId() << endl;
}
JNIEXPORT ... method2()
{
cout << "Application " << pAppl->getPropertyId() << endl;
cout << "Connection " << pConnection ->getPropertyId() << endl;
cout << Session " << pSession ->getPropertyId() << endl;
}

So .. Java calls method1 and everything works fine and I can call all the methods and properties asociated. Then I exist back to Java and call method2. Both pAppl->getPropertyId() and pSession ->getPropertyId() execute fine. However, when I call pSession ->getPropertyId() XYDipDriver is failing on the Invoke of the dispDriver.GetProperty("Id") call. I have no idea why this is happending? Any idea? I checked all addresses and even looked at the information in XYDispInfo instance which still had the"Id" method listed with a valid index. Why would Invoke fail?

Output looks like this:
Application ID=/app
Connection ID=/app/con[0]
Invoke failed, no exception: 800401fd

To make matters even more tricky, I take the JNIEXPORT DLL and remove the JNI types and create an identical DLL which I call from a C++ console application. The Invoke works every time!!

Can you shed any light on why the Invoke might be failing when I call from Java through JNI?

Thanks,
Brian
GeneralRe: Invoke Failure Pin
brafalowski17-Jul-04 7:15
brafalowski17-Jul-04 7:15 
GeneralASP running as a service! Pin
n30n19-Jul-04 7:10
n30n19-Jul-04 7:10 
GeneralRe: ASP running as a service! Pin
Xiangyang Liu 刘向阳19-Jul-04 7:12
Xiangyang Liu 刘向阳19-Jul-04 7:12 
GeneralRe: New Topic Pin
dalaroseyeah30-Apr-04 1:42
dalaroseyeah30-Apr-04 1:42 
GeneralRe: New Topic Pin
Xiangyang Liu 刘向阳30-Apr-04 1:51
Xiangyang Liu 刘向阳30-Apr-04 1:51 
GeneralXYDispDriver Return Types Pin
brafalowski26-Apr-04 2:15
brafalowski26-Apr-04 2:15 
GeneralRe: XYDispDriver Return Types Pin
Xiangyang Liu 刘向阳26-Apr-04 2:47
Xiangyang Liu 刘向阳26-Apr-04 2:47 
GeneralRe: XYDispDriver Return Types Pin
brafalowski26-Apr-04 2:56
brafalowski26-Apr-04 2:56 
GeneralRe: XYDispDriver Return Types Pin
brafalowski26-Apr-04 3:16
brafalowski26-Apr-04 3:16 
GeneralRe: XYDispDriver Return Types Pin
Xiangyang Liu 刘向阳26-Apr-04 3:23
Xiangyang Liu 刘向阳26-Apr-04 3:23 
GeneralVBThread Pin
terryhutt1959@hotmail.com16-Mar-04 7:07
terryhutt1959@hotmail.com16-Mar-04 7:07 
GeneralRe: VBThread Pin
terryhutt1959@hotmail.com16-Mar-04 7:32
terryhutt1959@hotmail.com16-Mar-04 7:32 
GeneralRe: VBThread Pin
Xiangyang Liu 刘向阳16-Mar-04 8:41
Xiangyang Liu 刘向阳16-Mar-04 8:41 
GeneralConnection string Pin
dodgemaster29-Dec-03 2:45
dodgemaster29-Dec-03 2:45 
GeneralRe: Connection string Pin
Xiangyang Liu 刘向阳2-Jan-04 4:29
Xiangyang Liu 刘向阳2-Jan-04 4:29 
GeneralRe: Connection string Pin
dodgemaster4-Jan-04 19:20
dodgemaster4-Jan-04 19:20 
GeneralHow can I receive the event Pin
chaocai16-Dec-03 14:50
chaocai16-Dec-03 14:50 

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.