Martin,
VB6 uses visual basic as it's language. C++ IS NOT going to compile
with VB. To compile C++ you need a C++ compiler such as Microsofts C++ 6.
This is included in the visual studio, but the languages are compiler
specific, and you can not mix and match them. In .Net it is possible to
have parts of a project in different languages but in VB6 it is not.
Matt
----- Original Message -----
From: "martin`s" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, June 06, 2005 6:33 AM
Subject: RE: [vbhelp] MessageBox
> Yes but I'm using visual basic 6 to build and compile the code or should I
> be using a different language with VB6 can you tell me where I'm going
wrong
> as I would like to start programming and I'm getting info on about 5
> different lang but trying to concentrate on C++ with Visual Basic 6 to
build
> compile and then run the program if this is the wrong language for VB6
> please let me Know ??????????
>
>
>
> _____
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
> Don Roberts
> Sent: 05 June 2005 19:10
> To: [email protected]
> Subject: Re: [vbhelp] MessageBox
>
>
>
> Martin, isn't your code C++?
>
> On 6/5/05, martin`s <[EMAIL PROTECTED]> wrote:
> >
> > Thanks for the reply but it did not help much if I can explain a bit
more
> > I
> > am trying to make a useless prog that will when the user inputs there
name
> > and then clicks enter the message box will appear with "Hello And there
> > name
> > From the message box String I Think if I turn the Word HELLO into a
String
> > so I Can then get it to appear in the message box with the name from the
> > edit box string below is the code I have been trying again thanks for
any
> > help
> >
> >
> >
> > void CMartinsDlg::OnEnter()
> >
> > {
> >
> > // TODO: Add your control notification handler code here
> >
> >
> >
> > UpdateData(TRUE); //get data from screen
> >
> >
> >
> > CString = strHello1; //create string
> >
> >
> >
> > strHello1 = m_strName; //turn input m_strName from edit box into
> > strHello1 string
> >
> >
> >
> > CString strHello; //create string
> >
> >
> >
> > strHello = "Hello"; //Turn word Hello into strHello string
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > msgbox strHello & " " & strHello1; //display message
> > box with data entered in edit box
> >
> >
> >
> > }
> >
> >
> >
> > But when I try to compile the program it comes back with errors
> >
> >
> >
> > _____
> >
> > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of
> > Matt
> > Sent: 05 June 2005 10:35
> > To: [email protected]
> > Subject: Re: [vbhelp] MessageBox
> >
> >
> >
> > Martin try this in your code
> >
> > msgbox OriginalString1 & " " & OriginalString2
> >
> > Matt
> > ----- Original Message -----
> > From: "martin195076" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Sunday, June 05, 2005 10:50 AM
> > Subject: [vbhelp] MessageBox
> >
> >
> >
> > > i am just starting to learn programming with visual basic 6 i am
> > > trying to get the data from two strStrings Into one message box i
> > > think i have to create a new strString out of the original two But
> > > cant get it to work can any one help please
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > '// =======================================================
> > > Rules : http://ReliableAnswers.com/List/Rules.asp
> > > Home : http://groups.yahoo.com/group/vbHelp/
> > > =======================================================
> > > Post : [email protected]
> > > Join : [EMAIL PROTECTED]
> > > Leave : [EMAIL PROTECTED]
> > > '// =======================================================
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > No virus found in this incoming message.
> > > Checked by AVG Anti-Virus.
> > > Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 04/6/05
> > >
> > >
> >
> >
> >
> > '// =======================================================
> > Rules : http://ReliableAnswers.com/List/Rules.asp
> > Home : http://groups.yahoo.com/group/vbHelp/
> > =======================================================
> > Post : [email protected]
> > Join : [EMAIL PROTECTED]
> > Leave : [EMAIL PROTECTED]
> > '// =======================================================
> >
> >
> >
> >
> >
> > _____
> >
> > Yahoo! Groups Links
> >
> > * To visit your group on the web, go to:
> > http://groups.yahoo.com/group/vbhelp/
> >
> > * To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>
> >
> > * Your use of Yahoo! Groups is subject to the Yahoo!
> > <http://docs.yahoo.com/info/terms/> Terms of Service.
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> >
> >
> > '// =======================================================
> > Rules : http://ReliableAnswers.com/List/Rules.asp
> > Home : http://groups.yahoo.com/group/vbHelp/
> > =======================================================
> > Post : [email protected]
> > Join : [EMAIL PROTECTED]
> > Leave : [EMAIL PROTECTED]
> > '// =======================================================
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Don Roberts - [EMAIL PROTECTED]
> http://www.drscripting.com
> http://www.robertsgenealogy.com
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> '// =======================================================
> Rules : http://ReliableAnswers.com/List/Rules.asp
> Home : http://groups.yahoo.com/group/vbHelp/
> =======================================================
> Post : [email protected]
> Join : [EMAIL PROTECTED]
> Leave : [EMAIL PROTECTED]
> '// =======================================================
>
>
>
>
>
> _____
>
> Yahoo! Groups Links
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/vbhelp/
>
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
> * Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/> Terms of Service.
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
>
> '// =======================================================
> Rules : http://ReliableAnswers.com/List/Rules.asp
> Home : http://groups.yahoo.com/group/vbHelp/
> =======================================================
> Post : [email protected]
> Join : [EMAIL PROTECTED]
> Leave : [EMAIL PROTECTED]
> '// =======================================================
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 04/6/05
>
>
'// =======================================================
Rules : http://ReliableAnswers.com/List/Rules.asp
Home : http://groups.yahoo.com/group/vbHelp/
=======================================================
Post : [email protected]
Join : [EMAIL PROTECTED]
Leave : [EMAIL PROTECTED]
'// =======================================================
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/vbhelp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/