Search found 36 matches: lpwstr

Searched query: lpwstr

by nageswaragunupudi
Wed Aug 30, 2023 6:08 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Listview Unicode for CLASS TGrid()
Replies: 7
Views: 944

Re: Listview Unicode for CLASS TGrid()

i guess it is while i have not use fw_parWide() / LPWSTR but LPTSTR
Yes.
If you like we can make the modifications.
by Jimmy
Wed Aug 30, 2023 1:14 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Listview Unicode for CLASS TGrid()
Replies: 7
Views: 944

Listview Unicode for CLASS TGrid()

hi,

i have found in c:\fwh\source\winapi\listview.c what was change for Unicode

LPWSTR pWide = fw_parWide( 3 );

// lvi.pszText = ( LPTSTR ) hb_parc( 3 );
lvi.pszText = pWide;
Question : is fw_parWide() the same as AnsiToWide() :?:

---

i have now include
#define UNICODE // Made Unicode ...
by Jimmy
Wed Jan 04, 2023 5:33 pm
Forum: FiveWin for Harbour/xHarbour
Topic: CLASS TGrid() for FiveWin
Replies: 28
Views: 7621

Re: CLASS TGrid() for FiveWin

hi Antonio,
At the top of your C code place this line:
LPWSTR AnsiToWide( LPSTR cAnsi );
thx for Answer.

still got Warning
Warning W8075 .\\HB_FUNC.PRG 1092: Suspicious pointer conversion in function HB_FUN_SETGRIDQUERYDATA

but i have to use
#define UNICODE
to use Unicode Version so how to ...
by Antonio Linares
Wed Jan 04, 2023 6:59 am
Forum: FiveWin for Harbour/xHarbour
Topic: CLASS TGrid() for FiveWin
Replies: 28
Views: 7621

Re: CLASS TGrid() for FiveWin

Dear Jimmy,

At the top of your C code place this line:

LPWSTR AnsiToWide( LPSTR cAnsi );
by mastintin
Sat Feb 04, 2017 10:14 am
Forum: FiveWin for Harbour/xHarbour
Topic: FWSavePreviewToPDF 32-bit vs. 64-bit
Replies: 24
Views: 7158

Re: FWSavePreviewToPDF 32-bit vs. 64-bit

... a jpeg file.

for some reason the file created by DDIPLUSEMFTOJPG contains a file extension of JPEG followed by Chinese-looking characters.

LPWSTR filefin = ( LPWSTR ) hb_parc( 3 );
CLSID cClsid ;

CLSIDFromString( L"{557CF401-1A04-11D3-9A73-0000F81EF32E}" , &cClsid ) ;
newImage->Save ...
by nageswaragunupudi
Fri Feb 03, 2017 6:49 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FWSavePreviewToPDF 32-bit vs. 64-bit
Replies: 24
Views: 7158

Re: FWSavePreviewToPDF 32-bit vs. 64-bit

... a jpeg file.

for some reason the file created by DDIPLUSEMFTOJPG contains a file extension of JPEG followed by Chinese-looking characters.

LPWSTR filefin = ( LPWSTR ) hb_parc( 3 );
CLSID cClsid ;

CLSIDFromString( L"{557CF401-1A04-11D3-9A73-0000F81EF32E}" , &cClsid ) ;
newImage->Save ...
by don lowenstein
Fri Feb 03, 2017 5:57 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FWSavePreviewToPDF 32-bit vs. 64-bit
Replies: 24
Views: 7158

Re: FWSavePreviewToPDF 32-bit vs. 64-bit

... a jpeg file.

for some reason the file created by DDIPLUSEMFTOJPG contains a file extension of JPEG followed by Chinese-looking characters.

LPWSTR filefin = ( LPWSTR ) hb_parc( 3 );
CLSID cClsid ;

CLSIDFromString( L"{557CF401-1A04-11D3-9A73-0000F81EF32E}" , &cClsid ) ;
newImage->Save ...
by Antonio Linares
Wed Dec 02, 2015 7:06 pm
Forum: FiveWin para Pocket PC
Topic: GPF en FWPPC 2015 (Solucionado)
Replies: 7
Views: 4274

Re: GPF en FWPPC 2015 (Solucionado)

Porque no llamamos a GetCurrentDirectory() en modo unicode

LPWSTR es un puntero a una cadena unicode

LPSTR es un puntero a una cadena tradicional
by jmartial
Wed Dec 02, 2015 12:17 pm
Forum: FiveWin para Pocket PC
Topic: GPF en FWPPC 2015 (Solucionado)
Replies: 7
Views: 4274

Re: GPF en FWPPC 2015 (Solucionado)

Antonio,

En la definición de la función ponía LPWSTR buffer

¿Por qué lo has cambiado por LPSTR ?


Por curiosidad.
by mastintin
Fri Oct 23, 2015 12:57 pm
Forum: FiveWin for Harbour/xHarbour
Topic: To save an image
Replies: 52
Views: 9383

Re: To save an image

... hImg, ANSITOWIDE( cDstFile ), ANSITOWIDE( cId ) )


EMG

Enrico, GDIPLUSIMAGESAVE function transform asitowide in your code ... is not necessary ansitowide functions

std::string str = hb_parc(2) ;
std::wstring wstr (str.begin(), str.end());
LPWSTR file = (LPWSTR) wstr.c_str();

by Antonio Linares
Thu May 24, 2012 6:43 pm
Forum: FiveWin for Pocket PC
Topic: DLL
Replies: 59
Views: 110794

Re: DLL

Kok,

I forgot to include this declaration at the header:

LPSTR WideToAnsi( LPWSTR );
by Antonio Linares
Thu May 24, 2012 2:55 pm
Forum: FiveWin for Pocket PC
Topic: DLL
Replies: 59
Views: 110794

Re: DLL

#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>

LONG GetReaderInfo( LPWSTR ,LPWSTR ,LPWSTR ,LPWSTR ,LPWSTR ) ;

LPWSTR AnsiToWide( LPSTR );

HB_FUNC( GETREADERINFO )
{
LPWSTR ComAdr = AnsiToWide( (char *) hb_parc( 1 ) );
LPWSTR VersionInfo = AnsiToWide( (char *) hb_parc( 2 ) );
LPWSTR ...
by ADutheil
Fri Nov 11, 2011 11:39 am
Forum: FiveWin for Harbour/xHarbour
Topic: Test for a .Pdf reader
Replies: 11
Views: 3831

Re: Test for a .Pdf reader

... parnl( 1 );
HKEY hResult;

#ifndef UNICODE
hb_retnl( RegOpenKey( hKey, hb_parc( 2 ), &hResult ) );
hb_stornl( ( LONG ) hResult, 3 );
#else
LPWSTR pW = AnsiToWide( hb_parc( 2 ) );
hb_retnl( RegOpenKeyEx( hKey, pW, 0, ( REGSAM ) hb_parnl( 3 ), &hResult ) );
hb_stornl( ( LONG ) hResult, 3 ...
by Julio Perez
Thu Jan 28, 2010 3:33 pm
Forum: FiveWin para Pocket PC
Topic: Ayuda Por Favor
Replies: 6
Views: 2224

Re: Ayuda Por Favor

... INTERNETCLOSEHANDLE( hInternet )

RETURN NIL


#pragma BEGINDUMP

#include "windows.h"
#include "wininet.h"
#include "hbapi.h"


LPWSTR AnsiToWide( LPSTR );


HB_FUNC( INTERNETOPEN )
{
LPWSTR cAgent = AnsiToWide( hb_parc( 1 ) );
LPWSTR cProxyName = AnsiToWide( hb_parc( 3 ...
by anserkk
Thu Sep 17, 2009 10:14 am
Forum: FiveWin for Harbour/xHarbour
Topic: High contrast screen for non blind user - Antonio ?
Replies: 9
Views: 2984

Re: High contrast screen for non blind user - Antonio ?

... cbSize As UInteger
Public dwFlags As UInteger
<System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPWStr)> _
Public lpszDefaultScheme As String
End Structure
<System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint ...