|
I am currently in the middle of constructing a program that will sort an MS Access Database. It is only a simple application that will read, write, and delete records from multiple tables. There does not need to be a user interface, as that this is being writen to remove and process duplicate records, and will only be used by myself. So far I have started on an MFC application, but the more I learn MFC, the more I realize that it is too much overkill for what I am doing. Does anyone have a suggestion for an alternative that I could write to access an MS access database as an ODBC datasource. Thanks
|
|
|
|
|
how about do it in accesss by writing some SQL statements?
that is the simplest way, no program, it is nothing.
good luck.
|
|
|
|
|
Edward Tompkins wrote:
Does anyone have a suggestion for an alternative that I could write to access an MS access database as an ODBC datasource.
Unfortunately, database programming as you put it is an overkill. Well, when you are a novice. However, for simple reading, writing and deleting all you need is just a few functions, therefore you shouldn't have that many problems. Search for tutorials on database programming and you might find something that is simple. Good luck!
|
|
|
|
|
Well, I'm going to describe what I have and what is the main problem:
I have a ClistCtrl which has ownerdraw progress bars inside it. CListCtrl is FULLROWSELECT and has many columns. (ProgressBars are on the third column for example), and when I click on an Item (text) the full row gets selected, ok for now... but when I click on the progress bar (that is ownerdraw) it works like nothing... it does nothing.
They are different classes and I can get the click on the progressbar class, but when I try a:
<br />
CWnd* pWnd = GetParent();<br />
pWnd->SendMessage(NM_CLICK);<br />
It doesn't work... please help me...
Thanks in advance...
MaestroProgramador.Com
Where every source code is loved like a girl.
|
|
|
|
|
Send WM_LBUTTONDOWN message instead: but before recalculate cursor position to the client coords of your parent listcontrol and set it in LPARAM...
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
I tried that too, now I'm trying another thing that seems that is going to work... I have all progress bars on a CMap object, so I get one-by-one its rect with this:
CPoint now;
now.x = GetCurrentMessage()->pt.x;
now.y = GetCurrentMessage()->pt.y;
I calculate with a loop all rects and with this function:
CRect whatever;
bool is_or_not = whatever.isPtRect(now);
If is_or_not is 1, I know that my cursor is on one of the progress bar and through CMap I get its index. Could be that way ??
Thanks in advance.
MaestroProgramador.Com
Where every source code is loved like a girl.
|
|
|
|
|
Why do you need above?
If you get MouseClick event on your ProgressBar: just convert from client to screen and send(post) the message.
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
The message sould be sent to the Parent class wich is a CListCtrl type and It works like nothing happened when I call SendMessage from the MouseClick event on ProgressBar... I can't do it.
On ProgressBar mousclick I insert this: (Is a ClistCtrl child)
CWnd* pWnd = GetParent();
pWnd->SendMessage(NM_CLICK);
And on the parent class I insert ON_MESSAGE(.....), but it doesn't work.
Thanks.
MaestroProgramador.Com
Where every source code is loved like a girl.
|
|
|
|
|
Hi, i try running nmake but it gives me the error "Fatal error: File Win32.mak not found.". I ran vcvars32.bat to add the environment variables but its not changing anything. Anyone know how to fix this?
Kuniva
--------------------------------------------
|
|
|
|
|
Hi,
Please tell me How to add an event handle function in Visual Studio .NET(MFC project).
I add a new button in the toolbar resource, its ID is ID_TEST, I want to handle the click event for this button in CView Class.
please tell me how to do it!!!
Thanks a lot.
|
|
|
|
|
Hi!
Well, on the dialog where you have your toolbar you should add a OnCommand(WPARAM wParam, LPARAM lParam) function and there you should write something like this:
<br />
swith(wParam)<br />
{<br />
case ID_TEST:<br />
{<br />
MessageBox("IT WORKED!!");<br />
}<br />
}<br />
Hope it helped !!!
MaestroProgramador.Com
Where every source code is loved like a girl.
|
|
|
|
|
Sorry, I typed too fast, please write switch instead of swith. And another more thing: Into your BEGIN_MESSAGE_MAP you have to introduce ON_WM_SYSCOMMAND().
That's all for now !!
MaestroProgramador.Com
Where every source code is loved like a girl.
|
|
|
|
|
I know that, do you know how to do it in the IDE(jsut like to deal with the menu item event)?
|
|
|
|
|
There's no way to do it through the IDE, only that way. (And is the best...)
MaestroProgramador.Com
Where every source code is loved like a girl.
|
|
|
|
|
I see.
I miss VS 6 so much!!!
|
|
|
|
|
Well, as you can see, if you created your toolbar by code (is the only way)... you also cannot introduce events with IDE... I don0t miss VS6, .NET is the best technology nowadays.
MaestroProgramador.Com
Where every source code is loved like a girl.
|
|
|
|
|
I can use classwiard to do that:
Choose a Class name
select right object Id
select command message
That is it.
|
|
|
|
|
Does anybody know what would be an equivalent function to 'GetProcessMemoryInfo' in Unix? I am trying to write a quick feature to check how much memory the processor is using (how much new, malloc, has been called). 'GetProcessMemoryInfo' is what I used in Win2k but I wasn't sure what to use in Unix.. Help..
|
|
|
|
|
From my view class, which spawns a bunch of modeless dialogs, I want to programmatically close the CDialogs. I used EndDialog(1) and it seems to work except that the docs say thats for modal dialogs, and mine are modeless.
Appreciate your opinion,
ns
|
|
|
|
|
|
|
Sorry, this has probably been answered a thousand times so far. I want to paint the background of my edit controls a specific color. LOL, everything I try always seems to paint the background of my TEXT in the edit control a color, but I want the entire control painted that color, and before any text is entered! This is probably just a couple of lines I'm sure, but the help would be appreciated!
Thanks
Douglas A. Wright
dawrigh3@kent.edu
|
|
|
|
|
From what I recall the thing is a little tricky, but fortunately Yury Golstman has it all wrapped up in a beatiful manner as shown in his article Colored/Blinking Controls and Dialogs with any Font[^].
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Cant get this to build on VC++ 6.0, Win2000.
Error when run pre-built ver. :the procedure entry point TzSpecificLocalTimeToSystemTime could not be located in the DLL KERNEL32.dll.
When attempting to re-build the .exe on my own, I get the undeclared identifier on this var/object/method. IS there a .h file missing?
"g:\program files\touch\touch.cpp(307) : error C2065: 'TzSpecificLocalTimeToSystemTime' : undeclared identifier"
Perhaps a lib I need to link with? (I tried <time.h>...)
Appreciate a nod, thx
deraeler
deraeler@hotmail.com
|
|
|
|
|
MSDN docs say this function is WinXP-specific.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|