PDA

Click to See Complete Forum and Search --> : I reall want to do this :)


Tequila_worm
May 4th, 2002, 12:31 AM
I am sorry too all of you that i am being such a Dum **** lol but i really want to lear this now. This is what i am doing and its not working i am doing this in VC++ .NET Arhitect Edition.

Actually i will tell you exactly what i do :D

I go to New Project and select the Visual C++ Projects >
Atl Projects Then New Window


I click on Apllication Settings > select Executable and click Finish

Now it lodes up there is two .cpp files one the name that i gave it Testing4 in this case, and another named stdafx.cpp

Now it automatically puts this into my testing4.cc file



// Testing4.cpp : Implementation of WinMain

#include "stdafx.h"
#include "resource.h"

// The module attribute causes WinMain to be automatically implemented for you
[ module(EXE, uuid = "{F6CE8027-DFF5-4C69-8C85-85D404411F36}",
name = "Testing4",
helpstring = "Testing4 1.0 Type Library",
resource_name = "IDR_TESTING4") ];



Now i tried working with this one so this is what i have with this one




// Testing4.cpp : Implementation of WinMain

#include "stdafx.h"
#include "resource.h"
#include "iostream.h"

int main ()
{
cout << "Hello World!";
return 0;
}

// The module attribute causes WinMain to be automatically implemented for you
[ module(EXE, uuid = "{F6CE8027-DFF5-4C69-8C85-85D404411F36}",
name = "Testing4",
helpstring = "Testing4 1.0 Type Library",
resource_name = "IDR_TESTING4") ];




But it wont work when i press that Play button :D give me an error :(


ANY HELP PLZ PLZ PLZ AND THANK YOU :D


Ed.

CornedBee
May 5th, 2002, 10:30 AM
ATL is a set of C++ templates that makes creating all sorts of COM objects easier (= ActiveX controls, Automation objects, pure COM objects, ...). What you want to do is create a console application. You need to choose Win32 Console Project instead of ATL App Wizard.

Zaei
May 5th, 2002, 10:39 AM
Sounds like .NET is making writing standard C++ applications from scratch just a little bit harder...

Z.

CornedBee
May 5th, 2002, 10:59 AM
:D

I think we scared him off...

Tequila_worm
May 6th, 2002, 08:54 PM
Lol no no i will never quit this until i learn how to do it :D i just went away for the weeked i am gonna try doing my best and hopefully with your help i will get a hold of this :D