|
Hi I modified the mail above. Sorry I forgot to include some stuff!
I will be 55 next week or so I am slipping abit or byte.
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
CListCtrl m_list1;
...
DDX_Control(pDX, IDC_LIST1, m_list1);
...
BOOL CSymbolSelectDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
CImageList mm;
mm.Create (IDB_SYMBOLS, 16, 1, RGB (192, 192, 192));
m_list1.SetImageList(&mm,LVSIL_SMALL);
CString cc;
for(int i=0;i
|
|
|
|
|
The image list needs to be a member of the class otherwise it will get destructed when the function exits
|
|
|
|
|
Hello all,
I'm doing a small app. using thunking mechanism. However, I did'n have a suitable 16-bit Resource Compiler for marking the 16-bit Dll to version 4.0. What I currently have is a 16-bit RC coming with VC++1.52 (can only mark up to version 3.1) and another 32-bit one. Both of them are useless. The MSDN shows that it's in directory BINW16 of Microsoft Win32 SDK. I can't find this directory although I installed Microsoft Flatform SDK. Actually, I don't where it's exactly located. I mean which publishing date of this Flatform SDK set. How can I get this file? If you succeeded in using thunking mechanism, please give me your suggestions. Your helps are highly appreciated.
Best regards.
|
|
|
|
|
Yes,
This may not be any help whatsoever, but the old Lattice C compiler (1988) now VC was 16 bit.
Look around on the web for it. I used it not long ago for a similar prj and found it on a freeboard in Germany.
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Hi Guys,
Being new to MFC, is it still ok to use GetDlgItem, SetDlgItemInt etc....?
Cheers
|
|
|
|
|
|
Cheers.
Short but sweet and effective enough, ta.
I must say i'm enjoying this MFC stuff, i've spent almost 15 years using C to write software for controlling 'fruit machines' and it's nice doing something different.
Merry Christmas, one and all!
|
|
|
|
|
I am trying to develop a dialog based application in MFC (Visual C++ .NET). Everything was going okay until I tried to add TAB control to it. The TAB control works fine but none of the extra dialog boxes created for the application can be seen in it.
I have downloaded the example from
http://www.codeproject.com/dialog/embedded_dialog.asp
and it compiled fine but whenever I try to create my own tab in the project it doesn’t seen to work.
I have downloaded many other sample programs using tab control and have the same problem when I add my own tab.
I open a new dialog box of ‘IDD_PROPPAGE_MEDIUM’ and add a class of ‘Cpropertypage’ to it. This creates a .h and .cpp file for me. The Header file looks completely different to ones created in the examples. ie there is no
#ifndef __DIALOG2_H<br />
#define __DIALOG2_H
I get a very basic file with #pragma once .
If anyone could help I would really appreciate it as it’s driving me mad. I can let you have the source files if needed.
|
|
|
|
|
I made an app to save MSN webcam conversations and it works quite well. All it does is saving the DC of the MSN windows, but i know there must be a better, lowlevel sollution for this.
What approach should i take for writing an app that finds the Directx (MSN uses directx right?) surface and let me copy the data.
|
|
|
|
|
I need to launch a windows app. @ particular co-ordinates on my extended windows desktop, from within a MFC Dialog. I can launch the app. fine, but dont know how to launch it at a particular position.
I also know that if I position the app to the appropriate position and close it,it will come up in the same position the next time its launched, but thats not really the way I want to do it.
Any one has a clue?
|
|
|
|
|
|
Unfortunately, I am using ShellExecute() to launch the process, did that because we wanted for the app. to come up in its default program. i.e if its a word doc, MS word will launch it. If its a pdf adobe acrobat will launch it.
and unfortunately ShellExecute() doesn't let you pass position parameters.
Any other ideas?
|
|
|
|
|
Determine the files associated executable by looking in the registry then use CreateProcess to launch the executable and the file thus allowing you to use the position control available with CreateProcess().
Art
|
|
|
|
|
Hi,
My appication shows an error while building,
LNK1168 - fatal error LNK1168: cannot open Debug/MYPROG.exe for writing
I have to restart to the machine everytime this happens.
Is there anyway to get around this problem?
Thanks,
Deepak Samuel.
|
|
|
|
|
It sounds like the EXE is running (i.e., did not shut down properly), thus cannot be overwritten.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Yeah...
This can happen if the message loop for the program is defective or the quit message isn't being posted. The window closes, but the application still sits around running.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
ctrl+alt+del - and shutdown your programm
|
|
|
|
|
Hi
I have a problem with a program i have distributed.
On some computers, there is an error message show: 'An invalid page fault in MFC42.DLL'
I have put my version of 'MFC42.DLL' on his computer in windows system directory, but problem remains.
Anyone any ideas?
Greetings
Jens
|
|
|
|
|
First of all why do u need to distribute MFC42.DLL?? ur not supposed to do that....
Just build ur application with Option MFC Statically Linked instead of Shared Dll.... ok?? then u need not bother abt whether the target does contain which DLL...
hope this works for u....
gud luck
adi
"You cann't win if u don't play"
|
|
|
|
|
Actually, you can. You may not distribute MFC42D.DLL, but that's a whole other issue.
What I would do is to get hold of VCREDIST.EXE from microsoft.com, and install that on the client machine instead.
Steve S
|
|
|
|
|
I need to show a succession of full screen modal dialog boxes. And I would like to avoid the flickering between them...
My code looks somehow like this (in its very simplified version)
<br />
while ( isContinue )<br />
{<br />
CMyDialog dlgDialog;<br />
if ( dlgDialog.DoModal() ==IDCANCEL)<br />
isContinue = false;<br />
}<br />
Any ideas? Thanks!
|
|
|
|
|
In this scenario, there is no way to avoid the flickering because the dialog boxes are being created and destroyed each iteration of the loop. Explain a bit further what you are after and we might can come up with a better design.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
I understand that the dialog gets destroyed and that triggers the flickering.
But I have tried something like this
<br />
CMyDialog * pdlgOld = NULL;<br />
while ( isContinue )<br />
{<br />
CMyDialog * pdlgDialog=new CMyDialog;<br />
if ( pdlgDialog->DoModal() ==IDCANCEL)<br />
isContinue = false;<br />
if ( pdlgOld != NULL )<br />
pdlgOld->DestroyWindow();<br />
pdlgOld = pdlgDialog;<br />
}<br />
if ( pdlgOld != NULL )<br />
pdlgOld->DestroyWindow();<br />
and overriden CMyDialog::EndDialog so it would return the value (by calling EndModalLoop) but not actually call ::EndDialog
But that does not seem to work!
|
|
|
|
|
Modal dialogs are not designed to be operated in such a fashion. What is the net result you are after?
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|