|
hoanhdung wrote: I want to load data from excel (similar to access),
In addition to the other methods suggested you could also use ADO to connect to the excel document as data source.
Hope this helps!
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
Hi everyone,
I was not sure which forum this question really belongs to. However, here goes....
I have a program running under Windows XP that communicates with a hardware device through the parallel port. Now what I want to do is write a program that can read/write messages to that port (basically remove the hardware physically and simulate it through software). However, in documentation I read that the COM port is always opened with an exclusive access. Does anyone know if there is a way to bypass that or maybe I have interpreted the documentation in a wrong way.
Cheers!
/**
I'm the one who's gonna have to die
When it's time for me to die
So let me live my life
The way I want to
- Jimi Hendrix
*/
|
|
|
|
|
Dear All...
I have problems in avoiding memory leak. I've browsed through the message board regarding memory leak, but still can not find solution.
I have this function:
void CPA003Dlg::doMultiplyT(double **A, int M)<br />
{<br />
double temp_Sum = 0;<br />
double **B;<br />
B = new double *[M];<br />
for (int x=0;x<M;x++) B[x] = new double [2];<br />
for (x=0;x<M;x++) {<br />
B[x][0] = A[0][M];<br />
B[x][1] = A[1][M];<br />
}<br />
<br />
for (x=0; x<2; x++) {<br />
for (int y=0; y<2; y++) {<br />
for (int z=0; z<M; z++) {<br />
temp_Sum += (A[x][z]*B[z][y]);<br />
}<br />
P[x][y] = temp_Sum;<br />
temp_Sum = 0;<br />
}<br />
}<br />
<br />
delete []B;<br />
B = NULL;<br />
<br />
}
what should I do?
thanks...
|
|
|
|
|
houari_id wrote: for (int x=0;x for (x=0;x B[x][0] = A[0][M];
B[x][1] = A[1][M];
}
houari_id wrote: for (int z=0; z temp_Sum += (A[x][z]*B[z][y]);
}
i guess this is not what you wanted to type...
so, use the little [Modify] link at the botton of your post and there, uncheck the Ignore HTML tags in this message checkbox...
thanks
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Mmmhhh, forgot to uncheck the 'Ignore HTML tags' ?
|
|
|
|
|
arf, nop
actually, when a Copied/pasted the checkbox caption, i did not see that i checked it...
and as CP is so slow some times, you answered before i had the time to uncheck it
but it's fixed now
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
ah... i guess so... ^^;;;
sorry..
|
|
|
|
|
houari_id wrote: what should I do?
Your use of a 2D array is incorrect. Try:
double **B = new double*[FirstDimension];
for (int x = 0; x < FirstDimension; x++)
{
B[x] = new double[SecondDimension];
for (int y = 0; y < SecondDimension; y++)
{
B[x][y] = 0.0;
}
}
...
for (x = 0; x < FirstDimension; x++)
delete [] B[x];
delete [] B;
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Ah!! It worked!! Thank you very much...
|
|
|
|
|
hello,
i am very new to VC++.Net. i am getting lots of bugs while working with
MsAccess Database. Here is my code fragment. i used the Connection
object from toolbox. so the connection is ok. i am able to retrieve the
data. But i failed to modify (inserting, updating and deleting).
DataSet *ds;
OleDb::OleDbDataAdapter* adapter=new OleDb::OleDbDataAdapter("select
prt_text,cut from spool",oleDbConnection1);
oleDbConnection1->Open();
adapter->Fill(ds,"spool");
DataRow *dr=ds->Tables->Item[0]->Rows->get_Item(1);
ds->Tables->Item[0]->Rows->Remove(dr);
ds->AcceptChanges();
adapter->Update(ds,"spool");
oleDbConnection1->Close();
how do i delete a record, update a record and add a record. plz help
me.
Thank u in advance.
regards,
basheer.
|
|
|
|
|
Hi
use CDatabase
.Open() to open database
.ExecuteNonQuery() to execute insert, update, delete statements
use CRecordset to execute select statements
Hope this helps
Thomas
|
|
|
|
|
Urgent help my entire ERP project's class view is missing Resourse view stopped working. Yesterday it was ok,today its not there
I dont know what happened?
|| ART OF LIVING ||
|
|
|
|
|
Hi shiv
did u try to clear all the files in
the Debug derectory of u r project ,
and reloading the project.
Dont u use visual source safe , or anyother
project management?
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
vikas please I am eager to know about source safe ,Now everything is too much for me ,please tell me about source safe and how to use it.Is it can be learned quickly
|| ART OF LIVING ||
|
|
|
|
|
i want to draw a pie chart and graph in my project which is in MFC , please help me to do this .
i m working in polling system , so after getting opinion i want to draw in pie chart and graph , suppose i have 4 options
sachin
|
|
|
|
|
Look here , here and here
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
Giorgi Moniava wrote: Look here , here and here
Hain You! you type very Fast, which finger are you using
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
-- modified at 3:36 Monday 7th November, 2005
|
|
|
|
|
ThatsAlok wrote: Hain You! you type very Fast, which finger are you using
Me ? I am typing with my nose
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
Giorgi Moniava wrote: I am typing with my nose
God Bless your Nose
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: God Bless your Nose
yours also Alok :->
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
Giorgi Moniava wrote: yours also Alok
But I don't use Nose to type.. i have two hand to do soo ...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: But I don't use Nose to type.. i have two hand to do soo ...
I did not know that ;)
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
|
toxcct wrote: what ???? i really thought at a time that we were making up the "faster nose" contest...
while collecting data for the article.. i come across this thread :-
Misunderstanding[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|