|
Thank you again,
that is realy pity, because I thought that it exists simpler solution.
Kind regards.
|
|
|
|
|
I agree. I had the same problem with my laptop sound card. Neither WMI nor the registry contained any useful information at all, except the trade name and manufacturer of the device.
I happened to run into this article: What Every Programmer Should Know About Memory[^], it might give you some ideas (although it just concerns memory hardware).
|
|
|
|
|
Hello,
I have a Dialog application derived from CDialog. I've added a Webbrowser control[^] to the dialog.
I want to handle scripting errors that appear when certain URLs are opened.
I read this article about the subject "How to handle script errors as a WebBrowser control host[^]"
I don't know how to implement Iolecommandtarget interface and how to add "Exec" function. I read this article[^]
Should I do the steps mentioned in the article with the CDialog-derived class? What should I do after that to include Exec method?
I am missing the connection between the second article and the first one.
Regards,
Sam
|
|
|
|
|
Hi, I want to build simple GUI Applications/Utilities with C++ on Windows. Please let me know which free softwares can I use. I don't want C++.NET ( I know C#) just plain C++. C# is good but requires .NET runtime, which increases runtime memory usage, and I guess so would be the case with C++.NET. So I want to build in C++; fast and less memory usage.
Thanks
Sukhjnder...
Looking for help on my OpenSource Media Player LetsYo
|
|
|
|
|
Sukhjinder_K wrote: Hi, I want to build simple GUI Applications/Utilities with C++ on Windows. Please let me know which free softwares can I use.
Just get the Visual C++ 2008 express edition . Its free(limited features) and one of the best tool for windows platform development. Get it from here - http://www.microsoft.com/express/download/[^]
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
I need a small, free development software to build Windows GUI. I dont want to download trial versions of huge softwares requiring huge amounts of disk space just to build small Apps with buttons.
I have been suggested Digital Mars C++[^]
Please suggest more options.
Thanks...
Looking for help on my OpenSource Media Player LetsYo
|
|
|
|
|
Sukhjinder_K wrote: I dont want to download trial versions of huge softwares
Actually Visual C++ Express Edition is not a trial version. BTW why didn't you google [^] before asking a Visual Studio centric forum?
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]
|
|
|
|
|
Please excuse my lack of knowledge (and stupidity). MS Visual Studio is one huge bundle. I need something under 50 MB. I checked Turbo C++ explorer which also is above 300 MB. There must be tools available which are
Free
have IDE
Small Package
Allow building Windows GUI Apps
Thanks....
Looking for help on my OpenSource Media Player LetsYo
|
|
|
|
|
Have you looked into Eclipse and its C++ plugin?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Isn't eclipse aver 100MB? Not to mention the (speed) performance of it just plain sucks.
Anyway, what about Code::Blocks or DevCpp or Open Watcom. I've used all three and would recommend Code::Blocks by far, DevCpp is a little old in the tooth , and not maintained unless you get wxDevCpp. Open Watcom is also a little old in the tooth & fairly hefty @ around 60mb download - although it does include cross-compilers so you can make 16bit dos creations, or linux creations - all from the comfort of your windows desktop.
modified on Sunday, July 6, 2008 12:12 AM
|
|
|
|
|
enhzflep wrote: Isn't eclipse aver 100MB?
Closer to 68MB.
enhzflep wrote: Not to mention the (speed) performance of it just plain sucks.
I use it for Java coding and the speed is far from slow. Maybe the C++ plugin is different.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all..
I have username in TCHAR
////////////////////
_TCHAR *csUserName
csUserName = "manju";
/////////////////////
I want to remove to ";" character ..
any help..
thanking you
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
manju#123 wrote: I want to remove to ";" character ..
why r u remove this ";".
it is necessary in vc++,it shows the ending of statement.
by the way when u use below satement.
manju#123 wrote: _TCHAR *csUserName
csUserName = "manju";
here if u use csUserName ,then it is olny have string manju;
ok there is no need to remove ;
otherwise error comes.
"One suggestion please correct
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju"
Thanks.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
"_$h@nky_" wrote: why r u remove this ";".
Because I am reading from config File i.e UserName,Password and ServerName.
In Config File we can specify with ";" character..thats why its create error thats why i want to remove ";"
"_$h@nky_" wrote: by the way when u use below satement.
I have declared as _TCHAR * csUserName;
I read from config File..
if(_tcsicmp(it->first, "USERNAME") == 0){
csUserName = const_cast<_TCHAR*>(it->second);
login[iServerCtr].sUserName = csUserName;
It reads the Config File Parameter UserName.
"_$h@nky_" wrote: ok there is no need to remove ;
yes
thank you
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
ok,
use Remove() member of CString.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Where was MFC mentioned?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
manju#123 wrote:
_TCHAR *csUserName
csUserName = "manju";
You missed a ; here?
_TCHAR *csUserName;
manju#123 wrote: I want to remove to ";" character ..
I didn't get your question. I can't see any ; in your csUserName string. Do you mean that your username is read from user directly and you want to remove all ; from it?
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Jijo raj wrote: Do you mean that your username is read from user directly and you want to remove all ; from it?
Exactly sir...When I Read from Config File Iget
Example I Config File I have
UserName=manju;
PassWord=abc;
When I read from Config File I get
csUserName=manju;...
But i want is only
csUserName=manju
I think you got the point sir..
thank you for ur reply.
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
Easy method is to use CString::Remove() function.
CString csUserName = "User;Name;";
csUserName.Remove( ';' );
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi sir..
I used different code...
I first Converted from _TCHAR* to CString and removed the ";" character..
But again i need to convert CString to _TCHAR*..
But i am getting some error..
Plz check i am correct or no..
Heres the code i tried
_TCHAR *csUserName,coUserName;
CString UserName
if(_tcsicmp(it->first, "USERNAME") == 0)
{
csUserName = const_cast<_TCHAR*>(it->second);
UserName = CString(_T(csUserName));
UserName.Remove(';');
coUserName = (LPCTSTR) (LPSTR)UserName;
login[iServerCtr].sUserName = coUserName;
}
thank you
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
manju#123 wrote:
But i am getting some error..
Plz check i am correct or no..
Could you please provide the error description?
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Jijo raj wrote: Could you please provide the error description?
error C2440: 'type cast' : cannot convert from 'CString' to 'LPSTR'
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
use this code:
CString UserName(it->first)
UserName.Remove(';');
if(UserName.CompareNoCase("USERNAME") == 0)
{
if(login[iServerCtr].sUserName)
delete [] login[iServerCtr].sUserName;
login[iServerCtr].sUserName = new TCHAR[_MAX_PATH];
_tcscpy( login[iServerCtr].sUserName, UserName);
}
Cheers,
Ashutosh Bhawasinka
|
|
|
|
|
Alhtough I have not understood your problem exactly, but the problem seems to be with this line:
coUserName = (LPCTSTR) (LPSTR)UserName;
try coUserName = UserName.GetBuffer();
use GetBuffer() funciton when you need to get a pointer to CString storage.
Also in first line of your code TCHAR *csUserName,coUserName
you may want to use TCHAR *csUserName, *coUserName;
the fruits of your success will be in direct ratio to the honesty and sincerity of your own efforts in keeping your own records, doing your own thinking and, reaching your own conclusions.
..surviving in autumn..in love with spring..
|
|
|
|
|
theCPkid wrote: Also in first line of your code TCHAR *csUserName,coUserName
I had mistyped that i used
TCHAR *csUserName,*coUserName;
theCPkid wrote: try coUserName = UserName.GetBuffer();
I used it i got a error..
cannot convert from 'overloaded-function' to '_TCHAR *'
theCPkid wrote: coUserName = (LPCTSTR) (LPSTR)UserName;
I have change it now..
_TCHAR *csUserName,*coUserName;
CString UserName
if(_tcsicmp(it->first, "USERNAME") == 0)
{
csUserName = const_cast<_TCHAR*>(it->second);
UserName = CString(_T(csUserName));
UserName.Remove(';');
coUserName = UserName.GetBuffer;
login[iServerCtr].sUserName = coUserName;
}
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|