🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2955

Re: OnDeviceChange Problem

#2955
From: Uri
Date: Thu, 19 Oct 2006 09:14
40 lines
2118 bytes
I work with Builder 4.0

Now I have all the following includes:

#include <windows.h>
#include <dbt.h>               // for DEV_BROADCAST_DEVICEINTERFACE
#include <initguid.h>          // defines the guid macros
#include <devguid.h>?

but I still get the Error message - 

Undefined symbol 'GUID_DEVCLASS_USB'

on the line - 

NotificationFilter.dbcc_classguid  = GUID_DEVCLASS_USB;


Do you have any Idea why ?



Michel Leunen <nospam@noreply.be> wrote:
>Uri wrote:
>> Hi,
>> 
>> I have found the file 'devguid.h' on my PC, in this file I find
>> the following Guids,
>
>It seems that there are a lot more GUIDs in my version of the file than 
>yours. Weird. Which version of BCB are you using?
>
>> which one is the Guid of my device? (the
>> device is just a small Electronic Card that someone has made for
>> us) 
>
>I don't know. Ask the manufacturer.
>
>Michel
Technical Details
Message-ID: <453741d8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4534d31d$1@newsgroups.borland.com> <45350f17@newsgroups.borland.com> <453620dd$1@newsgroups.borland.com> <4536288b@newsgroups.borland.com> <45362fb9$1@newsgroups.borland.com> <45366845@newsgroups.borland.com> <45367277$1@newsgroups.borland.com> <45373112$1@newsgroups.borland.com> <4537345e$1@newsgroups.borland.com> <45373844@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a72a1c41eec7e70f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Uri" <Uri@nomail.com>
Sender: "Uri" <Uri@nomail.com>
Reply-To: "Uri" <Uri@nomail.com>
Subject: Re: OnDeviceChange Problem
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.0.27.159     
References: <4534d31d$1@newsgroups.borland.com> <45350f17@newsgroups.borland.com> <453620dd$1@newsgroups.borland.com> <4536288b@newsgroups.borland.com> <45362fb9$1@newsgroups.borland.com> <45366845@newsgroups.borland.com> <45367277$1@newsgroups.borland.com> <45373112$1@newsgroups.borland.com> <4537345e$1@newsgroups.borland.com> <45373844@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <453741d8$1@newsgroups.borland.com>
Date: 19 Oct 2006 02:14:00 -0700
X-Trace: newsgroups.borland.com 1161249240 207.105.83.66 (19 Oct 2006 02:14:00 -0700)
Lines: 41
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail