|
|
I had tried "A multi document tabbed" before, but the demo showed open file using OnFileNew.
It's not like in VB so I can't used it.
The "Creation of Multiple Views", seems more promising. But I have a problem when I uses class that derived from CFormView. I can't call function create.
m_pNewForm->Create(NULL, NULL, WS_VISIBLE | WS_CHILD, clientRect,&m_tabCtrl, ID_VIEW_BASE + idNewForm)
The error is "'Create' : function does not take 6 parameters"
I don't get it.
|
|
|
|
|
Take a view here[^]
there I explain how I create a structure of 1 doc, 1 main view (CScrollView) and from 1 to 50 CFormViews (one per element) with just 5 different templates
I used VC++ 6.0, so you may have to change some things to adapt to VS2003, but the principles are there
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
I need to find out the serial number of Compact Flash card plugged in to the computer via IDE in XP embedded environment. I am using Visual studio 2003 with .Net 1.1. COuld some body help me please?
|
|
|
|
|
maybe someone of the .net forum?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
You could try WMI but most CF cards don't have a serial number, let alone a unique serial number. To use WMI, the creator of your XPe image will have to include the WMI component.
Judy
|
|
|
|
|
Hi.
There is trouble with List box (CListBox in MFC). I'm need horizontal scroll on CListBox object.
There is checkbox "Horizontal scroll" in properties of list box. I turn it on, but scroll doesn't appear. Is there way to create list box with horizontal scroll bar? Is't possible? Every information will be very valuable.
|
|
|
|
|
Jackson86 wrote: I turn it on, but scroll doesn't appear.
You also have to set the control's horizontal extent.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi.
There is trouble with List box (CListBox in MFC). I'm need horizontal scroll on CListBox object.
There is checkbox "Horizontal scroll" in properties of list box. I turn it on, but scroll doesn't appear. Is there way to create list box with horizontal scroll bar? Is't possible? Every information will be very valuable.
|
|
|
|
|
Jackson86 wrote: I turn it on, but scroll doesn't appear.
Because the horizontal extent has not been set.
BTW, your other, newer, post should be deleted.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
If the number of columns * width of the columns is not bigger than the width of the ListCtrl... your scrollbar won't appear
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
if any1 could tell me if
we can display (.exe) or (.swf) files in dialogs and formviews
|
|
|
|
|
paresh_sarjani wrote: we can display (.exe)
Probably not, except in binary format ?? but I'm not certain why you would want to display a .exe in a dialog ?
paresh_sarjani wrote: or (.swf) files
Probably, maybe Macromedia sell or give away an ActiveX or something to display flash in a dialog ?
|
|
|
|
|
actualyyyyyyy
active x goes very lenghty
and flash file can b converted into exe format
no other choice den activex?????
|
|
|
|
|
What does mean display exe file in the dialog do you want to run it you can use of Shellexecute or createprocess.
|
|
|
|
|
Hi all, i know that this question is quite stupid but how could i convet int to a CString Var.
Thx.
"The Ultimate Limit Is Only Your Imagination.
|
|
|
|
|
There are no stupid questions, but you could have at least do a little searching before.
There are numerous resources available on the thing we call the Internet to help you find an answer.
I will give you a hint : You will need to Format your number to be able to convert it into a CString.
|
|
|
|
|
yes you are all reson, but due to numerous search for tuff things i m exhausted
any way i found it on msdn:
[code]
* CString szStr;
* int iCpt;
*
* szStr.Format("%d",iCpt);
[/code]
and it works.
Thank you again.;)
"The Ultimate Limit Is Only Your Imagination.
|
|
|
|
|
if
int d;
CString str;
den
str.format("%d",d);
|
|
|
|
|
Or you can use of wsprintf.
|
|
|
|
|
I am getting compiler error - sorry no C number - which translates to lack of drive space on C drive for temporary files.
I am unable to find where to change this to other drive.
Anybody knows how to change the temporary files location on existing project workspace?
Thanks for your help.
Vaclav
|
|
|
|
|
Vaclav_Sal wrote: I am unable to find where to change this to other drive.
The TEMP environment variable, perhaps?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
But which one? Under what user?
Pardon my ignorance - but should that be an option in application and not in OS?
I am running Windoze 2000 Advanced Server and see few of the TEMP directories
- under each user.
I guess administrator would be the one since I log on as such.
I hope other applications don't complain.
|
|
|
|
|
I am writing code to track down memory leaks in our program. I am doing this by overloading the new(size_t), new[](size_t), delete(size_t) and delete[](size_t) functions so that I can keep track of which calls to new do not have a corresponding delete. This is all working well.
Now to my question, try as I might I cannot get the callers __FILE__ and __LINE__ information which I also need. I have tried #define new new(__FILE__,__LINE__) etc... but this is not compatible with existing code. I therefore feel that at some point in the call to new and new[], etc... that I need to move up the call stack a level to the caller so as I can obtain the __FILE__ and __LINE__ information from the stack page of interest.
Does anyone have any example code of how this can be done, please?
|
|
|
|
|
Andy H wrote: I have tried #define new new(__FILE__,__LINE__) etc... but this is not compatible with existing code.
Just for my own edification, why not?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|