|
While you do provide a solution to a subset of the original problem, a reliable solution is unattainable (as Michael has already pointed out).
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
I stand by my solution again. The original problem can not be solved as micheal has stated i agree with that. But no one had provided any solution. It can not be done is easy to answer but if you can provide solution for atleast part of the problem may be it is what the the original author of the question was looking for.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
Anyone know of a function that will convert romanji (either ascii or unicode) to hiragana???
|
|
|
|
|
|
|
|
|
I have learn Programming in C for 2 years. But, i wonder how to direct the printer to print the output required?(Command in source code.)
|
|
|
|
|
You're wanting to print something, but I can't tell what. Can you elaborate?
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
My problem is like this:(C Language)
-for example to print an output as below to the monitor,
Menu
====
....
we can use the source code as below,
fprintf(stdout,"Menu");
fprintf(stdout,"====");
fprintf(stdout,"....");
-so can i print the same output using printer to produce hardcopy?
-is there any file pointer that assume to the printer, as the "stdout" been assume to monitor.
-on other hand, i also have the same problem with scanning input, isn there any specific file pointer for other input devices such as OMR, Barcode scanner, & etc.
-maybe you can show me some of the example statement in C language.
|
|
|
|
|
Anonymous wrote:
so can i print the same output using printer to produce hardcopy?
Yes, use stdprn instead of stdout .
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
when i start running the program by using file pointer call 'stdprn', problem occured where the preprocessor '# include <...>' for 'stdprn is not included in the source code. can i know which type of header file include this file pointer???
|
|
|
|
|
Admittingly, it's been over 10 years since I've used that particular stream. Back then I was using Borland C/C++ to create DOS programs. Maybe it's from that era that I remember it.
There's the off-chance that you might could use:
#define stdprn (&_iob[3])
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I posted a thread about how to detect cdrw and MO,but it didn't get appropriate answer.I just use the way as showed below to do it.
/ **************************************************
**
BOOL GetDriveGeometry(HANDLE hDevice, PGET_MEDIA_TYPES pMediaTypes)
{
DWORD dwOutBytes;
BOOL bResult;
bResult = :eviceIoControl(hDevice,
IOCTL_STORAGE_GET_MEDIA_TYPES_EX,
NULL, 0,
pMediaTypes, MEDIA_INFO_SIZE,
&dwOutBytes,
(LPOVERLAPPED)NULL);
return bResult;
}
**************************************************
***
I can get all CD driver(including cdrom and cdrw,but just as CD driver) with GetDriveProperty.The reason why I get cdrw as CD driver because their value of
"pMediaTypes->MediaInfo[0].DeviceSpecific.DiskInfo.MediaType" all is "CD_ROM".
I want to know the driver's r/w attribute by its parameter of
"pMediaTypes->MediaInfo[0].DeviceSpecific.DiskInfo.MediaCharacteristics" ,but result is still "read only".
please give me some suggestion.
thank you.
Happy Gemini
|
|
|
|
|
I'm working on a document and am looking to use standard terminology where possible:
There are built-in data types (e.g., int, float, char*, etc) and there are objects. I'm looking for a commonly used term that refers to either. Is there such a term?
Is there a name for the program initialization activity when global C++ objects are initialized at run time? (This happens before main() gets invoked I know, but what is this initialization activity called?)
Thanks,
Matt
|
|
|
|
|
for the first one it is identifier and for the second one startup, bootloader, prolog.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
Matthew Busche wrote:
There are built-in data types (e.g., int, float, char*, etc) and there are objects. I'm looking for a commonly used term that refers to either. Is there such a term?
Intrinsic types are built-in.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Hi!
I need to create resizable dialog window with title, close box and NO ICON. I tried to set resizing border and "hide" icon with resource editor but it looks impossible. When I set "palette window" true, icon disappears, but I don't need palette window.
How to remove it? I tried to make icon transparent, but margin on title bar looks a bit strange
|
|
|
|
|
Hey all,
I have a minor design issue here. I've uploaded this picture to illustrate it:
http://www.blacksmith-studios.dk/example_dlg.jpg
Imagine the user can select various actions in the list control on the left. Then I'd like to show some appropriate properties for the selected action. That is, the actions are different and therefore require a different set of properties.
I've thought of the following solutions:
- Make a borderless dialog and create it with the width and height that matches the right group-control's size (thus creating a new class for every new property window to handle the user interaction!?).
- Make some kind of property list control.. It's just that I don't know if it's possible to display all the options I want in a listcontrol!
Since I'm no expert at all on MFC I'd really like some of you guys' input on how to achieve the desired effect!
Thanks in advance,
Soren Dreijer
|
|
|
|
|
I want to know the right code MFC to obtain the IP of the Current system and that of allthe nodes of the network it is sharing???
May the Lord bless thee abundantly
|
|
|
|
|
Chechi wrote:
I want to know the right code MFC to obtain the IP of the Current system...
Try gethostname() followed by gethostbyname() .
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
i am going slightly out of track, but my question is that is it possible to obtain ipaddress of a computer, when it is not connected to network. say u run mfc application on your computer and it prints out the ipaddress of your machine. i was wondering if there was any function available in mfc for this purpose.
thanks.
Avi
|
|
|
|
|
aroraavinash wrote:
i was wondering if there was any function available in mfc for this purpose.
No, but there are plenty of classes available here at CP.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
I tried it and got the address as 127.0.0.1 and am not sure it is right or not..
Please do help..
May the Lord bless thee abundantly
|
|
|
|
|
Chechi wrote:
and that of allthe nodes of the network it is sharing???
Take a look at:
WNetEnumResource function continues an enumeration of network resources that was started by a call to the WNetOpenEnum function.
Tom Wright
tawright915@yahoo.com
|
|
|
|