|
Hello,
It does not possible boot from dos command prompt like windows 98.
With Regards,
R.Selvam
|
|
|
|
|
Hi all guys!
I'm programming Windows with Visual C++ (6.0) for my first time; i created an applicatio, with a simple menu and an ABOUT BOX dialog; well, now the problem is that I want to add also an icon. So I go to Insert -> Resource -> Icon and I drive my one. Then in the code I use:
wndclass.hIcon = LoadIcon (NULL, MAKEINTRESOURCE(IDI_ICON1)) ;
Ok then. I start my app...but I see a normal Win icon not mine!
What's the problem?
Alberto
|
|
|
|
|
The easiest way to do this is to remove the icon that AppWizard created for you, copy the desired icon to the Res folder, and rename it to what the original one was, recompile.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
The first paramter to LoadIcon() needs to be a valid module handle, the handle of your EXE, which is passed as the first param to WinMain() .
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber New v2.0! | RightClick-Encrypt
Kosh reminded me of some of the prima-donna programmers I've worked with. Knew everything but when you asked them a question; never gave you a straight answer.
-- Michael P. Butler in the Lounge
|
|
|
|
|
Is it just the application icon at the top of the screen you wish to change?
Simplest way is to redraw the IDR_MAINFRAME icon that already exisits in your application. You also will want to change both 32x32 and 16x16 pixel diagrams.
What is beyond the universe?
|
|
|
|
|
I inserted the same icon in an ABOUT BOX dialog and when I open it, I see only the ERROR icon from Windows...
|
|
|
|
|
Still not sure I follow what you mean.
Is your project a SDI or MDI or Dialog application?
What are you trying to do, change the icon or add more icons?
If you are just trying to change what the icon looks like generally you dont need to change any code.
What you have to do is:
1) go to the "Workspace" window (if not there bring it up by RIGHT clicking on the VC++ menu toolbar and selecting workspace"
2) click on the "ResourceView" tab.
3) Find IDR_MAINFRAME in the directory tree and double click.
4) Edit the icon using the paint like editor that comes up.
5) At the top of the editor switch to the other icon size 16x16 by selecting in the "Device" combobox and edit this icon also.
6) Build your application and check changes.
Also you can change the about box ICON (again no code) by:
1) Bring up the dialog about box in the dialog editor.
2) Right click on the picture box containing the icon.
3) select "Properties from the menu that pops up.
4) Selet the "General" tab if not already selected.
5) Change the "Image:" combobox selection to the Icon that you have created.
6) build you app and check
Hope that helps.
Divide and conquer is generally the best way to beat a problem.
|
|
|
|
|
|
I have an mdi aplication with 3 difernt views.
view1
view2
view3
Let say that the active view is view2. How can i make view3 the active view???
|
|
|
|
|
void CFrameWnd::SetActiveView(
CView* pViewNew,
BOOL bNotify = TRUE
)
|
|
|
|
|
I'm a math/algorithm guy tasked with creating some folder and file management software. I don't even know how to check for the existence or create a directory. How do I do that and can anyone recommend a good book on admistrative software?
Randall Hanson, P.E.
|
|
|
|
|
Randall Hanson wrote:
I don't even know how to check for the existence
You can use _access() , _stat() , or CFile::GetStatus() for this.
Randall Hanson wrote:
...or create a directory
You can use CreateDirectory[Ex]() for this.
Randall Hanson wrote:
...can anyone recommend a good book on admistrative software?
Define "administrative software."
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
By administrative software, I mean file I/O, printing/preview, threading, system info...those kinds of things.
Randall Hanson, P.E.
Mechanical Engineer
|
|
|
|
|
Randwulf wrote:
...file I/O...
fopen(), fread(), fprintf(), fwrite(), fclose(), CFile, CStdioFile, CreateFile(), ReadFile(), WriteFile(), CloseHandle().
Randwulf wrote:
...printing/preview
The Scribble example on MSDN goes through this. Other examples exist, but none of my projects have ever required printing or previewing so I can't speak from experience.
Randwulf wrote:
...threading
See here and here for starters.
Randwulf wrote:
...system info
This is a fairly big category. Anything in particular?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Thanks, David, but can you recommend a primer book which covers these kinds of topics?
Randall Hanson, P.E.
Mechanical Engineer
|
|
|
|
|
Will an e-book suffice? I own very few books, and those that I do own are from college and graduate school.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Perhaps I'm old school, I prefer a real book that I can read and make notes in while I'm drinking coffee on my patio.
Randall Hanson, P.E.
Mechanical Engineer
|
|
|
|
|
Hi.
The CFindFile class can help to finding a file/directory.
you can get more information about this class from MSDN library.
|
|
|
|
|
How do I resolve an email address such as my_email@yahoo.com into an IP address such as 112.33.152.23?
I know using gethostbyname() resolves URL address to an IP address, but won't do it for email address.
Thanks.
|
|
|
|
|
You want the IP of what ? the mail server ? the IP of the end user machine ?
AFAIK, the email address' user part does not "resolve" to an IP, only the domain name. it's the mail protocol that will handle the user management ( on the mail server ), sending the message to the appropriate mailbox.
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
Dear all,
How can I get such information as head, cylinder, sector... of a specific physical disk in Win98? I currently use the first sector and parse information from partition entries in order to get those information. Are there any better methods?
Best regards.
____
Tuan
|
|
|
|
|
I'm not sure exactly what you are after, but see if DeviceIoControl(..., IOCTL_DISK_GET_DRIVE_LAYOUT_EX, ...) will help.
Nope, that is for Windows NT-based machines. I'm not sure what will satisfy your Windows 98 requirement (I don't develop for it).
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Dear David,
That function requires a handle to device Physical Disk. Unfortunately, in Win98, we cannot create that handle. So the function DeviceIoControl won't work.
Thanks for your suggestion.
BRs.
____
Tuan
|
|
|
|
|
Tuan Dang wrote:
Unfortunately, in Win98, we cannot create that handle.
Why not?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
It's simple. Because the CreateFile() doesn't return a handle.
____
Tuan
|
|
|
|