|
That looks great, let us know how your project turns out.
|
|
|
|
|
klutez123 wrote: I need to open the file LIBRARIANSHAVE347CATS.DAT and send the info to the screen.
So why are you opening the file and writing to it? Does that not seem the least bit odd to you?
klutez123 wrote: So far this is what I have:
The code you've shown addresses almost none of your requirements. It allows you to enter data for a single book. You either need to create an array of card_catalogue objects and write out the array after the loop terminates, or you'll need to write out the data in books each iteration of the loop. Where's the loop?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Ever heard of indentation? I don’t even look at posts in which the poster doesn’t make the effort to indent the code.
Steve
|
|
|
|
|
What does "indent" mean? (I'm spanish :P)
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
Nelek wrote: What does "indent" mean? (I'm spanish)
In short it means you write this:
for( ;; )
{
}
instead of this:
for( ;; )
{
}
Steve
|
|
|
|
|
Ok, then it is to use the tabulated structure, isn't it? Thanks for the answer
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
Hi,
Is there any API through which i can find the IP address of current computer(computer on which my exe is running).
Warm Regards,
Mushq
|
|
|
|
|
How about gethostbyname() ?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
|
Hello All,
I am working a addin for MS Word and i am new with that so i have registered a addin but now i am unable unregistered this addin.
so can body tell me how can i unregistered a addin.
and also i want to know how can i add menu bar in this addin and how to handle messages?
if any body can give me idea about that, than please share with me.
thanks
bankey
|
|
|
|
|
Banks K wrote: so can body tell me how can i unregistered a addin.
How did you register it?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have registered with "regsvr32 *.DLL"
|
|
|
|
|
So why can't you just use the /u command-line switch?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
So how about "regsvr32 -u *.DLL"?
Regards,
Tim
|
|
|
|
|
Hi fellows
I need to insert an image in my menu. My menu is composed with the following strings: "New Text", "New File", "New Ruler".
My menu was coded with win32, not MFC.
Now the questions:
1) I've readed that I need to create owner draw menus. Is that right?
2) How can I load an image to insert in my menu? The size of the image matters or when I insert, windows fit the image according the area that I passed.
3) What you recommend that I read to get a better understand of this topic and start coding?
Any help is very welcomed. Again thanks for the support.
|
|
|
|
|
I've used NewMenu in several projects. Excellent.
|
|
|
|
|
|
thanks man, I'll see right now...
|
|
|
|
|
I hope it solved your problem.
|
|
|
|
|
Thanks man, for your help
|
|
|
|
|
|
Hi Alex,
Since you have asked specifically for win32, I thought I should let you know the precisely steps to create Menu and answer your questions.
1) I've readed that I need to create owner draw menus. Is that right?
Its not mandatory.
2) How can I load an image to insert in my menu? The size of the image matters or when I insert, windows fit the image according the area that I passed.
Windos fits the image accordingly. If you want text with a bmp as a menu item then again the space will be fixed for the bmp.
Steps:
HMENU Menu;
Menu = CreatePopupMenu();
HBITMAP hBitmap1 = LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP1));
HBITMAP hBitmap2 = LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP2));
//Append
AppendMenu(Menu, MF_STRING, 2000, "Test3333333333");
AppendMenu(Menu, MF_SEPARATOR, NULL, "");
AppendMenu(Menu, MF_STRING, 2001, "Test2");
SetMenuItemBitmaps(Menu, 2001, MF_BYCOMMAND,hBitmap2, hBitmap1);
TrackPopupMenu(Menu,TPM_RIGHTALIGN,point.x, point.y,0,this->m_hWnd,NULL);
The above steps will create 2 Menu items, one only text and other bmp with text.
Manoj
Never Gives up
|
|
|
|
|
Thanks for your help manoj, very thanks....
And thanks for the code, I'll test it right now
|
|
|
|
|
Hi there,
Please specify how to decide whether to go for return codes or exception handling.
When is exception handling preferred over returning a specific error code.
Thanks in advance,
Raja Pratap
|
|
|
|