do you have any exemple of code you could provide me or link me to please... it looks like I actually am the main bug (hehe)
thanks
User Profile
Collapse
-
refresh datagridview automatically
Hi,
I have a Window Form to which i added a datagridview. The binding source is working well, but does not update if the database is modified outside the application (i mean not showing the modification made to the database).
Trying to solve my problem, i added a timer to the form that Fill the datagridview every xx milliseconds (basically a timer that calls the Form_Load method). The timer is working nicely, but because... -
found the problem:
i replaced this line from void CCalculsPolynom es::AfficherRes ultat(double* result[], int size)
double resultat[6];
with
double* resultat;
resultat = new double[size];
thanks anyway for your help and sorry for the multi-posting not workingLeave a comment:
-
I have an MFC application (VS2005) with splitter window (one is the view other is a formview). you can select from the main menu different math operation on polynoms and polynoms shows on the formview. you can then calculate and the result is shown in the view. The class CalculsPolynoms above is working just fine for all operations except Multiplier(), the line myPoly->AfficherResult at(p_resultat, 11); brings me to AfficherResulta t(...) and the...Leave a comment:
-
well hoping the message will show this time...
I have an MFC application (VS2005) with splitter window (one is the view other is a formview). you can select from the main menu different math operation on polynoms and polynoms shows on the formview. you can then calculate and the result is shown in the view. The class CalculsPolynoms above is working just fine for all operations except Multiplier(), the line myPoly->AfficherResult at(p_resultat,...Leave a comment:
-
sorry the message was not showing .. and can not delete the other replies I tried to do...Leave a comment:
-
atlsimpstr.h problem with mfc application
I have an MFC application (VS2005) with splitter window (one is the view other is a formview). you can select from the main menu different math operation on polynoms and polynoms shows on the formview. you can then calculate and the result is shown in the view. The class CalculsPolynoms above is working just fine for all operations except Multiplier(), the line myPoly->AfficherResult at(p_resultat, 11); brings me to AfficherResulta t(...) and the... -
atlsimpstr.h problem with mfc application
I have an MFC application (VS2005) with splitter window (one is the view other is a formview). you can select from the main menu different math operation on polynoms and polynoms shows on the formview. you can then calculate and the result is shown in the view. The class CalculsPolynoms above is working just fine for all operations except Multiplier(), the line myPoly->AfficherResult at(p_resultat, 11); brings me to AfficherResulta t(...) and the... -
drawing with mouse on a panel
I am doing an app (C# 2.0) where you can draw in a panel with your mouse in "real time". I actually have 2 problems;
1- it does not really is "real time", if your mouse move fast or very fast the line is added after a very small delay.
2-Because I use AddLine(), it adds very short lines from one point to another and it does not give a very good result. Also because of this and my "not real time" problem,... -
float to CString conversion not exact
For a reason i don't know, if i convert a float to a cstring, it does not convert to an exact value for all values except round numbers or 1/2 numbers;
the following code (used to convert and later show as text in a MFC Document)
outputCode:char buffer1[_CVTBUFSIZE]; _gcvt(i_A11, 12, buffer1); CString SA11 = (CString) buffer1;
float i_A11 = 1,2 and once converted to Cstring SA11... -
pDoc->Invalidate(tru e);
is not working (Invalidate not a member of TP1Doc)
but Invalidate() in the OnUpdate method is working fine
thank you very much for your reply!Leave a comment:
-
mfc view not updating
Hi, I am doing an MFC MDI application with VS 8.0. I am using the default document view plus a formview ans show both of them in the view using a splitter.
In the formview there is an event onBtnclicked that displays some valued entered by the user in the document. Here is the code in my formview:
...Code:// MyForm.cpp void CMyForm::OnBnClickedButtonok() {[INDENT]CTP1Doc *pDoc = (CTP1Doc *)GetDocument(); pDoc->hello[/] -
Found out:
Instead of doing it in the same function
matTemp = a
I created a new function with your code which fills and returns the initial matrix "a" and replaces matTemp = a with matTemp = InitializeMatri x(a);
thanks so much for your help!!!
YolaineLeave a comment:
-
this is already what I have no? Or am I missing something? because this way even a gets filled with the B values ...
...Code:private static int[] CalculerXi(int[,]a, int[,]b, int n) { ....... for (int j = k; j < n; j++) // pour chaque colonne { matTemp = new int[n, n]; matTemp = a; // reinitialiser la matrice ALeave a comment:
-
the variable is fine from one classe to another, the problem is when i do the calculation, the matTemp does not return to the initial value of a after having B replacing the n column. at the end of the loop, a AND matTemp are filled with the B values only...Leave a comment:
-
variable re-initialization not working
Hi,
I am new to coding and to C# and I am experiencing this problem:
I have to use the Cramer's Rule to solve linear equation systems given by the users (I am using a windows form). Once the data is filles in the matrix, i send this matrix for the determinants calculations to solve the systems.
But whenever i try to calculate the determinants it does not work because the vector B is supposed to replace one column... -
i have this problem with sql:
ENTREPRISE ( entreprise_id, entreprise_nom, entreprise_crea tion, entreprise_adre sseSS, entreprise_type )
ENTREPRISE_CONT ACT ( entreprise_id, entreprise_cont act_nom)
ENTREPRISE_TEL (entreprise_cont act_nom, entreprise_tel)
i can add a foreign key from ENTREPRISE_CONT ACT to ENTREPRISE with entreprise_id, but not from ENTREPRISE_TEL to ENTREPRISE_CONT ACT with...Leave a comment:
No activity results to display
Show More
Leave a comment: