|
The checkbox state is kept separately. Use ListView_GetCheckState() and ListView_SetCheckState()
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|
|
Hi everyone,
I don't know how to use two filtergraphs simultaneously in my application. When I
build two identical filtergraphs to capture two video sources simultaneously, it
works fine when the two filtergraphs run at the same time. But at the time when I
stop them, the application cracks. Each of the filtergraphs can run and stop
properly if the other is stopped.
Does anyone have the same experience as mine? Please help me solve this puzzle
thanks.
pdutcal
|
|
|
|
|
<<< In the name of GOD >>>
Hi.
I want to know, why we use AssertValid and Dump in SDI and MDI mode ?
Does thease won't work by RELEASE compile mode ? (In MSDN)
Hadi Rezaie
|
|
|
|
|
The Dump and AssertValid (as well as TRACE and ASSERT) are used in Debug versions of your app so that you can track down bugs while you're programming the application. They are used to catch logic errors etc, NOT runtime errors such as not being able to write to a file because its locked or something.
Hope that helps,
Andrew.
|
|
|
|
|
Thanks alot for your help.
Hadi Rezaie
|
|
|
|
|
Hi,
I'm trying to make Word (winword/MS word) like auto-complete of keywords while editing in rich edit control. Eg: When you type "Janu" in microsoft Word, a small yellow pop up (like tool tip)comes above "Janu", containing text "January" and now if I press enter or tab key the text Janu is auto-completed to January.
Any pointers on how to implement this in my CRichEditView will be highly appreciated.
Shrini
|
|
|
|
|
I have not any think to say.
please help me.
Thanks a lot.
|
|
|
|
|
Call CFileDialog() with TRUE (open dialog box) or FALSE (save dialog box)
Ammar
|
|
|
|
|
I have not any think to say.
please help me.
Thanks a lot.
|
|
|
|
|
I want to enter Month and Date only in date field. No year. But Access 2000 puts year in the field by itself.
I read an article on MS site that this is a default functionality in Access2000. There should be an option to check this functionality off.
I am using VC++. I get records from Access and put them in a grid. Since the Datagrid 6.0 control is bound to the db, it displays the year too. I am sorting data on date, so I cant change the field to "Text" type.
I dont want the year to be there. How do I save month and date only in mdb file?
HELLLLPPP!!!
Ammar
|
|
|
|
|
you must remember that access (and most db's i know of) store date / times in a kind of julian format (ie, the number of days since 1st jan 1900, for example, and the number of milliseconds since midnight)
now saying "i dont want to store the year part of a date" is like saying you don't want to buy bananas with their skins on, ie, not in this world
am not sure about data-bound grids (never use them cos you get all the hassles u are dealing with) but if you were to use unbound mode for the grid you could split the dates yourself and display only the day and month part of the date
hmmm ... isnt there a PreDisplayData() type function you could trap into and do the same in bound mode?
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Make your own grid...
Do not sound nice, but you can't get rid of the year in a date/time field in access...
- Anders
|
|
|
|
|
anyone out there use this compiler? i find myself opening it 10times more than vc++. the win32 library is amazing. the irc tech support is the best. there is ALWAYS a bloodshed guy there to help people. really the only reason i ever open vc++ is for my interfaces and bmaps
Bill Gates is Linus Torvalds' bitch
Windows bows down to Linux by 2010
|
|
|
|
|
I'm writing program under WinNT environment recently and wants to make it workable in Win95/98. This program has to talk to the Touchscreen driver. This driver has different interface file for 85/98 and NT, but they do share some *.h files (share the main .h file.......for example, i have to access function ABC(). Both W95/98 and NT's interface file have this function (same name) and share the same .h file (ABC.h). So, I just only have to include ABC.h in my program and use this function. If i want to work in 95/98, i just have to put the w95/98 file in my project....same as WinNT.
However, can i put everything in the project and let the program to decide whether using w95/98 or NT. I don't want to have two separate programs in W95/98 and NT.......
Thanks
|
|
|
|
|
its called conditional compilation
or you could detect the os at runtime and switch between diff code blocks but then your code is bigger
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
I'm writing program under WinNT environment recently and wants to make it workable in Win95/98. This program has to talk to the Touchscreen driver. This driver has different interface file for 85/98 and NT, but they do share some *.h files (share the main .h file.......for example, i have to access function ABC(). Both W95/98 and NT's interface file have this function (same name) and share the same .h file (ABC.h). So, I just only have to include ABC.h in my program and use this function. If i want to work in 95/98, i just have to put the w95/98 file in my project....same as WinNT.
However, can i put everything in the project and let the program to decide whether using w95/98 or NT. I don't want to have two separate programs in W95/98 and NT.......
Thanks
|
|
|
|
|
Are there any books about ADO with VC?
I've only been able to find VB ones...
|
|
|
|
|
Hi,
My question is about WH_SHELL hook. When I hook WH_SHELL, the tray does not work correctly when my program is active. For example, when I open a program (when my program is active) its icon does not appear in the tray.
Note that in the hook function, I do nothing. I just call next hook. Moreover, the problem arises only on Win9x/Me. Not on W2k.
Is there anybody who knows the reason for this stupid behavior?
Mustafa Demirhan
|
|
|
|
|
Hi
I've tried to use STL in an MFC project. The subject describes the problem rather well.
The strange about this is that THIS_FILE doesn't exists in the lines where the compiler complains.
I checked what THIS_FILE is, and became even more confused. Why would STL use an identifier used by
the MFC macros ASSERT and VERIFY? Anyone who has solved this?
the compiler output:
c:\program\microsoft visual studio\vc98\include\new(35) : error C2061: syntax error : identifier 'THIS_FILE'
c:\program\microsoft visual studio\vc98\include\new(35) : error C2091: function returns function
c:\program\microsoft visual studio\vc98\include\new(35) : error C2809: 'operator new' has no formal parameters
c:\program\microsoft visual studio\vc98\include\new(36) : error C2061: syntax error : identifier 'THIS_FILE'
c:\program\microsoft visual studio\vc98\include\new(37) : error C2091: function returns function
c:\program\microsoft visual studio\vc98\include\new(37) : error C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,const struct std::nothrow_t &)' : overloaded function differs only by return type from 'void *(__cdecl *__cdecl operator
new(void))(unsigned int)'
c:\program\microsoft visual studio\vc98\include\new(35) : see declaration of 'new'
c:\program\microsoft visual studio\vc98\include\memory(16) : error C2061: syntax error : identifier 'THIS_FILE'
c:\program\microsoft visual studio\vc98\include\memory(17) : error C2091: function returns function
c:\program\microsoft visual studio\vc98\include\memory(17) : error C2784: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,class std::allocator<`template-parameter257'> &)' : could not deduce template argument for 'void *(__cdecl *)(unsigne
d int,class std::allocator<_Ty> &)' from 'void *(__cdecl *)(unsigned int)'
c:\program\microsoft visual studio\vc98\include\memory(17) : error C2785: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,class std::allocator<`template-parameter257'> &)' and 'void *(__cdecl *__cdecl operator new(void))(unsigned int)' hav
e different return types
c:\program\microsoft visual studio\vc98\include\memory(16) : see declaration of 'new'
c:\program\microsoft visual studio\vc98\include\memory(17) : error C2809: 'operator new' has no formal parameters
c:\program\microsoft visual studio\vc98\include\memory(20) : error C2954: template definitions cannot nest
|
|
|
|
|
<<< In the name of GOD >>>
Hi all.
I want to run my program(Editor.exe) in other computer.
But the computer indicate error about MFC42D.DLL to me.
I know that i must create setup disk, but i don't know using of InstallShield.
So please write to me using of InstallShield (step by step).
Thanks for reply.
Hadi Rezaie
|
|
|
|
|
You dont need to use InstallShield. Use winzip and add this dll to the zip file.
Or link the MFC statically to your program!
Mustafa Demirhan
|
|
|
|
|
And one more think...
Dont use your program's debug version in you distributions. Use release versions instead.
Mustafa Demirhan
|
|
|
|
|
Occasionally, I find it easier to build an MFC Project by cloning an existing Project.
The way I do this is to copy everything to a new directory, rename the Workspace/Project files etc., then Edit the Workspace/Project/etc., files replacing all occurrences of the old names with the new ones.
It works, but it seems a bit "messy".
Is there a better way to do this?
Bryan.
|
|
|
|
|
I've written a file renaming program and a multiple-file
text replace program. I use them to do the same thing
and it only takes a few steps. I can send you the exe or
the source if you wish.
Daniel
"das leid schlaft in der maschine" -Einstürzende Neubauten
|
|
|
|
|
How about putting on a website? - I'm sure lots of people would like something like that.
Christian Skovdal Andersen
|
|
|
|