Answer Questions
KalleKlovn Function that affects controls
Hello, I have an important question; why do I get an error running my following code. But first let me explain what I did. I have my main "Form1.h" header in which I wrote the following class: public ref class MyCommands { static int MyInt; static int CardsDrawn; public: ...Show All
SoGa MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
Hi Justin! i am completely new to this and have to learn the language fairly rapidly, got myself a decent book, but when i try and compile a simple hello world program i get the error: Linking... MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup Debug\dont know.exe : fatal error LN ...Show All
Seiryuu How to call Activex Control non-static functions from a static function?--DialodBasedApplication
i am using an Activex control in a dialog based applicaton(VC++). i created an member variable for that(m_myportcontroller). In an non-static function i am able to call the Activex control methods using the member variable and worked fine. But i need to call the activex control (non-static) methods in an static function. Here i cannot use the member variable as it is a static function. So, i declared an object for Activex control class. Using th ...Show All
Kaul ocx control's events in VC++.net
hi, I am developing a VC++.NET console application. In that, i am using an OCX control. It has two events. I need to know how to use those events. In VB.NET, we can declare the objects with WITHEVENTS keyword. Any equivalent in VC++.NET. Please help me regarding this. thanks and regards, Take a look at http://msdn2.microsoft.com/en-us/library/6f01ek09.aspx for handling events in VC++. Also, you can have methods that throws excep ...Show All
Nagaraju Palla MSFT PGP
Hi, I am trying to include PGP (Pretty Good Privacy) support to my VC++ application for a secure communication product. Does anyone know if there was a port of the GNU PGP to a Visual Studio 2005 project I know there is a C# version on the net but I am interested in a VC++ project. Thanks, Girish Lingappa Thanks for the response, Brian. I was away for a few days and could not get back to you earlie ...Show All
Erik_R_Nielsen How do you get the Processor Serial Number in Visual C++?
Any of you guys know how you get the Processor Serial Number in Visual C++ I found examples of how to do it in C# and VB using ManagementObject. But I can't seem to find a way to do it C++. Thanks for the help, Jeff Sholl Well, System::Management::ManagementObject^ IS available in VC++ too (if you compile in .NET and add a reference to System.Management.dll), but I suppose you want to know how ...Show All
Anders Hs Errors when building MFC applications
When converting an MFC application from VS.net 2003 to VS 2005, I got the deprecated warning. While I was working on it, I probably made some kind of setting (not sure where) that causes any C++ application (out side of .Net applications) to error on building. I get the following errors when I try to build: C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(55) : error C2733: second C linkage of overloaded function 'memcpy' ...Show All
StephenJr chekbox
how can i determinete when the check box in listview is checked or when the checkbox is get the focus and chenge on evey check in MFC There are events for all of these which you can catch and then run your own code. I believe WM_FOCUS is the event when a control gets the focus ( this is relying on old memories, don't quote me ), and I'm pretty sure there's a SetCheck method on the control you could call to check it when it gets the foc ...Show All
Pops Jackson help deciphering an error...
When I try to compile my application that is a console application dependent upon a setup file I recieve the following error: Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/runga.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. runga.exe - 2 error(s), 0 warning(s) Could anyone tell me what it means and suggest a possible solution Thanks Alan Ho ...Show All
n2a1s ambiguous symbol
Trying to compile a C++ WinForms Winsock related project with /clr option I get a few errors after adding #include <winsock2.h> statement. The reference is to a different header file: servprov.h . There is no direct reference in any of my files to this header. I verified it with quick find command. There is no reference to it in winsock2.h either. I do not know where the reference is coming from. Thus my first question is this: how come ...Show All
cchill vc++/oracle stored procedure, problem with command parameters
i have a stored procedure to get the user pin. the stored procedure works perfectly as i tested it both in VB and ASP, but when i try to call stored procedure from VC++, the command object cannot initialize the input parameter. The problem is defnitely with the command parameters, but i dont know which type of string i should assign to input parameters. here is the code: BSTR newpin; BSTR userid; _bstr_t qsql = "{call user.getpin( ,{r ...Show All
Kris Ganjam Removing "Unicode Support" Property sheet from release build
Hi there I've got a nice little project that was originally in VC6 and I've upgraded to VS05. Does anyone know how to remove the (automatically added) "Unicode Support" property sheet from the release build I'm sure this must be a bug since it isn't added in the debug build. Currently I can specifically undefine UNICODE in stdafx.h but thats not the point. Anyone managed to fix this Regards Jero Ah ok. than ...Show All
Hallo2ooo Unresolved External for FTP code
I am trying to write an FTP program to transfer files to a server automatically, but I get an unresolved external for InternetOpen(), InternetOpenW(), InternetCloseHandle(), etc. How do I fix this I have included wininet.h, what else do I need to do Thanks, -The Joshinator The Joshinator wrote: I am trying to write an FTP program to transfer files to a server automatically, but I get an unresolved external for InternetOpen() ...Show All
Jean-Jean Change Menu item text at Runtime
Hi How do i change menu item text at Runtime in MFC Dialog based application. ///my code CMenu m_Menu,*p_subMenu; CString strMenuString; CString strTMP; m_Menu.LoadMenu(IDR_MY_MENU); p_subMenu = m_Menu.GetSubMenu(0); p_subMenu->GetMenuString(ID_ENABLE,strMenuString,MF_BYCOMMAND); strTMP.LoadString(IDS_MENU_DISABLE); if (strMenuString.CompareNoCase(strTMP)==0) { strMenuString.LoadString(IDS_MENU_ENABLE); } else { strMenuStr ...Show All
ducati1212 How do I make a stand-alone application in VC++
I'm new to Visual C++ and for the most part, IDE's. I made an application and built the release, but when I put the executable on my jump drive and tried to run it on a different computer, it said it couldn't run it. I feel like I'm asking a really dumb question, but how do I set it up build an executable that is ready to go Thanks. I'll try it out as soon as I can and let you know. ...Show All
