|
can i use MatchDocType() in Mainframe class tocheck whether a document is opened or not?
|
|
|
|
|
Yes.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
"Remember the five Ds of dogeball: Dodge, Dip, Duck, Dive, and Dodge."
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
After seeing your previous post, I thought maybe this would help...
CDocument *pDoc;
CDocTemplate::Confidence conf = pDocTemplate->MatchDocType(pszePathname, pDoc);
if (CDocTemplate::yesAlreadyOpen == conf)
{
}
Mark Salsbery
Microsoft MVP - Visual C++
"Remember the five Ds of dogeball: Dodge, Dip, Duck, Dive, and Dodge."
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
hi all
please tell me what is the problem with
this line of code
aqp ="SELECT id from login WHERE user= \'" + user + "\'" ;
as i connect vc++(mfc) with mysql 6.0
and the result from SELECT id from login WHERE user= \'" + user + "\' does not store
in aqp
i use debugger and aqp does not show any data
so this application gives exception at this line as it will store null value
thanks
hi
|
|
|
|
|
paras_s12 wrote: i use debugger and aqp does not show any data
Are you looking at aqp before or after the assignment?
paras_s12 wrote: so this application gives exception at this line
What does the stack trace look like at the time of the exception? Is user valid?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi All,
I want to add small images horizontally in ListBox. I add images in
vertical manner,but my requirement is to add them in horizontal manner.So any body have some hint related to it then plz send me.
Thanks and Regards
Atul
|
|
|
|
|
M. Atul wrote: I want to add small images horizontally in ListBox.
Listbox is not the ideal control for such a purpose. Use CListCtrl.
|
|
|
|
|
CListCtrl is flexible than to CListBox and you have control to that control.
|
|
|
|
|
I'd like to record more than 10000 records from serial port. they are from 30 signals, the software will record all the data into a data file and choose 8 signals to display in a chart in real time. how to define the data struct and store them in memory?
thank you.
|
|
|
|
|
Usually I prefer STL containers such as vector , anyway it also depends on the existing (if already exists) overall program design: for instance, if you've already choosen MFC containers for other purposes than continue to use them.
Hope that helps.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Whichever you use make sure you use the reserve function or an equivalent to grow your array in really big chunks not one element at a time. Growing large data structures is really slow even with stl and you want to avoid it if you need anything close to real time performance.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
I've actually done some testing with STL and I didn't find 10000 records to be that bad at all (I ran tests with 1 million string records in order to get reasonable timing -- i.e. between 15 secs to 1 minute).
|
|
|
|
|
Yep, you clearly have some reasonable harware behind that and STL is very good in straight allocation tests. It mostly does preallocating big lumps for you but not in every case. Never the less I'd probably still use a chain of large fixed size buffers for the sort of thing suggested. Although STL tends to be very good it is always trying to be all things to all people and if you do anything unexpected with it, it can get nasty. Also it is relying on the underlying Windows heap allocator and if that suffers fragmentation then even stl performance will go . Not an easy problem to avoid without going to .NET of course. In the end it's each to his own and use whatever enables you to write the best code
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
if you don't require the Random Access on data, then stl::list is much faster than stl::vector
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
create a calendar as an active x control,develop a client to compute the salary of an employee for which the month and year list of leave taken are given as inputs
|
|
|
|
|
Is it the homework for us?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
CPallini wrote: Is it the homework for us?
Sshhh, no questions please. I want it done within one hour. Gotcha.
|
|
|
|
|
|
No problem. If you want I can also take the plane an come to your house installing the software so that it's easier for you. Of course, you won't need to pay anything because we are all voluntary which means that we MUST do your job for you for free...
|
|
|
|
|
Cedric Moonen wrote: f you want I can also take the plane an come to your house installing the software so that it's easier for you.
Not to forget the post installation support.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->ßRÅhmmÃ<-·´¯`·.
|
|
|
|
|
brahmma wrote: Not to forget the post installation support.
Does that include free upgrades?
--PerspX
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
|
|
|
|
|
And lifetime warranty.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Wow! Sounds like a good deal :p
--PerspX
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
|
|
|
|
|
Please read the forum guidelines. Highlights include:
1. Give your messages a title with meaning. 'Hi' does not have any meaning.
2. We are not going to do your homework for you. If you have a bit of code that is giving you trouble, we will help. If you are not willing to do the work and learn for yourself, get out of programming now.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
First of all go to the admissions office.
Second step, demand your money back
Third step, drop out.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
|
|
|
|