|
I would caution using that version and use http://www.codeproject.com/macro/restoreclassviewaddin.asp instead. I tried the new version and it totally messed up (lost) my class view.
Also you must do this to save the classview before VC++ has crashed if it has already lost your classview their is no way to recover it.
John
|
|
|
|
|
I'm trying to call the DllMain funcion explicitly after the DLL is already loaded. I have an handle to the DLL but I have no idea how can I get the DLL function from it.
Thanx
Didi Gurfinkel
|
|
|
|
|
Why do you need to do that? I think a simpler idea would be to export another function which does what you do in DllMain. You can call that explicitly and also from DllMain. You can export DllMain too but it will be nice to keep the sanctity of the function.
|
|
|
|
|
I need it for backward compatibility issue.
|
|
|
|
|
I am considering writing some of the classes for our project using C++ rather than VB in order to gain some speed benefits.
Has anybody done this (successfully) ?
Does anybody have any examples I could peruse ?
David R Hancock
The Heinekin Uncertainty Principle: You can never be sure how many beers you had last night
|
|
|
|
|
|
FilthyZombie wrote:
our project using C++ rather than VB in order to gain some speed benefits
Be very sure of whether the classes will give you performance benefits or not. It is not necessary that converting to C++ will give you some performance benefits. If the code is data-access code then don't even bother.
The ways to access VC++ code thru' VB is COM Automation. You need to create a COM component in VC++.
|
|
|
|
|
Rama Krishna wrote:
If the code is data-access code then don't even bother
Yeah, it'd be funny if someone created a C++ component to use ADO
For 5 times the coding effort you get zero speed benefits and possibly buggy code.
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Nish - Native CPian wrote:
Yeah, it'd be funny if someone created a C++ component to use ADO
Get stuffed
Nish - Native CPian wrote:
For 5 times the coding effort you get zero speed benefits and possibly buggy code.
I did it as a learning exercise. Why would anyone WANT to learn VB ? I am studiously avoiding it, because I regard it as a resume stain.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
Christian Graus wrote:
I am studiously avoiding it, because I regard it as a resume stain.
I am a Microsoft Certified VB programmer (Resume stain) even though I am primarily C++ programmer. But I fell in love with VB when I was preparing for the exams. I hold the opinion that most programmers opinions about VB are not correct.
Christian Graus wrote:
Why would anyone WANT to learn VB ?
I think it is a must for an ATL/COM programmer to learn VB.
|
|
|
|
|
Rama Krishna wrote:
But I fell in love with VB when I was preparing for the exams. I hold the opinion that most programmers opinions about VB are not correct.
Sadly, I have had to use it at times, and everything I have seen verifies my opinions. Goodness me, half the reason we have C# is because the VB name is beyond resurrection.
Rama Krishna wrote:
I think it is a must for an ATL/COM programmer to learn VB.
Then I guess I am a failure. Don't tell my boss, OK ?
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
I am a form believer in using the right tool for the right job. I believe that C++ is an overkill sometimes atleast for writing simple COM clients or database clients. What is the use of speding long development hours in testing and coding in C++ when you can write something in VB fast and it doesnot require as much debugging as your C++ app.
Christian Graus wrote:
Then I guess I am a failure. Don't tell my boss, OK ?
Someone said the following words in an article about ATL ActiveX programming (I don't remember who - probably Chris Sells)
"... this is a VB programmer's world and we are just visitors"
|
|
|
|
|
Rama Krishna wrote:
What is the use of speding long development hours in testing and coding in C++ when you can write something in VB fast and it doesnot require as much debugging as your C++ app.
I think you're undervaluing my C++ skills.
Rama Krishna wrote:
"... this is a VB programmer's world and we are just visitors"
He's entitled to his opinion.
I'm all for tools for the right job. VB seems good at creating a quick and dirty app to use a COM component, or test it. I prefer to test in place though, which sadly for me means VBScript in ASP. Roll on ASP.NET. C# is still annoying at times, but it canes VB.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
I am really tired about checking the MSDN for MSChart component's usage. Could anyone give me some URLs or examples of simply usage of it? Thank you.;P
|
|
|
|
|
Hi everyone. I have a program which opens and writes to MS Jet databases using DAO. I want to be able to open a table in a Jet database and convert it to a CSV (comma separated value) database. MSDN says you can use DAO to read/write to CSV databases, but I cannot find any examples on how to do this. Do you use it just like Jet database? Any help is greatly appreciated!
|
|
|
|
|
A CSV file can be created straight huh?
Just separate your fields with commas and each record ends with a cr-lf.
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
I could do that, and still might. Creating the file isn't too bad, but parsing it back out will be a chore, possible to do but a chore. I was hoping DAO could read the file back for me. Oh, well
|
|
|
|
|
I created an ActiveX (with MFC) selecting "Invisible at runtime" in the wizard. This control manages a communication via serial port.
In my MDI application I added the ActiveX to some dialog windows and all works fine.
Now I need a background communication (without any dialog windows).
How can I use my ActiveX ?
I try to add in "CMyApplicationApp" class the declaration "CMyActiveX m_MyActiveX" (like the wizard does in "CMyDialog") but when I try to access any method I have an ASSERT error (line 345 of winocc.cpp).
The line in winocc.cpp is:
ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least)
Can anyone help me !
Thanks
Paolo
|
|
|
|
|
ActiveX controls require a container. Just make it a regular COM component. This will solve your problem.
|
|
|
|
|
How can my C++ project setup file ?
|
|
|
|
|
gago wrote:
How can my C++ project setup file ?
There is an installsheild with visual studio.net/6
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
As Mazy already said you can use Installshield. But if that's too complicated for you I suggest Inno Setup which is an easier tool to handle
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Nish - Native CPian wrote:
I suggest Inno Setup which is an easier tool to handle
I don't know about this tool Nish.Is that something free to download?
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Mazdak wrote:
I don't know about this tool Nish.Is that something free to download?
http://www.jrsoftware.org/isinfo.php
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Thank you Nish.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|