|
I'm looking for software to do an "automated plane ticket search". ALL sites force you to give start/stop dates and do not allow ranges. I want to find the cheapest flight in a certain period and it looks like I'll need some code to do this. Unfortunately I have no idea on how to iterate on a web search page.
|
|
|
|
|
What do you good people do ? I need to run several different post build apps and a batch file seems a bit clunky. Any good ideas that fit with the VS.NET macros etc ?
|
|
|
|
|
I want to send a string to a process (exe) for some changes and return back to the calling process.
I cannot use WM_COPYDATA because it is only one way.
Any suggestion
Kiru
|
|
|
|
|
kirucodeproject wrote:
I cannot use WM_COPYDATA because it is only one way.
If window A can send the message to window B, then why can window B not send the same message to window A?
Have you looked into the other forms of IPC such as DDE, clipboard, mailslots, pipes, sockets.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Thanks.
DLL which is plugged by some ODBC client can call the exe for string changes and wait for the changes and continue. Therefore, it cannot send message back. Can i use call back. dll -> launch an exe (createProcess)for the string change. Can the DLL call a callback function in exe?
|
|
|
|
|
Hi all.
I write a smale Win-App with VS.net 2003 (using MFC).
During testing I encounter a problem which should not exist (as M$ wrote @ MSDN)
After i open the Database (MS Access / SQL Server) and call the
SetLockingMode(CRecordset::pessimistic) to protect the Record.
As M$ wrote before ..calling the Edit() function.
But I allways get the Error message "Lockmode is not supported".
I had installed latest MS-SQL ODBC Drivers and using MS-Access 2003 as well MS-SQL Server 2000 SP4 but with both I encounter the same message.
Anybody have a idea what to do ??
Do I have to write my own Ttransactionserver which handle this ??
I think it's all M$-Product so interoperability should be no problem..
or I'm completly wrong in this case ???
Big THX: for any help regarding this problem (I'm sure I'm not the only one out there)
C'ya
Mantra
|
|
|
|
|
Nobody ??? Tought here are the real code-gurrus...
So I'm the only one with this problem or what ?
Cheerz
|
|
|
|
|
Dear Friends,
I am new to VC and would like to know how can I see the .lib file in my workspace window.
Please write to me and help me ASAP.
Thanking You
With Regards
Bilar
|
|
|
|
|
On the fileview rightclick and add the .lib file that you want to add.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
hi all
with an mfc multi document interface windows application running on xp with many (several
hundred) mostly modeless form views i have encountered unexpected behavior with the
controls on the forms. for example when clicking a button to open a file open dialog, the
dialog gets instantly closed etc. adding more form views can crash the application.
is there a limit to the number of views or controls per application. each view in the application can have 20 controls so the total number of controls can exceed 250 * 20 => 5000
another behavior which may give some clues is that when adding above 5000 controls i.e. typically over 250 views, adding subsequent views becomes increasingly slow (the time taken for the view to be drawn on the screen)
any ideas how i can correct the unexpected behaviour?
thanks for any help
mike
|
|
|
|
|
You are probably hitting an upper resource limit on your PC. What you describe has happened to me in the past when I had very large number of views open. Also once when I had a resource leak (ICON) which was causing problems.
Why do you need so many views open at a time?
Roger Allen - Sonork 100.10016
Strong Sad: I am sad I am flying
Who is your favorite Strong?
|
|
|
|
|
thanks for your comment. could you suggest how i could investigate a resource leak?
most of the views are hidden as they only very rarely need to be shown in order to change settings and most of the settings are set in advance and not presented to the user. many views belong to similar "building block" modules and are multiple instances of a few modules implemented as dll s.
|
|
|
|
|
mike.dibley wrote:
for example when clicking a button to open a file open dialog, the
dialog gets instantly closed etc. adding more form views can crash the application.
huh ... maybe there's a resource leak or memory leak somewhere that prevent the dialog being created; or ID conflict somewhere.
mike.dibley wrote:
is there a limit to the number of views or controls per application. each view in the application can have 20 controls so the total number of controls can exceed 250 * 20 => 5000
maybe there's a limitt for for controls visible at the same time ( or created at the same time, even if they are not visible )
(off-topic) I always find it strange that people create UI with tons of controls/forms at the same time, it must really be confusing for the users.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
thanks for your comments
most of the view are "hidden" ie visible set as false.
have you come across any tools for detecting memory leaks?
please see previous reply for the comment about the number of views presented to the user
|
|
|
|
|
How can the Thumbnail view be set for the Common dialog control either before or when the Common Dialog File view is loaded ? I would like users to see their image files as thumbnails instead of names only.
|
|
|
|
|
One direction seems to be to use the
Ifolderview::SetCurrentViewMode()
Has anyone used this and could they post some code ?
Regards
|
|
|
|
|
I have a peice of code here:
CFont* pFont = NULL;<br />
LOGFONT lfNav;<br />
<br />
pFont = m_cNextPg.GetFont();<br />
pFont->GetLogFont(&lfNav);<br />
lfNav.lfHeight = 30;<br />
_tcscpy(lfNav.lfFaceName, _T("Webdings"));
m_cBtn.SetFont(CFont::FromHandle(CreateFontIndirect(&lfNav)),TRUE);
You can try it out on this piece of code by paste this code in OnInitDialog(), and be sure you have a button..
My question is: Can I change the font type to "webdings"... How to do that?
THank YOu @!
|
|
|
|
|
hi guys, i hv a application which written in VC++. and it need to use a .sys file and 2 dll file.
is there any article related to how to make a setup which can automatically place these files in the system directory. ie: WINDOWS\SYSTEM32\Drivers
thank you in advance!!
|
|
|
|
|
To do it properally you need something like InstallShield/NSIS/MSI etc etc etc.
Personally, Id go for NSIS - free, poweful, and open source.
http://nsis.sourceforge.net/home/
If its just a simple app you could write one - but why bother when someone has done it for you.
|
|
|
|
|
Hi,
I am using multithreading.
Three threads call the same function say xxx(),these three threads will be doing some processing on the items in the listcontrol,all these three threads are running.
I need to delete a particular row from the list control,when specific requirement is met.
The listcotrol is feeded by the main thread.
Can u please suggest me the way to delete the items,as the deletion is not happening the expected way.i.e,some other row is getting deleted.
|
|
|
|
|
To handle this case, you should only have one thread that ever adds/deletes/modifies items in the list control. Normally this should be the UI thread. You r worker threads should post messages to the worker thread with information that identifies the item it needs to be actioned on. This way the UI thread can look it up correctly (even if its moved) and take the right action.
Roger Allen - Sonork 100.10016
Strong Sad: I am sad I am flying
Who is your favorite Strong?
|
|
|
|
|
check out www.infogist.com,download it and run.
You see that he is able to delete and add to the list simultaneously.
|
|
|
|
|
Anonymous wrote:
You see that he is able to delete and add to the list simultaneously.
Ok, but what does that have to do with other threads updating the UI? The only thread that should be accessing the list control is its owner. All other threads, whether they are adding or deleting, should be posting a message.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Each thread should post a message, indicating what item to delete, back to the primary thread that owns the list control. Any other way is not guaranteed to work.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I have previously installed the platform sdk to a pretty dumb path.
I have cancelled the action.. but there were still some files in the directories. Tried to deinstall the platform sdk -> and then make a clean install:
pretty dumb, because it doesn't let you choose the path when installing the 2nd time.
So i tried to delete all the registry keys -> but it doesn't let you choose the path when installing the 3rd time.
Any ideas ?
"Just looking for loopholes." W. C. Fields American actor, 1880-1946, explaining why he was reading the Bible on his deathbed.
|
|
|
|