|
I want to change the name of my application to appear at the top of my screen.
I am using a menu which call many Views, one at time.
When i open the program, the New name appear and when a shift to another view, the new name disapear.
Where can I fix it so that it cann't change
I learn my self
|
|
|
|
|
|
Your Are right,
I try it, it's work well
Thanks for all
Best new year for you and your familly
|
|
|
|
|
Hi,
I create template class, declared in .h file and implemented in .cpp file. But it do not compile the functions in the .cpp file.
But when I put them in the .h file, it's OK.
The .cpp file is in the source files list.
I use VC 6.
Thank you.
- NS -
|
|
|
|
|
Is it possible to send the errors or the files ?
I think that you got linker error when you had tried to compile.
|
|
|
|
|
Yes. Linker error for only those functions used.
- NS -
|
|
|
|
|
|
Link error:
TemplateClass.obj : error LNK2001: unresolved external symbol "protected: struct DataList<int>::NODE_t * __thiscall DataList<int>::DetachNode(unsigned int)" (?DetachNode@?$DataList@H@@IAEPAUNODE_t@1@I@Z)
Debug/TemplateClass.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
But this function is in the .cpp file.
It is...
template < typename T >
DataList < T > ::NODE_t* DataList < T > ::DetachNode( UINT uIndex_i )
{
// some codes
}
If I put this function in .h file, it works fine.
<B>- NS -</B>
|
|
|
|
|
Delete all your debug or release directory.
Make sure you have exacly the the same function definition in cpp and h file.
And don't include cpp file in header file
Recompile file.
|
|
|
|
|
I did it. But no change.
- NS -
|
|
|
|
|
|
template is to class as class is to object.
a class isn't an object, it is used to create objects.
a template isn't a class, it is used to create classes.
as a template isn't a class it isn't code.
when you declare an instance of a template the compiler generates the appropriate code for the class - that's what will get compiled.
...cmk
Save the whales - collect the whole set
-- modified at 23:20 Thursday 15th December, 2005
|
|
|
|
|
I am working on writing a MFC application supporting both container and server of compound document. Because i use a third part y ole client in my application, and meanwhile I also want insert my object into word.
However, I find Microsoft word does not work well with a nested compound document(for example insert a wordpad object into word, and then insert microsoft paint into wordpad). There are error message of "unable to update client".
However, Microsoft Excel/Power Point work well with a nested compound document .
Does anyone can help me in this regard?
|
|
|
|
|
I'm using the CRichEditCtrl to display text. I also want to be able to change the font and - within the font - the character set.
For font selection, I use the CFontDialog. I can select the font and also the character set (skript).
Applying the selection to the rich edit control changes the font as expected, but the char set does not change.
E.g., if I have eastern europe text to display, I have to change the char set from 'Western' to 'Central European'. Regardless which char set I assign to the rich edit control (by using SetDefaultCharFormat(cf)) nothing changes.
If I try to do the same in Wordpad (the classic rich edit application), it does not work as well. Changing the char set skript does not change anything in the text.
Is this a common problem of the rich edit control ?
Is there any idea to solve the problem (by still using the rich edit control) ?
Thanks for any hints in advance.
ug
|
|
|
|
|
hi,
i have two application , one sender other receiver , and i don't know the sender ip ,can u tell me how i can recieve the ip of sender as well message sent .
thanks in advance
sachin
|
|
|
|
|
cancerion wrote: have two application , one sender other receiver , and i don't know the sender ip ,can u tell me how i can recieve the ip of sender as well message sent .
try getpeername(...) api
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
question for guru's familiar with IPv6... how do i port if_nametoindex interface in Windows. is it supported? i'm currently porting a C application in linux that uses if_nametoindex and i'm having a problem converting this part to windows....
case AF_INET6:
t_addr6 = (struct sockaddr_in6 *)&s_loc;
if (cmdinterface)
t_addr6->sin6_scope_id = if_nametoindex(cmdinterface);
t_addr6->sin6_family = AF_INET6;
t_addr6->sin6_port = htons(local_port);
strcpy( t_addr6->sin6_addr.s6_addr , inet_addr( local_host ));
l_len = sizeof (struct sockaddr_in6);
thanx....
-- modified at 2:28 Thursday 15th December, 2005
|
|
|
|
|
Anyone knows how to know the color of a particular row in clistctrl?
|
|
|
|
|
You mean how to set the color of particular row?
|
|
|
|
|
hi,
The first pane in the statusbar display "Ready".How Can i change the size of the pane, based on the text it display.First i want to size the first pane dynamically based on the length of the text it display.
|
|
|
|
|
RockyJames wrote: First i want to size the first pane dynamically based on the length of the text it display.
what about CStatusBar::SetPaneInfo
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I am working on a application which has three pane`s in the statusbar.The first pane display the text that is there in the menu item "prompt" text.I have allocated only 100 unit to first pane which display "Ready" in it.As when i select a menu item the pane size to increased or adjusted ,based on the text lenght.
|
|
|
|
|
RockyJames wrote: As when i select a menu item the pane size to increased or adjusted ,based on the text lenght.
Isn't CStatusBar:SetPaneInfo.. suit your need
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
I have Created a status bar which has three panes.The first pane width has set to 100 ,second with 230 , ans third witht the remaining.The first pane is the default pane,which show the text in prompt of menu item, For example "ready","Open a new File" etc.AS when i select the menu item`s.The width of the first pane has to changed to the lenght of the string in Menu item`s prompt text.I know about "SetPaneInfo" function.That thing is that how can retrive the menu item prompt text.
|
|
|
|