Article View: chile.comp.programacion
Article #1773Re: c++ ayuditaaa
From: Victor Alejandro Ramiro Cid
Date: Tue, 13 Jun 2006 13:54
Date: Tue, 13 Jun 2006 13:54
24 lines
1559 bytes
1559 bytes
Claudio Jara <bluteufel@tutopia.com> wrote:
> Hola, alguien sabe que hace esta cosa?
>
> teniendo la estructura:
>
> typedef struct _SP_DEVICE_INTERFACE_DETAIL_DATA_A {
> DWORD cbSize;
> CHAR DevicePath[ANYSIZE_ARRAY];
> } SP_DEVICE_INTERFACE_DETAIL_DATA_A
>
> y declarando la variable "intf_detail"
>
> PSP_DEVICE_INTERFACE_DETAIL_DATA intf_detail = \
> (PSP_DEVICE_INTERFACE_DETAIL_DATA)(new char[ReqLen]);
Simplemente esta haciendo un cast del buffer de char's a la estructura
SP_DEVICE_INTERFACE_DETAIL_DATA_A. Esas cosas se pueden hacer en c y c++
>
>
--
Saludos,
Victor Ramiro
Technical Details
Message-ID:
<e6mg3c$41g$1@helcaraxe.dcc.uchile.cl>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!news.vcd.cl!not-for-mail!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!not-for-mailReferences:
<e6kom4$gc4$1@news.nivel5.cl>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,d6b453b73290e745
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
From: Victor Alejandro Ramiro Cid <vramiro@dcc.uchile.cl>
Newsgroups: chile.comp.programacion
Subject: Re: c++ ayuditaaa
Date: Tue, 13 Jun 2006 13:54:52 +0000 (UTC)
Organization: DCC - Universidad de Chile
Lines: 24
Message-ID: <e6mg3c$41g$1@helcaraxe.dcc.uchile.cl>
References: <e6kom4$gc4$1@news.nivel5.cl>
NNTP-Posting-Host: anakena.dcc.uchile.cl
X-Trace: helcaraxe.dcc.uchile.cl 1150206892 4144 192.80.24.6 (13 Jun 2006 13:54:52 GMT)
X-Complaints-To: newsmaster@dcc.uchile.cl
NNTP-Posting-Date: Tue, 13 Jun 2006 13:54:52 +0000 (UTC)
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (Linux/2.6.14-gentoo-r5 (i686))
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!news.vcd.cl!not-for-mail!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!not-for-mail