Hi, does anyone know what header files/libraries to use to use ppm file formats? I'm trying to parse a ppm format file in c++.
rover_boy
Posts
-
PPM file format - header files to include -
Another application running in the formHi I'm creating an application in Windows forms. I wondering if any knows how a System::Diagnostics::Process::Start("C:\\path\\my.exe"); which opens an application in a window to place that window in my form?
-
Add/Remove items in a listBoxThis should solve your problem.
//To Add if(cmbCommands->Text->Length > 0) { lstCommands->Items->Add(cmbCommands->Text); } //To remove if(lstCommands->SelectedIndex !=-1) { lstCommands->Items->RemoveAt(lstCommands->SelectedIndex); }
-
Try...Catch ProblemThank you for your reply, that fixed my problem
-
Try...Catch ProblemCan anyone help me on a try catch block? Not quite sure on the catch block. I want it to display a message box if the error the path in the try block does not exist.
try { System::Diagnostics::Process::Start("C:\\client\\debug\\client.exe"); } catch(char *ex) { MessageBox::Show ("Not able to connect to PANGU server!", "PANGU Server Error!"); } finally { }
-
Possible to link to different projects together?I have client class written in C saved into C++ files. This class is to connect to a server. I want to use this code which connects to the server in my GUI which is created using windows forms. I have added Additional Dependencies to the windows form project. The problem is when I include these .cpp code files to the windows form project I get the error LNK1152. I also get warning messages: "This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use CRT_SECURE_NO_WARNINGS" I'm looking into ShellExecute to solve my problem
-
Error LNK1152Does anyone know how to solve the error LNK1152?
-
Possible to link to different projects together?Thanks for the reply before you replied I just got the error LNK1152 so not sure if I should try to solve this or use the ShellExecute
-
Possible to link to different projects together?Thanks for the help I might not need to do that if I can solve the error LNK1152
-
Possible to link to different projects together?I'm new to Visual C++ and am creating a windows form application. I was wondering if it was possible to link a console application which is written in C but stored in C++ files to a windows form? So for example if I clicked a button in the Windows Form application then this would run the console application?
-
Is it possible to link two projects together? [modified]I'm new to Visual C++ and am creating a windows form application. I was wondering if it was possible to link a console application which is written in C but stored in C++ files to a windows form? So for example if I clicked a button in the Windows Form application then this would run the console application?
modified on Wednesday, January 16, 2008 5:56:25 AM
-
Displaying a bitmapHi I'm new to Visual C++ and .NET Framework; I'm trying to display a bitmap image on a Windows Form in Visual Studio 2005 but am experiencing problems with this. I have examples for VS 2003 but these don’t seem to work in VS 2005. Does anyone have any examples of displaying a bitmap in VS 2005? Any help appreciated
-
Displaying a bitmapHi I'm new to Visual C++ and .NET Framework; I'm trying to display a bitmap image on a Windows Form in Visual Studio 2005 but am experiencing problems with this. I have examples for VS 2003 but these don’t seem to work in VS 2005. Does anyone have any examples of displaying a bitmap in VS 2005? Any help appreciated
-
mySQL Problem with .NETHi i am tryin to write a login page in asp.net using c# i have created the following method which passes 3 parameters into mySQL database stored procedure but i am having problems extracting the ouptut value from the database and the server returns the following error Only MySqlParameter objects may be stored Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. the piece of code with the error is
Line 65: connection.Close(); //Closes DB connection Line 66: Line 67: int valid = cmdString.Parameters.Add ("?p_valid"); Line 68: Line 69:
//Builds .net mysql connection and passes connection string into method MySqlConnection connection = new MySqlConnection (connectionString); //Create mySql command string for passing query or SPROC(Stored Procedure) MySqlCommand cmdString = new MySqlCommand(); //Set Command to equal mySql connection,t so can pass SQL query cmdString.Connection = connection; //Set command string to equal SPROC cmdString.CommandText = "login"; cmdString.CommandType = CommandType.StoredProcedure; MySqlParameter param ; //Creats paramter to send to SPROC param = cmdString.Parameters.Add("?p_username", MySqlDbType.VarChar); //Sets parameter type to input parameter param.Direction = ParameterDirection.Input; //Sets parameter value to text box param.Value = txtUsername.Text; //Creats paramter to send to SPROC param = cmdString.Parameters.Add("?p_password", MySqlDbType.VarChar); //Sets parameter type to input parameter param.Direction = ParameterDirection.Input; //Sets parameter value to text box param.Value = txtPassword.Text; //Creates parameter to be passed into procedure param = cmdString.Parameters.Add("?p_valid", MySqlDbType.Int32); //Sets parameter direction to be equal to output param.Direction = ParameterDirection.Output; connection.Open(); //Opens DB connection cmdString.ExecuteNonQuery(); //Runs query connection.Close(); //Closes DB connection