Re: PeopleCode call to win32.dll library


[ Follow Ups ] [ Post Followup ] [ Message Board ]

Posted by [IP Address: 206.71.109.45] 'Phil McCraqkin' on August 22, 2001 at 22:28:42 EST:

In Reply to: PeopleCode call to win32.dll library posted by [IP Address: 206.71.109.45] 'Michael Mitlitsky' on August 22, 2001 at 19:11:33 EST:

I believe you mean the 'user32.dll' which is found in the Windows\system32 directory. In the case of that function the FindWindowsA function and related alias of FindWindows requires a NullString to be passed as a parameter. PeopleSoft represents this as double quotes. Most VB applications will call the external libraries using a vbNullString. This, according to the documentation, is NOT the same as the "". I haven't gotten it to work myself, but figure this is part of the clue.

: I am running Tools 7.5 and am accessing Excel via the delivered CreateObject, ObjectDoMethod etc PeopleCode functions. I wrote code to detect if Excel is already running by calling an external function in the win32.dll library, FindWindowA. I declared it with an alias of FindWindow. I give the method, "XLMain" as the first arg and "" as the second. Although there is no errors, the FindWindow does not return a true value even through Excel is running. I believe it has something to do with the strings I am passing to the C function in win32.dll. Does anyone know anything about this?
: Thanks
: Michael




Follow Ups:



Post a Followup


Name:
E-Mail:
Subject:

Message:


[ Follow Ups ] [ Post Followup ] [ Message Board ]