|
Hi Garth
Thnx for u'r help
regards
Chandrashekar H.S
|
|
|
|
|
hi,
We have created an activex Ctrl using MFC.
It has serialize method in its COleControl derived class.
Now myActiveX control is inserted in a powerpoint presentation.
Whenever power point slideshow ends, then the serialize method is getting called.
How to avoid serialize method is getting called at the end of slide show mode?
I am trying by setting SetModifiedFlag(false) but no result.
pls help me.
dadsadasd
|
|
|
|
|
Hello, Im wondering if anyone knows if its possible to get the fileversion over http on a file withouth having to download it?
I know I can do HttpQueryInfo HTTP_QUERY_LAST_MODIFIED but I would really like to get the fileversion, not just what the server thinks is the last modified date...
This is for automatically updating a local file btw... and I guess I could use a version file on the server to read from, but it would be so much smoother to just query the version directly kinda like what GetFileVersionInfo does but for files on the web...
the coolest would off course be if there was an API called GetInternetFileVersionInfo which could do it either via ftp or http protocol...
anyway anyone?
|
|
|
|
|
I'm open to correction, but I'd have to say no.
The logic is fairly simple. The protocols are for fetching any old file. Whereas file version info
(as I understand you to mean) is only available for specific kinds of files. What is the version
info of a notepad file? a bitmap? etc.
One way around could be to have a server side page to return version info on specified files.
eg.
http://foo.bar/versioninfo.asp?file=\downloads\example.exe
could return version info for the specified file, or "Get lost, no version info here!" otherwise.
I hope my musings helped, rather than mislead!
Iain.
|
|
|
|
|
Dear Friends,
I've developed a software in Visual C++ (Dialog Based Application). Actually the purpose of this software is to make the database entry/view operations easy. There are in all 19 dialog boxes realted to various tables of database. The backend database is SQL Server.
The problem is that i am making this software for client and the client wants "report generation" in the form of print outs and eMails. The client given me samples of around 50 different reports
Now i want to know that what strategy should i follow in order to make reports. Do i need Crystal Reports software. Is there any other easy way. Please suggest me something..
Imtiaz
|
|
|
|
|
Hello,
I have a problem to show the source code in the calling stack window( ALT+7 ) in debug mode.
I use VC++ 6.0 on my Win98 laptop.
There is no source code displayed from MFC-functions and SDK functions in the calling stack window, although the correct directories are set in the option dialog of the VC++.
With the same VC++ project file (.dsp and .dsw ) I don't have this problems with my Win2000 PC.
I checked all directories and I reinstall VC++ some times, but I don't get the source code.
Which problem does my laptop have ?
|
|
|
|
|
Try reinstalling the latest service pack for DevStudio.
That should do the trick.
Jens
|
|
|
|
|
What is the maximum size of string you can place in a Edit Box on a dialog. Note I am using CString for holding the text.
I am using a multiline Edit Box to display the progress of a test activity. The display used to be a DOS Window.
I use the following code to update the output:-
m_Output.SetFocus(); // Set the focus to main window of the GUI
m_strNewText.Format ("%s", m_pMsg->OutputText); // Copy from memory into m_strNewText variable
m_strOutput+= m_strNewText + crlf; // Total display string;
SetDlgItemText(IDC_OUTPUT1, m_strOutput); // Display the new text appended onto old text
UpdateData(); // Refresh the control
I was thinking of checking the size and restarting when getting near the limit, but what is the limit?
|
|
|
|
|
Edit controls on Windows NT/ 2000:0x7FFFFFFE characters
Edit controls on Windows 95/98: 0x7FFE characters
this for single line edit controls
you can change this with : CEdit::SetLimitText
|
|
|
|
|
Many thanks for the information.
|
|
|
|
|
An edit box can hold 216 characters. A CString object can hold 231 characters. Use a richedit control if you want to hold more.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Does that mean the system allocates with 2^31 bytes of memory space for it whenever I create a CString object? If so, is it not a good idea to using CStrings if I know the string has only few hundred bytes long?
Thanks
|
|
|
|
|
J.B. wrote:
Does that mean the system allocates with 2^31 bytes of memory space for it whenever I create a CString object?
Only if it needs to. Check out how memory is allocated in CString::AllocBuffer() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi, I am a newbie in Visual C++ Programming concerning MFCs. I'm just wondering what the difference is between string and CString?
Strings have strcpy, strlen, etc, etc... So what are its counterparts for CStrings? What are the different ways of manipulating CStrings?
Thank you so much in advance
|
|
|
|
|
Equivalents:
C CString<br />
strcpy: =<br />
strlen: cs.GetLength()<br />
strcat: +=<br />
strlwr: cs.MakeLower()
Best regards
|
|
|
|
|
Thank you so much
I have another question... Do you guys know what command is used in order to check if a certain character can be found in a string?
I have searched through the net and found out that there is such a thing as Find for CStrings, although everytime I add #include "CString.h" which is necessary to use find, it doesn't work and only produce errors...
How do you use the commnad Find or is there any other way to check if a character can be fond in a CString?
Thank you once again
|
|
|
|
|
CString::Find
MSDN:
// First example demonstrating
// CString::Find ( TCHAR ch )
CString s( "abcdef" );
ASSERT( s.Find( 'c' ) == 2 );
ASSERT( s.Find( "de" ) == 3 );
// Second example demonstrating
// CString::Find( TCHAR ch, int nStart )
CString str("The stars are aligned");
int n = str.Find('e', 5);
ASSERT(n == 12);
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Are these errors compile time? If so, what's the complaint about?
Do you mean "CStringt.h", or possibly "cstring"?
Steve S
|
|
|
|
|
If you are working around with a MFC project generated by VC++, there's no need to include any header file for CString. If you insist, then do:
#include <cstringt.h> // Visual Studio .NET
If you are using string, you have to include <string>. And class string is in namespace std.
Maxwell Chen
|
|
|
|
|
Thank you to all those who replied about my question I really appreciate it. So sorry about the header file... I thought there was still a need for me to add a CString header file when I intend to use its functionalities
Thanks guys
|
|
|
|
|
How to get full path to folder using SHGetPathFromIDList, or maybe in other way, but using only SHBrowseForFolder
|
|
|
|
|
|
how to get _DSpreadSheet's point from _DSpreadSheet's handle?
(class _DSpreadSheet : public COleDispatchDriver)
CButton's point can get from CButton's handle.
CButton *p;
p = (CButton *)CWnd::FromHandle(glhTargetWnd);
help me! 555555
|
|
|
|
|
Try
pYourWnd->GetControlUnknown();
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
thank you for your answer,
but my point is HWND__ and your pYourWnd is CWnd.
I can not use it.
How can I do ?
|
|
|
|