|
sumit.durg wrote: I want to give add of home page only. Then my program should fine out download is available in that page if yes then it will download. All the thing shold be automatically.
There is an open source tool called wget -> http://gnuwin32.sourceforge.net/packages/wget.htm[^]
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Hi all,
i m working on VC++2005,
HorizontalScrollbar of Workspace Area is not shown in my project,i dont know how can it disabled.
please anyone can tell me how can i again enable it.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Hi all,
I have a reference variable in my class.
I need to initialize it in the constructor. But, the compiler is giving an error.
Can any one help me out from this problem?
|
|
|
|
|
Reference member variables must be initialized in the constructor's initialization list, for instance
class A
{
int & iRefNum;
public:
A(int & i): iRefNum(i)
{
}
};
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
|
|
|
|
|
You've to initialize it in constructor initializer list. For e.g.
MyClass::MyClass( CString& myString )
: m_StringReference( myString )
{
}
regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
kuttiam wrote: I need to initialize it in the constructor. But, the compiler is giving an error.
You should initialize a reference variable in the constructor initialization list
e.g.
class MyClass
{
public:
MyClass( int& RefVal ) : m_RefVal( RefVal )
{
m_RefVal = RefVal;
}
private:
int& m_RefVal;
};
Since a reference variable is much like a constant var it must be initialized like a const var. i.e. initialize where it's declared and in classes we cannot initialize where it's declared hence initialization list is provided.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
modified on Wednesday, May 28, 2008 5:10 AM
|
|
|
|
|
I want to add some icon to my tree control, so I do like this:
CImageList m_imageList;
m_imageList.Create (IDB_TABLE, 32, 0, RGB(255, 255, 255));
CImageList *p_imageList = m_treeTable.SetImageList (&m_imageList, TVSIL_NORMAL);
HTREEITEM rootItem = m_treeTable.InsertItem(_T("RootItem"), 0, 0);
m_treeTable.InsertItem(_T("item 1"), 0, 0, rootItem);
HTREEITEM aItem = m_treeTable.InsertItem(_T("item2"));
m_treeTable.SetItemImage(aItem, 0, 0);
When I execute program, the dialog create small spaces for images but without any image.
Does anyone know why? Thanks in advance,
modified on Wednesday, May 28, 2008 3:39 AM
|
|
|
|
|
You are creating the image list on stack.
Make the imagelist variable a calss member.
|
|
|
|
|
oh, it works. Thank you very much, SandipG
|
|
|
|
|
Hai all
i am going to develop a application in c++ its aim is
1. To calculate internet usage (download and upload).
myself have no idea regarding this. please give the idea that is
is any api is available for this purpose.
Thanks in advance
modified on Wednesday, May 28, 2008 3:42 AM
|
|
|
|
|
Can you elebrate the idea, what exactly you want?
|
|
|
|
|
just to know how much upload and download datas are done so far in internet.
|
|
|
|
|
|
Hi,
I have one ListView that has 4 coloumn and in 4 th colom I am creating filled rectangle with color and drawing text using DrawText() method. But whenever I minimise or resize the winodw 4 th colomn disappear, How can I paint it.
|
|
|
|
|
pther wrote: But whenever I minimise or resize the winodw 4 th colomn disappear, How can I paint it.
It may be because you have painted it from a wrong function. From which function did u call the DrawText().
|
|
|
|
|
Drawings are not saved by Windows. Instead, when the window needs to be repainted, a WM_PAINT message is sent to it so that it can draw itself. So, if you don't put your drawing code into the OnPaint function, then it will be lost the next time your window is repainted.
|
|
|
|
|
Hi all,
i want to use the DatetimeCtrl as a button and use an Edit box along this.
how can set the selected date valuse in Edit box.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
|
Hello,
I have an application which is on the verge of completion .In there I have about 24 classes derived from MFCs and 15 generic classes apart from the 2 classes that are MainFrm and app class .
Now while editing any of my programs if I press the ENTER key the the cursor takes about 20 secs to come to the next line.
This doesn't happen with Word ,Excel.So concluded that there must be some problem with the my application rather the memory of my computer.
I should now reduce the size of my application.
But how should I do that?Or Is there any other problem?
Regards
Pritha
|
|
|
|
|
prithaa wrote: Now while editing any of my programs if I press the ENTER key the the cursor takes about 20 secs to come to the next line.
Which application ?? You mean the IDE (visual studio), or your own application ? What are you doing there when you press enter ?
Did you try to see what is taking so much time ?
|
|
|
|
|
Hello
Thanks Cedric
When I am in my Workspace typing or editing my programs at that time the cursor takes 20 secs to come to the next line if an ENTER is pressed.
Pritha
|
|
|
|
|
prithaa wrote: I should now reduce the size of my application.
Close the IDE and delete the .ncb and .opt file in the project folder. Then restart the msdev.
|
|
|
|
|
Hello,
Thanks.It is done.
If you are not annoyed when I ask
What are these files are and when should I delete them?
Then please answer.
Thank you .The problem is solved.
Pritha
|
|
|
|
|
.ncb file is the intellisense database file.
The .opt file contains the build logs.
|
|
|
|
|
hi
i have an MFC dialog based application...based in a my own class not CDialog..
when i insert a new dialog and create a new class ... icouldnt find my own class in the drop down list..where about two weeks ago i inserted anew dialog and founnd my class among the base class...
what did go wrong ....its really confusing and driving me crazy....
pleease help me with this...my work has stopped because of this
thank u all
|
|
|
|