Hello,
After much effort I have got the Visual C# code below to work using
Visual C# 2005 Express Beta 2 and now I am trying to convert it to
Visual C++ code so that I can use it in Visual C++ 2005 Express Beta
2.
My reason for doing this is that I believe (do tell me if I am wrong!)
that using Visual C++ 2005 Express together with the Windows SDK I
will be able to create a Win32 app which will mean that when this app
is installed on a PC the .NET Framework will not be needed ..... Since
my app is so small it seems foolish to require installation of 20 MB
plus of .NET Framework software ....
So, I am looking for Internet site where I might find help in
converting my code to Visual C++. Visual C++ for beginners needed!
Any ideas please?!
Cheers
Geoff
------------------- Visual C# coce -------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.IO;
using System.Windows.Forms;
namespace slider3
{
public partial class Form1 : Form
{
private string[] LHSquestions;
private string[] RHSquestions;
private int qnumber = 0;
private string[] results;
private int count = 0;
public Form1()
{
InitializeComponent();
LHSquestions = new string[]{"question 1","question 2"};
RHSquestions = new string[]{"question 1","question 2"};
results = new string[LHSquestions.Length];
this.label1.Text = LHSquestions[qnumber];
this.label2.Text = RHSquestions[qnumber];
}
private void pictureBox1_Click(object sender, EventArgs e)
{
}
private void trackBar1_Scroll(object sender, EventArgs e)
{
}
private void button1_MouseClick(object sender, MouseEventArgs
e)
{
results[qnumber] = trackBar1.Value.ToString();
++qnumber;
if (qnumber == LHSquestions.Length)
{
endMessage();
}
else
{
this.label1.Text = LHSquestions[qnumber];
this.label2.Text = RHSquestions[qnumber];
}
}
private void endMessage()
{
this.label1.Text = "Finished!";
this.label2.Text = "Thank you";
this.button1.Visible = false;
TextWriter tw = new StreamWriter("d:\\a-temp1\\data.txt");
for (count = 0; count < LHSquestions.Length; count++)
{
tw.WriteLine("q" + (count+1) + " = " + results[count]);
}
tw.Close();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
} 4 1834
A different perspective Geoff:
Who is going to use your app? If it is not for widespread use, find out if
your Users already have .Net installed. Most people with newish PCs will
have the .Net framework already there.
Chris
<Geoff Cox> wrote in message
news:u0********************************@4ax.com... Hello,
After much effort I have got the Visual C# code below to work using Visual C# 2005 Express Beta 2 and now I am trying to convert it to Visual C++ code so that I can use it in Visual C++ 2005 Express Beta 2.
My reason for doing this is that I believe (do tell me if I am wrong!) that using Visual C++ 2005 Express together with the Windows SDK I will be able to create a Win32 app which will mean that when this app is installed on a PC the .NET Framework will not be needed ..... Since my app is so small it seems foolish to require installation of 20 MB plus of .NET Framework software ....
So, I am looking for Internet site where I might find help in converting my code to Visual C++. Visual C++ for beginners needed!
Any ideas please?!
Cheers
Geoff
------------------- Visual C# coce ------------------------- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.IO; using System.Windows.Forms;
namespace slider3 { public partial class Form1 : Form {
private string[] LHSquestions; private string[] RHSquestions; private int qnumber = 0; private string[] results; private int count = 0;
public Form1() { InitializeComponent();
LHSquestions = new string[]{"question 1","question 2"}; RHSquestions = new string[]{"question 1","question 2"}; results = new string[LHSquestions.Length];
this.label1.Text = LHSquestions[qnumber]; this.label2.Text = RHSquestions[qnumber];
}
private void pictureBox1_Click(object sender, EventArgs e) {
}
private void trackBar1_Scroll(object sender, EventArgs e) {
}
private void button1_MouseClick(object sender, MouseEventArgs e) {
results[qnumber] = trackBar1.Value.ToString();
++qnumber;
if (qnumber == LHSquestions.Length) { endMessage(); } else {
this.label1.Text = LHSquestions[qnumber]; this.label2.Text = RHSquestions[qnumber];
} }
private void endMessage() { this.label1.Text = "Finished!"; this.label2.Text = "Thank you"; this.button1.Visible = false;
TextWriter tw = new StreamWriter("d:\\a-temp1\\data.txt");
for (count = 0; count < LHSquestions.Length; count++) { tw.WriteLine("q" + (count+1) + " = " + results[count]); } tw.Close();
}
private void Form1_Load(object sender, EventArgs e) {
} } }
<Geoff Cox> wrote in message
news:u0********************************@4ax.com... Hello,
After much effort I have got the Visual C# code below to work using Visual C# 2005 Express Beta 2 and now I am trying to convert it to Visual C++ code so that I can use it in Visual C++ 2005 Express Beta 2.
My reason for doing this is that I believe (do tell me if I am wrong!) that using Visual C++ 2005 Express together with the Windows SDK I will be able to create a Win32 app which will mean that when this app is installed on a PC the .NET Framework will not be needed ..... Since my app is so small it seems foolish to require installation of 20 MB plus of .NET Framework software ....
So, I am looking for Internet site where I might find help in converting my code to Visual C++. Visual C++ for beginners needed!
Any ideas please?!
Cheers
Geoff
------------------- Visual C# coce ------------------------- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.IO; using System.Windows.Forms;
namespace slider3 { public partial class Form1 : Form {
private string[] LHSquestions; private string[] RHSquestions; private int qnumber = 0; private string[] results; private int count = 0;
public Form1() { InitializeComponent();
LHSquestions = new string[]{"question 1","question 2"}; RHSquestions = new string[]{"question 1","question 2"}; results = new string[LHSquestions.Length];
this.label1.Text = LHSquestions[qnumber]; this.label2.Text = RHSquestions[qnumber];
}
private void pictureBox1_Click(object sender, EventArgs e) {
}
private void trackBar1_Scroll(object sender, EventArgs e) {
}
private void button1_MouseClick(object sender, MouseEventArgs e) {
results[qnumber] = trackBar1.Value.ToString();
++qnumber;
if (qnumber == LHSquestions.Length) { endMessage(); } else {
this.label1.Text = LHSquestions[qnumber]; this.label2.Text = RHSquestions[qnumber];
} }
private void endMessage() { this.label1.Text = "Finished!"; this.label2.Text = "Thank you"; this.button1.Visible = false;
TextWriter tw = new StreamWriter("d:\\a-temp1\\data.txt");
for (count = 0; count < LHSquestions.Length; count++) { tw.WriteLine("q" + (count+1) + " = " + results[count]); } tw.Close();
}
private void Form1_Load(object sender, EventArgs e) {
} } }
I'm going to second Chris' opinion here. The level of effort needed to
convert a C# Windows application to MFC, ATL or straight Windows API (some
choices available for a C++ Windows application not dependent on the .NET
framework) is significant. There is also a rather steep learning curve
involved.
If you do encounter potential clients that require Framework installation,
bear in mind that you just happen to be the first product requiring it. It's
a matter of when, not if.
The link below is typical of the information available on MFC in MSDN. You
can find many similar articles by searching MSDN for "MFC tutorials". They
should give you some idea of the work involved in converting your
application: http://msdn.microsoft.com/library/de..._available.asp
--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
On Tue, 16 Aug 2005 10:02:11 +0100, "Chris Ward"
<pr**********@hotmail.com> wrote: A different perspective Geoff:
Who is going to use your app? If it is not for widespread use, find out if your Users already have .Net installed. Most people with newish PCs will have the .Net framework already there.
Chris,
Any idea when .NET started to be found in significant numbers?
Cheers
Geoff Chris
<Geoff Cox> wrote in message news:u0********************************@4ax.com.. . Hello,
After much effort I have got the Visual C# code below to work using Visual C# 2005 Express Beta 2 and now I am trying to convert it to Visual C++ code so that I can use it in Visual C++ 2005 Express Beta 2.
My reason for doing this is that I believe (do tell me if I am wrong!) that using Visual C++ 2005 Express together with the Windows SDK I will be able to create a Win32 app which will mean that when this app is installed on a PC the .NET Framework will not be needed ..... Since my app is so small it seems foolish to require installation of 20 MB plus of .NET Framework software ....
So, I am looking for Internet site where I might find help in converting my code to Visual C++. Visual C++ for beginners needed!
Any ideas please?!
Cheers
Geoff
------------------- Visual C# coce ------------------------- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.IO; using System.Windows.Forms;
namespace slider3 { public partial class Form1 : Form {
private string[] LHSquestions; private string[] RHSquestions; private int qnumber = 0; private string[] results; private int count = 0;
public Form1() { InitializeComponent();
LHSquestions = new string[]{"question 1","question 2"}; RHSquestions = new string[]{"question 1","question 2"}; results = new string[LHSquestions.Length];
this.label1.Text = LHSquestions[qnumber]; this.label2.Text = RHSquestions[qnumber];
}
private void pictureBox1_Click(object sender, EventArgs e) {
}
private void trackBar1_Scroll(object sender, EventArgs e) {
}
private void button1_MouseClick(object sender, MouseEventArgs e) {
results[qnumber] = trackBar1.Value.ToString();
++qnumber;
if (qnumber == LHSquestions.Length) { endMessage(); } else {
this.label1.Text = LHSquestions[qnumber]; this.label2.Text = RHSquestions[qnumber];
} }
private void endMessage() { this.label1.Text = "Finished!"; this.label2.Text = "Thank you"; this.button1.Visible = false;
TextWriter tw = new StreamWriter("d:\\a-temp1\\data.txt");
for (count = 0; count < LHSquestions.Length; count++) { tw.WriteLine("q" + (count+1) + " = " + results[count]); } tw.Close();
}
private void Form1_Load(object sender, EventArgs e) {
} } }
On Tue, 16 Aug 2005 07:45:20 -0500, "Peter van der Goes"
<p_**********@toadstool.u> wrote:
I'm going to second Chris' opinion here. The level of effort needed to convert a C# Windows application to MFC, ATL or straight Windows API (some choices available for a C++ Windows application not dependent on the .NET framework) is significant. There is also a rather steep learning curve involved. If you do encounter potential clients that require Framework installation, bear in mind that you just happen to be the first product requiring it. It's a matter of when, not if. The link below is typical of the information available on MFC in MSDN. You can find many similar articles by searching MSDN for "MFC tutorials". They should give you some idea of the work involved in converting your application:
Peter,
Thanks for the advice and the link.
Cheers
Geoff http://msdn.microsoft.com/library/de..._available.asp This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Martin Bless |
last post by:
The good news:
Along with Python-2.4 comes really good news to Windows users. Yes,
you now CAN build extension modules yourself using the SAME C++
compiler and linker Python is built with...
|
by: Tom Lee |
last post by:
Hi,
I'm new to .NET 2003 compiler. When I tried to compile my
program using DEBUG mode, I got the following errors in the
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
\include\xdebug...
|
by: gerd |
last post by:
Hello,
I want to port an MFC Application from Visual Studio 6 MFC application to
Visual C++ 2005 express edition beta.
While building i get following error:
------ Build started: Project:...
|
by: Daniel A. Thomas |
last post by:
License required
Maybe you don't have this but have one of the products that
qualifies for the upgrade such as ...
Visual Studio .NET 2003 Professional
Visual Studio .NET 2003 Professional...
|
by: Edwin Smith |
last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do
anything with the second form. This seems to have started when I added some
SQL tables from a Pervasive v.9 database using the...
|
by: johnlim20088 |
last post by:
Hi,
Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
|
by: marathoner |
last post by:
I am currently migrating my Visual C++ 6.0 applications to Visual Studio
2005. I am getting compiler errors involving the VS2005's platform SDK.
When I removed directory references to that SDK,...
|
by: Cramer |
last post by:
So, what is the relationship between Visual Studio and Visual Web Developer.
I find a lot of documentation on MSDN that presents Visual Web Developer as
it's own stand-alone product (which I'd...
|
by: jwwicks |
last post by:
Introduction
This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
|
by: Johnson |
last post by:
I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual Studio
2008 issue -- thus posting to 3 groups. Please don't be offended.
The problem I'm encountering is that Visual Studio...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |