× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Just curious as what the user's job is who will be initiating the dialing.

I've been near this sort of stuff for 2 decades and the simple question "I
just want to dial a number" is almost never what user really needs in the
end.

My question does beg a question of its own and that is "Am I
over-engineering why you want to do this?" [smile]

Steve Moland
Access Paths Inc
12 Parmenter Rd Unit C4
Londonderry NH 03053
603 845-0190 Ext 2
steve@xxxxxxxxxxx

"tim" <tim2006@xxxxxxxxxxx> wrote in message
news:000701c7d9cf$ed8b8570$6c00000a@xxxxxxxxx
Joakim,

I am executing the command using STRPCO/STRPCCMD as

STRPCO PCTA(*NO)
MONMSG IWS4010

CHGVAR &CMD VALUE('c:\dialer.exe' *bcat &ph)
STRPCCMD PCCMD(&cmd) PAUSE(*no)

I then use the &PH parm to dial the number using AYAVA Tapi driver.



-----Original Message-----
From:
c400-l-bounces+tim2006@àãÖ?OPÿ]
[mailto:c400-l-bounces+tim2006@àãÖ?OPÿ]
On Behalf Of
Lindbom, Joakim
Sent: Wednesday, August 08, 2007 10:18 AM
To: C programming iSeries / AS400
Subject: Re: [C400-L] command line argument conversion question


OK, let's take one step back. How have you connected the applications?
What means of link and communications are you using for the two programs
to communicate?


/Joakim

-----Original Message-----
From:
c400-l-bounces+joakim.lindbom@?¾%'?¤ðÚ
[mailto:c400-l-bounces+joakim.lindbom@?¾%'?¤ðÚ
On
Behalf Of tim
Sent: den 4 augusti 2007 03:23
To: c400-l@xxxxxxxxxxxx
Subject: [C400-L] command line argument conversion question

Hello,



I am writing my first C application which will be used to initiate a
phone
call from my iseries application to a c++ pgm on the users pc. I want to
pass the phone number as a command argument, then pass that argument to
the
dialer. My code is as follows:



int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR
lpCmdLine,
int nCmdShow ) {



WCHAR szAddressToCall[] = L"201";

if ( S_OK == MakeCall(szAddressToCall) )





Right now, I have cardcoded 201 as the number to dial. I would like to
pass
lpCmdLine. I have no idea how to cast a LPSTR to a WCHAR.



Any help would be wonderful as I learn this new language.



Thanks

--
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.



Capgemini Sverige AB, Registered office: Stockholm, Reg.No. 556092-3053

This message contains information that may be privileged or confidential
and
is the property of the Capgemini Group. It is intended only for the person
to whom it is addressed. If you are not the intended recipient, you are
not
authorized to read, print, retain, copy, disseminate, distribute, or use
this message or any part thereof. If you receive this message in error,
please notify the sender immediately and delete all copies of this
message.


--
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.


--
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.