473,505 Members | 13,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microsoft Visual C++ 2005 Express Edition

I just downloaded this "can't give it away" pile of sick on my 56Kbps modem
(460Mb) and I can't believe how difficult it is to write a really simple
program. All I wanna do is have a form with a button and a bitmap "1.bmp" in
a picture box. When you clcik the button it changes the bitmap from "1.bmp"
to " 2.bmp". How difficult can it be? Can anyone help?
Apr 9 '06 #1
10 5714
Hi,

Go into the resource editor
Add resource (make sure to add a Bitmap resource)
Import
( Select a bmp file)
Rename the IDB_BITMAP1 to something more sensible

Go to the dialog resource (double click on it)
Add picture control
Click picture control (make sure the properties window is visible
(view->properties))
In the properites of the picture control select bitmap as type
In the Image properties select the IDB_ whatever you named your bitmap
resource in the first step.

--
Regards, Ron AF Greve

http://moonlit.xs4all.nl

"Divvy Ballacks" <de**@forty2004.freeserve.co.uk> wrote in message
news:11****************@dyke.uk.clara.net...
I just downloaded this "can't give it away" pile of sick on my 56Kbps modem
(460Mb) and I can't believe how difficult it is to write a really simple
program. All I wanna do is have a form with a button and a bitmap "1.bmp"
in a picture box. When you clcik the button it changes the bitmap from
"1.bmp" to " 2.bmp". How difficult can it be? Can anyone help?

Apr 9 '06 #2
Divvy Ballacks wrote:
I just downloaded this "can't give it away" pile of sick on my 56Kbps modem
(460Mb) and I can't believe how difficult it is to write a really simple
program. All I wanna do is have a form with a button and a bitmap "1.bmp" in
a picture box. When you clcik the button it changes the bitmap from "1.bmp"
to " 2.bmp". How difficult can it be? Can anyone help?


Its not very difficult and what help on C++ do you expect from us?

Ben
Apr 9 '06 #3
GB
Divvy Ballacks wrote:
I just downloaded this "can't give it away" pile of sick on my 56Kbps modem
(460Mb) and I can't believe how difficult it is to write a really simple
program. All I wanna do is have a form with a button and a bitmap "1.bmp" in
a picture box. When you clcik the button it changes the bitmap from "1.bmp"
to " 2.bmp". How difficult can it be? Can anyone help?


This group is very specifically for the C++ language and standard
library, not generally tools, APIs or other libraries. You might try
asking on

microsoft.public.vstudio.general
microsoft.public.vstudio.development
microsoft.public.vc_ide.general

and possibly others.

Gregg
Apr 9 '06 #4
Moonlit wrote:
Hi,

Go into the resource editor


Express edition does not have it.

Apr 9 '06 #5
"Resource editing is not supported on the Visual C++ Express SKU". That told
me!!

"Moonlit" <news moonlit xs4all nl> wrote in message
news:44***********************@news.xs4all.nl...
Hi,

Go into the resource editor
Add resource (make sure to add a Bitmap resource)
Import
( Select a bmp file)
Rename the IDB_BITMAP1 to something more sensible

Go to the dialog resource (double click on it)
Add picture control
Click picture control (make sure the properties window is visible
(view->properties))
In the properites of the picture control select bitmap as type
In the Image properties select the IDB_ whatever you named your bitmap
resource in the first step.

--
Regards, Ron AF Greve

http://moonlit.xs4all.nl

"Divvy Ballacks" <de**@forty2004.freeserve.co.uk> wrote in message
news:11****************@dyke.uk.clara.net...
I just downloaded this "can't give it away" pile of sick on my 56Kbps
modem (460Mb) and I can't believe how difficult it is to write a really
simple program. All I wanna do is have a form with a button and a bitmap
"1.bmp" in a picture box. When you clcik the button it changes the bitmap
from "1.bmp" to " 2.bmp". How difficult can it be? Can anyone help?


Apr 10 '06 #6
Well, if it's not very difficult then just tell me. It can't be more than
three lines of code. I have no books, no money, no resources. What is the
solution? Or it so simple that it's actually beneath you? Let me help:

Is it (a), (b) or (c) or (d)

(a)
Bitmap ^myBitmap = gcnew Bitmap(71, 96, PixelFormat::Format24bppRgb)
Image->FromFile("44.bmp");

Graphics ^ g = Graphics::FromImage(myBitmap);

(b)

Image ^mypiccie = gcnew

Image("12.jpg");

Graphics ^ g = Graphics::FromImage(mypiccie);

(c)

System::Graphics::Watuzi
^ ->(0XXFFF:__IF__BETHE_MIDDLE_WORDIN___XXAAFFCC___LI FE);

^^::->Draw().... <-) [BITM]___#define
SHISHI_KDCREQ_DEFAULT_REQ_BODY_SNAME_NAME_TYPE_LEN 0__
Nghrrew||GrrrrrrrrgUggggggggh

Yeah_Bitmaps::

(d)

None of the above.

You see, the thing is, all I have is the documentation provided with
VC++EE2005 and it's not very helpful and none of their sample projects from
www.microsoft.com will compile (keep getting user32.dll missing, cannot find
windows.h or whatever) because I only have the core SDK installed.

"benben" <be******@yahoo.com.au> wrote in message
news:44***********************@news.optusnet.com.a u...
Divvy Ballacks wrote:
I just downloaded this "can't give it away" pile of sick on my 56Kbps
modem (460Mb) and I can't believe how difficult it is to write a really
simple program. All I wanna do is have a form with a button and a bitmap
"1.bmp" in a picture box. When you clcik the button it changes the bitmap
from "1.bmp" to " 2.bmp". How difficult can it be? Can anyone help?


Its not very difficult and what help on C++ do you expect from us?

Ben

Apr 10 '06 #7
* Divvy Ballacks:
[off-topic]


Divvy, I've been in your exact situation with a lot of toolsets, and I
really do understand how you feel about this, and would provide you with
detailed instructions and explanations if this newsgroup was relevant.

But this newsgroup is /not/ the right place.

Repeat, /not/.

Here we deal with the C++ language, and only tool usage and libraries to
the extent that that is relevant to C++ in general.

This newsgroup was nearly destroyed by Microsoft newbies, which directly
led to [comp.lang.c++.moderated] being established: we don't want /all/
serious C++ discussion to move over to clc++m, because that's very slow.

So please take your discussion to a Microsoft-specific newsgroup.

This group's FAQ, Marshall Cline's C++ FAQ Lite, lists a number of them.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Apr 10 '06 #8
On Mon, 10 Apr 2006 04:09:48 +0100, "Divvy Ballacks"
<de**@forty2004.freeserve.co.uk> wrote:
Well, if it's not very difficult then just tell me. It can't be more than
three lines of code. I have no books, no money, no resources. What is the
solution? Or it so simple that it's actually beneath you?


Go to the newsgroup below and people will help you. It should be in
your group list.

microsoft.public.vc.language

Good Luck.
Apr 10 '06 #9
"Divvy Ballacks" <de**@forty2004.freeserve.co.uk> wrote in message
news:11****************@dyke.uk.clara.net
Well, if it's not very difficult then just tell me. It can't be more
than three lines of code. I have no books, no money, no resources.
What is the solution? Or it so simple that it's actually beneath you?
Let me help:
Is it (a), (b) or (c) or (d)

(a)
Bitmap ^myBitmap = gcnew Bitmap(71, 96, PixelFormat::Format24bppRgb)
Image->FromFile("44.bmp");

Graphics ^ g = Graphics::FromImage(myBitmap);

(b)

Image ^mypiccie = gcnew

Image("12.jpg");

Graphics ^ g = Graphics::FromImage(mypiccie);

(c)

System::Graphics::Watuzi
^ ->(0XXFFF:__IF__BETHE_MIDDLE_WORDIN___XXAAFFCC___LI FE);

^^::->Draw().... <-) [BITM]___#define
SHISHI_KDCREQ_DEFAULT_REQ_BODY_SNAME_NAME_TYPE_LEN 0__
Nghrrew||GrrrrrrrrgUggggggggh

Yeah_Bitmaps::

(d)

None of the above.

You see, the thing is, all I have is the documentation provided with
VC++EE2005 and it's not very helpful and none of their sample
projects from www.microsoft.com will compile (keep getting user32.dll
missing, cannot find windows.h or whatever) because I only have the
core SDK installed.

I am not sure if you are aware of this but Microsoft has created a new
language called C++/CLI for use with .Net (.Net is something like the Java
Virtual Machine). You are apparently attempting to program in that new
language. That new language is not the C++ language that is the topic of
this newsgroup.

You have two alternatives:

1. Continue on your current path, but ask about it in

microsoft.public.dotnet.languages.vc

2. Download the Platform SDK, which will enable you to do GUI programming
using C++ (this will get rid of your "cannot find windows.h" etc. errors).
In that case, some of your questions will be topical for this newsgroup, but
any GUI-related stuff belongs on, e.g.,

microsoft.public.vc.language
or
microsoft.public.win32.programmer.gdi
or
microsoft.public.win32.programmer.ui
--
John Carson
Apr 10 '06 #10
Sk'dokey. Message recieved unt understood.

"John Carson" <jc****************@netspace.net.au> wrote in message
news:44***********************@un-2park-reader-01.sydney.pipenetworks.com.au...
"Divvy Ballacks" <de**@forty2004.freeserve.co.uk> wrote in message
news:11****************@dyke.uk.clara.net
Well, if it's not very difficult then just tell me. It can't be more
than three lines of code. I have no books, no money, no resources.
What is the solution? Or it so simple that it's actually beneath you?
Let me help:
Is it (a), (b) or (c) or (d)

(a)
Bitmap ^myBitmap = gcnew Bitmap(71, 96, PixelFormat::Format24bppRgb)
Image->FromFile("44.bmp");

Graphics ^ g = Graphics::FromImage(myBitmap);

(b)

Image ^mypiccie = gcnew

Image("12.jpg");

Graphics ^ g = Graphics::FromImage(mypiccie);

(c)

System::Graphics::Watuzi
^ ->(0XXFFF:__IF__BETHE_MIDDLE_WORDIN___XXAAFFCC___LI FE);

^^::->Draw().... <-) [BITM]___#define
SHISHI_KDCREQ_DEFAULT_REQ_BODY_SNAME_NAME_TYPE_LEN 0__
Nghrrew||GrrrrrrrrgUggggggggh

Yeah_Bitmaps::

(d)

None of the above.

You see, the thing is, all I have is the documentation provided with
VC++EE2005 and it's not very helpful and none of their sample
projects from www.microsoft.com will compile (keep getting user32.dll
missing, cannot find windows.h or whatever) because I only have the
core SDK installed.

I am not sure if you are aware of this but Microsoft has created a new
language called C++/CLI for use with .Net (.Net is something like the Java
Virtual Machine). You are apparently attempting to program in that new
language. That new language is not the C++ language that is the topic of
this newsgroup.

You have two alternatives:

1. Continue on your current path, but ask about it in

microsoft.public.dotnet.languages.vc

2. Download the Platform SDK, which will enable you to do GUI programming
using C++ (this will get rid of your "cannot find windows.h" etc. errors).
In that case, some of your questions will be topical for this newsgroup,
but any GUI-related stuff belongs on, e.g.,

microsoft.public.vc.language
or
microsoft.public.win32.programmer.gdi
or
microsoft.public.win32.programmer.ui
--
John Carson

Apr 10 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

99
6011
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
2
2145
by: Peter Hogg | last post by:
Hello, I recently downloaded 'Microsoft Visual C# 2005 Express Edition Beta'. It's been brilliant, but I couldn't help wondering what more you get when you buy 'Visual Studio .NET'. There must...
89
3763
by: Homer J Simpson | last post by:
I am coming to the conclusion that Microsoft doesn't want you to use VB ..Net, based on my experiences. I've downloaded the Express version and signed up for various support options etc. At every...
3
1685
by: Pitaridis Aristotelis | last post by:
Is there any way to create setup for a project made in Microsoft Visual Basic 2005 Express Edition
45
2957
by: mistral | last post by:
Does Visual C++ 2005 Express Edition produce small, compact C executables? Or there is another C compilers that do this better? m.
2
10852
by: thersitz | last post by:
Hi, I have VStudio2005, SQLServer 2005 dev edition loaded on a windowsXP Pro machine. I installed it ok. I just attempted to load the Personal Web Site Starter Kit (I downloaded off...
2
1935
by: Andrew Meador - ASCPA, MCSE, MCP+I, Network+, A+ | last post by:
I am wanting to create an installer project in Microsoft Visual C# 2005 Express Edition, but I can't see how to do it. I see in online help that you should go to File...Add...New Project... and...
4
2043
by: mcfaker | last post by:
hey, i've got these two programs:Microsoft Visual C++ 2005 Express Edition and Dev-C++, but i want to choose the best , wich one? when i start Microsoft Visual C++ 2005 then i select file >> new >>...
1
2492
by: Dr T | last post by:
Hi! I downloaded MS Visual Web Developer 2005 Express Edition, MS .NET Framework SDK v2.0, and MS SQL Server 2005. Subsequently, I bought MS Visual Studio 2005 Professional Edition. 1) Are...
2
3066
by: Manikandan | last post by:
Hi, I have a program written in .Net Framework 1.1 using Visual studio enterprise edition 2003. I tried compiling the same program in visual c# express edition 2005. I'm getting following...
0
7213
marktang
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,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7298
Oralloy
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,...
1
7017
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...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.