VS/VS Express -> Can this be causing...

Hello good folks,

I've been trying to do some DirectX programming (just basic drawing of primitives etc.) but every time I tried a piece code (which were all pre-written by other people) I got errors. The errors include errors saying that certain headers files can't be found while a couple/all of them are supposed to be standard header files. I do have installed the DirectX SDK so that shouldn't be the problem.

Also, I've attempted the tutorials that can be found here http://www.devmaster.net/articles/intro-to-c++-with-game-dev/part1.php and in the second tutorial a problem arises. They create a template and when running that, it should print out Hello World on the screen, underlined. All it does for me is give me 'application started' and do some stuff for a few seconds and then it gives me an exception error.

Unhandled exception at 0x00415f07 in Template_debug.exe: 0xC0000005: Access violation reading location 0x00000010.

So my question is: Can all of this have anything to do with the fact that I use the (free) Express Edition of VC++ 2008, and not the 'regular' version? I remember seeing some stuff somewhere (honestly dont recall where) that said that the Express Edition has some (header) files not included and that certain things are not there either that makes the user have to code more. SO, can the Express Edition really be causing so much trouble when using the DirectX SDK to do some DirectX programming?
it can;) (if u want to do it with the mfc for example :D)... but i think it does not in your case... post the code, please...
Last edited on
The code from that tutorial compiles and runs fine for me. Maybe your installation is hosed. That seems likely if you're getting errors about missing standard headers.
About posting the code: you can download it for yourself, following the link. Here's a direct one to the .zip package that contains all of the code: http://www.devmaster.net/articles/intro-to-c++-with-game-dev/devmaster_intro-to-c++-tmpl83.00c_oct14.zip

Just opening the solution from that file and starting it with F5 should then give you "Hello World!". For me it gives me (like I said) "application started." and after a few seconds of doing stuff according to the output windowd, i get that Exception error. I can't paste the complete output since that takes up over 50000 characters and the maximum is 8192 in here. But here are the last lines (that I can post without breaking the limit), that are output before the exception:

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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Disconnect: at 147185375
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185375
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147185375
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185375
LaunchApp() Started at:  147185375
LaunchApp() Success(D:\Program Files\GTCO CalComp\TabletWorks\WTServerCC.exe) at:  147185375
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147185484
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147185484
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147185484
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Connect: at 147185484
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Disconnect: at 147185484
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185484
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147185484
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185484
LaunchApp() Started at:  147185484
LaunchApp() Success(D:\Program Files\GTCO CalComp\TabletWorks\WTServerCC.exe) at:  147185484
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147185578
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147185578
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147185578
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Connect: at 147185578
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Disconnect: at 147185578
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185593
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147185593
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185593
LaunchApp() Started at:  147185593
LaunchApp() Success(D:\Program Files\GTCO CalComp\TabletWorks\WTServerCC.exe) at:  147185593
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147185687
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147185687
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147185687
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Connect: at 147185687
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Disconnect: at 147185687
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185687
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147185687
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185687
LaunchApp() Started at:  147185687
LaunchApp() Success(D:\Program Files\GTCO CalComp\TabletWorks\WTServerCC.exe) at:  147185703
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147185796
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147185796
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147185796
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Connect: at 147185796
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Disconnect: at 147185796
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185796
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147185796
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185796
LaunchApp() Started at:  147185796
LaunchApp() Success(D:\Program Files\GTCO CalComp\TabletWorks\WTServerCC.exe) at:  147185796
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147185906
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147185906
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147185906
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Connect: at 147185906
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Disconnect: at 147185906
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185906
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147185906
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147185906
LaunchApp() Started at:  147185906
LaunchApp() Success(D:\Program Files\GTCO CalComp\TabletWorks\WTServerCC.exe) at:  147185906
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147186015
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147186015
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147186015
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Connect: at 147186015
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Disconnect: at 147186015
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147186015
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147186015
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147186015
LaunchApp() Started at:  147186015
LaunchApp() Success(D:\Program Files\GTCO CalComp\TabletWorks\WTServerCC.exe) at:  147186015
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147186109
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147186109
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147186125
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Connect: at 147186125
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Disconnect: at 147186125
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147186125
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147186125
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147186125
LaunchApp() Started at:  147186125
LaunchApp() Success(D:\Program Files\GTCO CalComp\TabletWorks\WTServerCC.exe) at:  147186125
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147186218
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::SetIpcDriver: at 147186218
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147186218
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Connect: at 147186218
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcHandler::Disconnect: at 147186218
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147186234
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::SetIpcHandler: at 147186234
\Projects\TabletWorks\Wintab\WTCommon\Ipc.cpp::CCIpcDriver::Disconnected: at 147186234
First-chance exception at 0x00415f07 in Template_debug.exe: 0xC0000005: Access violation reading location 0x00000010.
Unhandled exception at 0x00415f07 in Template_debug.exe: 0xC0000005: Access violation reading location 0x00000010.


For some odd reason it's doing all kinds of stuff in \Projects\TabletWorks\... which is a directory for a pen-tablet. It's got absolutely nothing to do with VSC++ as far as I know. That "projects" directory isn't even the VSC++ projects directory... Also, It's launcing D:\Program Files\GTCO CalComp\TabletWorks\WTServerCC.exe or something? :S
Last edited on
*bump* does anyone know why VC++ is poking around in folders it shouldn't be?
i won´t download anything... so vs didnt have the folders of the libs?...
Well I can't post all the code in here so if you want to have a look at the code you'll really have to download it. But anyway, in my last post (before the *bump*) I posted some of the output lines from debugging, and as I said there: VC++ is poking around in folders that it's got no apparant thing to do with. Anyone know why it's doing that?
Topic archived. No new replies allowed.