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...
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
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
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...
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...
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...
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...
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++...
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...
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...
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
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...
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
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.
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
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.