|
Why should I upgrade to .NET from VC++ 6.
I'm having trouble seeing the pros and cons.
Pat...
patrick@michael-clarke.com
|
|
|
|
|
Most of those upgrading seem to do so for personal "career" reasons, anticipating a general shift to .NET and managed code etc.
They want to have the cutting edge knowledge to position themself in a possible future .NET labourmarket.
The reason why I personal would want to switch is the upcoming improved C++-compiler, which complies to the C++ standard (at last!) regarding templates and variour other stuff.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
I would like to upgrade, but
1) Still have to support old windows clients win95, 98, mil
2) Don't want to distribute MFC7
3) Don't want to loose my dev studio pluggings...
Brian
|
|
|
|
|
Brian Shifrin wrote:
Still have to support old windows clients win95, 98, mil
Does this means that the new release cannot use the windows api? I'm confused about the VS NET and I'm asking in order to clarify myself:
I believed that I could use the new Visual studio .NET to do the same work than before, but improving some things (as almost all the new versions in all the software use to do)...
Brian Shifrin wrote:
Don't want to distribute MFC7
Why? I suppose that you can link in a non statically way and then everything works fine...
I thought that the only "ugly" thing was the NET framework, but the MFC, it's the same than before but with some improvements isn't it?
|
|
|
|
|
Some people are still confused about what .NET is.
With the studio.net you can create programs in:
VC++.NET and VC++ MFC7 among other languages.
Programs written in VC++ MFC7 are compatible with win95/98/me/nt/2000/XP as was MFC6. If you don't distribute the new MFC7 dll's you will have to staticly link to them as always.
VC++.NET is different and requires the dot net framework. It is not MFC. VC++.NET is a new temporary language with an expected lifetime of 5 years. The programs you create with it are compatible with win98 and up provided the .net common run time is installed (28Mb). The purpose of VC++.NET is to bridge legacy code (existing COM etc..)with new managed type code. Microsoft figures that by 5 years the legacy code will be gone.(???). The idea is to provide a bridging language while new code is written in VC#.net or (VB.net).
On the other hand MFC7.0 has been updated from 6.0 with some new classes etc. for people that don't want to go down the .NET road.
Art
|
|
|
|
|
Hi folks !
I have a dialog box on wich I can choose several tools and configure them. All these tools have completely different configuration requirements. So what I wanted to do, is that in the upper part of the window, I choose a tool and when it's done, in the bottom part of the dialog I show another Dialog (so this one is "on" the first one) with all the controls to configure the tool (buttons, edits, ...). So, I have a different window for the configuration of each tool.
Any idea how I can do this ??
Thanks!
|
|
|
|
|
You can insert a sub-dialog (using CDialog::Create, passing the outer dialog as parent).
Make the sub dialog without border, WS_CHILD and WS_CONTROL style.
Add WS_CONTROLPARENT style to the outer dialog.
(The WS_CONTROL / WS_CONTROLPARENT allow the user to tab through the child dialog's controls as if they'd belong directly to the parent dialog)
For each "tool" configuration, insert one of these sub-dialogs, and hide all but the one that is active. (ShowWindow(SW_HIDE / SW_SHOW)
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
Thanks for your quick response !!
That was exactly what I needed !
Thanks
|
|
|
|
|
Hi,
does anyone know of a (free, good) lib that reads & writes MatLab files?
(I found the file format on wotsit already)
Same for SciLab files.
TIA
Peter
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
Hi, everyone!
I have a sample about using constructor to do type conversion.
In my sample, I change an int to type "A". I just want to learn
more deeply into this topic -- using constructor to do type
conversion. Are there some online materials that I can make a
reference?
BTW: Is the topic in Bjarne Stroustrup's "The C++ Programming language
special edition"? I can not find that topic in this book.
Here is my example:
--------
#include <iostream.h>
class A {
private:
int a;
public:
A (int a)
{
this->a = a;
}
void output()
{
cout << "a is: " << this->a << endl;
}
};
void functionA (A a)
{
a.output();
}
int main()
{
functionA (10);
return 1;
}
--------
Thanks in advance,
George
|
|
|
|
|
There's little to add to your example, but in case you're interested check Eckel's Thinking in C++, ch 12, "Constructor conversion"[^]. It also says explains how to use explicit to avoid this kind of conversions.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks, Joaquín buddie!
George
|
|
|
|
|
Hello @all,
the following problem i 've been faced:
Assume the following tables:
tblA
ID : index
Name : String
Protected : boolean
Simpson Homer, Simpson Marge and Simpson Bart were stored.
I use a query somthing like this:
SELECT ID FROM tblA WHERE tblA.Name LIKE 'S*' AND tblA.Protected=0
This produce the expected result on win2k and win98SE, but if I use the following statement:
SELECT ID FROM tblA WHERE tblA.Name LIKE 'Sim*' AND tblA.Protected=0
the result is null on win98SE. On win2k the result has all simpson id's.
Now I 've updated the system. I insatalled MDAC 2.6, the Jet SP3 and JetSP6, but the problem persist.
Does anyone known, how I can solve.
Thank you.
|
|
|
|
|
Can this be due to capitals ? is
SELECT ID FROM tblA WHERE tblA.Name LIKE 'SIM*' AND tblA.Protected=0
working as expected ?
~RaGE();
|
|
|
|
|
Problem: I need to load a whole HTML page(including images and sounds) from memory to MSHTML. Samples, that I have found in MSDN Library (and on this site), only describes how to load HTML text.
Sorry for my english...
|
|
|
|
|
Thanks to all
I solved the problem.
Sorry for my english...
|
|
|
|
|
Hi,all
I have to apply stress test to my aplication.
For this I have to write a programme to Block the RAM.
is it Possible.
my intension is...
suppose i have a 256MB RAM in my system.while my application(test) is in running i have to consume predefined amount of MB using another application.
please guide me...
thanks in advance.
regards
anju
anju
|
|
|
|
|
|
Hi,
can anyone give me a simple piece of code in vc++ that presents a string in local language?
|
|
|
|
|
Localized strings should be contained in a project's .RC file. That said, you would simply use CString::LoadString() to extract the string resource.
|
|
|
|
|
Thank you david for help.
|
|
|
|
|
This complete newbie has been tasked with writing a C/C++ service that performs standard SQL functions on MS SQL 2000 and sends and retrieves data from Active Server Pages. I also needs to parse a great number of text files for specific data and populate a SQL table with the results. Problem is that I don't know where to start. I have limited programming experience in SQL and C but am willing to learn anything to get this job done. I am going to use ADO for the SQL connection as that looks to be a great fit. Need help getting started with a C/C++ service that does the following:
1) Searches a vast number of text files for an string, populates a SQL table with a list of matching files, copies a selected file to a local temp directory and inserts that file into a MS SQL table for editing purposes and storage.
2) Takes the search criteria from an ASP page and formats the text into something to search for.
3) Takes the search results and displays them on the Active Server Page.
If anybody has links to sample code or articles that would help, I would be greatly appreciative!
I have searched CodeProject, MSDN and Google an found bits and pieces of what I need.
Since I am learning most of this for the first time, ANY help is a big help...
Thanks in advance!!!
|
|
|
|
|
You can information about downloading and parsing HTML (.asp pages) in this article.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I haven't been able to find anything on this? Is there some reason it's not maybe implemented? Does the output file size increase when using 24 bit RLE???
I've found one for RLE8, but not RLE 24 and i'm wondering why...?
Thanks
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
Because the odds of getting runs of pixels exactly the same color are relatively small.
|
|
|
|