Search found 34 matches: wchar

Return to advanced search

Re: returning a wchar_t variable back to harbour function

Yes, Mr. Rao, it does work.

I followed the header file down into getfile.c and saw how it is being done and why it works. It is a good learning experience for me.

Thank you very much,
by reinaldocrespo
Wed May 24, 2023 8:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: returning a wchar_t variable back to harbour function
Replies: 4
Views: 270

Re: returning a wchar_t variable back to harbour function

Even in this case
Code: Select all  Expand view
fw_retWide( cMsg )

will work, as long as we are working with Windows OS.
Please try.
You need to include "<fwh.h>"
Or please give me some sample that we can try at our end to test.
by nageswaragunupudi
Wed May 24, 2023 1:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: returning a wchar_t variable back to harbour function
Replies: 4
Views: 270

Re: returning a wchar_t variable back to harbour function

Hello Mr. Rao and everyone else; Your information is valuable to me but this is a different situation. I'm sorry I should have been more specific. I'm trying to return a c wchar_t variable type from a VM Harbour wrapper c function back to the calling Harbour (clipper) code. HB_FUNC( OCRFROMFILEU...
by reinaldocrespo
Wed May 24, 2023 12:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: returning a wchar_t variable back to harbour function
Replies: 4
Views: 270

Re: returning a wchar_t variable back to harbour function

This is how FWH returns Wide Strings.

Code: Select all  Expand view
//also include
#include <fwh.h>  // fwh\include folder
//
LPWSTR cWideStr;
//
//
fw_retWide( cWideStr );
//
 
by nageswaragunupudi
Wed May 24, 2023 3:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: returning a wchar_t variable back to harbour function
Replies: 4
Views: 270

returning a wchar_t variable back to harbour function

Hello everyone! Inside a harbour wrapper function I need to declared a variable as wchar_t or HB_WCHAR but I don't know how to return that variable back to calling harbour function. I tried using hb_retc as with any other string but that won't return wide strings. Is there another vm return function...
by reinaldocrespo
Wed May 24, 2023 12:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: returning a wchar_t variable back to harbour function
Replies: 4
Views: 270

Volviendo a programar con Fivewin

Despues de alejarme de la programaciòn hace màs de una dècada (y haber utilizado, en ese entonces, el FWH2.4, que ya no lo tengo y utilizar xHarbour y Clipper 5.3b, tengo la inquietud de pasar las aplicaciones a harbour. Sin embargo; ando de "tumbo en tumbo" sin poder compilar y crear una ...
by Armando Picon
Wed Apr 03, 2019 6:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Volviendo a programar con Fivewin
Replies: 5
Views: 1143

Error al compilar con xHarbour123 + BCC582 [SOLUCIONADO]

Hola Gente; Cual es el problema?, me arroja estos errores --------------------Configuración: ca32b - Debug-------------------- xHarbour 1.2.3 Intl. (SimpLex) (Build 20170902) Copyright 1999-2017, http://www.xharbour.org http://www.harbour-project.org/ Borland C++ 5.82 for Win32 Copyright (c) 1993, 2...
by MarioG
Fri Nov 17, 2017 12:20 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al compilar con xHarbour123 + BCC582 [SOLUCIONADO]
Replies: 1
Views: 882

Re: C wrapper help

... me know. typedef struct _SMSPROVIDERW { INT nProviderId; INT nCountryCode; INT nRegionCode; INT nMessageLength; DWORD dwFlags; DWORD dwReserved; WCHAR szGuid[SMS_MAXPROVIDERGUIDLEN]; WCHAR szName[SMS_MAXPROVIDERNAMELEN]; WCHAR szCompany[SMS_MAXCOMPANYNAMELEN]; WCHAR szDomain[SMS_MAXDOMAINNAMELEN]; ...
by Randal
Tue Oct 18, 2016 5:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: C wrapper help
Replies: 16
Views: 3272

Re: Preview of a file

error in compilation line 31 IPreviewHandler* GetIPreviewHandler(const wchar_t* cExtension) Progetto: test, Ambiente: xFive_Pelles: [1]:Harbour.Exe test.prg /m /n0 /gc1 /es2 /iC:\Work\fwh\include /ic:\work\xHarbour\Include /jC:\Work\Errori\PREVIE~1\I18n\Main.hil /iinclude;c:\work\fwh\include;c:\work...
by Silvio.Falconi
Tue Jun 16, 2015 5:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Preview of a file
Replies: 43
Views: 20246

Re: Checkbox text disappears Harbour/MSVC

Tim, C/C++ /GS /analyze- /W3 /Zc:wchar_t /ZI /Gm /Od /Fd"Debug\vc120.pdb" /fp:precise /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /errorReport:prompt /WX- /Zc:forScope /RTC1 /Gd /Oy- /MDd /Fa"Debug\" /EHsc /nol...
by Antonio Linares
Sat Feb 28, 2015 6:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Checkbox text disappears Harbour/MSVC
Replies: 35
Views: 7315

Re: Correct way to call an external DLL?

Antonio... Mirando algunas soluciones para mi problema, encontre esto std::string ConvertWCSToMBS(const wchar_t* pstr, long wslen) { int len = ::WideCharToMultiByte(CP_ACP, 0, pstr, wslen, NULL, 0, NULL, NULL); std::string dblstr(len, '\0'); len = ::WideCharToMultiByte(CP_ACP, 0 /* no flags */, pstr...
by Adolfo
Thu Aug 28, 2014 11:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Correct way to call an external DLL?
Replies: 12
Views: 2640

Re: First true Windows 8 Metro app from FWH !!!

In order to build Windows 8 WinRT apps, we need to link combase.lib. Windows 8 provides a combase.dll, so we can extract combase.def this way: impdef.exe combase.def combase.dll Then to build a lib: (if using Borland) implib.exe combase.lib combase.dll If using Microsoft C/C++: lib.exe /DEF:combase...
by cnavarro
Sun Apr 20, 2014 8:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: First true Windows 8 Metro app from FWH !!!
Replies: 13
Views: 5969

SOURCE FOR IMAGE WITH *.BMP *.EMF *.GIF *.ICO *.JPG *.PNG *

... #include "h2.h" static HBITMAP hbm; // RETURN HBITMAP TO FIVEWIN using namespace Gdiplus; HBITMAP IMAGE_HBITMAP_CPP(char * File_Name) { WCHAR wchPath[MAX_PATH]; ZeroMemory(wchPath,MAX_PATH); MultiByteToWideChar(CP_ACP, 0,File_Name, -1,wchPath, MAX_PATH ); GdiplusStartupInput gdiplusStartupInput; ...
by HATHAL
Sun Oct 06, 2013 8:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Cover Flow
Replies: 10
Views: 5607

Re: To Antonio: hb_free () Pointer Overflow "€"

Lo he intentado compilar con el Borland 582 y entonces me da los siguientes horrores: Lines 230, Functions/Procedures 4, pCodes 719 Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland pruebaFTP_Antonio.c: Error E2209 c:\xHarbour\include\hbvmpub.h 65: Unable to open include file 'assert.h' Er...
by Verhoven
Mon May 06, 2013 10:21 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: To Antonio: hb_free () Pointer Overflow "€"
Replies: 23
Views: 4588

Re: Compile tbfuncs.c

... tcbfuncs.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland tcbfuncs.c: Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 49: Multiple decl aration for 'restrict' Error E2238 c:\fw21\xharbourinc\xhbset08\xhb\c_include\wchar.h 50: Multiple decl aration for 'restrict' ...
by AHF
Thu Feb 09, 2012 11:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Compile tbfuncs.c
Replies: 9
Views: 2685
Next

Return to advanced search