|
I'm not clear what you say sir. I try to calculate number of words and characters of a string(actually wstring).
DavidCrow wrote: Not unless you tell us what the function is doing that is incorrect.
You mean that my function is wrong. It's works sir, only for small strings. For a very large string I go that error.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
CodingLover wrote: token = wcstok("This is the string", spec);
Each call to wcstok() modifies the first parameter. Since you passed a string literal as the first argument, it can't be modified.
CodingLover wrote: ...actually assertion fail...
Are you going to tell us what line of what file is asserting?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
If ptr no longer points to the address returned by new , then delete will fail.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
It seems you got error when you run this line after first time,right?
|
|
|
|
|
Yes, that's what happened.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
For each new you must be run a delete.
|
|
|
|
|
Yes, that's true. But I didn't do any instantiate with new in my code.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Hi
I have a dialog based appication project using VC 6.0 having 3 dialogs.
Is that possible to insert one of the dialogs from that project to be inserted in to a new dialog based application project.
So that instead of making new dialog i can use the old dilaog.
Thanks in advance
|
|
|
|
|
While inserting a new dialog, .rc and resource.h files are getting updated. So you can done it by merging the .rc/resource.h of the new application with the old one. The thing is you have to merge it carefully
|
|
|
|
|
Thanks for the reply..It was helpful
|
|
|
|
|
Assume the two workspaces are Project1 and Project2 respectively. And you want to import dialog from Project1 to Project2.
1) Load project 2 in visual studio.
2) Open the RC file of project1 in visual studio. While opening the file using FileOpen dialog , select "Open as:" option as "Resources" .
3) Now open the project1.rc file and you can see the resource tree.
4) Drag the dialog and put it to your resource workspace. The dialog will be automatically added to Project2.
5) Now Copy/paste the .h and .cpp files of corresponding dialogs and add to project2.
Well, in step2 - Selecting "Open as:" option as "Resources" is important.
Now you've imported the dialog from one project to another. Enjoy!!!
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi All
I want to read files name from clipboard.Can any one help me..
|
|
|
|
|
You'll want to use the GetClipboardData() function with the CF_TEXT format (documentation here).
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
ok i read this artical i want some code.Plz help me
|
|
|
|
|
Look at this article - the Pasting Text from the Clipboard section should help.
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
Thx's it's help me but I need get copy file name..
|
|
|
|
|
Use GetClipboardData( CF_HDROP ); instead of CF_TEXT
|
|
|
|
|
|
I have an abstract class A which contains pure virtual functions.class B derives from it publicly and B has its own functions which are not virtual.Class C derives from B and calls functions of B .C also implements functions of A.now when I am trying to instantiate C i.e creating object of C its giving error that "cannot declare variable cobj of abstract type A due to pure virtual functions".It is happening only for Linux,in Windows its working fine.Can anybody help pls?
|
|
|
|
|
Did you implemented all of the virtual methods?
Could you post the code?
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
[My articles]
|
|
|
|
|
Its like
Ibase.hpp
----------
class Ibase
{
public:
virtual bool get() = 0;
};
Abase.hpp
---------
class Abase :public Ibase
{
public:
bool getnumber();
}
baselinux.hpp
-------------
class baseLinux : public Abase
{
public:
virtual bool get();
}
driver.cpp
-----------
baseLinux bL; //here showing error that i have mentioned
error is coming only for linux.
|
|
|
|
|
I got the solution.I had given parameters in get() of baseLinux whereas it
doesn't take any parameter in Ibase.
|
|
|
|
|
This is working fine in linux as well
But, Did you define the function "baseLinux::bool get()" anywhere?
as below:
class baseLinux : public Abase
{
public:
virtual bool get(){}
}
-----
laksh
|
|
|
|
|
when i click on resource file it displays the error such as cant open the file .the unknown language occured.why?how to solve
|
|
|
|
|
Do you have this error on all your programs?
|
|
|
|