|
Waldman wrote: Also, do you think it would be easiest to use VB for the GUI of the database or is there a decent article on how to make one using C++
Doing Database programming in VB is almost brainless (that is, a 1st year programmer can look at the code and understand what is going on ... mainly because Microsoft made a whole bunch of assumptions about what you will want to do and doesn't let you do some of the nifty tricks). Database programming in C++ is far more complex. The GUI portion shouldn't matter too much, but the back end (where you plan to actually talk to the database) will be very different in terms of complexity between the two languages. It all depends on what your goals for the project are.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Hi,
Does anyone have any idea about the message with value 0x00AE that we receive in XP? I received this message only if I use the Appearance as "XP style" in Display properties under the tab "Appearance".
I was doing a paint in caption area (the place where Min, Max buttons are displayed) of an SDI, when I noticed that if I minimize and restore my application, the painting I did in caption area was getting overwritten with the default painting of the controls on the caption bar. I found that this undocumented message 0x00AE, caused this problem.
The same message 0x00AE, does not come in Classic style. Any idea on this?
Thank you,
AJ
|
|
|
|
|
I remember have the same problem a long while ago, though after looking through the same project file I cannot remember exactly how I handled it.
If memory serves, trapping the message has no effect. I think the trick was to trap all the NC* messages that would cause a repaint, and depending on what you are drawing, use a region to exlude the area you will draw to.
|
|
|
|
|
Thanks a lot for your reply.
The painting being overwritten is by a default message. How can I exclude a region from default painting?
Thanks,
AJ
|
|
|
|
|
hi all i had made dialog base application,it works fine when i click the enter button then application terminate i tried to handle it by adding function on key down event , is there any other alternate way to do it
and why it occur?
Tasleem Arif
|
|
|
|
|
You have to override the PreTranslateMessage handler. Something like the following:
BOOL CMyDlg::PreTranslateMessage(MSG* pMsg)
{
if ( pMsg->message == WM_KEYDOWN && ( pMsg->wParam == VK_ESCAPE || pMsg->wParam == VK_RETURN ) )
{
return 0;
}
return CDialog::PreTranslateMessage(pMsg);
}
Hope that helps...
|
|
|
|
|
|
|
tasleem143 wrote: when i click the enter button then application terminate i tried to handle it by adding function on key down event , is there any other alternate way to do it
Handle OnOk handller and remove default call to CDialog::OnOk()
"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
Support CRY- Child Relief and you
|
|
|
|
|
thanks it works from when i want to exit the application i was calling OnOK(),now its not working bcos i had overwrited it,then another solution is use exitprocess or exit which i dont think is good aproach..
is there is any other function except those two or i had to use 1 of thenm.
Tasleem Arif
|
|
|
|
|
|
cpallini wrote:
You're welcome.
ok
"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
Support CRY- Child Relief and you
|
|
|
|
|
tasleem143 wrote:
is there is any other function except those two or i had to use 1 of thenm.
PostQuitMessage() in case of Window and EndDialog() in case of dialog based application
"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
Support CRY- Child Relief and you
|
|
|
|
|
Hi Guys
Just anyone got any code or design sample for web scrapper? I want to develop it to grab the information from websites.
thanks in advance
Pats
|
|
|
|
|
NitinPatil wrote: Just anyone got any code or design sample for web scrapper?
I do, but it's a VB Script file.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi can you share the code ? or give me the idea how to do it? do you know how to build interactive web scrapper?
Thanks
Pats
|
|
|
|
|
NitinPatil wrote: Hi can you share the code ?
Here's one I used to get the current threat level:
Dim objIE
Set objIE = WScript.CreateObject("InternetExplorer.Application")
objIE.Navigate "http://www.whitehouse.gov/homeland/"
objIE.Visible = true
While objIE.Busy = true
Wend
Dim objTables
Set objTables = objIE.Document.all.tags("TABLE")
Dim objTable
Set objTable = objTables(12) ' get the 13th <TABLE> tag
Dim objRow
Set objRow = objTable.rows(0) ' get the 1st <TR> tag
Dim objCol
Set objCol = objRow.cells(0) ' get the 1st <TD> tag
Dim objImg
Set objImg = objCol.all(0) ' get the 1st <IMG> tag
MsgBox objImg.src The site has since been rearranged so the references are not accurate.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
For vs 2005 win xp
I can run one file but can't change to another file.
I tryed Msdn help but it's for Vs 6 and it doesn't work in vs 2005
Thanks
Moreno
|
|
|
|
|
|
sir_moreno wrote: I tryed Msdn help but it's for Vs 6 and it doesn't work in vs 2005
Says who?
http://msdn.microsoft.com[^]
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Thank's a lot it worked;)
Moreno
|
|
|
|
|
Hi all.
How can I retrive the complete path of "My Documents" folder?
Thanks
Rakesh Thakur
|
|
|
|
|
Try this.
TCHAR szPath[MAX_PATH];
SHGetFolderPath(NULL, CSIDL_PERSONAL , NULL, 0, szPath);
|
|
|
|
|
Hi,
Try this:
BOOL SHGetSpecialFolderPath(
HWND hwndOwner,
LPTSTR lpszPath,
int nFolder,
BOOL fCreate
);
-----------
Mila
|
|
|
|