Search found 15 matches: wsprintf

Return to advanced search

error al compilar winsock de smtp luis

... #endif { struct hostent * pHost; BYTE addr[ 20 ]; strcpy( ( char * ) addr, "0.0.0.0" ); if( pHost = gethostbyname( _parc( 1 ) ) ) { wsprintf( ( char * ) addr, "%i.%i.%i.%i", ( BYTE ) pHost->h_addr[ 0 ], ( BYTE ) pHost->h_addr[ 1 ], ( BYTE ) pHost->h_addr[ 2 ], ...
by MANOLO
Thu Feb 19, 2009 7:20 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: error al compilar winsock de smtp luis
Replies: 2
Views: 855

Re: GetNetCardID()

Chris,

Please replace this and try it again, thanks:

wsprintf( ( void * ) wText

with

wsprintf( ( WCHAR * ) wText
by Antonio Linares
Fri Feb 13, 2009 7:22 am
 
Forum: FiveWin for Pocket PC
Topic: GetNetCardID()
Replies: 13
Views: 6502

Re: GetNetCardID()

... : warning C4068: unknown pragma p:\vce\include\arm\mprapi.h(1746) : warning C4068: unknown pragma CEFUNC.prg(1100) : error C2664: 'wsprintfW' : cannot convert parameter 1 from 'void *' to 'unsigned short *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast ...
by ChrisMillard
Fri Feb 13, 2009 12:36 am
 
Forum: FiveWin for Pocket PC
Topic: GetNetCardID()
Replies: 13
Views: 6502

MicroSoft Flight Simulator and FSUIPC

... return FALSE; } // create the name of our file-mapping object nTry++; // Ensures a unique string is used in case user closes and reopens wsprintf(szName, FS6IPC_MSGNAME1 ":%X:%X", GetCurrentProcessId(), nTry); // stuff the name into a global atom m_atom = GlobalAddAtom(szName); if (m_atom ...
by alvaro533
Wed Dec 17, 2008 11:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MicroSoft Flight Simulator and FSUIPC
Replies: 1
Views: 1141

MicroSoft Flight Simulator y FSUIPC

... return FALSE; } // create the name of our file-mapping object nTry++; // Ensures a unique string is used in case user closes and reopens wsprintf(szName, FS6IPC_MSGNAME1 ":%X:%X", GetCurrentProcessId(), nTry); // stuff the name into a global atom m_atom = GlobalAddAtom(szName); if (m_atom ...
by alvaro533
Wed Dec 17, 2008 9:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: MicroSoft Flight Simulator y FSUIPC
Replies: 1
Views: 1432

... error: Macro redefinition of 'AnsiLower'. D:\COMPILER\xHB\c_include\win\winuser.h(4797): error: Macro redefinition of 'wsprintf'. D:\COMPILER\xHB\c_include\win\winuser.h(4809): error: Macro redefinition of 'GetMessage'. D:\COMPILER\xHB\c_include\win\winuser.h(4835): ...
by hterce
Wed Sep 03, 2008 10:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Source code for Tree32.lib
Replies: 13
Views: 3307

... long ul=1; TIMEVAL tvTimeout ; int result; tvTimeout.tv_sec = 0 ; tvTimeout.tv_usec = 0 ; if( WSAStartup( wVersion, &wsaData ) != 0 ) { wsprintf( szError, TEXT( "WSAStartup failed. Error: %d" ), WSAGetLastError() ); MessageBox( 0, szError, TEXT( "error" ), 0 ); return; } // Create a ...
by Arturo Lopesoria
Mon Dec 10, 2007 3:51 pm
 
Forum: FiveWin para Pocket PC
Topic: Impresion via IRDA
Replies: 23
Views: 9627

... SOCKADDR_IRDA iraddr; linger l; // ------------------------------------------------- if(WSAStartup(wVersion, &wsaData) != 0) { wsprintf(szError, TEXT("WSAStartup failed. Error: %d"), WSAGetLastError()); AfxMessageBox(szError, MB_OK); return FALSE; } // Create a socket that is ...
by Arturo Lopesoria
Mon Nov 12, 2007 3:02 am
 
Forum: FiveWin para Pocket PC
Topic: Impresion via IRDA
Replies: 23
Views: 9627

Jose Luis,

Prueba así:

unsigned char buffer[ 22 ];

wsprintf( buffer, "{%04i-%02i-%02i-00000000}", var.Data1, var.Data2, var.Data3 );

luego copias los 8 bytes de Data4 a buffer + 13

en donde var es un dato de tipo struct _GUID
by Antonio Linares
Tue Feb 20, 2007 6:28 pm
 
Forum: FiveWin para Pocket PC
Topic: Tipo GUID en C y traspasarlo a PRG
Replies: 2
Views: 852

... from iamge2pdf.dll download package #include <Windows.h> #include "Image2PDF.h" UINT ShowError(char *which, UINT iErr) { char message[200]; wsprintf(message, "%s returned error %d", which, iErr); MessageBox(NULL, message, "Error Returned From Image2PDF DLL", MB_OK | MB_ICONERROR); return ...
by ShumingWang
Sat Nov 25, 2006 4:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create and Email PDF's from FWH
Replies: 24
Views: 11057

... from iamge2pdf.dll download package #include <Windows.h> #include "Image2PDF.h" UINT ShowError(char *which, UINT iErr) { char message[200]; wsprintf(message, "%s returned error %d", which, iErr); MessageBox(NULL, message, "Error Returned From Image2PDF DLL", MB_OK | MB_ICONERROR); return ...
by ShumingWang
Sat Nov 25, 2006 4:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create and Email PDF's from FWH
Replies: 24
Views: 11057

... in function HB_FUN_FIL ETIMETOTIME Warning W8075 TFTP.PRG 153: Suspicious pointer conversion in function HB_FUN_FIL ETIMETOTIME it refers to this: wsprintf( buffer, "%i:%i", st.wHour, st.wMinute ); hb_retclen( buffer, 5 ); The date is returned fine, the time returns 3:8 instead of 3:08 Regards, ...
by John
Sat Nov 18, 2006 10:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to get Date and Time with oFTP
Replies: 26
Views: 6794

... LPVOID lpReserved) { switch (ulEvent) { case DLL_PROCESS_DETACH: //TWAIN_UnloadSourceManager(); break; case DLL_PROCESS_ATTACH: #ifdef DEBUG wsprintf(szMsg, "sizeof (TW_IDENTITY) == %d\n", sizeof (TW_IDENTITY)); OutputDebugString(szMsg); #endif assert(sizeof (TW_IDENTITY) == 156); break; ...
by areang
Mon Aug 07, 2006 3:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Please teach me about FWH and xHarbour
Replies: 3
Views: 4244

How to use Free TWAIN_32.dll

... VERIFY(GetModuleFileName(hDSInst, szModulePath, _MAX_PATH)); _splitpath(szModulePath, szDriveName, szFileLocation, NULL, NULL); wsprintf(szCompletePath, "%s%s", szDriveName, szFileLocation); _giRowsCopied = 0; _gpHeader = NULL; _gpImageData = NULL; _gpCurrentLine = NULL; _gdwLineSize ...
by areang
Thu Aug 03, 2006 9:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to use Free TWAIN_32.dll
Replies: 0
Views: 1730

Para Antonio Linhares (comm.c , BuildCommDCB, SetCommState)

... UINT cbOutQueue ) { char port[ 16 ]; HANDLE hComm; LPCOMMST Com = ( LPCOMMST ) LocalLock( LocalAlloc( LPTR, sizeof( COMMST ) ) ); COMMTIMEOUTS ct; wsprintf( port, "\\%s", lpszDevControl ); Com->hComm = CreateFile( port, GENERIC_WRITE | GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL ); SetupComm( ...
by Gilson Lopes
Fri Oct 21, 2005 3:32 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Para Antonio Linhares (comm.c , BuildCommDCB, SetCommState)
Replies: 0
Views: 2011

Return to advanced search

cron