|
ganychina wrote: So any one can suggest this to solve this issue..
Here nobody knows...Moreover CP search engine [^] is not helpful.
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]
|
|
|
|
|
Hi ,
Has anyone any tips on how to pass a MySQL connection id as a parameter into a COM object both written in Visual C++ 9.0 ??
Regards
GER
Ger
|
|
|
|
|
Hi,
I need complete source code of SVN C++ API.
To access the features of SVN like 'Commit' 'Checkout' etc from VC++ code.
Purpose:-
To be able to open a file which is in SVN from my application and should
be able to commit the changes so that file gets modified in the svn.
How to access these features from my VC++ code?
What libraries i need to include?
any Example projects?
can anyone help me?
Thanks......
|
|
|
|
|
Maybe try the right site: Subversion[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
i tried the site Subversion and downloaded the complete project.
I need to follow so many steps for debugging it.
I need an Example project which uses some of the features of the SVN.
To understand how to integrate SVN API, libraries and how to use those features.
I tried downloading some of the projects like RapidSvn, QSvn etc.. iam able to get the source files but not the complete project so iam not able to debug and check.
Is there any example project?
Thanks in advance....
|
|
|
|
|
My point was that the Subversion site is a much better
place to start than here.
For example, I bet there's lots of SVN-knowledgeable people on the
Subversion Mailing Lists[^].
You can also type SVN or Subversion into the search articles bar here...
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
How to return a std::stringstream from a method. I've try this but unable to figure out what the error is.
std::stringstream CStreamTest::Test(void)
{
return std::stringstream();
}
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Usually it is better to return a reference of a permanent object.
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]
|
|
|
|
|
CodingLover wrote: return std::stringstream();
you're kidding, right ?
what are you trying to do with this ?
do you know what a stringstream is ?
what do you want to achieve exactly ?
CodingLover wrote: I've try this but unable to figure out what the error is.
what error ?
compilation error ?
linker error ?
runtime error ?
any message description to share ?
|
|
|
|
|
warning C4996: 'itoa' was declared deprecated
How to get rid of these warnings?
i also get warnings for strcat , CStdioFile::fopen.
i tried with _sitoa_s, but when this line gets executed it gives assertion error !!
|
|
|
|
|
kapardhi wrote: i tried with _sitoa_s, but when this line gets executed it gives assertion error !!
Then it means you are using then in a wrong way. Did you read the documentation of those functions and use them properly ? If after reading the doc, you still can't fix the problem, post some code to show how you use these functions.
|
|
|
|
|
i use the following code
int a = 10;
char ch [2];
CString str;
itoa (a, ch, 10);
str += ch;
i get the warning of deprecated, hence i use
int a = 10;
char ch [2];
CString str;
_itoa(a, ch, 10);
str += ch;
i again get deprecated warning, now i use
int a = 10;
char ch [2];
CString str;
_itoa_s (a, ch, 2, 10);
str += ch;
this time when the above line, i.e _itoa_s (a, ch, 10); is executed i get Assertion error !!
|
|
|
|
|
kapardhi wrote: i get the warning of deprecated, hence i use
int a = 10;
char ch [2];
CString str;
_itoa(a, ch, 10);
str += ch;
It is still using the deprecated version of the function.
kapardhi wrote: int a = 10;
char ch [2];
CString str;
_itoa_s (a, ch, 2, 10);
str += ch;
this time when the above line, i.e _itoa_s (a, ch, 10); is executed i get Assertion error !!
Your buffer is too small: it should contain two characters plus the null-terminating zero of the string. So, it should be 3 instead of 2.
|
|
|
|
|
kapardhi wrote: How to get rid of these warnings?
See here.
kapardhi wrote:
i tried with _sitoa_s, but when this line gets executed it gives assertion error !!
What line of what file asserted?
"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
|
|
|
|
|
Hai all,
I select a file in my program(from a dialog), after closing the present dialog if i open another dialog and select the same file it is throughing error (m_hFile != INVALID_HANDLE_VALUE). Please any one help me.
Thanks and Regards
Bhanu
|
|
|
|
|
Did you try debugging to see what is happening exactly ?
|
|
|
|
|
is the file still open? (thats what the Assertation screemed)
did you CFile::Close();
Greetings from Germany
|
|
|
|
|
It seems you must be close previous handle of fiel.
|
|
|
|
|
lets have a registry of following type:
HKLM -> Software -> LAv -> p = 0
HKLM -> Software -> LAv ->name1 = "xyz"
HKLM -> Software -> BDD -> q = 1
HKLM -> Software -> BDD -> str = "stu"
now i want to search for key 'q' from HKLM/sofware.
is it possible? if yes plz help me with your ideas.
thanks !
modified on Monday, September 29, 2008 5:44 AM
|
|
|
|
|
RegEnumKeyEx[^]
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
i need to write a code which will show which kind of network adapter it's.taht means whether its ethernet or wireless or something else.I tried using GetAdapterInfo but foe "wireless adapter" its also showing "ethernet".Can anybody suggest any other API.I don't want WMI.Thanks.........
|
|
|
|
|
|
no,i didn't find anything useful for me in your article.Thanks anyway...
|
|
|
|
|
Hey all,
I got a little problem, I'm using VS2008 and built a console MFC app all was well, it works and does excactly what I need but....
I was testing the application on a clean Windows XP SP3 with IE7. But the application failed to run, I realised this was due to the common runtime, since VC9 runtimes are not installed on the test PC. We do not want to have to install the runtimes, so I rebuilt the exe with /clr but all I get is 0xc000135 when I try to run it, I have tried various methods to get round this. The only way I can get it to work is to have the MFC and CLR dlls in the same folder using private assemblies in the manifest.
I want to avoid this, if possible? anyone help?
Thanks in advance!
|
|
|
|
|
/clr is for enabling using managed code from C++ and has got nothing to do with your problem. As far as I know there ase only 3 says to ship the CRT and MFC DLL's.
1. Install VC++ redistributable package on client machine.
2. Statically link to both CRT and MFC libraries.
3. Install CRT and MFC DLL's as private assembly.
Static linking typically create problems if the executable depends on other 3rd party DLL's which use dynamic version of CRT or MFC.
For the private assembly follow in instruction at http://www.codeproject.com/KB/cpp/vcredists_x86.aspx[^], there is a section on "Install a private assembly".
-Saurabh
|
|
|
|