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



Try this.
http://www.codeproject.com/string/tconvert.asp

God I hate C++ type casting. =)



On 8/4/07, tim <tim2006@xxxxxxxxxxx> wrote:

Hello,



I know this is off topic, but thought I would ask anyway.





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 RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.