search for: lpctstr

Displaying 15 results from an estimated 15 matches for "lpctstr".

Did you mean: lpcstr
2004 Feb 25
5
Wide strings and LPCTSTR types
All, I was experimenting with converting LPCTSTR strings to wide strings with something like this: // Converts a Ruby string to a LPWSTR LPCTSTR AllocWideLString(VALUE rbString){ char* str = STR2CSTR(rbString); int length = (strlen(str)+1) * sizeof(WCHAR); LPCTSTR lpStr = (LPCTSTR)malloc(length); MultiByteToWideChar( CP_ACP,...
2001 Aug 15
1
WineLib Warning?
...e these API's are defined as: int WINAPI CompareStringA(LCID, DWORD, LPCSTR, int, LPCSTR, int); int WINAPI CompareStringW(LCID, DWORD, LPCSTR, int, LPCSTR, int); and this is what the Borland Windows SDK help file says: int CompareString( LCID Locale, DWORD dwCmpFlags, LPCTSTR lpString1, int cchCount1, LPCTSTR lpString2, int cchCount2 ); Is the define in the Wine headers wrong? Regrads Jussi Jumppanen
2001 Nov 22
1
Getting Registry info and using it ????
...t if I give the hard coded path then it works absolutely fine..But important is I need to use the variable path read from the registry and not the specific path..This is the way I am doing it.. **************************************************************************** **************************** LPCTSTR lpSubKey = (LPCTSTR)"SOFTWARE\\Classes\\FirewallApplication"; HKEY hKey; char szFullPath[200]; DWORD dwBufLen; //const unsigned short * temp; PCWSTR temp; HRESULT hRes; RegOpenKeyEx(HKEY_LOCAL_MACHINE, (LPCTSTR)lpSubKey, 0, KEY_QUERY_VALUE, &hKey );...
2007 Nov 24
5
Service.start arguments failing or causing segfault
Hi, Unless I''m mistaken the final arguments to Service.start should be passed to the Daemon''s service_main method. Correct? I modified the Service.start method (now in CVS) to look something like this: def self.start(service, host=nil, *args) ... num_args = args.length if args.empty? args = nil else args.unshift(service) # Necessary?
2005 Dec 12
0
Real time in ARM - please help
...************************** Program Statements **********************************// Speex[0] = 'S'; Speex[1] = 'p'; Speex[2] = 'e'; Speex[3] = 'e'; Speex[4] = 'x'; state = speex_encoder_init (&speex_nb_mode); fout = _wfopen ((LPCTSTR)FileSave, L"wb"); if (fout == NULL) { return 1; } fin = _wfopen ((LPCTSTR) FileOpen, L"rb"); if (fin == NULL) { return 2; } switch (BitRateChoice) { case '1': BitRate = 6000; break;...
2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
...Path; HANDLE h; if((rbBool != Qtrue) && (rbBool != Qfalse)){ rb_raise(rb_eTypeError,"Argument must be true or false"); } rbPath = rb_funcall(self,rb_intern("path"),0,0); dwAttr = GetFileAttributes(StringValuePtr(rbPath)); h = CreateFile( (LPCTSTR)StringValuePtr(rbPath), FILE_ALL_ACCESS, FILE_SHARE_READ, NULL, OPEN_EXISTING, dwAttr, NULL ); if(h == INVALID_HANDLE_VALUE){ printf("Error opening file: %s\n",ErrorDescription(GetLastError())); return Qnil; } ... } I''...
2016 Feb 24
0
[PATCH 2/5] ntfs: remove unused variable and have ntfssect use char API calls
On 2/24/2016 08:02, Pete Batard via Syslinux wrote: > The variable 'ok' is never used and generates a warning. Remove it. Also > ntfssect.c is designed to be compiled in non Unicode mode when using > MSVC compilers, so remove all ambiguity about it (LPCTSTR -> LPCSTR, use > of 'A' API calls) so that it doesn't break when compiled in Unicode > mode, which is what Rufus uses with MSVC. > Did you happen to notice anything unusual when compiling with MinGW under Linux, once 'ok' was removed? I seem to recall warnings abo...
2005 Jan 20
1
ChangeNotify help wanted
Hi all, I''ve checked in some code to win32-changenotify. Unfortunately, it doesn''t work right. I need some help. I don''t understand what, exactly, I''m supposed to pass to ReadDirectoryChangesW() for the 2nd argument, nor how to read the data back out. There''s also a WCHAR issue that needs to be worked out with regards to the FileName
2000 Mar 29
0
Something about Upper/Lower-case
...ns-Henrik Andresen Project Manager Pine Tree systems hha@pine.dk PS: Tried to send a bug-report, but my mail return'ed ---------------------------------------------------------------------------- CFile::GetStatus BOOL GetStatus( CFileStatus& rStatus ) const; static BOOL PASCAL GetStatus( LPCTSTR lpszFileName, CFileStatus& rStatus ); Return Value TRUE if the status information for the specified file is successfully obtained; otherwise, FALSE. Parameters rStatus A reference to a user-supplied CFileStatus structure that will receive the status information. The CFileStatus structure h...
2005 May 23
1
Why does ov_open fail?
...idered? The memory exception seems to happen deep within the calling tree of ov_open, in some operation that ms seemed to have implemented. but i believe i followed all rules (binary mode and so on), so this should not happen. i hope, someone can give me a hint. thanks. wan-hi void ProcessOGG(LPCTSTR pFilePath, MetaData& data) { OggVorbis_File vf; vorbis_info *info; vorbis_commen *comment; /////////////////////////////////////////////////////////////////////////// // 1) OPENING AND INITIALIZING THE OGG VORBIS FILE ////////////////////////////////...
2016 Feb 24
0
[PATCH 0/5] fix installer issues and enable some MSVC compatibility
...This fix addresses that. o [PATCH 2/5] ntfs: remove unused variable and have ntfssect use char The variable 'ok' is never used and generates a warning. Remove it. Also ntfssect.c is designed to be compiled in non Unicode mode when using MSVC compilers, so remove all ambiguity about it (LPCTSTR -> LPCSTR, use of 'A' API calls) so that it doesn't break when compiled in Unicode mode, which is what Rufus uses with MSVC. o [PATCH 3/5] installers: MSVC compatibility fixes More MSVC compatibility fixes, for packed structures. NB: In case you are aware of the issues that may co...
2006 Jun 28
3
[Fwd: [ruby] win32-service : RegisterServiceCtrlHandlerEx]
Thoughts? -------------- next part -------------- An embedded message was scrubbed... From: "Romuald du Song" <rdusong at gmail.com> Subject: [ruby] win32-service : RegisterServiceCtrlHandlerEx Date: Mon, 26 Jun 2006 00:02:10 +0200 Size: 2587 Url: http://rubyforge.org/pipermail/win32utils-devel/attachments/20060628/8f12e8f1/attachment-0001.mht
2013 Aug 21
2
[PATCH 1/3] Rationalise whitespace to 4 space indentation with no trailing spaces
...break; - } + + default: + break; + } ReportSvcStatus(gSvcStatus.dwCurrentState, NO_ERROR, 0); } /* Logs messages to the event log */ -VOID +VOID SvcReportEvent ( - LPTSTR szFunction -) { + LPTSTR szFunction +) { TCHAR Buffer[80]; HANDLE hEventSource; LPCTSTR lpszStrings[2]; hEventSource = RegisterEventSource ( - NULL, - SVCNAME - ); + NULL, + SVCNAME + ); if ( - NULL != hEventSource - ) { + NULL != hEventSource + ) { #ifdef HAVE_STRINGCCHPRINTF - StringCchPrintf + StringCchPrintf #else - snwprintf...
2016 Feb 24
6
[PATCH 2/5] ntfs: remove unused variable and have ntfssect use char API calls
The variable 'ok' is never used and generates a warning. Remove it. Also ntfssect.c is designed to be compiled in non Unicode mode when using MSVC compilers, so remove all ambiguity about it (LPCTSTR -> LPCSTR, use of 'A' API calls) so that it doesn't break when compiled in Unicode mode, which is what Rufus uses with MSVC. -------------- next part --------------
2013 Aug 29
5
[PATCH 1/6] Rationalise whitespace to 4 space indentation with no trailing spaces
...break; - } + + default: + break; + } ReportSvcStatus(gSvcStatus.dwCurrentState, NO_ERROR, 0); } /* Logs messages to the event log */ -VOID +VOID SvcReportEvent ( - LPTSTR szFunction -) { + LPTSTR szFunction +) { TCHAR Buffer[80]; HANDLE hEventSource; LPCTSTR lpszStrings[2]; hEventSource = RegisterEventSource ( - NULL, - SVCNAME - ); + NULL, + SVCNAME + ); if ( - NULL != hEventSource - ) { + NULL != hEventSource + ) { #ifdef HAVE_STRINGCCHPRINTF - StringCchPrintf + StringCchPrintf #else - snwprintf...