|
I will giving this a try. Thank you very much.
|
|
|
|
|
The docs say to include windows.h, but it doesnt help. Compile error with:
MENUITEMINFO miiInfo;
miiInfo.cbSize = sizeof(miiInfo);
miiInfo.fMask = MIIM_FTYPE|MIIM_ID|MIIM_STATE;
error C2065: 'MIIM_FTYPE' : undeclared identifier
Thanks,
ns
|
|
|
|
|
Try MIIM_TYPE
[Edit]
Sorry, I just looked up MIIM_TYPE in Winuser.h and found also MIIM_FTYPE is also defined there, but MIIM_FTYPE is enclosed in a #if(WINVER >= 0x0500) block. So you will have to ensure you are building for W2K or above in order for MIIM_FTYPE to be recognized by the compiler.
[/Edit]
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
|
Hi There
The scenario:
I got one Java application (server) and multiple C++ clients. The java server is always running and the C++ clients will need to communicate with it as they are started/Stopped. The data communicated is mainly XML. All this is running on the same computer.
The demands:
The communication must be platform independent, at least in the Java application (i.e. no using JNI dlls) because the Java server should run unchanged and be able to communicate with clients implemented on other architectures in the future.
The technique should be easy to work with, i.e. not too low level, and not over complicated (as I suspect CORBA is)
The question:
What communication technique/technology should I use?
The considerations:
CORBA Too complicated for the simple use?
Sockets/Pipes Too much work for the intended simple use?
XML-RPC Current my favourite. But is it too inefficient using HTTP when the communication is local?
JNI Not suited for IPC unless memory mapped files are added...correct?
XYMessenger As presented here. Might be suitable but how is it compared to XML-RPC?
Kind Regards Rene
|
|
|
|
|
My vote: Sockets.
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
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
|
|
|
|