Visual Basic to c++

I have some source code that was supposed to be in c++ but turns out it was in visual basic, is there any sort of a tool or utility that will convert a visual basic .cpp to a c++?
Not that I know of. But surely you know how to reprogram the code into c++?
unfortunately I am extremely new and totally self taught, I have only programmed one console app so far. Any tips or help you can provide?
Learn more C++.
This website has a tutorial in the documentation section.
OK, so I got it converted now I get warning C4067: unexpected tokens following preprocessor directive - expected a newline
#if _defined(MSC_VER) >= 1400
error C2059: syntax error : 'private'
typedef _W64 unsigned int size_t;
fatal error C1021: invalid preprocessor command 'ifdefined'
#ifdefined(ndef) _defined(WCHAR_T_DEFINED)
What the - what did your code end up looking like?
for some reason it is now calling sourceannotations.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#if _defined(MSC_VER) >= 1400

#pragma once

#ifdefined(ndef) _defined(M_CEE_SAFE) // defined(Source) defined(annotation) defined(attributes) defined(don) //t work with /clr:safe

#if !defined(defined)[_defined(W64)]
#if !defined(defined)[__defined(midl)] && (defined(defined)[_defined(X86_)] || defined(defined)[_defined(M_IX86)]) && _defined(MSC_VER) >== 1300
#define _W64 __w64
#else
#define _W64
#endif
#endif

#ifdefined(ndef) _defined(SIZE_T_DEFINED)
#ifdefined(def) _defined(WIN64)
typedef unsigned __int64 size_t;
#else
typedef _W64 unsigned int size_t;
#endif
#define _SIZE_T_DEFINED
#endif

#ifdefined(ndef) _defined(WCHAR_T_DEFINED)
typedef unsigned short wchar_t;
#define _WCHAR_T_DEFINED
#endif


#pragma push_macro("SA")
#pragma push_macro("REPEATABLE")

#ifdefined(def) __defined(cplusplus)
#define SA(id) id
#define REPEATABLE repeatable
#else // !__cplusplus
#define SA(id) SA_DateTime::Parse("")id
#define REPEATABLE
#endif // !__cplusplus 

This is only part cuz its too big
Dear god, pragma directives.... I sorely hope that's not the end result of your port.
I know you are going to totaly rip on me, but what are "Pragma Directives"?
#pragma
is there any sort of a tool or utility that will convert a visual basic .cpp to a c++?

google gives this: http://www.tangiblesoftwaresolutions.com/Product_Details/Instant_CPlusPlus_VB_Edition.html
Well after doing some digging I found a version not written in VB, so I loaded it up and ran a debug and here is what I get.
warning C4627: '#include <tchar.h>': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
Start from an Empty Project in VC++
Topic archived. No new replies allowed.