| Author |
Product help to use Visual C++.net Standard Version 2003
|
|
| blueblood150 2005-03-17, 8:59 pm |
| I am trying to find out how to get a source file so I am able to type
programs and then compile them. I purchased this software and I am trying to
use the C++ and I am not able to find out how to open a blank souce file. No
one at microsoft wants to help me without charging me again for software I
bought from them. Please help.
| |
| Carl Daniel [VC++ MVP] 2005-03-17, 8:59 pm |
| "blueblood150" <blueblood150@discussions.microsoft.com> wrote in message
news:63EA8D1A-F43B-431B-84D7-3E9FA7E008EE@microsoft.com...
>I am trying to find out how to get a source file so I am able to type
> programs and then compile them. I purchased this software and I am trying
> to
> use the C++ and I am not able to find out how to open a blank souce file.
> No
> one at microsoft wants to help me without charging me again for software I
> bought from them. Please help.
You need to create a project -
File|New|Project...|Visual C++ Projects|Win32 Projects|Win32 Console Project
On the resulting dialog, click on Application Settings and select "Empty
Project".
You now have an empty project that will build a Win32 Console Application (a
traditional command-line application).
To add a source file, choose File|New|File...|Visual C++|C++ File from the
menu. Type your program into the new source file, compile and run.
-cd
| |
| Ted Tsao 2005-06-09, 8:59 pm |
| I get a small piece of code from .NET "Unix Migration Guide", which
containing GetComputerNameEx(). The compilation for this sample code is
failed due to error of identifier not found. I modified code by using
GetComputerName(). It passed. This definitely a bug since every thing is
well defined in winbase.h and the sample code has no problem. Can
Microsoft identify this problem and let me know if there is any patch or any
workaround?
By the way, shall I paid such bug problem from Microsoft's .NET product for
their service?
--
problem finder
"blueblood150" wrote:
> I am trying to find out how to get a source file so I am able to type
> programs and then compile them. I purchased this software and I am trying to
> use the C++ and I am not able to find out how to open a blank souce file. No
> one at microsoft wants to help me without charging me again for software I
> bought from them. Please help.
| |
| Carl Daniel [VC++ MVP] 2005-06-09, 8:59 pm |
| Ted Tsao wrote:
> I get a small piece of code from .NET "Unix Migration Guide", which
> containing GetComputerNameEx(). The compilation for this sample
> code is failed due to error of identifier not found. I modified code
> by using GetComputerName(). It passed. This definitely a bug since
> every thing is well defined in winbase.h and the sample code has no
> problem. Can Microsoft identify this problem and let me know if
> there is any patch or any workaround?
You should be careful about hijacking an old thread to ask a new, unrelated
question - it's likely to be overlooked.
You need to #define _WIN32_WINNT at 0x500 or higher in order to call this
function, as documented at
http://msdn.microsoft.com/library/d...puternameex.asp
See
http://msdn.microsoft.com/library/d...ows_headers.asp
for information about the values of various #defines that you must use to
access functionality that hasn't always been a part of windows.
-cd
| |
| Ted Tsao 2005-06-09, 8:59 pm |
| #define _WIN32_WINNT 0x0500 is included.
Ted
--
problem finder
"Carl Daniel [VC++ MVP]" wrote:
> Ted Tsao wrote:
>
> You should be careful about hijacking an old thread to ask a new, unrelated
> question - it's likely to be overlooked.
>
> You need to #define _WIN32_WINNT at 0x500 or higher in order to call this
> function, as documented at
>
> http://msdn.microsoft.com/library/d...puternameex.asp
>
> See
>
> http://msdn.microsoft.com/library/d...ows_headers.asp
>
> for information about the values of various #defines that you must use to
> access functionality that hasn't always been a part of windows.
>
> -cd
>
>
>
>
|
|
|
|