|
Hi everyone. I have a program which opens and writes to MS Jet databases using DAO. I want to be able to open a table in a Jet database and convert it to a CSV (comma separated value) database. MSDN says you can use DAO to read/write to CSV databases, but I cannot find any examples on how to do this. Do you use it just like Jet database? Any help is greatly appreciated!
|
|
|
|
|
A CSV file can be created straight huh?
Just separate your fields with commas and each record ends with a cr-lf.
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
I could do that, and still might. Creating the file isn't too bad, but parsing it back out will be a chore, possible to do but a chore. I was hoping DAO could read the file back for me. Oh, well
|
|
|
|
|
I created an ActiveX (with MFC) selecting "Invisible at runtime" in the wizard. This control manages a communication via serial port.
In my MDI application I added the ActiveX to some dialog windows and all works fine.
Now I need a background communication (without any dialog windows).
How can I use my ActiveX ?
I try to add in "CMyApplicationApp" class the declaration "CMyActiveX m_MyActiveX" (like the wizard does in "CMyDialog") but when I try to access any method I have an ASSERT error (line 345 of winocc.cpp).
The line in winocc.cpp is:
ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least)
Can anyone help me !
Thanks
Paolo
|
|
|
|
|
ActiveX controls require a container. Just make it a regular COM component. This will solve your problem.
|
|
|
|
|
How can my C++ project setup file ?
|
|
|
|
|
gago wrote:
How can my C++ project setup file ?
There is an installsheild with visual studio.net/6
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
As Mazy already said you can use Installshield. But if that's too complicated for you I suggest Inno Setup which is an easier tool to handle
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Nish - Native CPian wrote:
I suggest Inno Setup which is an easier tool to handle
I don't know about this tool Nish.Is that something free to download?
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Mazdak wrote:
I don't know about this tool Nish.Is that something free to download?
http://www.jrsoftware.org/isinfo.php
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Thank you Nish.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Nish when I go to that site download links do not work.Have you test them recently?
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Mazdak wrote:
Nish when I go to that site download links do not work.Have you test them recently?
Try the 2nd US link :-
http://www.jrsoftware.org/files/site2/is32.exe
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
I tried all of thwm Nish. It doesn't work.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Use Inno SetUp with Script Maker and its pretty easy you can find it here
http://www.tafweb.com/scriptmaker.html
|
|
|
|
|
We have a paper graph (it is a waveform drawn on a grid) - like the one we used to do in our schools.(Assume that X axis represents t-time and Y axis represents v-voltage).
We take the bitmap image of the same.
Now we want to extract only the waveform out of this (not the grid both are of different colors) and we want to extract this waveform as a series of (X,Y) co-ordinates. This (X,Y) needs to be sampled at every delta-t.
This delta-t needs to be configurable (and should not be limited to screen/monitor's pixel length/width - this is what I meant by digitization independant of pixels).
I want to save this whole waveform into the database as a series of (X,Y)'s instead of storing it as an image
|
|
|
|
|
The best that you are going to be able to do is the pixel resolution level if you are dealing with a bitmap.
What you could do though, and I am not sure how this will affect your data, but you could interpolate between the pixels in order to get a finer resolution, but this will not change your overall values that much. Something that is a little more complicated, but will give you better results is curve fitting. If you are going to do this, I would recommend a tool like MatLab.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
The first question is how do I read and store the coordinates of the pixels in the database or array?
|
|
|
|
|
Am I correct in assuming that you are taking a waveform drawn on gridded paper, scanning it and storing that image in a graphic file of some format?
In any case, you are going to have to examine the contents of that image file or load the image into memory and examine that. You will need to devise an algorithm to pick out pixels of the correct colour. This in itself is going to be an interesting exercise, especially if it is a scanned image - for any single pixel wide vertical slice through that image I would expect more that 1 pixel to be set. You are also going to see a slightly varying range of colours (or even intensities if you've scanned in monochrome). The paper image being scanned may not be perfectly aligned with the scanner (i.e. the scanned image will be slightly rotated). You will have to distinguish between the actual waveform, axis, any other lines/blemishes or artifacts that appear during the scanning process.
Free
|
|
|
|
|
Where do i initialize the combo box/control in a CFormView when i'm using a Doc/View architecture?
I would need to set some default values in the combo box or other controls.
Thanxs!
|
|
|
|
|
After you define controller for it I think constructor is the correct place for it.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
aldeba wrote:
Where do i initialize the combo box/control in a CFormView when i'm using a Doc/View architecture?
OnInitialUpdate
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
I'm not sure why, but OnInitialUpdate is not being called.
Set a breakpoint there, but there was no break.
My program works such that, when i click on a button the view will change. Thus OnInitialUpdate should be called rite?
The problem is that i used the resource editor to create the FormView and placed all the controls there. And i'm unable to initalize it.
Is it possible that i would need to use
m_myComboBox.Create(......);
and not be dependent on MFC to initalize the window that the combo box belong to?
Thanxs!
|
|
|
|
|
aldeba wrote:
My program works such that, when i click on a button the view will change. Thus OnInitialUpdate should be called rite?
In that case put it inside OnUpdate()
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Nope, no response for breakpoint in OnUpdate()..
|
|
|
|