|
|
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
|
|
|
|
|
Nish when I go to that site download links do not work.Have you test them recently?
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:
Nish when I go to that site download links do not work.Have you test them recently?
Try the 2nd US link :-
http://www.jrsoftware.org/files/site2/is32.exe
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
I tried all of thwm Nish. It doesn't work.
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
|
|
|
|
|
Use Inno SetUp with Script Maker and its pretty easy you can find it here
http://www.tafweb.com/scriptmaker.html
|
|
|
|
|
We have a paper graph (it is a waveform drawn on a grid) - like the one we used to do in our schools.(Assume that X axis represents t-time and Y axis represents v-voltage).
We take the bitmap image of the same.
Now we want to extract only the waveform out of this (not the grid both are of different colors) and we want to extract this waveform as a series of (X,Y) co-ordinates. This (X,Y) needs to be sampled at every delta-t.
This delta-t needs to be configurable (and should not be limited to screen/monitor's pixel length/width - this is what I meant by digitization independant of pixels).
I want to save this whole waveform into the database as a series of (X,Y)'s instead of storing it as an image
|
|
|
|