Hi! Does somebody know, if there is shareware to create class diagrams or flowcharts of programs? I already tried Jude, but thats only for JavaScript? Thank you very much!:) -- modified at 8:47 Tuesday 18th April, 2006
hanno25
Posts
-
Program for creating Class diagrams/flowcharts -
Converting .rtf to .HLP-FileHi! Does somebody know, what I have to do, when there is a .rtf-File which should be converted to a WinHelp-File? I don't have a .cnt but a .hpj-File. Thanks a lot, Hanno :)
-
Dynamic arrayHi! Do somebody know, how to create an dynamical array? I tried to do something like that: int count = 0; while (s == newName) { int i = atoi(s); count ++; int arr[count]; cin >> arr[i]; } As long, as it founds some elements in a list, it should size the length of the array and fill it. Thanks -- modified at 2:41 Saturday 1st April, 2006
-
Very simple questionHi! This is a really easy question, but I dont know the answer: The text in a AfxMessageBox should look like this: Sorry, can't found folder "Test" ! Whats the way to give out the ""?? :(( Thanks
-
Question concerning typecastYes, I know that. The help-file only gives informations in VB. I have to use the supplied COM-interfaces in C++. Below, there is the information from the precompiled header file: inline HRESULT xxx::ICoClass::Export ( _bstr_t PathOrFilename, VARIANT * Result ) { HRESULT _hr = raw_Export(PathOrFilename, Result); if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); return _hr; } But that doesn't gives informations, that the result-Parameter has to be handled as a array, that's why I copied the VB-code in the first text. Hanno
-
Question concerning typecastHi! I found the following explanation to a subroutine. The subroutine gets 2 values, the second one is optionally set to zero or to an result. When it is set to zero, I have to write : Export((_bstr_t)name, (VARIANT *)NULL); But what kind of typecast do I have to do, if I will use as a first and second parameter a _bstr_t or CString-Type in the RESULT-array? I tried some things, but nothing worked. Explanation from help file: Sub Export( ByVal PathOrFilename As String,Optional ByRef Result As Variant ) Result is an array containing four string items, 1st is the complete filename or empty 2nd item is the complete navigation filename or empty 3rd item is the complete meteo filename or empty 4th item is the complete tilt filename or empty. Thanks a lot, Hanno -- modified at 4:23 Tuesday 28th March, 2006
-
Three questionsHi, I have some questions, concerning three different things: 1.: if there is a text file with some identical lines in it, how can I find out, if there are identical lines and how can I delete these identical lines except of the first one? 2.: how can I replace the "GOTO" by an other statement? I already tried it with a simple "return", but that doesn't work. _eins: if (m_dlgSheet.DoModal() == IDOK) { condition 1= ... condition 2 = ... if(condition1 != true&& condition2 != true) { goto _eins; } } 3: do somebody know, how to implement a "zoom window"-function? Having this function, the user should be albe to draw with a left-mouse-klick a rectangle; while LMouseButtonUp, the content of the chosen rectangle should be enlarged to the whole size of the window. Maybe somebody knows a link or even source-code for this problem? Hanno :)
-
Initializing IXMLDOMTextPtrI will change an the content of a node in a XML-File. It is no problem, to get the specific node and its content. But to change the content of the Node I have to use the function "InsertData" from the class IXMLDOMText. Therefor I have to initialize the IXMLDOMTextPtr. But every time I try this, I get the error message, that the left part of ->"Query Interface" has to point to a class... So what's wrong with that? Below the pasted code to make it a little bit more understandable. Thanks, Hanno CString fileName; CFileFind find; BOOL findFile; IXMLDOMDocument m_iDocPtr; IXMLDOMNodePtr m_iNodePtr; IXMLDOMTextPtr m_iTextPtr; findFile = (find.FindFile(strPath+"\\"+"*.xml",0)); while(findFile != 0) { fileName = find.GetFilePath(); m_iDocPtr->Load((_bstr_t)fileName); m_iFr = m_iDocPtr->createDocumentFragment(); m_iNodePtr = m_iDocPtr->selectSingleNode("//HI"); m_iNodePtr = m_iNodePtr->selectSingleNode("//Hello"); _bstr_t hello= m_iNodePtr->text; if (atoi(hello) == 0) { m_iTextPtr = m_iDocPtr->createTextNode("something"); m_iTextPtr->insertData(2,"something"); } }
-
Typecast _bstr_t to int?Yes, that did it! Thanks.
-
Typecast _bstr_t to int?Hi! is it possible, to make a castType from _bstr_t to "int"? Thanks, hanno
-
Open and write in XML-DocumentThanks for your help. Could you send a small piece of code, explaning this a little bit? With best regards, Hanno
-
Open and write in XML-DocumentHi! DOes anybody know, what I have to do, if I want either to create an new .XML-File or open an existing .XML-File to write at the beginning of this file? I thought, that I can handle this like a normal text-file but that has been a mistake. So, if anybody knows something about this, please let me know! Thanks, Hanno
-
How to open notepad.exeBut it works that way. It is not my idea to do it this way, maybe that makes you a little bit happier? Best regards, Hanno
-
How to open notepad.exeI want to have such a thing, because there are points to display on a window. There is a function, responsible for displaying the points. Of course, the function needs coordinates. First of all, this function gets the point names from the calling program. THen, the function is looking for fitting coordinates, which should be in a already existing text-file. But it can happen, that the coordinate-file will be empty. Then, the function has to open a notepad-file, where the point-names should be already inserted. The user has to write down the missing coordinates for the point-names. That's the way. Maybe you have a better idea to do this? Hanno
-
How to open notepad.exeHi! Thanks, that was a big help. Maybe you can tell me, too, how to insert text of a CString-object in the already opened notepad-File? Or do I have to do this at the same time and if yes: how? With best regards,:-D Hanno
-
How to open notepad.exeHi! Does somebody know, how to to open notepad.exe? In the opened notepad's page, the user should be able to write, save and close the file. Would be great, if somebody could help me with this problem.:)
-
PropertyPages+SheetSorry about that, my mothertongue isn't the english language. I want to say: to send parameters, to give over parameters. Is that a better expression? Hanno
-
PropertyPages+SheetHi! I have a dialog based application with severeal dialogs. There is a main dialog, which calls via Button and Menu all other dialogs. Till now, I used only ordinary dialogs. But to make it more clear to the user, I tried to transform some of the dialog classes into PropertyPages. While using the dialog class, parameters were given to the main program while pressing the OK-Button. Because there is no OK-Button in a PropertyPage-dialog, I don't know, how to give over the parameters now. I Already implemented a function OnRefer(WPARAM, LPARAM), but only that was too less. I already serached in the codeproject's articles but couldn't find something accordingly. It would be great, if somebody could help me with this problem (Links, Hints or whatever)!! Hanno:) -- modified at 4:46 Wednesday 1st February, 2006
-
Again CListBoxAnother question: Before calling the dialog, I try to call another function, which has access to the list elements. This function should fill the CListBox. But every time, I will add this elements to the CListBox (using AddString("text")), the program returns a error message. Whats the mistake? Help!
-
Loading list elements in a CListBoxHi! I try to fill a CListBox with elements of a CList object. The elements should be listed, as soon as the dialog will be opened. So, I have to do this via "OnInitDialog". But to get access to the list elements, OnINitDialog needs one parameter in his parameterlist. Does somebody know, how I can overwrite this function? Thanks a lot, hanno :)