search for: tchar

Displaying 20 results from an estimated 41 matches for "tchar".

Did you mean: char
2013 Nov 18
7
RHSrvAny: Fix failure on Windows 2003
The newly rebuilt RHSrvAny worked on Windows XP, Windows 2003 R2, and Windows Vista+, but segfaulted on Windows 2003. After much investigation, the issue seems to have been with inconsistent use of Unicode. This series fixes compilation on Microsoft Visual C++ 2010 (the most recent version which runs on Windows 2003), fixes all compiler warnings, and enabled warnings during the build. The
2006 Feb 02
5
Fwd: win32-clipboard and Unicode zero bytes
Hi all, I''m forwarding this message from Brian Marick. If you run this test script and then paste the results into a Unicode aware text editor, you''ll notice that it only prints one character instead of three. I tried changing the strlen to _tcslen and strcpy to _tcscpy, but that didn''t help. I mucked around a bit with the MultiByteToWideChar function, too, but
2008 Nov 10
4
PathFindExtension and wide strings
Hi, What''s happening here? require ''windows/path'' require ''windows/unicode'' include Windows::Path include Windows::Unicode file_a = ''bar.txt'' file_w = multi_to_wide(file_a) p PathFindExtensionA(file_a) # ''.txt'' => OK p PathFindExtensionW(file_w) # ''.'' => WRONG Is Ruby chopping the
2001 Apr 20
2
strupr, strlwr
in wine 0418, the strupr and strlwr defines were removed from tchar.h does anyone know why? ------------------------------------------------------------ Get your FREE web-based e-mail and newsgroup access at: http://MailAndNews.com Create a new mailbox, or access your existing IMAP4 or POP3 mailbox from anywhere with just a web browser. -------...
2007 Oct 25
2
Using strtok via win32/api
Hi all, I''m having a little trouble with strtok: require ''win32/api'' include Win32 strtok = API.new(''strtok'', ''PP, ''P'', ''msvcrt'') string = "A string\tof ,,tokens\nand some more tokens"; seps = " ,\t\n"; puts "Tokens:" token = strtok.call(string, seps) while token puts
2013 Aug 29
5
[PATCH 1/6] Rationalise whitespace to 4 space indentation with no trailing spaces
...*); VOID ReportSvcStatus (DWORD, DWORD, DWORD); int main (int argc, char **a_argv) -{ +{ /* For compatibility with MinGW, see: - http://demosten-eng.blogspot.com/2008/08/mingw-and-unicode-support.html */ + http://demosten-eng.blogspot.com/2008/08/mingw-and-unicode-support.html */ TCHAR **argv; - argv = CommandLineToArgvW (GetCommandLineW (), &argc); - - SERVICE_TABLE_ENTRY DispatchTable[] = { - { - SVCNAME, - (LPSERVICE_MAIN_FUNCTION) SvcMain - }, - { NULL, NULL } - }; - - if( - lstrcmpi( - argv[1], - TEXT("install") - ) == 0 - ) { - SvcInst...
2013 Aug 21
2
[PATCH 1/3] Rationalise whitespace to 4 space indentation with no trailing spaces
...*); VOID ReportSvcStatus (DWORD, DWORD, DWORD); int main (int argc, char **a_argv) -{ +{ /* For compatibility with MinGW, see: - http://demosten-eng.blogspot.com/2008/08/mingw-and-unicode-support.html */ + http://demosten-eng.blogspot.com/2008/08/mingw-and-unicode-support.html */ TCHAR **argv; - argv = CommandLineToArgvW (GetCommandLineW (), &argc); - - SERVICE_TABLE_ENTRY DispatchTable[] = { - { - SVCNAME, - (LPSERVICE_MAIN_FUNCTION) SvcMain - }, - { NULL, NULL } - }; - - if( - lstrcmpi( - argv[1], - TEXT("install") - ) == 0 - ) { - SvcInst...
2008 Jan 25
1
Windows share modes and Linux file locking, flock & fcntl
...ble = no guest ok = no writable = no printable = yes ============================================= Test programs: 2. Windows program (console app) to open with share mode disallowing other processes ============================================= #include <stdio.h> #include <tchar.h> #include <windows.h> int _tmain(int argc, _TCHAR* argv[]) { HANDLE handle; TCHAR* filename = NULL; if(argc < 2) { printf("No argument.\n"); return 2; } else { filename = argv[1]; } printf("Try to open file...
2011 May 27
0
Wine release 1.3.21
...ghes (1): gdi32: Add support in DeviceCaps CURVECAPS, LINECAPS, POLYGONALCAPS for EnhMetafiles. Andrew Eikum (2): mmdevapi: IMMDeviceEnumerator::GetDevice should fail on unknown device ids. winealsa.drv: Implement device enumeration. Andrew Nguyen (19): taskmgr: Remove all TCHAR macro usage in tab page code. taskmgr: Remove all TCHAR macro usage in graph drawing code. taskmgr: Remove all TCHAR macro usage in affinity dialog code. taskmgr: Remove all TCHAR macro usage in priority handling code. taskmgr: Remove all TCHAR macro usage in process termina...
2008 Nov 13
2
decoded sample is completely differen from original one
...ust encode a frame of 160 shorts, and the decode it. For some reason the decoded sample is completely different than the original one. is my code wrong? If so what? Or is it a reasonable which depends of values that weren't correctly set? Thanks, Andre #include <stdio.h> #include <tchar.h> #include <speex/speex.h> #define FRAME_SIZE 160 #define QUALITY 8 #define ENHANCEMENT 1 int encode(int * nbBytes, char * encSamples) { void * state; SpeexBits bits; int quality = QUALITY; spx_int16_t input[] = {0x703B, 0x7361, 0x7567, 0x3969, 0x6874, 0...
2004 Feb 28
1
Line splitting in system() (PR#6624)
...rgs), 0)), x); for (i = 0; fgets(buf, INTERN_BUFSIZE, fp); i++) { read = strlen(buf); - if (read < INTERN_BUFSIZE) buf[read - 1] = '\0'; /* chop final CR */ + if (read>0 && buf[read-1] == '\n') + buf[read - 1] = '\0'; /* chop final CR */ tchar = mkChar(buf); UNPROTECT(1); PROTECT(tlist = CONS(tchar, tlist));
2006 Jan 05
7
[Fwd: [win32utils-help][6822] Eventlog problem]
Dang, I thought we solved this. Any ideas? Dan PS - I realized after reading this I forgot to bump the version number for 0.3.3 - I''ve uploaded a new zip file with the correct version number. -------------- next part -------------- An embedded message was scrubbed... From: alain Fioretti <noreply at rubyforge.org> Subject: [win32utils-help][6822] Eventlog problem Date: Thu, 5
2007 Sep 23
16
WinRuby?
...k or later. No 95/98/ME support. No cygwin/mingw, either. * Assume VC++ 8. Use whatever switches we want to optimize. * Scrap huge chunks of the stdlib, and add new libraries. * Use Windows specific functions where beneficial. * Remove UNIX-only functions/methods (or create equivalent functions). * TCHAR through and through, with possible Unicode benefits down the road. * ANSI C Areas I''m looking to improve specifically: File File::Stat Dir IO Process Socket Kernel#select Areas I''m looking to improve in general: Speed Tests (tailored for Windows) More Speed More Tests But, b...
2009 Feb 04
12
Detecting a programm runs using Wine
Is there absolutelu no (unofficial) way to detect whether a programm is running using Wine? In this way a programm could decide to use other routines for those features that do not work fine using Wine.
2006 Oct 31
0
6268990 cmd/csh and gcc don''t get along
...: usr/src/cmd/csh/sh.lex.c update: usr/src/cmd/csh/sh.misc.c update: usr/src/cmd/csh/sh.parse.c update: usr/src/cmd/csh/sh.print.c update: usr/src/cmd/csh/sh.proc.c update: usr/src/cmd/csh/sh.proc.h update: usr/src/cmd/csh/sh.sem.c update: usr/src/cmd/csh/sh.set.c update: usr/src/cmd/csh/sh.tchar.c update: usr/src/cmd/csh/sh.time.c update: usr/src/cmd/csh/sparc/Makefile update: usr/src/cmd/csh/sparc/signal.c
2008 Nov 14
0
decoded sample is completely differen from original one
...t. > > For some reason the decoded sample is completely different than the original one. is my code wrong? If so what? Or is it a reasonable which depends of values that weren't correctly set? > > Thanks, > > Andre > > > #include <stdio.h> > #include <tchar.h> > > #include <speex/speex.h> > > #define FRAME_SIZE 160 > > #define QUALITY 8 > #define ENHANCEMENT 1 > > int encode(int * nbBytes, char * encSamples) > { > void * state; > SpeexBits bits; > > int quality = QUALITY;...
2001 Sep 14
0
MFC+winelib
...I don't ask for the full patch for MFC. 2. I noticed some new header files under include/wine/msvcrt (eh.h, crtdbg.h, others...). Is it save to put path to this directory in front of my include directory list? Should I know more about this, eg. libs to link with? 3. MFC wants <tchar.h> header. Is there any reason why this file is not in include/wine/msvcrt? (as of 20010731) 4. Last question: What are the chances to compile C++ app implementing some COM interfaces? The answer is probably "currently none", so I'll ask: Is there any work in progr...
2007 Aug 31
0
[ win32utils-Bugs-13560 ] Service dependencies has wierd string.
...I debugged service.c and service.h and found something wrong. I modified the function "rb_get_dependencies" from service.h like following and it works fine. static VALUE rb_get_dependencies(LPTSTR lpDependencies){ VALUE v_dependencies = rb_ary_new(); if(lpDependencies){ TCHAR* pszDepend = 0; int i = 0; pszDepend = &lpDependencies[i]; while(*pszDepend != 0){ rb_ary_push(v_dependencies, rb_str_new2(pszDepend)); //i += _tcslen(lpDependencies) + 1; <-- Original code i += _tcslen(&(lpDependencies[i])) + 1; // &...
2013 Apr 05
2
Problem with fts lucene, on solaris 10
Hi all, I'm planning to migrate my courier-imap imap server to dovecot, but I'm experiencing a strange issue with fts-lucene plugin. Basically, every time I start a search, the log starts to write: Apr 05 19:30:53 indexer: Error: Indexer worker disconnected, discarding 1 requests for XXXXXX Apr 05 19:30:53 indexer-worker(XXXXX): Fatal: master: service(indexer-worker): child 809 killed
2016 Feb 03
0
Wine release 1.8.1
...msi: Allow PathEdit controls to be updated. msi: Refreh controls after spawned dialog is closed. Andrew Eikum (1): maintainers: Add DirectShow section. Andr? Hentschel (1): include: Add more OID defines. Anthony Fok (1): include: Suppress "use msvcrt" error in tchar.h when -mno-cygwin is used. Austin English (1): setupx.dll16: Add DiBuildDriverIndex stub. Fr?d?ric Delanoy (2): loader: Update French translation of wine manpage. po: Update French translation. Hans Leidekker (1): dnsapi: Add a stub implementation of DnsFlushResolverCach...