- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
13 Posted Topics
Sorry I´m new to PASCAL and I´m using Lazarus to program for Windows CE I dont know why I´m getting the error Error: constructors, destructors and class operators must be methods I have my Unit1 where I´m declaring my form procedures as bellow unit Unit1; {$mode objfpc}{$H+} interface uses Classes, … | |
Hi all, I´m having troubles programming with C# for windows CE. I need to listen a serial port, I have the program for windows and it works fine but when I program it to windows CE I dont know why it does not recognize any event function. I normally use … | |
Hello everybody, Let me explain my problem. I have one datatable with all my data and the above function to calculate the eclidian distance. My function returns a DataColumn so I can add this column later to another datatable. The problem is that I´m not being able to populate the … | |
Can I get the control of an object just knowing its name? Something like: [code] Control a; a.Name = "ComboBox1"; ComboBox combo = a as ComboBox; combo.Items.Add("foo"); [/code] Thanks. | |
I want to select rows from the DataTable using the Select method, but I need to change somes, and I need this changes to be made on the DataTable too. Is there any way to bind the selection to the datatable? Something like this? [code] public void bindDataRowToDataTable() { Siglasul_Qualidade.Dados.BancoDeDados … | |
I have the following funtion in my ComboBoxControl class, and it only returns to me the control of the comboBox. The foreach works fine but my problem is how to return the ComboBox, becuse if the ComboBox doesn´t exists I need to return NULL or something else. How can I … | |
Hi all, Is there a better way of doing this, I googled it and found de IsNumeric, but it´s for VB and not recommended for C#. Let me explain: I have a string like "something123" and I need to get only the 123 value as a string from the string. … | |
Dear all, I have a form with 36 comboboxes, and I use this fucntion to update them: [CODE] private void controlBox(string boxName) { foreach (Control frmControl in this.Controls) { if (frmControl is ComboBox) { if (frmControl.Name == boxName) { ComboBox _bx = (ComboBox)frmControl; _bx.Items.Clear(); _bx.Enabled = true; _bx.Items.Add("It Works!"); } … | |
The code runs perfectly, but when I press any button, for continuing the system Pause, it gives the error: Run-Time Check Failure #2 - Stack around the variable 'arq_linha_part' was corrupted. [code=c] #include "stdafx.h" #include "Sistema.h" #include <fstream> #include <iostream> #include <string> #include <sstream> #include <cstdlib> #define ZB 100.0 #define … | |
I commented on the code what is my doubt. I don´t know I can´t I simply use arq_linha_part >> parm; If I use that it returns me the error: 1>------ Build started: Project: Interface GaussSolve, Configuration: Debug Win32 ------ 1>Compiling... 1>Interface GaussSolve.cpp 1>c:\users\fernando\documents\visual studio 2008\projects\interface gausssolve\interface gausssolve\interface gausssolve.cpp(38) : error … | |
My entrada.txt jas the following contents: [code] #Commented text #This should be used like: #Bar:Bar_number:Type_of_the_bar; # # Bar:1:PV:1.05 [/code] So the lines that starts with # are commented so the program will not process them. Everything is working fine, but when I used getline() to delimit the string on ":" … | |
Hi, I´m having problem while converting char to string. [code=c] #include "stdafx.h" #include <fstream> #include <cstdio> #include <iostream> int main() { std::ifstream arquivo("entrada.txt"); if (!arquivo) { std::cout << "Arquivo não encontrado" << std::endl<< std::endl; system("PAUSE"); exit(0); } std::string token; char arquivo_linha[255]; while(arquivo) { arquivo.getline(arquivo_linha,255); if (arquivo_linha[0] != 35) { token … | |
I´m using Visual C++ Studio and when I include another .cpp file it doesn´t takes all the what have been included before. Here is an example: main.cpp [code=c] #include <iostream> #include <string> #include <sstream> #include "readtext.cpp" int main() { teste(); return 0; } //readtext.cpp void text() { printf("teste"); } [/code] … |
The End.