|
Yes, and has a compiling error.
Error:
Cannot convert const char[10] to const WCHAR*.
|
|
|
|
|
Whenever an error occurs:
(1) Read the error message, usually it is quite descriptive.
(2) If after point (1) you're still in troubles then post here your code (you've already done it) and the error message itself (you haven't done yet).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
checkout c:\\Sample.jpg on the right path or the splling of the image you r using correct.
Rajesh
|
|
|
|
|
|
By the way I have made this code work in other project.
Now I'm trying to integrate this to an open source project.
|
|
|
|
|
Runtime error? If so, have you initialized GDI+ (GdiplusStartup(), etc)??
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello All
Is it possible to get Handle to the Container window(Internet Explorer) of the ActiveX Control?
Thanks in advance
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
|
Thanks for your kind reply.
Actualy i want to minimize internet explorer wheneve my activex is loaded in IE.
I am using this:
::ShowWindow(GetWindow(GW_OWNER)->GetSafeHwnd(), SW_MINIMIZE);
But This function gets fail.
Is it correct way to do this?
please provide me any solution to it.
Once again Thanks Steve
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
You don’t mention what framework you’re using (if any)?
Steve
|
|
|
|
|
No, i am not using any framework
My activex is in pure MFC.
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
manish.patel wrote: No, i am not using any framework
My activex is in pure MFC.
ROTFL.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: ROTFL.
What you want to say??
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
I am also new to these abbreviation, but the WordWeb free dictionary helps me,
ROTFL - Rolling on the floor laughing.
I guess, he meant MFC is also a framework.
|
|
|
|
|
MFC actually *is* a framework.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Thanks for your Guidance.
Up to now I am considering MFC as a Microsoft Foundation Classes. I don’t know It is a “Framework”
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
manish.patel wrote: Up to now I am considering MFC as a Microsoft Foundation Classes.
You're just looking at the abbreviation. You need to read up a little bit to understand that MFC is more than a bunch of classes. For example, you don't write a main() function for a program that you write in MFC, do you? So, does that mean there is no main function? You get to build a doc/view app with menus, windows, print previewing capability, etc., just with mouse clicks! Can you do it just with a few classes alone? The framework does everything for you behind the scenes.
If that interests you, I'd recommend a few books - Programming Windows with MFC, MFC Internals.
Also, see MFC in Wikipedia[^]
Rajesh
|
|
|
|
|
Didn't ever read MFC documentation? It is full of sentences such as "The framework will call...". Also many MFC global functions, like AfxGetApp , have the Afx (i.e. Application Framework EXtension) prefix.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I am new in MFC programming. I want to use ListView In My DialogBased application .Style of my Listview is Report. now I want to know how
to add coloum name (i am usin 5 ).And listview row with check boxes.
|
|
|
|
|
|
Antonyemac wrote: now I want to know how
to add coloum name (i am usin 5 ).
How about the InsertColumn() method?
Antonyemac wrote: And listview row with check boxes.
Use the LVS_EX_CHECKBOXES style. See here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
all is ok but one more problem . when I checked or unchecked the checked
box of particular row , then how can I find out which column check box
is clicked. there is now message handler for it.
|
|
|
|
|
Antonyemac wrote: how can I find out which column check box
is clicked.
I believe that checkboxes can only live in column 1. Therefore, it is either checked or unchecked, regardless of column.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
sorry I posted wrong query . it should be understand row.
ie my all rows having checkboxes. now I have some processing attached with every row , that will work when I checked the checkbox ,and stop
when I unchecked the check box. Now my problem is that there is no
handler to findout that I check or unchecked the check box of particular row.
|
|
|
|
|
Antonyemac wrote: ...there is no
handler to findout that I check or unchecked the check box of particular row.
What about the link I provided you?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|