Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

hanno25

@hanno25
About
Posts
21
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Program for creating Class diagrams/flowcharts
    H hanno25

    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

    C / C++ / MFC javascript question

  • Converting .rtf to .HLP-File
    H hanno25

    Hi! 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 :)

    C / C++ / MFC question

  • Dynamic array
    H hanno25

    Hi! 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

    C / C++ / MFC data-structures tutorial question

  • Very simple question
    H hanno25

    Hi! 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

    C / C++ / MFC question

  • Question concerning typecast
    H hanno25

    Yes, 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

    C / C++ / MFC question data-structures help

  • Question concerning typecast
    H hanno25

    Hi! 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

    C / C++ / MFC question data-structures help

  • Three questions
    H hanno25

    Hi, 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 :)

    C / C++ / MFC question help tutorial

  • Initializing IXMLDOMTextPtr
    H hanno25

    I 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"); } }

    C / C++ / MFC help database xml question

  • Typecast _bstr_t to int?
    H hanno25

    Yes, that did it! Thanks.

    C / C++ / MFC question

  • Typecast _bstr_t to int?
    H hanno25

    Hi! is it possible, to make a castType from _bstr_t to "int"? Thanks, hanno

    C / C++ / MFC question

  • Open and write in XML-Document
    H hanno25

    Thanks for your help. Could you send a small piece of code, explaning this a little bit? With best regards, Hanno

    C / C++ / MFC xml question

  • Open and write in XML-Document
    H hanno25

    Hi! 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

    C / C++ / MFC xml question

  • How to open notepad.exe
    H hanno25

    But 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

    C / C++ / MFC help tutorial question

  • How to open notepad.exe
    H hanno25

    I 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

    C / C++ / MFC help tutorial question

  • How to open notepad.exe
    H hanno25

    Hi! 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

    C / C++ / MFC help tutorial question

  • How to open notepad.exe
    H hanno25

    Hi! 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.:)

    C / C++ / MFC help tutorial question

  • PropertyPages+Sheet
    H hanno25

    Sorry 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

    C / C++ / MFC help css tutorial

  • PropertyPages+Sheet
    H hanno25

    Hi! 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

    C / C++ / MFC help css tutorial

  • Again CListBox
    H hanno25

    Another 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!

    C / C++ / MFC help question

  • Loading list elements in a CListBox
    H hanno25

    Hi! 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 :)

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups