I want to use a VposCOMAPI.dll, written by vs2010, from PB9 or later.
I want to use a VposCOMAPI.dll, written by vs2010, from PB9 or later.
I use the following code:
OLEObject obj
int ret_code, ret_Code2
obj = create OLEObject
String Auth_code, Rsp_code, Rsp_msg
ret_code = obj.ConnectToNewObject("VposCOMAPI.dll")
if ret_code <> 0 then
destroy obj
messagebox("error", "Error !" + string(ret_code))
return
else
obj.apiInit()
obj.CARD_NO="9999111188882222"
obj.MERCHANTID = "0909090909"
obj.executeAuth()
ret_Code2 = obj.AUTH_RETCODE
if ret_Code2 = 0 then
Auth_code = obj.APPROVE_CODE
Rsp_code = obj.RESPONSE_CODE
Rsp_msg = obj.RESPONSE_MSG
messagebox("OK", "OK !")
else
messagebox("error2", "Error2 !")
end if
destroy obj
end if
I got the ret_code “ Errorcode -2 ( Class name not found )”.
Anybody could help me ?
Could I use the VposCOMAPI.dll in this way ?
Thanks !
Jack
PS : The VposCOMAPI.dll works in VS2010
1 Add Reference --> Browse
2 VB sample code
Public Class Form1
Dim ac As New VposCOMAPI.ApiClient
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim retCode As Integer
rspCode.Text = ""
rspMsg.Text = ""
approveCode.Text = ""
txnNo.Text = ""
txnDate.Text = ""
apiResult.Text = ""
ac.setPORT(443)
ac.setLogFile("D:\workTemp\vposApi.log")
ac.setURL("nccnet-vpostest.nccc.com.tw", "/vposMert/servlets/apiControl")
ac.setMERCHANT_ID(merchantId.Text)
ac.setTERMINAL_ID(posId.Text)
ac.setEXPIRE_DATE(expireDate.Text)
ac.setCARD_NO(cardNo.Text)
3 C# sample code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.IO;
using VposCOMAPI;
namespace testCSapi
public partial class Form1 : Form
public Form1() {InitializeComponent();}
private void send_Click(object sender, EventArgs e)
int retCode = 0;
ApiClient ac = new VposCOMAPI.ApiClient();
ac.setURL("nccnet-vpostest.nccc.com.tw", "/vposMert/servlets/apiControl");
ac.setLOGFILE("D:/workTemp/vpos/log/testCSapi.log");
ac.setMERCHANT_ID(merchantId.Text);
ac.setTERMINAL_ID(posId.Text);
ac.setEXPIRE_DATE(expireDate.Text);
ac.setCARD_NO(cardNo.Text);
Hi,
A few things to remember. They must be 32-bit ComVisible or COM Interop registered assemblies.
You need to use the ProgId to connect to; have you checked if they were visible in the browser?
As Jacob mentions,
These have been discussed before by Bruce, particularly in the PowerBuilder Deveopment Center and in other places.
A few more references:
http://scn.sap.com/message/14156871#14156871
http://scn.sap.com/community/developer-center/powerbuilder/blog/2013/02/28/using-net-assemblies-with-powerbuilder
http://scn.sap.com/community/developer-center/powerbuilder/blog/2014/07/19/calling-net-assemblies-from-powerbuilder-classic-win32-via-powershell
http://pbdj.sys-con.com/node/397016
http://pbdj.sys-con.com/node/258395
Ben
Similar Messages
-
Wanting to use Photoshop CS6 to open images directly from iPhoto 11.
Using OSX10.8.2 and iPhoto 11. Just installed Photoshop CS6 and want to open
images directly from iPhoto. Before I installed PS I was not able to edit photos
in iPhoto 11. Nothing happens when I click on ‘edit‘ it is blank.
And now it will not work using Photoshop CS6 either.
From Help Center I have gone to iPhoto/Preferences/ Advanced and chosen Photoshop CS6 to Edit Photos but then cannot find an 'Open' to click? Perhaps this is the problem?
When I select a photo in iPhoto and click the Edit button - nothing happens.
Please advise. GlenysThis may be of help to you:
Using Photoshop or Photoshop Elements as Your Editor of Choice in iPhoto.
1 - select Photoshop or Photoshop Elememts as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
3 - however, if you get the navigation window
that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
NOTE: With Photoshop Elements the Saving File preferences should be configured as shown:
I also suggest the Maximize PSD File Compatabilty be set to Always. In PSE’s General preference pane set the Color Picker to Apple as shown:
Note: to switch between iPhoto and PS or PSE as the editor of choice Control (right)-click on the thumbnail and select either Edit in iPhoto or Edit in External Editor from the contextual menu. If you use iPhoto to edit more than PSE re-select iPhoto in the iPhoto General preference pane. Then iPhoto will be the default editor and you can use the contextual menu to select PSE for your editor when desired.
OT -
I want to use a dynamic schema name in the from clause but its not working.
DECLARE
vblQueryName VARCHAR2(20);
vblSchemaName VARCHAR2(20);
BEGIN
SELECT CurrentSchemaName INTO vblSchemaName FROM HR_989_SCHEMA;
vblQueryName:='060_525_020';
INSERT /*+ APPEND(HP_ELIGIBILITIES,4) */ INTO HP_ELIGIBILITIES
LVL1ID,
LVL1Desc,
LVL2ID,
LVL2Desc,
LVL3ID,
LVL3Desc,
LVL4ID,
LVL4Desc
SELECT /*+ PARALLEL(a,4) */
LVL1ID,
LVL1Desc,
LVL2ID,
LVL2Desc,
LVL3ID,
LVL3Desc,
LVL4ID,
LVL4Desc
FROM
bold vblSchemaName.HP_ELIGIBILITIES a
WHERE
UPPER(LVL2ID) = 'XX' ;
COMMIT;
DBMS_OUTPUT.PUT_LINE( 'Query Executed: ' || vblqueryName);
INSERT INTO HP_QUERYEXECLOG(QueryName) VALUES(vblQueryName);
EXCEPTION WHEN NO_DATA_FOUND THEN NULL;
END;
I want to create a rules table so that the schema name in front of the table name in the from clause can be controlled by a separate table that is maintained but its not working . Help and your valuable inputs needed for this issueI want to use a dynamic schema name in the from clauseyou can alternatively set the current schema as e.g. in:
declare
vblqueryname varchar2 (20);
vblschemaname varchar2 (20);
begin
select currentschemaname into vblschemaname from hr_989_schema;
vblqueryname := '060_525_020';
execute immediate 'alter session set current_schema=' || vblschemaname;
insert /*+ APPEND(HP_ELIGIBILITIES,4) */
into hp_eligibilities (lvl1id,
lvl1desc,
lvl2id,
lvl2desc,
lvl3id,
lvl3desc,
lvl4id,
lvl4desc
select /*+ PARALLEL(a,4) */
lvl1id,
lvl1desc,
lvl2id,
lvl2desc,
lvl3id,
lvl3desc,
lvl4id,
lvl4desc
from hp_eligibilities a
where upper (lvl2id) = 'XX';
commit;
dbms_output.put_line ('Query Executed: ' || vblqueryname);
insert into hp_queryexeclog (queryname)
values (vblqueryname);
exception
when no_data_found
then
null;
end; -
Would like to use the remaining amount on my two gift cards. This application will not allow it. It says that 'the redemption code has already been entered.". Duh! I know that. 8 want to actually use all of the credit on both of them as they were paid for in full.
How do I do that?FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
Phone: 800-275-2273 How to reach a live person: Press 0 four times
Hours of Operation: Mon-Fri: 9am-5pm ET
Email: [email protected]
How to report an issue with Your iTunes Store purchase
http://support.apple.com/kb/HT1933
How to Get a Refund from the App Store
http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
Canceling a Digital Subscription
http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
Cheers, Tom -
Does anyone know of examples using them with LabVIEW? I want to use typedefs like LStrHandle. I also want to use **TD1Hdl, and Variant. I learn from examples.
Take a look at the application notes, tutorials, and examples on these pages:
Using External Code > Integrating DLLs
Using External Code > Code Interface Nodes (CINs)
You may find additional useful information by looking at the lvexcode.pdf file in the manuals subdirectory of your LabVIEW installation folder.
- Elton -
I currently have Dropbox on my Samsung PC to use for picture storage. I no longer want to use Dropbox, and just bought extra storage from I Cloud. When I tried to back up my phone onto the PC, it says the latest backup is incomplete and it won't do anything more to back it up.
1. Can I get rid of Dropbox entirely, and if I do, what happens to the pictures that are in that storage?
2. Why won't the phone back up? It is plugged into my laptop, wifi is on, and the phone is locked?iCloud is not a file storage system (dropbox is)
I don't understand the rest of the post, if you are backing up to iCloud there would not be a cable, are you backing up to iTunes on your PC possible? -
Is there a way to make a specific purchase of an app for my husband's iPad using my credit card? I don't want to "use up all the credit" he has from a gift card.
Thanks.Hello maggielou,
Thanks for using Apple Support Communities.
When making purchases, content credits are used first, followed by Gift Certificate, iTunes Card, or Allowance Account credits; your credit card or PayPal account is then charged for any remaining balance.
For more information on this, take a look at this article:
iTunes Store: How iTunes Store purchases are billed
http://support.apple.com/kb/HT5582
Best of luck,
Mario -
I do not have my gift card and I have points I want to use for purchase
I do not have my gift card and I want to use my points that I have available from where I register my gift card before I lost my gift card.
Not sure I understand your question.
FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
Phone: 800-275-2273 How to reach a live person: Press 0 four times
Hours of Operation: Mon-Fri: 9am-5pm ET
Email: [email protected]
How to report an issue with Your iTunes Store purchase
http://support.apple.com/kb/HT1933
Cheers, Tom -
Method :Want to Use Z-Table for Accessing Data
Dear All,
I am new to BADI. I have implented one HR-PAYROLL Badi.
In this BADI I am having one method . I want to Use One Z-table for accessing data from
that table . Not able define the table in method.
Kindly tell me how to do it .
Thanking you in Advance
SiladityaHello Siladitya
I assume your problem is the definition of an itab for selecting data from your Z-table. In case of classes you have to use table types and workareas, e.g.:
METHOD name_of_interface_method.
DATA:
lt_itab TYPE TABLE OF <name of z-table>,
ls_record TYPE <name of z-table>.
SELECT * FROM <name of z-table> INTO TABLE lt_itab.
LOOP AT lt_itab INTO ls_record.
ENDLOOP.
ENDMETHOD.
Regards
Uwe -
I do not want to use Outlook, how do I change to another?
I am trying to set up icloud, but it has me using Outlook, which I do not want to use.
How do I change way from Outlook?Welcome to Apple Support Communities
I'm Rory, but iCloud Control Panel only allows you to set up iCloud mail, calendar and contacts in Outlook. You can't use calendar and contacts on a different app, but if you want to use mail on a different application, you can set up the account manually > http://support.apple.com/kb/ht4864 The incoming server is “mail.me.com” and the outgoing is “smtp.me.com” -
I want to use a song from Soundtrack in a commercial production.
I want to use a song from Soundtrack in a commercial production. How do I license the song? Who do I contact?
I want to use a dynamic schema name in the from clauseyou can alternatively set the current schema as e.g. in:
declare
vblqueryname varchar2 (20);
vblschemaname varchar2 (20);
begin
select currentschemaname into vblschemaname from hr_989_schema;
vblqueryname := '060_525_020';
execute immediate 'alter session set current_schema=' || vblschemaname;
insert /*+ APPEND(HP_ELIGIBILITIES,4) */
into hp_eligibilities (lvl1id,
lvl1desc,
lvl2id,
lvl2desc,
lvl3id,
lvl3desc,
lvl4id,
lvl4desc
select /*+ PARALLEL(a,4) */
lvl1id,
lvl1desc,
lvl2id,
lvl2desc,
lvl3id,
lvl3desc,
lvl4id,
lvl4desc
from hp_eligibilities a
where upper (lvl2id) = 'XX';
commit;
dbms_output.put_line ('Query Executed: ' || vblqueryname);
insert into hp_queryexeclog (queryname)
values (vblqueryname);
exception
when no_data_found
then
null;
end; -
How to use DLL written in VB in JSP
I have a .dll written in Visual Basic. I want to use that dll in JSP. can anyone tell me is it possible? if yes than how.
please rely with a complete example.
Thanks in advance
LalitI thought JNI required that it be a C++ DLL.
Maybe you could wrap that DLL as a COM object and used a COM bridge to talk to it.
"please rely with a complete example." - I don't have one, but if I did I'd ask you to please reply with a lot of USD. This isn't an on-demand free consultancy, you know. -
Calling a function from a dll written by using visual studio c++
Hi, how can i call a function from a dll which is written by visual studio c++ in test stand? Although the functions in dll are exported and i've chosen c/c++ adapter, i saw no function in test stand. Is there a different step while i'm calling a function from a dll written by c++ than calling a function from a dll written by cvi?
Hey Sadik,
Selecting the C/C++ DLL Adapter Module should be sufficient for this. When you drag an action step for this onto the Main Step and navigate to the location of the DLL, the function list should populate and you should be able to select the function you want to use. If this is not the case, would you be able to post this DLL so that we can test this on our end?
Regards,
Jackie
DAQ Product Marketing Engineer
National Instruments -
I want to use the expression edit control in a VC++ DLL, how?
Good morning,
as mentioned I want to use the expression edit control in my DLL written with VSC++ 2005 MFC. But I ran into some problems:
If I just add the ExpressionEdit control from the toolbar to my dialog then the dialog will not be shown during runtime. As soon as I delete the control the dialog shows up.
In the TS examples is one called 'TCL' (...National Instruments\TestStand 4.1.1\Examples\Tcl\source\EditSubstep). This is programmed in C++ and uses the expression edit control.
The original dll works fine but as soon as I compile the editsubstep with my VS 2005 I get a runtime error (see image).
What do i have to do to be able to use this control?
Has anybody an working example for me?
Cheers Frank
Solved!
Go to Solution.
Attachments:
fehler.JPG 21 KB@juergen: how do I know which lib I am using?
I am using this COM-Control: c:\programme\national Instruments\testStand 4.1.1\bin\exprEdit.dll
@Doug: I created the sequence as you described and used this for debugging to find out where the problem is.
I found out, that the problem must be somewhere here:
dlgcore.cpp
BOOL CWnd::CreateDlgIndirect(LPCDLGTEMPLATE lpDialogTemplate,
CWnd* pParentWnd, HINSTANCE hInst)
Line 314:
hWnd = ::CreateDialogIndirect(hInst, lpDialogTemplate,
pParentWnd->GetSafeHwnd(), AfxDlgProc);
Without the ExpEdit-control hWnd has a Value
with control hWnd is 0.
This is what I found out so far.
Frank -
TNS configuration needs ocijdbc11.dll : I want to use Oracle 10g client
I configured apex-config.xml to use a TNSNAME. I deployed the APEX listener in a standalone OC4J 10.1.3.5.
It asks for ocijdbc11.dll to be in -Djava.library.path.
This means an Oracle 11g client is required. Why isn't it possible to use an Oracle 10g client installation? Is there a way to use an Oracle 10g installation in combination with the OC4J APEX listener?
I do'n't want to use the "thin" methode because this cannot be used in an Oracle RAC environment as far as I know (at least not with failover).Hello,
as far as I know, you can use the thin driver to connect to RAC. If I don't remember this wrong, you should be able to configure the URL like this:
jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=host2) (PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=service)))Just my personal opinion: If you want to use a "fat" client, it shouldn't be too hard to install a 11g client. Of course, this will require additional space on your app server, but I like the thought that Oracle tries to keep the APEX Listener a lightweight application that works pretty good for most scenarios. If you try to make it compatible with every option and every version, this wouldn't stay that way.
-Udo
Maybe you are looking for
-
Anybody know how to print out the calendar in iCloud? I need to have it for tax purposes as all my business appts and travel are on it. Thanks!
-
Have 8i client installed but am unable to connect to the database of 10g version 10.2.0.1.0 (On Solaris 8). Below is the connect string at the client side. T_RGMA = (DESCRIPTION = (ADDRESS= (PROTOCOL=TCP) (HOST=10.9.119.58) (PORT=1521) ) (CONNECT_DAT
-
Help needed on movement of transports between two production systems
Hi All, Our client is implementing SAP in US and Europe and it has separate production systems for both. It already went live in US and now started SAP implementation for Europe. They wanted to leverage the development & configuration done for US
-
Problems with 5800 and maps update.
Thats my problem. Using last firmware and its for long time being this problem. Thanks for answer.
-
HT4859 why isn't my phone giving me the option to restore my backup?
why isn't my phone giving me the option to restore my backup on my new device?