|
Hi,
I am writing a html help file for an application(which is similar to Adobe photoshop help files).I would like to know is there any microsoft standard guidelines for writing such help files?
Thanks
Asha
|
|
|
|
|
|
I have a Composite Control with a list control drawn in my resource. I created my own CListCtrl derived class, which adds sorting of columns.
Now I want to do some custom drawing, but I cannot get this to work. Some how I do not receive the NM_CUSTOMDRAW message. I used ON_NOTIFY_REFLECT and also tried the OnNotify method to receive this message, but here I only got the message from the header, not from the list itself.
How can I receive this message ? Must I do something else with the message map?
By the way, I used m_mylist.SubclassWindow(GetDlgItem(IDC_LIST)) to link the list control object to the list control.
|
|
|
|
|
hi all,
pls try answer my question!
i want to know how can i send data to java server in client/server program?
since the server is not written in java which do not use CArchive to receive data, i found there is some strange data sent to the java side server if i use the CArchive in the mfc client application.
do you know how can i send a pure data to other server or receive data from server if i don't use CArchive. Or, how can send data to non-MFC application in client/server program in a MFC application using CSocket, CSocketFile and CArchive?
thanks,
jim
|
|
|
|
|
Screw the MFC socket class and use the Win32 api directly. Its easy. CArchive & co are meant for when there are other MFC apps on the other end.
Beware of byte ordering issues.
BTW, wouldn't it be better to use java on the client and C in the server. I was thinking of the performance implications, unless the server will only have, at most, a handful of clients.
bibamus, edamus, cras moriemur [eat, drink, for tomorrow we die]
|
|
|
|
|
I've created an ISAPI module and i want to write an installation kit.
Is it possible to create virtual directories on IIS working just in command line style?
rechi
|
|
|
|
|
I'm hosting Web Browser in my app. When document contains frames with pages from different domains, it causes acces denied (COM Error) when trying to access document in frame. How to avoid it??
I read MSDN article "Permission Denied Error Message When Scripting Across Frames", but there was written about scripts only...
|
|
|
|
|
Help me to clear doubts on VC++ DhtmlEdit Controll for IE5[Table insert,Paste html...]
I am trying to develop a html editor using vc++6.
Now I am facing five major problems
1 How add Toolbar in a Dialog Based Application using vc+6 ? ,Is it possible in Dialog Based Application ?.
2 How insert a Table in a html page using vc+6's DHTML EDIT Control for IE5 ?.
3 How implement PasteHtml using vc+6's DHTML EDIT Control for IE5 ?.
4 How insert an adjecent Html?
5 How devolop a file opening dialog with html preview ?
The following shows my code for each problem ...
** Problem 2: VB code OK:-
Dim s As New DHTMLEDLibCtl.DEInsertTableParam
s.Caption = "test"
s.NumCols = "2"
s.NumRows = "2"
s.TableAttrs = "border=20"
s.CellAttrs = "bgcolor=black"
DHTMLEdit1.ExecCommand DECMD_INSERTTABLE, OLECMDEXECOPT_PROMPTUSER, s
** How it solve in VC++6 ?
----------------------------------------------
** Problem 3: VB code OK:-
Private Sub btnInsertNewTag_Click()
'insert new tag at cursor position
Dim tr As Object
Set tr = DHTMLEdit1.DOM.selection.createRange
tr.pasteHTML " "
End Sub
** How it solve in VC++6 ?
----------------------------------------------
** Problem 4: VB6 code Error:-
DHTMLEdit1.DOM.body.insertAdjacentHTML "body", "hr"
** Problem 4: VC++6 code Error:-
// It is not proper working.
LPCTSTR lpStrWhere= "body";
LPCTSTR lpStrHtml= "hr";
m_ctrlDhtml.GetDom().GetBody().insertHTML(lpStrWhere,lpStrHtml);//error
----------------------------------------------
If you know any methods to solve any of these problem ,you please send the source code or web site address.
Anticipating your early reply
Regards
ranjithe2002@hotmail.com
Thanks..
mail me
ranjithe2002@hotmail.com
|
|
|
|
|
hi
i have to make a font editor application which creates customised fonts
i have designed a ui which gives user a place to draw the font charactor's shape
now i dont know how am i going to convert it into font & store it into the file
if anyone there can guide me or give me some appropriate links
thanks
surbinsho
|
|
|
|
|
oh god, really not easy work to create usable font (editor)
do they really know what they request?
(do you know something more about fonts than they have shapes? maybe try look at links from http://www.codeproject.com/winhelp/format_tips.asp)
what font type do they want?
maybe older infos (?): http://www.wotsit.org/search.asp?s=font
maybe http://www.sourceforge.net/search ("font editor")
msdn help/specifications/opentype links to adobe.com, truetype seems inside
(sorry, no real experience with font file type specifications)
t!
|
|
|
|
|
This may be of help
http://www.wotsit.org/search.asp?s=font
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
http://tds-crew.thebugs.ws
|
|
|
|
|
I don't even know what most of those things stand for. Is this URL to a shop, or a pirate site ?
Christian
come on all you MS suckups, defend your sugar-daddy now. - Chris Losinger - 11/07/2002
|
|
|
|
|
Christian Graus wrote:
Is this URL to a shop, or a pirate site ?
Definitely the latter. Such pages really shouldn't be allowed.
Peter O.
|
|
|
|
|
|
|
Nishant S wrote:
Did you really think you can mess up the forums by putting that in a message?
some people are just plain stupid
Soliant
"Every man dies, not every man really lives"
- Braveheart
|
|
|
|
|
When you press ctrl and the lbutton at the same time over almost anything, a little plus sign is added to the cursor. I can't seem to find anything that talks about that. How do you do it?
-Raffi
|
|
|
|
|
See the articles in the Drag and Drop section.
For normal OLE d&d, you'll just return DROPEFFECT_COPY at the appropriate time and place.
Or if you're doing your own thing, you can just create a cursor with a little plus sign in it...
--------
PMGRE --Shog9 --
|
|
|
|
|
Can someone tell me what needs to be done in order use a timer in a dialog dll. I have used settime with and without a TIMERPROC function and therefore with and without the use of OnTimer override, and nothing.
Suggestions?
I was going to throw the dialogs into a seperate thread, and use a sleep on the sll function, but I need to set variables in the dialog class that are passed in from the dll function call.
Help....I'm running out of ideas.
If you need to see some code, let me know, I did not post any because the settimer and ontimer stuff is uncomplicated. All I need to do when the timer hits is to close the dialog.
Thanks
Wade
|
|
|
|
|
|
Tried it, if the dialog code is inside an application settimer and the corresponding OnTimer that receives the WM_TIMER msg works. However, once the dialog class is implemented from a dll, the OnTimer function no longer receives any WM_TIMER msgs. However, the SetTimer fires when required.
|
|
|
|
|
Hello,
I am getting this error in my program in debug mode..
Damage: after Normal block (#63) at 0x011E1A20
It happens after I try the following code.
void CEncryptDlg::EncryptMsg()
{
UpdateData(TRUE);
KeyGen((DWORD)m_iKey);
DWORD* pdwTemp;
// Gets the length of the msg for the loop
m_nMsgLength = (UINT) m_strMessage.GetLength();
m_pFileData = new BYTE[m_nMsgLength];
// Fills the m_pFileData with the String
m_pFileData = (BYTE*) (LPCTSTR) m_strMessage.LockBuffer();
for(UINT i = 0; i < m_nMsgLength; i += 16)
{
pdwTemp = (DWORD*)&m_pFileData[i];
pdwTemp[0] = (pdwTemp[0] - m_dwS[2 * R + 2]);
pdwTemp[2] = (pdwTemp[2] - m_dwS[2 * R + 3]);
for(int j = R; j >= 1; j--)
{
DWORD temp = pdwTemp[3];
pdwTemp[3] = pdwTemp[2];
pdwTemp[2] = pdwTemp[1];
pdwTemp[1] = pdwTemp[0];
pdwTemp[0] = temp;
DWORD t = LeftRotate((pdwTemp[1] * (2 * pdwTemp[1] + 1)),
OffsetAmount((DWORD)(log((double)W)/log(2.0))));
DWORD u = LeftRotate((pdwTemp[3] * (2 * pdwTemp[3] + 1)),
OffsetAmount((DWORD)(log((double)W)/log(2.0))));
pdwTemp[0] = (RightRotate((pdwTemp[0] - m_dwS[2 * j]), OffsetAmount(u))) ^ t;
pdwTemp[2] = (RightRotate((pdwTemp[2] - m_dwS[2 * j + 1]), OffsetAmount(t))) ^ u;
}
pdwTemp[1] = (pdwTemp[1] - m_dwS[0]);
pdwTemp[3] = (pdwTemp[3] - m_dwS[1]);
}
m_strMessage.UnlockBuffer();
// Displays the String after being encrypted
m_strMessage = (LPCTSTR) m_pFileData;
m_pFileData = NULL;
m_nMsgLength = 0;
pdwTemp = NULL;
UpdateData(FALSE);
}
Any ideas?
Thanks!!
|
|
|
|
|
I've noticed three errors:
m_pFileData = (BYTE*) (LPCTSTR) m_strMessage.LockBuffer(); This does not copy the contents of m_strMessage into m_pFileData : instead, it simply makes m_pFileData point to those contents. I don't think your crash is due to this, but it's an error nevertheless.
m_pFileData = NULL; You're having a memory leak here, as m_pFileData should be deleted with delete [] m_pFileData (once you've fixed the first error.) Again, your crash is probably not related to this.
for(UINT i = 0; i < m_nMsgLength; i += 16) This is most likely what's causing the problem. You're handling the data as contiguous blocks of 16 bytes, but this won't be always the case: Consider for instance that m_nMsgLength is 20: then your code will overwrite 12 bytes past the end of m_pFileData . You should be adjusting the space allocated with m_pFileData to cope with this situation (and of course correct first the other errors.)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I didn't finish reading the code, but here's the first problem at least:
m_pFileData = new BYTE[m_nMsgLength];
m_pFileData = (BYTE*) (LPCTSTR) m_strMessage.LockBuffer();
Allocates a buffer, and immediately looses the only pointer to it. Then, at the end:
m_strMessage.UnlockBuffer();
m_strMessage = (LPCTSTR) m_pFileData;
Unlocking the buffer tells CString that you're no longer holding any pointers to its internal data (which you in fact are), and that it can go ahead and free it if it needs to. Think for a bit about what's going to happen when it frees that internal buffer, and then tries to copy into a new buffer whatever happens to be in the memory where the old buffer once was...
Like i said, i didn't read through the rest of the code, (could you indent pls?) but this is definately a place to start...
--------
PMGRE --Shog9 --
|
|
|
|