Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: MvanH
  • Order by date
  1. MvanH

    Data manip. in memory

    I have to read and write data from and to a specific address in the memory. I tried to use the search but could't find any answers. I have a row of 512 16 bit signals written in the memory by another device that shares the same memory with my Proccesor. Now I have to check and correct those 16...
  2. MvanH

    Stack definition problem

    Thanks the problem was indeed "Using namespace std" I would have never guessed that THAT was the problem. Thanks again for your help! (It seems that its always the same two guys who help me out. Thanks a lot John & Burtanl) Martini
  3. MvanH

    Stack definition problem

    Yep already did that, but that was not the problem. When I type stack< I do see the 'autoformat' text that tells me what I should fill in. But somehow the compeiler doesnt like the idee of a stack. could it have something to do with the settings of Microcoft Visual C++??? Thanks
  4. MvanH

    Stack definition problem

    goodmorning, I'm trying to use a stack in my program. However somethings go's wrong when I declarete my stack in my class the following way: -- stack<int> stackname; I recieve the following errors. -- syntax error : missing ';' before '<' -- error C2501: 'stack' : missing storage-class or...
  5. MvanH

    Pointer to member functions

    Ok I think I know what the problem is. When I call CMaindoc p; A new document is created, as CMainDoc is derived from class CDocument. the code above does not generate the error, but the fact that I try to write into a new documenten that is not yet initiated with OnNewDocument that is the...
  6. MvanH

    Pointer to member functions

    Goodday people, I'm trying out some pointer functions in Visual C++, to understand more about C++ I have the following code in one of my class member functions (see bottom of post). What I tried to do is allow the class this function is in to write into the document that is attached to my...
  7. MvanH

    cutting up variables.

    Hello people, I have a big problem, In my program, I recieve an variable with a value from somewere between 10 and 9999. The problem is that this unsigned short variable has to be depicted as 4 characters, like 0031 or 0372. And that's not all. The big problem is the following. The first two...
  8. MvanH

    Listing Files in c++

    I Have a program that allows user to select a certain type of file. I think I used GetOpenFilename (?) I don't fully remember, but if you want I can send you the code for a dialog box in wich you can brows your directory and filter for certain files. P.s. Its a standard class in Visual C++...
  9. MvanH

    string to integer conversion

    He people, I feel really stupid for asking this, But How do I convert a number in a string into a integer? I read a line from a file, 'value1 = 1000' By the use of file.readstring(string_with_value); How do I get the value that is now in the CString string_with_value, to a usable 'int...
  10. MvanH

    GetOpenCardName function

    He Denyson, I have an off topic question. May I ask what you 're designing and for what kind of smartcards? The reason for this is that I'm currently creating an Debug interface for Smartcards, as a sort of 'Internship' Assignment. And well, I'm almost done, but can always use some good...
  11. MvanH

    Change default used font

    THANKS!!!! I used your OnInitialUpdate methode and it worked. But can you explain to me Why it worked with the CFont m_font; as a class member, In stead of m_font as the function member? Because that's the only thing that is different in this function............ Thanks a lot! Martini
  12. MvanH

    Change default used font

    I want to change the Font that my Ceditview is using to a font that has fixed wides (uhhh the length from left to right, sorry bad english) like Courier new. When I do this the following way, it doesn't work. Has anybody got an idee? -------------------- CFont m_font; LOGFONT LF; memset(&lf...
  13. MvanH

    How do I create a reference to a control?

    Did you change the name of the ID? Because if I use standard ID's they don't show up either. As soon as I give the controls a custom ID they reveal themselves in the Classwizard. martini
  14. MvanH

    Main Titel bar without the name of the file that is opened

    Thanks, that works also. However it is more work as I have to call SetWindowText, after every update of my view. But thanks anyway, I can use it for my dialog windows! Martini.
  15. MvanH

    Main Titel bar without the name of the file that is opened

    Using SetWindowText(...); won't work as you only set the title of the window and not the automaticly generated docname that is append to the title. Thanks for pointing out That the CxxxDoc base class is the one that appends this docname. I'll try it right away. Thanks Martini
  16. MvanH

    Main Titel bar without the name of the file that is opened

    When I launch my program, in the titel bar of the mainview the name of the program is displayed but also the name of the file that is opened. His stringname is drawn on the titelbar between '['and ']' the problem is that the system also includes a number behind this filename... like 1 or 2...
  17. MvanH

    Strange (unwanted) Onfocus/Ondraw feature

    Hello people. I have a very strange feature embedded into my program. And I can't seem to get it out. (as with most features its pretty damm unwanted.) When my program is started (a multiple splitter window with dailogboxes containing buttons and a view on a txt document) everything works...
  18. MvanH

    Scroll down view in OnUpdate();

    Does anybody know how to scroll a document view to the bottom of the document from within the OnUpdate function? I want to scroll down my document that is in a CeditView derived class. I would like to do this in OnUpdate so that the view is scrolled down to the bottom of the document every time...
  19. MvanH

    Directory browser with CtreeCtrl(?)

    hello people, I have to make a dailog in which a user can browse in directories on the network and on the desktop pc. In this dialog he has to be able to select command files in txt form. (which will than be interpreted) I'm trying to use a CtreeCtrl object in a dialog. But I don't know how I...

Part and Inventory Search

Back
Top