|
Christian Graus wrote:
If you have 50-60 global variables, you're bound to burn in hell anyhow
I hear you
It is Illogical to define an inventor by his invention
|
|
|
|
|
Create a new ATL object and add properties to the object that return the global variables.
It's probably the easiest way to do it, although it is a bit of a hack.
Michael
"Eureka" is Greek for "This bath is too hot"
|
|
|
|
|
Michael P Butler wrote:
Create a new ATL object and add properties to the object that return the global variables.
An ATL object with 60 properties sounds bad to me!
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
|
|
|
|
|
It's not many more than your standard ActiveX control. You could even just use methods with multiple out parameters.
Good to see you back Nish.
Michael
"Eureka" is Greek for "This bath is too hot"
|
|
|
|
|
Michael P Butler wrote:
It's not many more than your standard ActiveX control
But those properties are set at design time, aren't they? And I doubt if it is advisable either! Anyhow, I might be wrong! My COM awareness is still pretty raw, despite Mike Dunn's noble attempts via Sonork
Michael P Butler wrote:
Good to see you back Nish.
I was never gone, was I? I was hoping my soul would still hang around here
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
|
|
|
|
|
Nishant S wrote:
But those properties are set at design time, aren't they?
Properties can be set at run time or at design time. You can specify properties to be get only, so you can't set them at all. A property is just a wrapped method really.
Nishant S wrote:
I was never gone, was I? I was hoping my soul would still hang around here
You hadn't posted for a while, so I assumed you had taken a break. Although a browse of the forums shows you've been here, just not been as prolific with your postings.
Michael
"Eureka" is Greek for "This bath is too hot"
|
|
|
|
|
Hi, I was wondering if anyone knows how to access (wav)files (on a cd-rom) that are shown as *.cda?
The file it´self is shown as 1kb large (although it is just 44 bytes long, as it is the wav header).Is there anyway I can access the file (like drag and drop or copy) as a normal wav file (i.e. like the alternative cdfs.vxd under Windows 9x os´s ?)
Thanks in advance
Phil
|
|
|
|
|
The cda files are references to the start/finish of a track. Audio CD's are different to CD-ROMs in the way they store stuff. You will need some kind of ripping software. Windows Media Player 7+ or RealOne Player will do this.
"If at first you don't succeed.....you must be installing Windows..."
Windoze CP - Windows without the cr*p (Now with automatic bug eliminator!)
Hey so what if I'm a geek! Byte me!
|
|
|
|
|
I was tinking of doing the "ripping" myself, so far I´ve found out that in the cda file is the start and end sector of the "music", the track number and a few other things (time in minutes, seconds etc.). Is there any way to read the cd directly i.e. low-level api ?
|
|
|
|
|
How to zip and unzip files easily? Does anybody know
some easy library (lib/dll)
|
|
|
|
|
Yes, it's called zlib. Plenty of info on the web. I've never used it myself, but I'm told it works well.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
Check out the Info Zip site [^], you should find everything you need there
Dylan Kenneally
London, UK
|
|
|
|
|
Look for Mr Dracz's 'Zip and UnZip the MFC way' here at CodeProject.
"If at first you don't succeed.....you must be installing Windows..."
Windoze CP - Windows without the cr*p (Now with automatic bug eliminator!)
Hey so what if I'm a geek! Byte me!
|
|
|
|
|
hi
i changed comboboxex style from CBS_DROPDOWNLIST to CBS_DROPDOWN
sometimes happends it not draws text into edit box (clears background only?)
when i jump to another (full sreeen) program and back (== full redraw) all is fine
i found
CEdit *pEdit = GetEditCtrl();
if(pEdit)
{
pEdit->Invalidate();
}
into OnDrawItem helps but it seems to me not normal
reading
LONG ws = GetWindowLong(GetSafeHwnd(), GWL_STYLE);
DWORD es = GetExtendedStyle();
gives me CBS_DROPDOWN and 0
but spy displays CBS_OWNERDRAWFIXED|CBS_NOINTEGRALHEIGHT too
any ideas?
thanks
t!
|
|
|
|
|
how to detect how many members in multicast group?
I'm sorry for my English! ^_^
|
|
|
|
|
|
chenwhenlong wrote:
I'm sorry for my English!
That's OK, but we have no idea what the hell you're talking about. What is a multicast group ?
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
IP Multicast [MCAST] is an internetwork service that allows IP datagrams sent from a source to be delivered to one or more interested receiver(s).
I guess chenwhenlong wants to know about IGMP, the Internet Group Management Protocol. Maybe this page contains some useful information.
|
|
|
|
|
I want to check whether the current user has privilege/rights to read a file.I need info on the "right" API to use for this purpose.
I came across, CreateFile, GetFileSecurity,GetKernelObjectSecurity. I'm a bit confused over to which one to use. Also this is the first time I'm goin thru the security stuff.
thanks
Kannan
|
|
|
|
|
GetFileSecurity() is better
make sure abt READ_CONTROL_ACCESS
Renjith-The CPian.
|
|
|
|
|
hi ,
i am working on a (GUI)project.
i have created the dialog boxes and now i have to write a code which processes the inputs.can you tell me where i have to write the code.i.e in which file.
|
|
|
|
|
Please don't ask the same question twice.
Surely your dialog box has a class attached to it ? Use the class wizard to associate variables with the input items in the dialog, and then process them there.
I also suggest you do some reading - I suspect most of the articles here will be above your head, but there are some beginner ones which would answer this sort of question adequately. Check out the FAQ as well.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
Is There a Class along with ur GUI? just add ur code there..
Renjith-The CPian.
|
|
|
|
|
hi,
i have created the dialog boxes.
where should i write the code so that the code processes the input values taken from dialog boxes.
|
|
|
|
|
Hi, I am Steve, and I need your help. I have a problem: I have to make this
program in Visual C++, that takes a file, encrypts it, in whatever way, and then sends
it to some address, specified by me. Can you help me with this? I mean, can you
send me some code for encryption and sending the file on the net, or on the
interface I have to use? I am just a newbie, and I do not know so much C++ to
do this.
Thanks,
Steve
You can write me some suggestions on my email address: "steve_cluj@email.ro"
Steve
|
|
|
|