1. |
Re: Windows handle!! (mind) |
62 sor |
(cikkei) |
2. |
Re: The dynamic link library xxx.dll could not be found (mind) |
13 sor |
(cikkei) |
3. |
Re: Negalas adott bitpoziciokon (mind) |
23 sor |
(cikkei) |
4. |
Programozo vizsga (mind) |
19 sor |
(cikkei) |
5. |
Re: Negalas adott bitpoziciokon (mind) |
7 sor |
(cikkei) |
6. |
Re:The dynamic link library xxx.dll could not be found (mind) |
17 sor |
(cikkei) |
|
+ - | Re: Windows handle!! (mind) |
VÁLASZ |
Feladó: (cikkei)
|
Doski segithet:
EM_GETHANDLE
An application sends an EM_GETHANDLE message to retrieve a handle of the memory
currently allocated for a multiline edit control's text.
EM_GETHANDLE
wParam = 0; // not used; must be zero
lParam = 0; // not used; must be zero
Parameters
This message has no parameters.
Return Values
The return value is a memory handle identifying the buffer that holds the conte
nt of the edit control. If an error occurs, such as sending the message to a si
ngle-line edit control, the return value is zero.
Remarks
In a 16-bit Windows-based application, the handle is a local memory handle and
can be used only by functions that take a local memory handle as a parameter. T
he application can send this message to a multiline edit control in a dialog bo
x only if it created the dialog box with the DS_LOCALEDIT style flag set. If th
e DS_LOCALEDIT style is not set, the return value is still nonzero, but the ret
urn value will not be meaningful.
EM_SETHANDLE
An application sends an EM_SETHANDLE message to set the handle of the memory th
at will be used by a multiline edit control.
EM_SETHANDLE
wParam = (WPARAM) (HLOCAL) hloc; // handle of memory buffer
lParam = 0; // not used; must be zero
Parameters
hloc
Value of wParam. Handle to the memory the edit control uses to store the curren
tly displayed text instead of allocating its own memory. If necessary, the cont
rol reallocates this memory.
Return Values
This message does not return a value.
Remarks
Before an application sets a new memory handle, it should send an EM_GETHANDLE
message to retrieve the handle of the current memory buffer and should free tha
t memory.
An edit control automatically reallocates the given buffer whenever it needs ad
ditional space for text, or it removes enough text so that additional space is
no longer needed.
Sending an EM_SETHANDLE message clears the undo buffer (EM_CANUNDO returns zero
) and the internal modification flag (EM_GETMODIFY returns zero). The edit cont
rol window is redrawn.
An application can send this message to a multiline edit control in a dialog bo
x only if it has created the dialog box with the DS_LOCALEDIT style flag set.
(webes bekuldes, a bekuldo gepe: ac80adc2.ipt.aol.com)
|
+ - | Re: The dynamic link library xxx.dll could not be found (mind) |
VÁLASZ |
Feladó: (cikkei)
|
Elso tippem az lenne, hogy probald kidebugolni a hibat. Ha nincsen a program De
veloper Studio alatt, megeri osszerakni egy workspace-t, hogy lasd, mi is torte
nik. Ott minden betoltott DLL-t latsz tisztan es vilagosabba valik a problema.
Mas: Gondolom hivtal egy GetLastError() -t a FormatMessage() elott. Szerintem e
z azert nem segit, mert tul keson van felhivva es az utolso rendszer hiba pedig
az, hogy nem tudsz irni a pipe-ba. Miert nem tudsz irni a pipe-ba? Valoszinule
g azert mert nem tudtad megnyitni a kivant DLL-t.
Nekem viszont furcsanak tunik, hogy a rendszer nem irja ki a DLL nevet.
Sok Sikert!
(webes bekuldes, a bekuldo gepe: ac80adc2.ipt.aol.com)
|
+ - | Re: Negalas adott bitpoziciokon (mind) |
VÁLASZ |
Feladó: (cikkei)
|
Sziasztok!
> Felado : [Hungary]
> Adot bitpozicion valo negalast szeretnek.
> =
> = forras bitsorozat 10101011010101001010001111010101
> = negalasi bitmaszk 11110000111100001111000011110000
> = --------------------------------
> = eredmeny 32-biten 01011011101001000101001100100101
> =
> (lehet, hogy a fotex.hix elcseszi a sorokat.
>
> A negalasi bimasznal ahol 1-es van ott negal, ahol 0-s
> ott marad az eredeti. Milyen megoldasa lehet a problemanak. ASM, C, PAS johet
.
Ez, ha jol ertelmeztem pont a XOR (bitwise exclusive or) muvelet.
C-ben a jeloles:
eredmeny = forras ^ maszk;
Udv.:
Joco
|
+ - | Programozo vizsga (mind) |
VÁLASZ |
Feladó: (cikkei)
|
Hi CODERs!
Kedden lesz a programozo vizsgam es a felkeszulesben szeretnem
kerni a segitsegeteket!
Minden nagyon franko, azt a tenyt leszamitva, hogy a matek nem
az en asztalom! :o)
Sajna a vizsgan lesz ilyen is! :((
Talaltam az elozo evek programozo vizsgaiban matek feladatokat,
es szeretnem, ha valami levezetne oket, mert en nem tudom! :(
Tehat a feladatok:
1. Adja ossze fixpontosan, kettes komplemens kodot hasznalva
16 biten a -11 es a 15 tizes szamrendszerbeli egesz szamokat!
2. Irja fel a 3456,16 tizes szamrendszerbeli szamot 16-os szamrend-
szerben, normalizalt formaban!
Ha valaki jo matekbol, legyen szives segitsen egy-egy reszletesen
kidolgozott megoldassal!
Koszi,
TCHeeCo
|
+ - | Re: Negalas adott bitpoziciokon (mind) |
VÁLASZ |
Feladó: (cikkei)
|
Kedves es !
Potvizsga augusztusban!!! :)))
Robi
---
E-mail:
|
+ - | Re:The dynamic link library xxx.dll could not be found (mind) |
VÁLASZ |
Feladó: (cikkei)
|
Hello!
SetErrorMode(SEM_FAILCRITICALERRORS) eseten elkuldi a rendszer a hivo
process-nek a hibakodot, amit ott a GetLast Error( )-ral lehet lekerdezni.
Igy sehogy sem tudod lekerdezni, a dll nevet.
Nem lehetne ugy, hogy LoadLibrary( )-val toltod be a dll-t? Akkor abbol is
latod, hogy hianyzik a file, hogy a visszakapott HINSTANCE == NULL. Es ekkor
tudod a file nevet is. Ha pedig a Parent process-nek kell tudni, akkor a meg
meglevo child el tudja neki pipe-olni, es csak utana lep ki.
Remelem hasznalhato. Ha lesz egy kis idom, utananezek rendesen. Ha valaki
jobbat tud irjon. Bar ez a Windows Psychologic... :)))
Robi
---
E-mail:
|