MSVC++ liking issue Programming Software Development by Micko Hi, sometimes I get this linker error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function _main and sometimes it works OK. Solution is usually to place pragma directive below include directives [code] #pragma comment(lib, "wsock32.lib") [/code] First, can someone explain in simple words what this means? Maybe … MSVC++ Express 8 error C2228 Programming Software Development by n321 Hello, I am new to this community but you seemed to be knowlegable with this error so I thought you could help me. I am more of a hobbiest programmer. I get by with doing as little as possible to accent my graphic design abilities. I am currently working on a modern FPS/RPG game using the open source Quake 3 engine. The engine modifications are… MSVC Bluetooth MingW WorkAround Programming Software Development by Sky Diploma Hey all, I have a program(using wxWidgets & MySql++ on MINGW) that has to have some Bluetooth Interaction with an Android App. The problem is that I am having trouble finding a framework(API) that would help me send,recieve data over Bluetooth with other applications. I searched and searched all over the Internet. But it was rather out in Vain… Re: MSVC Bluetooth MingW WorkAround Programming Software Development by mike_2000_17 As far as I know, under windows, bluetooth is provided by [URL="http://msdn.microsoft.com/en-us/library/aa362932(v=vs.85).aspx"]native OS APIs[/URL] (either Bluetooth-specific functions, or through Windows Sockets). Of course, it requires that you link against "Bthprops.lib". MinGW and GCC have work-arounds to be able to link to… Re: MSVC Bluetooth MingW WorkAround Programming Software Development by mike_2000_17 Aaargh! Microsoft strikes again! You did things correctly. The problem with all those things (many of which start with double underscore) is that Microsoft cannot restrain themselves from using non-standard, MSVC-specific language extensions even in their SDK headers. In this case, I would recommend that you do wrap your bluetooth calls in a … Re: MSVC Bluetooth MingW WorkAround Programming Software Development by Sky Diploma Thanks Mike, Now I am in a dilemma to either port my Existing project into MSVC. This would involve configuring MYSQL++ and WxWidgets to it. Or As mentioned above, write an implementation in MsVc and then port it to link it back to the MINGW. Re: MSVC++ Express 8 error C2228 Programming Software Development by n321 Yea Im just ignoring the warnings. So in my code how would I go about fixing the c2228 error in 217? I know the code should work as I have compiled it before on an older version so it has to be something that has changed in the new version of MSVC++ Express or the new windows SDK. ( I was using the 2003 SDK and now Im using the 2008) Re: MSVC Bluetooth MingW WorkAround Programming Software Development by mike_2000_17 You need to put those #include statements for winsock and win2bth into the .c file. This is because you are going to need to #include your header file into your MinGW project, which will drag along the bluetooth windows includes that are causing problems with GCC. You don't need those includes to create your header file, so just put them in the .c … MSVC++: Post your project? Programming Software Development by lotsofsloths Ok, say im using the cmd prompt version of MSVC++(or the windows app type), how do i post a project on daniweb, HTML, or any other website(or like a quick luanch desktop icon)? MSVC compiler Programming Software Development by deanus Hi all, I've built a Queue class which basically uses dynamic memory allocation to make an array grow with every new element inserted. It compiles and works perfectly under dev c++, but when I included the class in a VC++ 10 Express project and instantiated an object from it, the compiler threw the following run time error: Access violation … Re: MSVC++ 2005: Find The Brightest Pixel.. Programming Software Development by lotsofsloths No, i want you to [I]explain [/I]to me how to find a pixel closest to white or someother color... Yes, i really don't know anything about graphics and pixels in MSVC++!! Getting Winsock.h instead of Winsock2.h... MSVC++ Problem # 2 Programming Software Development by imaloner I am posting two threads because I have two different problems, but both have the same background information. Common Background Information: I am trying to rebuild code for a working, commercially sold application with only partial build instructions. The previous maintainer of the code (a mixture of C and C++) is no longer with the company,… Problem with MSVC++ and DX Programming Software Development by Xpyder i try to compile source code from a CD in MSVC++ 6. It is scripted in C++ and uses the Win32 api and Direct X 8.0 SDK - and i have included the ddraw.h, ddrawx.h (i have tried with and without this) and with the .lib files. Whenever i tried to compile it returns an error sayin "DirectDrawCreateEx" undeclared identifier this is … Some Game / Engine Source code in C++ and MSVC Programming Game Development by kiavash2k Hi, Space Haste II complete sourcecode --------------------------------------------- You can download the game demo and checkout screeshots at gamespot. [URL="http://www.gamespot.com/pc/action/spacehaste2/index.html?tag=result%3Btitle%3B0"]http://www.gamespot.com/pc/action/spacehaste2/index.html?tag=result%3Btitle%3B0[/URL] and … linker errors in MSVC++ 2005 Programming Software Development by Slavrix hey im tryin to get this program me and my mates are writing to work, but for some reason i ge these errors upon compilation im using MSVC++ Express Edition and ive downloaded PlatformSDK because it doesnt come standard with it. [CODE]1>------ Build started: Project: av_bot, Configuration: Debug Win32 ------ 1>Compiling... 1>… Show Image in Form background using MSVC 6.0 in MFC application. Programming Software Development by tusharvichare Hello, I am developing an application using MSVC 6.0 in that application I want to show image in form background. if anyone have idea about this then please tell me. Thank You. how to access odbc ms access database by C from msvc++2008? Programming Software Development by csayantan how to access odbc ms access database by C from msvc++2008? Problems linking to AS/400 with MSVC 2008 Express Programming Software Development by sirdanman10 I don't know if anybody here programs in C++ for the AS/400, specifically the Personal Communicator (PCOMM)... I have been able to successfully write programs in Visual Basic for Applications with Excel but I am having a hard time with C++. When I try to compile one of the sample programs that came with IBM's programmers toolkit, I get linker … FLTK in MSVC++ 2010 Programming Software Development by Buolbear4444 I am trying to set up the GUI Library FLTK but cannot find a way to set it up for MSVC++ 2010 Express. I looked on Google but failed to find any tutorials on doing this. I also tried CMake but ended up with an error in CMake and an empty solution :(. Does anyone know how to do this or a tutorial that tells how to do this? Re: MSVC++ liking issue Programming Software Development by prog-bman Well the linking error means it finds the prototype of the function but doesn't find the actual defination of the function. I am not sure why it does that since I would not be an VC++ expert. Maybe look up how the pragma comment has to be. Re: MSVC++ liking issue Programming Software Development by WolfPack If you think that it is a bug in Visual Studio, it is not. Refer the following URL. [URL=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/_predir_comment.asp]#pragma comment[/URL] You need to link the wsock32.lib or ws2_32.lib ( Winsock Library ) to use the APIs that are needed for WinSock programming in Windows. … Re: MSVC++ Express 8 error C2228 Programming Software Development by Ancient Dragon warning c4996 -- Microsoft has declared many of the standard C functions from stdstring.h decpreciated (obsolete). The c and c++ standards say otherwise. So you have a choice: 1) ignore the warnings, they can be disabled with this pragma: [icode]#pragma warning(disable: 4996)[/icode], or 2) fix the problems by using Microsofts safe, but non-… Re: MSVC++ Express 8 error C2228 Programming Software Development by Ancient Dragon I don't know how to do it because I have never seen HWND be a pointer to a structure with those items. I just tried it with VC++ 6.0 and it has the same problem. So I guess what you compiled before was wrong too. Check your work carefully -- my guess is that hwnd should not have been on those two lines. Re: MSVC++ Express 8 error C2228 Programming Software Development by n321 well I tried to just remove the 2 lines and it built successfuly but the exe would not load IDP_BMPLOGO and when I close the error message the launcher opens with no title logo. Do you know of a way I could get this to work differently with out the HWND? Re: MSVC Bluetooth MingW WorkAround Programming Software Development by Sky Diploma I have just used the "reimp" tool and converted the lib into a def file. and from the def file I used dlltool to get a .a file. And have now linked it to my CodeBlocks IDE. I thought of checking the compiler and fired up an example program from [url]http://www.winsocketdotnetworkprogramming.com/winsock2programming/… Re: MSVC Bluetooth MingW WorkAround Programming Software Development by Sky Diploma As Mike has suggested, I have come up with this small wrapper for most of the functions that I will be needing. I am not exactly sure if the code I have written is correct.I didn't even test it before I posted it here. ALTHOUGH I managed to write a 'C' file with extern C Here is what I have framed my code as. [code] … Re: MSVC++: Post your project? Programming Software Development by iamthwee You mean like upload it as a zipped file? Re: MSVC++: Post your project? Programming Software Development by Ancient Dragon You are using an editor of somekind, such as Notepad to write your program. Just copy it to the clipboard then paste it into DaniWeb's edit box, and please surround it with code tags. Re: MSVC++: Post your project? Programming Software Development by lotsofsloths Umm..Iamthwee was closer, but how could i embed it? i mean, well for starters, just teach me howto put it into a zipped file Re: MSVC++: Post your project? Programming Software Development by iamthwee Hmm, it seems like you are blurring the boundaries of a desktop and website application.