|
|
Hi wheregone:
Thanks a lot. You are so nice. I have downloaded it. It seems perfect. Maybe I bother you someday.
welcome to meet you!
|
|
|
|
|
Sorry! I can't get source code. So I don't know how it is implement.
welcome to meet you!
|
|
|
|
|
Although I am not very versed in that topic, what kind of "data" do you mean?
Are you trying to read the RAW CD-Rom data, audio or just the files in the disk's standard file system that can be accessed by Windows itself, for example?
For the third case, have a look at CFile, CArchive, CStdioFile, ... in the MSDN. Maybe Windows just handles the files as if they were on a hard disk, but only write protected.
|
|
|
|
|
Hi,
I am trying to generate a .h file from an idl file.
For this I am using Microsoft's MIDL Compiler.
I gave the following command:
midl myIDl.idl /h myh.h
But when I run the command line exe, it gives me an error message saying:
midl : command line error MIDL1001 : cannot open input file oaidl.idl
can anyone help ????
thanks
simon
|
|
|
|
|
hi,
i cant find any examples on CodeProject or on MSDN, so does anyone know if/how to display pictures or icons along with text inside of a combobox?
Thanks
|
|
|
|
|
Check out CComboBoxEx. This may not do exactly what you want, but it is a good example to adapt.
Iain.
|
|
|
|
|
Or, you could do it the old-fashioned way via ownerdraw.
onwards and upwards...
|
|
|
|
|
hi,
i want to use the GetWindowModuleFileName-function.
but i always get the error undeclared identifier.
yes, i linked the user32.lib
i included the windows.h
does anybody have the same problem or a solution
operating system is windows xp professional service pack 1
regards
emmi
|
|
|
|
|
Make sure WINVER is #define'd to be 0x0500 or higher before including "windows.h"
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
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"
|
|
|
|
|
Why do I need to enter this into my "Project/settings/links/output,entry-point" box to avoid getting error messages when I go to compile a simple Win32 application? I have to do this for every application, is this normal?
Thanks
|
|
|
|
|
This is needed only when building a UNICODE application. The entry address point is different for these types.
"..Even my comments have bugs!"
Inspired by Toni78
|
|
|
|
|
What is UNICODE? Do you mean a single function program (like "Hello World?"
|
|
|
|
|
|
I have a combo box that I create on a dialog window by adding strings to it from a file. Once a selection is made the box shows that selection as long as I keep the window open. But after I close it and return the box is blank until it is selected again.
Is there anyway to init this to display a certain item? I have the index that I wand to set it too..
Thanks for any help
|
|
|
|
|
From MSDN :
CComboBox::SetCurSel
int SetCurSel( int nSelect );
Remarks
Selects a string in the list box of a combo box. If necessary, the list box scrolls the string into view (if the list box is visible). The text in the edit control of the combo box is changed to reflect the new selection. Any previous selection in the list box is removed.
~RaGE();
|
|
|
|
|
Check out CComboBox::SetCurSel / CB_SETCURSEL.
You have to be careful if the combobox is sorted, but CB_ADDSTRING gives you the "post sorting" number.
Iain.
|
|
|
|
|
when using addstring, is there a way to haVE it not ssort the list? im trying to get the word 'none' to come up as default, but another choice in the listbof is 'channel1' so it comes up default. if it wasnt sorted, it would take the first string i put in and use that one.
|
|
|
|
|
Just remove the LBS_SORT style.
In the resource editor, select the combo box. Bring up its property box. On the 2nd or third tab
there is a check box for "sort". Clear the check. Compile. Enjoy!
Iain.
|
|
|
|
|
ok that works great. now, if anyone sees this, is there a way to get a number returned by SetCurSel()? i need to output which value in my listbox is selected. setcursel(0) forces the first string to be selected. so, if the user changes the selected variable, a number has to be stored somewhere because the program remembers it. so....where is that number at?
*.*
|
|
|
|
|
This is pretty basic stuff... You should find all this information in the MSDN libraries, or
any half-decent MFC/Win32 book.
Anyway, as I'm in a nice mood...
Lookup:
CComboBox::GetCurSel ().
DDX_CBIndex (...).
Just about any example in the Combo Box section here on CodeProject.
Iain.
|
|
|
|
|
I need to build a program that will allow me to enter a part number(s) and then bring up the corresponding information. I want to use the MFC templates. I also want to enable the program user to edit the default part number(s) if they're updated or changed later on. I want to have part numbers for 4 different machines, so I'm thinking I should write one base class with public variables and then d erive 4 new classes from it. Is this the way to do this? I'd appreciate any tips here.
What's the best way to structure the part numbers (hundreds of part numbers, eg. 8567-345-34-3453) into a program?
Do I need a database?
Thanks, Dave
|
|
|
|
|
DaveE9th wrote:
Do I need a database?
That's a good place to start . This is a perfect situation for using a database.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
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,
I have a x.bmp file. Now i want the data extract some part of the data and store it in an another BMP file. How can i do that?
Regards
Asha
|
|
|
|
|
I want to know if an IP address is in use on LAN.
Usually ping works,which can tell me whether the remote machine is alive or dead.
But it does not always do the job for the reason of firewalls or something else..
even if I 've got a result like this:
C:\>ping 192.168.28.168
Pinging 192.168.28.168 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.28.168:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
When I change my IP address to 192.168.28.168, Windows informs me that "The IP address 192.168.28.168 is already in use."
How can I know the IP is in use before I changed my IP to that and Windows popups the dialog?
What is the mechanism of Windows examing if an IP is in use?
|
|
|
|