× 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.



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=comcast.net@xxxxxxxxxxxx
[mailto:c400-l-bounces+tim2006=comcast.net@xxxxxxxxxxxx] 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=capgemini.com@xxxxxxxxxxxx
[mailto:c400-l-bounces+joakim.lindbom=capgemini.com@xxxxxxxxxxxx] 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


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.