|
I am using ShellExecute to run a dos command.
How can I tell if the dos command failed ?
I think that WinExec might work for this but I must use ShellExecute since I have to wait for a long command to wait and I am utilizing the :
WaitForSingleObject (sei.hProcess, 0)==WAIT_TIMEOUT
Thanks,
Shay
|
|
|
|
|
Shay
How is it going?
WaitForSingleObj may not be the way to go.
Best Wishes,
Marty
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
I did it in a similar way and it works fine
thanks for the dedication.
|
|
|
|
|
What do you think about using CopyCallback ?
UINT CopyCallback(
HWND hwnd,
UINT wFunc,
UINT wFlags,
LPCSTR pszSrcFile,
DWORD dwSrcAttribs,
LPCSTR pszDestFile,
DWORD dwDestAttribs
);
It is part of
int SHFileOperation(LPSHFILEOPSTRUCT lpFileOp
);
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Hmmmm, how exactly, can you expand ?
|
|
|
|
|
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"
|
|
|
|