|
kbratvold wrote:
Is there a way to route them to B instead?
Not that I know of.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I have a problem with MFC, I am building this application, and I am using the MFC wizzard to add message handlers for my menus, everytime I give a particular menu a name, say, SERVER now I add to the first empty item in the SERVER menu item called
ID_SERVER_MOUNT_SERVER
followed by
ID_SERVER_DISMOUNT_SERVER,
for some reason the the wizzard is assigning them both the same ID causing problems when I come to add the message handlers. If I go back and correct the problem, and re-compile, it still will not fix the problem, which apart for causing me to loose my hair, won't work when it comes to using
COMMAND and UPDATE_COMMAND_UI
Short from starting the whole project over, I don't have a clue why this problem exist, and solutions??
|
|
|
|
|
Best bet - learn not to use the wizards. They always screw things up.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Hi,
These header files are 'included ' (along with several others) in a C++ program i received. however, they are not on my system, and when i start the compiler, it cannot find them:
#include sys/time.h
#include termios.h
#include unistd.h
Are these standard files? Where can I find them?
Thanks
Michael
oops!
|
|
|
|
|
MichaelGG wrote:
Are these standard files?
On a UNIX system they are
MichaelGG wrote:
Where can I find them?
On a UNIX system, but the chances are the application won't work under Windows if it relies on anything in them.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
As the other guy said, they are standard for Unix.
You have two choices under windows: the better one is to figure out what parts of those are used, and then design a windows alternative. If this is open source and you do this, please submit the changes back.
The easier one (and perhaps just as good) is to install either Cygwin or mingw and use them to compile it, as they already have both most of what you need. You may still need to do some porting to make the programs work it won't be nearly as much work. I have no comments on which is better.
|
|
|
|
|
how can i access the parallel port input and output
|
|
|
|
|
Depends what you want to do. It's probable that there is an article here on CP that will answer your question, I know there's lots of articles, because I've been reading them.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Hello,
I have already communicate with a lot of experts and read a lot about my
problem which is as follows: I want to develop a generic program for a
PocketPC, which logs the method-call and the time when any button or anything
else is executed, respectively a method is executed, in a file on the Pocket
PC. I need this for Usability studies. Every experts told me that i can reach
this only with embedded c++ or c code. I wrote my previous programs always with
c#.
So i want to ask in this forum if somebody can help me to solve my problem?
- this would be very important for me, because i need it for my diploma
(thesis).
thanks in advance.
Regards.
Patrick
|
|
|
|
|
You want a system wide hook, which is probably a C++ thing. There are plenty of examples on the web, find one, wrap it in COM and interop it to C#.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I'm working on an application that will use a custom input device, supplied by the client, which connects to the parallel port. They've given me a disagram which looks like this
25 Status 0 1 2 3
11 S7 ML H Men LF
15 S3 LB A/T PB A>>Z
13 S4 Z<
|
|
|
|
|
I'm creating a file from the binary data stored in an image field in a database. When the user clicks on the filename in my listbox, I read the bytes from the database, and create the file, then do a shellexecute() to open the file. All this works fine, except I use GetModuleFileName to create a path to a folder called 'temp' in the same directory as the exe. If the 'temp' folder doesn't already exist, my app crashes, but if the folder already exists, everything is fine. Any help would be appreciated.
I thought by specifying CFile::modeCreate as one of the flags it would create the directory as well as the file. Apparently not.
[insert witty comment here]
bdiamond
|
|
|
|
|
How about:
if (_access(..., 0) == 0)
CreateDirectory(...);
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I think modeCreate will only create the file if it does not exist. You need to create the directory separately.
store your internet favourites online - www.my-faves.co.uk
|
|
|
|
|
I posted this same question earlier but the answer I got (IHMO) was basically my question
Here is the error I get when I build under anything but debug.
Q125750 "PRB: Error LNK2001: '_WinMain@16': Unresolved External Symbol"
I have read the KB article by MS and have done what it says...replacing the entry point, etc...
Still didn't work...so I dug a little deeper and I think the problem lies in the fact that the com object is a dll and has DllMain not WinMain as entry point, but i've tried DllMain as entry and still no dice.
Any ideas on what one has to do to make a COM DLL (appwizard generated) build in realease???
Thanks again
How do I print my voice mail?
|
|
|
|
|
Hello, I'm using a CEdit in a CDialogBar to display and maybe editing some text files. When I read the file and put the contents in the CEdit it does not interptrets correctly the CR-LF pair and shows that weird square-characters on the control. No new line at all at the CEdit Control.
The CEdit has multiline and want_return flags.
Is there any way to load simple txt files in without having to manually convert CR_LF to other character?
PD: the text files are displayed correctly in notepad, VSstudio, etc etc.
regards
|
|
|
|
|
asmatic wrote:
Is there any way to load simple txt files in without having to manually convert CR_LF to other character?
I'm pretty sure you have use \r\n...or just \r...play with it a bit you'll figure it out.
How do I print my voice mail?
|
|
|
|
|
CString fileName="./Test.xls"
_WorkBook book
.....
_variant-t fName(fileName);
book.SaveAs(fName,covOptional,covOptional,covOptional,covOptional,covOptional,0,covOptional,covOptional,covOptional,covOptional);
Whatever I do I cannot save this in the current directory . it is always saved in th "My Documents" folder . Please help
|
|
|
|
|
Have you tried using CString fileName=".\\Test.xls" ? Office doesn't respond favourably to Unix-style paths...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi, all!
Working on one of the projects I need to distinguish menu resources in local and network version. That was done through the Insert Copy... with condition set. But after that, every time I change something in resources or in Resource.h I get menu item with conditions quoted!
If it has before conditioning IDR_MAINFRAME, now it is "IDR_MAINFRAME" <- quoted... And I cant load that resource at run-time.
Does anybody know, is this behaviour is by design? Or what is that?
GREAT Thanks!
p.s. If it was for ex. IDR_TestIssue it will come as "IDR_TESTISSUE" - quoted and uppercased
|
|
|
|
|
Hi guys, what I have to doto make my SDI app non-resizable.
Best Regards.
Doc
|
|
|
|
|
Try to set min/max sizes and handle OnSize() of course.
|
|
|
|
|
Sorry my ignorance
But where I have to control OnSize()
CMyApp ?
CMyAppView ?
and where inside the right class?
Doc
|
|
|
|
|
Look here and go to "4.18: How do I restrict my window so it can't be resized larger or smaller than a certain size?"
Set pmmi->ptMinTrackSize.x equal to pmmi->ptMaxTrackSize.x,
pmmi->ptMinTrackSize.y equal to pmmi->ptMaxTrackSize.y (in CMyAppView). I think it will work.
|
|
|
|
|
You can try WM_GETMINMAXINFO.
Omar - VC++ Programmer
|
|
|
|