Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 objbase.h not found :angry:
Index -> Programming, C++ -> C++ Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Geostigma




PostPosted: Mon May 28, 2007 6:43 pm   Post subject: RE:objbase.h not found :angry:

I think im getting somewhere

code:
------ Build started: Project: windows_primer, Configuration: Debug Win32 ------
Linking...
windows_primer.obj : error LNK2019: unresolved external symbol "void __cdecl dhKillWindow(struct HWND__ * *)" (?dhKillWindow@@YAXPAPAUHWND__@@@Z) referenced in function _WinMain@16
windows_primer.obj : error LNK2019: unresolved external symbol "void __cdecl dhMessagePump(void)" (?dhMessagePump@@YAXXZ) referenced in function _WinMain@16
windows_primer.obj : error LNK2019: unresolved external symbol "long __cdecl dhInitWindow(bool,char const *,unsigned long,unsigned long,long (__stdcall*)(struct HWND__ *,unsigned int,unsigned int,long),struct HWND__ * *)" (?dhInitWindow@@YAJ_NPBDKKP6GJPAUHWND__@@IIJ@ZPAPAU1@@Z) referenced in function _WinMain@16
windows_primer.obj : error LNK2019: unresolved external symbol "bool __cdecl dhAskFullscreen(char const *)" (?dhAskFullscreen@@YA_NPBD@Z) referenced in function _WinMain@16
windows_primer.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall default_window_proc(struct HWND__ *,unsigned int,unsigned int,long)" (?default_window_proc@@YGJPAUHWND__@@IIJ@Z)
windows primer_D.exe : fatal error LNK1120: 5 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Andrew\My Documents\Visual Studio 2005\Projects\windows_primer\Debug\BuildLog.htm"
windows_primer - 6 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Mon May 28, 2007 7:08 pm   Post subject: Re: objbase.h not found :angry:

Is this the tutorial you were looking at?
Geostigma




PostPosted: Mon May 28, 2007 7:20 pm   Post subject: RE:objbase.h not found :angry:

no from http://www.drunkenhyena.com/cgi-bin/view_net_article.pl?chapter=2;article=7
and the set up i have been winging it. This looks very useful

I'm lost now from this point I have no clue what to do so ill read that article.

EDIT followed this to a tee, Same error using the tut file vs2005 version
EDIT 2 Okay, missed one line now i have these
code:
------ Build started: Project: CreateDevice, Configuration: Debug Win32 ------
Linking...
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__ValidateRect@8 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassA@8 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__GetMessageA@16 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__RegisterClassExA@4 referenced in function _WinMain@16
Debug/CreateDevice.exe : fatal error LNK1120: 11 unresolved externals
Build log was saved at "file://c:\Program Files\Microsoft DirectX SDK (April 2007)\Samples\C++\Direct3D\Tutorials\Tut01_CreateDevice\Debug\BuildLog.htm"
CreateDevice - 12 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Martin




PostPosted: Tue May 29, 2007 7:28 am   Post subject: Re: objbase.h not found :angry:

Do you have the Platform SDK? You can get it here.
Geostigma




PostPosted: Tue May 29, 2007 8:29 am   Post subject: RE:objbase.h not found :angry:

.......... I have everything I wouldn't even be at this point if I didn't have it.


EDIT: hold on Ill have to try that tonight after thinking about it, I think I don't have it. I'm at school so I can't check sorry for hasty response
Martin




PostPosted: Wed May 30, 2007 1:06 pm   Post subject: RE:objbase.h not found :angry:

So, success?
Geostigma




PostPosted: Wed May 30, 2007 10:44 pm   Post subject: Re: objbase.h not found :angry:

Umm no success yet. I think I may have deleted a directory location by mistake. Can someone post there entire link set that have "$" in them.. also the error i get is.
code:

------ Build started: Project: CreateDevice, Configuration: Debug Win32 ------
Linking...
Project : error PRJ0003 : Error spawning 'link.exe'.
Build log was saved at "file://c:\Program Files\Microsoft DirectX SDK (April 2007)\Samples\C++\Direct3D\Tutorials\Tut01_CreateDevice\Debug\BuildLog.htm"
CreateDevice - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Very important if someone could name of the exe list, include list, library list, exclude list, and source reference list directories so I can make sure that I didn't delete the wrong one. I tried reinstalling VS 3x with no avail and can't figure out how to reset the list.
Geostigma




PostPosted: Wed May 30, 2007 11:08 pm   Post subject: RE:objbase.h not found :angry:

Know what, a picture is worth 1000 words and I solved my link.exe error.

http://img409.imageshack.us/img409/4591/100wordsxd3.jpg


New error i haves now is

code:
------ Build started: Project: CreateDevice, Configuration: Debug Win32 ------
Linking...
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__ValidateRect@8 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassA@8 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__GetMessageA@16 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__RegisterClassExA@4 referenced in function _WinMain@16
Debug/CreateDevice.exe : fatal error LNK1120: 11 unresolved externals
Build log was saved at "file://c:\Program Files\Microsoft DirectX SDK (April 2007)\Samples\C++\Direct3D\Tutorials\Tut01_CreateDevice\Debug\BuildLog.htm"
CreateDevice - 12 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Sponsor
Sponsor
Sponsor
sponsor
Martin




PostPosted: Thu May 31, 2007 9:26 am   Post subject: RE:objbase.h not found :angry:

I'm almost positive that your problem has to do with not having the Platform SDK set up properly. Those are all Windows methods. Out of the (digital) box, Visual Studio Express only allows you to make .NET applications, and the Platform SDK is required to use old Windows technologies like Win32. Make sure that you follow all of those steps in that link that I sent you a few posts up.
Geostigma




PostPosted: Thu May 31, 2007 1:54 pm   Post subject: RE:objbase.h not found :angry:

I attached a photo for a reason in my above post. I don't know what I'm missing when I have checked a billion times. Now i just cant get object files..


code:
------ Build started: Project: CreateDevice, Configuration: Debug Win32 ------
Linking...
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__ValidateRect@8 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassA@8 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__GetMessageA@16 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__RegisterClassExA@4 referenced in function _WinMain@16
Debug/CreateDevice.exe : fatal error LNK1120: 11 unresolved externals
Build log was saved at "file://c:\Program Files\Microsoft DirectX SDK (April 2007)\Samples\C++\Direct3D\Tutorials\Tut01_CreateDevice\Debug\BuildLog.htm"
CreateDevice - 12 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Geostigma




PostPosted: Thu May 31, 2007 2:16 pm   Post subject: RE:objbase.h not found :angry:

yes works finally effin yes1 bits and karma
Martin




PostPosted: Thu May 31, 2007 2:22 pm   Post subject: RE:objbase.h not found :angry:

Woohoo Smile Live and learn.
Geostigma




PostPosted: Thu May 31, 2007 2:26 pm   Post subject: RE:objbase.h not found :angry:

Apperntly I didn't edit the file where I had to add the extra

"AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib""

Must of forgot to save it. After that NeHe AND direct X now compile.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 28 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: