Hollosi Information eXchange /HIX/
HIX CODER 1696
Copyright (C) HIX
2002-11-28
Új cikk beküldése (a cikk tartalma az író felelőssége)
Megrendelés Lemondás
1 Re: Lamer kerdes (mind)  47 sor     (cikkei)
2 delphi data binding wizard (mind)  38 sor     (cikkei)
3 Prince (mind)  45 sor     (cikkei)

+ - Re: Lamer kerdes (mind) VÁLASZ  Feladó: (cikkei)

Szevasztok, Szevasz exta!

> 
>Most ismerkedek a C++ Builder 6-tal és a C nyelvvel... A kérdés pedig az,
hogy hogyan tudom akkor az AnsiString-ben található szöveget char-rá
alakítani?>

AnsiString asSzoveg;

Az
asSzoveg.c_str()
tartalmazza az eredeti szoveget char stringkent.

Ha ezt kulon be akarod masolni egy karakter tombbe, akkor egyszeru esetben:
// fix meretu tomb letrehozasa. Ha az AnsiString hosszabb,
// akkor a vege hianyozni fog a char tombbol
#define MAX_SZOVEG_HOSSZ 200
char chrSzoveg[MAX_SZOVEG_HOSSZ + 1];

// masolas
strncpy(chrSzoveg, asSzoveg.c_str(), MAX_SZOVEG_HOSSZ);
// char string lezaras
chrSzoveg[MAX_SZOVEG_HOSSZ] = '\0';

Bonyolultabb, de korrekt megoldas:

// dinamikusan, azaz a konkretan szukseges
// nagysagban letrehozzuk a char tombot
char* pchrSzoveg = new char[asSzoveg.Length()];

// masolas
strcpy(pchrSzoveg, asSzoveg.c_str());
 ....

// ha mar nem kell
delete[] pchrSzoveg;


>ilyen primitív kérdésekre adott válaszok megjelennek a listán :-)

Nem primitiv, az elejen nem olyan egyszeru megerteni egy programozasi
nyelvet, kulonosen nem a C pointerezeset.

(Ment listara es maganba.)

Cap
http://web.axelero.hu/torszoft/  (Szovegesinformacio-kezeles)
+ - delphi data binding wizard (mind) VÁLASZ  Feladó: (cikkei)

sziasztok!

hasznalta mar valaki a delphi xml data binding wizardot?
van egy xml-em es annak egy schema leiroja....
Delphi fel is szedi, de vannak vele apro gondok....

Tobb helyen elofordul ugyanolyan nevu elem
es a delphi mindegyiknek genereal ugyanolyan neven
egy interface-t es persze mikor meg van a kod, akkor
le is akad, mivel ket egyforma nevu interface van....
pl:
<kazettak>
    <kazetta nev="musor1">
        <producer fickoneve="Kiss Jnaika">
            <comment>ez egy okos ember</comment>
        </producer>
        <comment>Ez a komment a kazettaje, mert egy jo kazettarol van
szo</comment>
        <megtobbinfo />
    </kazetta>
</kazettak>

eleg bena es egyszeru a pelda, de jol mutatja, amit probalok leirni
ehhez a delphi ad szepen ket interface-t IXMLComment neven ...
hogy lehet ezt kikerulni, egyaltalan miert csinalja....
hiszen ha XSLTben gondolkodunk, akkor ott ugye megkaphatok minden
comment elemet... fuggetlenul attol hogy ki alatt nyugszik
de ugye felmerul az is, hogy akkor honnan tudom hogy ki alatt vagyok, persze
ugye XSLT-ben megadhatom hogy melyik elemtol induljunk (root , producer)

Barmi segitseget orommel fogadok, xml-ben is uj vagyok, plane delpih vs.
xml-ben :)
ja es delphi6-rol van szo

Elore is koszonom!


sTenYa
+ - Prince (mind) VÁLASZ  Feladó: (cikkei)

ATTN,

I NEED YOUR HELP May the blessing of God be upon you and grant you the
wisdom and sympathy to understand my situation and how much I need your
help. SAMUEL DOE,ex- Head of State (Federal Republic of liberia) was my
husband that was asasinated by an oposition leader headed by Mr YOMI JOHNSON
.

Since the death of my husband, I have been subjected to all sorts of
harassments, intimidations and inhumane treatments, with negative reports
emanating from the government and the press regarding my husband's past
regime and my family is been placed on surveliance.

Most of our trusted Associates betrayed us because of Ministerial Jobs and
appointments. I need your immediate help, I beg of you. I need your help to
transfer what I call "our future hope" the sum of Thirty Million United
State Dollars (US$30,000,000) from my late husband's private vault which he
deposited into a security firm befor his death.

The last transfer of Ten Million United State Dollars (US$10,000,000) I made
into a friend's foreign account at Europe, after the successful transfer, my
friend denied me my money because of my restricted movement within Liberia.
That is the main point why I need your help. I lost so much trying to make
transfer through some associates.

This fund is considered as the main source of my family's future hope. When
this US$30Million dollars is transferred, my son Jimoh Doe who is also my
close Confidant would be able to establish an investment with your
assistance on our family behalf until I come out of my travail and
tormentors. For your information, my communication and movement are under
strict surveillance therefore make all your communications to me through my
E-MAIL ADDRESS.

This is to ensure maximum confidentiality and secret.If you HELP me receive
this money from the security company into a foreign account, I WILL reward
you with 20% of the total sum I will also compensate you for your
inconveniences and 10% for expenses incurred. I am depending on this fund
and I am counting on you for my future and that of my family.

I wait patiently for your response.Please include your contact details
,telephone, fax and nationality.

Yours truly,

MS Cynthia Doe

AGYKONTROLL ALLAT AUTO AZSIA BUDAPEST CODER DOSZ FELVIDEK FILM FILOZOFIA FORUM GURU HANG HIPHOP HIRDETES HIRMONDO HIXDVD HUDOM HUNGARY JATEK KEP KONYHA KONYV KORNYESZ KUKKER KULTURA LINUX MAGELLAN MAHAL MOBIL MOKA MOZAIK NARANCS NARANCS1 NY NYELV OTTHON OTTHONKA PARA RANDI REJTVENY SCM SPORT SZABAD SZALON TANC TIPP TUDOMANY UK UTAZAS UTLEVEL VITA WEBMESTER WINDOWS