Answer Questions
Palani Nama MySQL help
Hey, I'm a total newb at MySQL and C++ (together). However, I know some C++ and a lot of MySQL (I'm a former PHP coder). The question I have is how do you connect to a web-based MySQL server Like to go to PHPMyAdmin, I go to https://srv02.hostww.net:2083/3rdparty/phpMyAdmin/index.php to alter anything MySQL related, and my cPanel is http://www.vgscripts.net/cpanel/ . I have no idea how to even connect to the MySQL database through C++ because I ...Show All
Minad Sharing Data between DLLs
I have dll, common.dll, which has global data. I want to share this global data with another dll. I've set the linker options on the common.dll as follows: /SECTION:.bss, rws /SECTION:.data, rws. When I step into the code it appears that both dlls have their own copy of the global data. What am I doing wrong Thanks. Omar Canon No. Check the docs. Use #pragma dataseg(".shared") in the source code. See t ...Show All
MikeApplied Buttons
I know that this is probably one of the most simple and easy things to do, but I don't know how to do it,so can someone please help me with Click events so that when I click a button it goes from "form1" to "form2." Because I'm new at programming in C++. Alright Mike I changed the IsMDIContainer part to true but it changed my program's BackColor to "ControlDarkDark" from "Control." Could you tell me why it did that and how to fix this ...Show All
terryc_ms d3dx9.h and other .net questions
Hi ! I'm new to VisualC++.net I've used VisualC++ 6.0 for a long time. so, I bought .Net because I've hoped that I'm able to include the d3dx9.h file. So, the problem i have is that i dont know why I'm not able to include it, not in VC++6 or .net I've installed the DX9SDK and added all files to the linker... so what's my fault Maybe someone knows a good tutorial, so I can work with .Net YEAH thx helped a l ...Show All
MartinOosthuizen Type casting question
I need to convert one legacy C++ type to .NET type.I would like to know which is the preferred one.I am writing code in managed C++. int a; 1)System::Int32 i = (System::Int32)a; 2)System::Int32 i = Convert::ToInt32(a); Thanks in advance Jimmy Right, but is this static_cast is preferred over using the Convert class Martin, I agree with your thoughts. ...Show All
sakiv Calling a Public Windows Form function from another Form
I am having a problem calling a public function I created in one windows form from another. I am using VC++.NET 2005. Here is the snippet of code: From second windows form: public ref class frmEnvWindow : public Form { private : Queue^ cmd_queue; public : frmEnvWindow( void ) { InitializeComponent(); } void Set_Queue (Queue^ pqueue) { cmd_queue = pqueue; } And in the main windows form if (!Display_Showing) ...Show All
SCISYS DBA MessageBox problem under Visual Studio 2005 C++
Hello, I'm a beginner with Visual c++ studio. I have made a new project MFC application and I want just to use this simple function : MessageBox("Test"); But when i compile the project i have this error message : c:\programmation c++\visual c++\testformwindows\testformwindows\Form1.h(100) : error C2440: '<function-style-cast>' : cannot convert from 'const char [5]' to 'System::Windows::Forms::MessageBox' ...Show All
NEROeS Problem with interaction between classes when trying to open files manually
Hi, I have written a MFC SDI program (i am a begginer in programming) that needs to load and save an array of cards. In the next version I add more members to my card class so its serialization is different. Now I want to provide a function in my program that loads the files that are saved under the standard of old version and save them under the standard of the new version. This should be a secondary serialization function Added to ...Show All
tigreye007 C++ CLI and Assembly signing
Hi, we are using a pfx file for signing our c# assemblies. Now we have also some C++/CLI (managed c++) assemblies. When I try to sign the assembly with our pfx file with the /keyfile linker switch - I get the following error: Error 1 fatal error LNK1256: ALINK operation failed (80090007) : Ungultige Anbieterversion TestDll when I use a snk file instead - everthing is ok. With our C# p ...Show All
kokain C++ Standard issue on nested friend classes
I just ran into an unexpected compiler diagnostic involving friend classes. Turns out that both the Gnu compiler and the Comeau compiler also generate diagnostics. Does anyone want to give a stab at understanding why this code should be illegal, and what the workaround would be other than to make the constructor and destructor public. (In my case, the nested classes are internal use only except for a few public methods exposed to the clients.) ...Show All
jasi Help needed with "error C2784"
. . . . If you use string then you should include <string>. That's your job, not the job of the library implementor. The fact that some other compiler uses <string> in their implementation of <iostream> doesn't mean every compiler should. . ...Show All
gmhtid Export template fails
I am not having any success running the export template command. I get one of two different failures. The first problem is that the command will be disabled. The second problem is that the wizard that appears does not show any project to export and hence the buttons at the bottom of the wizard dialog are always disabled. I am trying to created a template based on an MFC DLL project on a 64-bit machine running Windows XP 64-bit Edition. ...Show All
Kenneth Millard Installing msvcr80.dll
Hello, I have installed Visualk Studio 2005 and want to try out some stuff. After writing a simple console application I ahve copied the exe to an other machine, but there is no VisualStudio installed. Copying the msvcr80.dll in the system folder does not work (it works on Windows 2000). I know that i lies now in the winsxs folder so I have tried to copy the whole stuff from this folder, does ot work! I have looked in the merge module and found ...Show All
Alan de Wet Unresolved external
Here is the code: // test3.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using namespace std; int _tmain( int argc, _TCHAR* argv[]) { cout << "Ooga booga" ; int x; cin >> x; return 0; } when I build it, I get: 1>test3.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic ...Show All
Michael Goffioul Importing class from dll
Hi My problem is that I cannot import a class from a dll without an import library. Thank You, Attila. I have written the dll. And there is a function called GetProcAddress, that i can use for importing functions from a dll, and this way, i don't need a lib file. But I want to import a class, and that i cannot do with this function (or at least I don't know how to). But thanx anyway. Attila ...Show All
