|
it is available. I have the source code. The Microsoft Visual Studio .NET Documentation. You have to find it.
Don't try it, just do it!
|
|
|
|
|
--------------------------------------------------------------------------------
Hi all,
I seem to have hit a brick wall with trying to elimate flicker. I am using Win NT to drive a liquid crystal microdisplay via a dual port graphics card, which is integrated into an optical system.
The display alternates between two monochrome images and it is essential that the display shows a complete image during each frame.
My problem is that, although I am currently using a double buffer method (using a memory DC and BitBlting the bitmap) and have (I think) got rid of any WM_ERASEBKGND messages, I still get disastrous flicker between the alternating images. Indeed, it doesn't look like the background colour is the issue here.
If you were to watch it on screen it looks like one image gradually dominating/taking over the other and then vice versa over several thousand frames. Is there any way to fix this problem or does someone have any explanation for it? I can only think of flicker being the cause, but am open to other suggestions? Am I just asking too much from Windows?
Any help/suggestions greatly appreciated!
|
|
|
|
|
What do you mean you "got rid of WM_ERASEBKGND"? This is a normal message to receive. When you do double-buffered painting, a common way is to do nothing in your WM_ERASEBKGND handler but return TRUE, then do all drawing in your WM_PAINT handler. If you don't handle WM_ERASEBKGND at all, the default behavior will paint the entire client area with your window class's background brush, which sounds like what you're describing with two images alternating.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
|
|
|
|
|
hello,
i want to make program ras api completely,
i mean, i'll make the dial up(DUN) and the response for the dial up
for the the dial up is not my problem.
the problem is how to handle incoming connection using ras api?
i want to call incoming connection dialog in the windows programmatically with visual C++ and i don't know.
i am using window 2000
please help me, if anyone knows to handle this.....
|
|
|
|
|
|
thanks for the information,
but i've already known the information about that.
in the site,there's no program to handle incoming connection with ras api,
so, i ask to the forum,
how to call incoming connection to accept connection from dial up program with
ras api?
|
|
|
|
|
I want to write an application which displays a log. I then want other applications to be able to write to this log. If I click refresh on my log viewing application I want to see any new log entries.
This is my idea for my design:
(1) Log Viewer Application
(2) Logging Application
(3) Other Applications that send log entries to (2)
I think that (2) could be made a COM component. What do you think? What sort of COM component would this be? Would it have to be multi-threaded? How would I have (2) maintain a file which it could read entries from and refresh as requested while other applications (3) write entries to it?
Am I heading the right direction?
|
|
|
|
|
How often will items be added to this file? If the frequency is low, you might consider using the OS's event log. For moderate to high frequency, a database would be more suitable for the task.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
My log viewer must manage the entries and I might have it on Windows 98 or ME so can not use the event viewer or an NT service. You say a database but that would mean depending on a further MS product and using an Access or SQL database wouldnt it? I have written my own database already as my log entries are objects that use CArchive to save themselves to a file. I have a COM component now that I can write entries to and it saves them in the file it manages. But now I want to have access to the log file from my log viewer and still allow other applications to write to it. Is this now a COM question? Must the COM object be multi-threaded or pooled?
|
|
|
|
|
I am creating the contorls dynamically in win32 application. Can we add the windows controls like static, button, edit, check box, etc.. to TREE control?
|
|
|
|
|
Are they any classes or methods within CString to match for a character string;
e.g. I have an array of CString names[1000]; and would like to filter them using a string "xyz". The "xyz" sequence can be anywhere in the item; i.e.
CString names[1000] = {<br />
"qwerty qasdt",<br />
"zxcvbnmkh",<br />
"qwerty xyz123", // mathc found here
etc.
};
I could write my own routine, but whats the point (could introduce errors) if one exists.
|
|
|
|
|
Use int CString::Find(LPCTSTR pstr, int nStart)const
Arsalan Malik
|
|
|
|
|
Thanks, I think this is waht I was looking for.
|
|
|
|
|
Hi,
I have an application in VC++ 6.0 which generates a tree from the database files.
This application allows to open more than one instaces.
First I start the first instance of this application and opens a database file which generates the tree.(Now the data is present in the memory variables. When I save the project the data is stored in the Workspace).
Now I start the second instance of same application and open the same database file (which I opened in first instance of this application). But I want to restrict this second instance of application to open the same data files(which is already opened in the first instance). Because this will pose danger to the data.
Plz any ideas/samples/project send it to me.
I will be very greatfull for your help and support.
Thanks & Regards,
Neeraj
|
|
|
|
|
You need to open your database as exclusive. This will restrict any other application (including second instance of same application) to open the database.
Another suggestion is to make your application single instance, i.e. only one instance can be run. See following for details:
http://www.codeproject.com/threads/simplesingleinstanceapp.asp
Arsalan Malik
|
|
|
|
|
Adding to the above answer, you can also communicate between the instances (Check the IPC Section) to filter the selection to just this database
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi,
I was trying recompile my VC++6.0 to VC++ .Net. When i try to load in VC++ .net it says an unspecified error. then i made a new solution. Added a new MFC extension DLL. and copied the source files. Then all the files got compiled. But it is giveing a linket warning and error as given below..
I feel these are just setting issue. Can some one help.
MSDN Help says include a definition of the _check_commonlanguageruntime_version OR link with nochkclr.obj.
i am new to .net. Can someone Help.
Cheers
Siva
==================================
PersistenceInterface.obj : warning LNK4217: locally defined symbol ??1CEDataTypeMap@@UAE@XZ (public: virtual __thiscall CEDataTypeMap::~CEDataTypeMap(void)) imported in function "protected: virtual __thiscall IEPersistent::~IEPersistent(void)" (??1IEPersistent@@MAE@XZ)
ErosDTs.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CList::~CList(void)" (__imp_??1?$CList@PAVCEDataTypeMap@@PAV1@@@UAE@XZ) referenced in function "public: virtual __thiscall CEDataTypeMapList::~CEDataTypeMapList(void)" (??1CEDataTypeMapList@@UAE@XZ)
ErosDTs.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CEDataTypeMap * & __thiscall CList::GetNext(struct __POSITION * &)" (__imp_?GetNext@?$CList@PAVCEDataTypeMap@@PAV1@@@QAEAAPAVCEDataTypeMap@@AAPAU__POSITION@@@Z) referenced in function "public: virtual __thiscall CEDataTypeMapList::~CEDataTypeMapList(void)" (??1CEDataTypeMapList@@UAE@XZ)
ErosDTs.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct __POSITION * __thiscall CList::GetHeadPosition(void)const " (__imp_?GetHeadPosition@?$CList@PAVCEDataTypeMap@@PAV1@@@QBEPAU__POSITION@@XZ) referenced in function "public: virtual __thiscall CEDataTypeMapList::~CEDataTypeMapList(void)" (??1CEDataTypeMapList@@UAE@XZ)
ErosDTs.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const CEDataTypeMapList::`vftable'" (__imp_??_7CEDataTypeMapList@@6B@) referenced in function "public: virtual __thiscall CEDataTypeMapList::~CEDataTypeMapList(void)" (??1CEDataTypeMapList@@UAE@XZ)
ErosDTs.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CMap > >,char const *,class CEDataType *,class CEDataType *>::~CMap > >,char const *,class CEDataType *,class CEDataType *>(void)" (__imp_??1?$CMap@V?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@PBDPAVCEDataType@@PAV3@@@UAE@XZ) referenced in function "public: virtual __thiscall CEDataTypeMap::~CEDataTypeMap(void)" (??1CEDataTypeMap@@UAE@XZ)
ErosDTs.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CMap > >,char const *,class CEDataType *,class CEDataType *>::GetNextAssoc(struct __POSITION * &,class ATL::CStringT > > &,class CEDataType * &)const " (__imp_?GetNextAssoc@?$CMap@V?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@PBDPAVCEDataType@@PAV3@@@QBEXAAPAU__POSITION@@AAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@AAPAVCEDataType@@@Z) referenced in function "public: virtual __thiscall CEDataTypeMap::~CEDataTypeMap(void)" (??1CEDataTypeMap@@UAE@XZ)
ErosDTs.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct __POSITION * __thiscall CMap > >,char const *,class CEDataType *,class CEDataType *>::GetStartPosition(void)const " (__imp_?GetStartPosition@?$CMap@V?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@PBDPAVCEDataType@@PAV3@@@QBEPAU__POSITION@@XZ) referenced in function "public: virtual __thiscall CEDataTypeMap::~CEDataTypeMap(void)" (??1CEDataTypeMap@@UAE@XZ)
ErosDTs.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const CEDataTypeMap::`vftable'" (__imp_??_7CEDataTypeMap@@6B@) referenced in function "public: virtual __thiscall CEDataTypeMap::~CEDataTypeMap(void)" (??1CEDataTypeMap@@UAE@XZ)
Message.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const CEMessage::`vftable'" (__imp_??_7CEMessage@@6B@) referenced in function "public: __thiscall CEMessage::CEMessage(class ATL::CStringT > >,long,enum EMessageType)" (??0CEMessage@@QAE@V?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@JW4EMessageType@@@Z)
PersistenceInterface.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CMap > >,char const *,class CEDataType *,class CEDataType *>::RemoveAll(void)" (__imp_?RemoveAll@?$CMap@V?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@PBDPAVCEDataType@@PAV3@@@QAEXXZ) referenced in function "protected: virtual __thiscall IEPersistent::~IEPersistent(void)" (??1IEPersistent@@MAE@XZ)
PersistenceInterface.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const IEPersistent::`vftable'" (__imp_??_7IEPersistent@@6B@) referenced in function "protected: virtual __thiscall IEPersistent::~IEPersistent(void)" (??1IEPersistent@@MAE@XZ)
SearchType.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CList::~CList(void)" (__imp_??1?$CList@PAVCESearchType@@PAV1@@@UAE@XZ) referenced in function __unwindfunclet$??0CESearchTypeList@@IAE@XZ$0
SearchType.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct __POSITION * __thiscall CList::AddTail(class CESearchType *)" (__imp_?AddTail@?$CList@PAVCESearchType@@PAV1@@@QAEPAU__POSITION@@PAVCESearchType@@@Z) referenced in function "protected: __thiscall CESearchTypeList::CESearchTypeList(void)" (??0CESearchTypeList@@IAE@XZ)
SearchType.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __thiscall CESearchType::CESearchType(void)" (__imp_??0CESearchType@@IAE@XZ) referenced in function "protected: __thiscall CESearchTypeList::CESearchTypeList(void)" (??0CESearchTypeList@@IAE@XZ)
SearchType.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const CESearchTypeList::`vftable'" (__imp_??_7CESearchTypeList@@6B@) referenced in function "protected: __thiscall CESearchTypeList::CESearchTypeList(void)" (??0CESearchTypeList@@IAE@XZ)
SearchType.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CList::CList(int)" (__imp_??0?$CList@PAVCESearchType@@PAV1@@@QAE@H@Z) referenced in function "protected: __thiscall CESearchTypeList::CESearchTypeList(void)" (??0CESearchTypeList@@IAE@XZ)
SearchType.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: virtual __thiscall CESearchType::~CESearchType(void)" (__imp_??1CESearchType@@MAE@XZ) referenced in function "protected: virtual void * __thiscall CESearchType::`scalar deleting destructor'(unsigned int)" (??_GCESearchType@@MAEPAXI@Z)
SearchType.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CList::RemoveAll(void)" (__imp_?RemoveAll@?$CList@PAVCESearchType@@PAV1@@@QAEXXZ) referenced in function "protected: virtual __thiscall CESearchTypeList::~CESearchTypeList(void)" (??1CESearchTypeList@@MAE@XZ)
SearchType.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CESearchType * & __thiscall CList::GetNext(struct __POSITION * &)" (__imp_?GetNext@?$CList@PAVCESearchType@@PAV1@@@QAEAAPAVCESearchType@@AAPAU__POSITION@@@Z) referenced in function "protected: virtual __thiscall CESearchTypeList::~CESearchTypeList(void)" (??1CESearchTypeList@@MAE@XZ)
SearchType.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct __POSITION * __thiscall CList::GetHeadPosition(void)const " (__imp_?GetHeadPosition@?$CList@PAVCESearchType@@PAV1@@@QBEPAU__POSITION@@XZ) referenced in function "protected: virtual __thiscall CESearchTypeList::~CESearchTypeList(void)" (??1CESearchTypeList@@MAE@XZ)
Debug/ErosDTs.dll : fatal error LNK1120: 20 unresolved externals
===================================
|
|
|
|
|
Look at this:
<br />
CImageList *m_pimagelist = new CImageList();<br />
m_pimagelist->Create( 16, 16, ILC_COLOR8, 0, 4);<br />
<br />
HICON icon = AfxGetApp()->LoadIcon( IDI_ICON1 );<br />
if( icon == NULL )<br />
;
<br />
int ret = m_pimagelist->Add( icon );<br />
ret = m_pimagelist->Add( icon );<br />
ret = m_pimagelist->Add( icon );<br />
<br />
int count = m_pimagelist->GetImageCount();<br />
<br />
<br />
SetImageList( m_pimagelist, TVSIL_NORML );<br />
<br />
CImageList *p = GetImageList(TVSIL_NORML);<br />
<br />
if( p == NULL )<br />
;
How come that “SetImageList( m_pimagelist, TVSIL_NORML )” Doesn’t work?
All suggestions are welcomed!!
_____________________________
...and justice for all
APe
|
|
|
|
|
Hello Friends,
I couldn't able to display a bitmap file which is present at the location "c:\images\1.bmp" in the view whenever i execute my program. Please help regarding this matter.
thank you,
Bye friends
|
|
|
|
|
|
hi,
My programming background is c,c++ and C#. Now i am little bit crazy abt VC++ and MFC. i don't know which book is too very good for beggners like me.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
I believe that for beginner VC++ 6 by sams publisher is best. later on shift to MSDN. (I know nothing about .NETness)
|
|
|
|
|
Hello Friends,
I am here again with a new query.
I am doing a project where I have to display 2 bitmap images in a single row and the number of rows depends on the number of bitmap images present in the directory from where we display the bitmap images. the images should be displayed only on 120 x 120 like a thumbnail view in the windows explorer.
Bye bye
thank you
|
|
|
|
|
Hello
Get the number of bitmaps to show. Create those many butons with size 120 X 120 at runtime. Arrange them on screen by calculating client area. Load the bitmaps on buttons.
Regards,
Prashant
|
|
|
|
|
Hi Prashant,
Can u please explain with code and what are the type of buttons to be used.
Bye bye
Thank you
|
|
|
|