15. oktober 2003 - 12:34Der er
28 kommentarer og 1 løsning
et standart WinAPI window med dynamisk text
Jeg sidder og forsøger at lave mine først WinAPI windows, det går også fint nok nu, men kan ikke finde nogen tutorial der fortæller mig hvordan jeg kan ændre texten i mit window (strings).
For eksempel har jeg levet et Client program til min server, den skulle gerne sige
string1 Forbinder string2 Logger på string3 Logget ind
altså de skal erstatte hinanden i række følge efter hvad trin den er ved
--------------------Configuration: dlg_three - Win32 Debug-------------------- Compiling... dlg_three.c C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(36) : error C2065: 'IDC_STATIC' : undeclared identifier C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4047: 'function' : 'unsigned int ' differs in levels of indirection from 'void *' C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4024: 'SendDlgItemMessageA' : different types for formal and actual parameter 4 C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4047: 'function' : 'long ' differs in levels of indirection from 'char [10]' C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4024: 'SendDlgItemMessageA' : different types for formal and actual parameter 5 C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(38) : warning C4047: 'function' : 'unsigned int ' differs in levels of indirection from 'void *' C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(38) : warning C4024: 'SendDlgItemMessageA' : different types for formal and actual parameter 4 C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(38) : warning C4047: 'function' : 'long ' differs in levels of indirection from 'char [10]' C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(38) : warning C4024: 'SendDlgItemMessageA' : different types for formal and actual parameter 5 C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(40) : warning C4047: 'function' : 'unsigned int ' differs in levels of indirection from 'void *' C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(40) : warning C4024: 'SendDlgItemMessageA' : different types for formal and actual parameter 4 C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(40) : warning C4047: 'function' : 'long ' differs in levels of indirection from 'char [11]' C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(40) : warning C4024: 'SendDlgItemMessageA' : different types for formal and actual parameter 5 Error executing cl.exe.
IDD_MAIN DIALOGEX 0, 0, 204, 51 STYLE DS_MODALFRAME | DS_3DLOOK | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Connecting" FONT 8, "MS Sans Serif" BEGIN LTEXT "Log på for at se status", IDC_STATIC,13,15,179,26,0,WS_EX_TRANSPARENT GROUPBOX "Status",IDC_STATIC,7,7,191,37 END
--------------------Configuration: dlg_three - Win32 Debug-------------------- Compiling resources... Compiling... dlg_three.c c:\documents and settings\freegeg.freegeg\skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4047: 'function' : 'unsigned int ' differs in levels of indirection from 'void *' c:\documents and settings\freegeg.freegeg\skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4024: 'SendDlgItemMessageA' : different types for formal and actual parameter 3 c:\documents and settings\freegeg.freegeg\skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4047: 'function' : 'unsigned int ' differs in levels of indirection from 'char [11]' c:\documents and settings\freegeg.freegeg\skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4024: 'SendDlgItemMessageA' : different types for formal and actual parameter 4 c:\documents and settings\freegeg.freegeg\skrivebord\source\source\dlg_three\dlg_three.c(36) : error C2198: 'SendDlgItemMessageA' : too few actual parameters Error executing cl.exe.
--------------------Configuration: dlg_three - Win32 Debug-------------------- Compiling... dlg_three.c C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4047: 'function' : 'unsigned int ' differs in levels of indirection from 'void *' C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4024: 'SendDlgItemMessageA' : different types for formal and actual parameter 4 C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4047: 'function' : 'long ' differs in levels of indirection from 'char [10]' C:\Documents and Settings\FreeGeG.FREEGEG\Skrivebord\source\source\dlg_three\dlg_three.c(36) : warning C4024: 'SendDlgItemMessageA' : different types for formal and actual parameter 5 Linking...
nu skal jeg dog have indsat min Netcode, men kunne godt bruge en resave timeout.. for at stoppe vis man gør et eller andet som min kode ikke kan forstå
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.