|
Hi
When I call InvalidateRect function my application
quits with error. Who can help me?
Hovo
|
|
|
|
|
I wish to make a virtual input/output port to simulate the action of a digital I/O card in the PC. Is there any way that I can "trap" the I/O operations from a Win32 application and return suitable responses to simulate an actual I/O card?
This will allow program development using the virtual I/O card until the actual card is ready for installation.
|
|
|
|
|
I really don't understand your question. You can't directly access I/O ports from Win32 applications (well, you can use a hack in 9x, but it's not portable to NT).
Generally you would write a device driver to access the ports. So, all you do is create a dummy device driver that does nothing.
|
|
|
|
|
I have a dialog box, that creates an instance of a class. This class has a CDaoDatabase and a CDaoRecordset object withen it.
Withen the class I open and close both those objects.
The first time I open this dialog box.. everything runs fine.. the SECOND time it causes an ASSERT to fail.. now upon debugging this I find the ASSERT is being caused in the CDaoWorkspace..
I've found a temporary solution to this (I think).. if I call AfxDaoInit() at the start of the class, and AfxDaoTerm() at the end.. it seems to run fine.. But I'm guessing this isn't the proper way to go about fixing this problem..
Any suggestions on how to fix this? or clues as to why this is happening?
Thanks in advanced..
|
|
|
|
|
This sounds like the problem described in
http://support.microsoft.com/support/kb/articles/Q145/9/92.asp
(knowledgebase article Q1459920)
The article offers two other 'workarounds', but you're quite right in that AfxDaoTerm is involved.
|
|
|
|
|
I haven't been using WTL before but have recently been finding more and more stuff that made me interested... But with all this new .net stuff, is there any real point in learning this or should I just wait until the release of .net and then learn the new microsoft way?
/XTSea
|
|
|
|
|
I'm trying to control an existing instance of Internet Explorer with DDE.
For example, I can change the URL, or close an existing window, but what i can't do is to retrieve the current URL.
A very small doc in msdn says that you must connect to the DEE service IExplore, with the topic name WWW_GetWindowInfo, and the item name WWW_GetWindowInfo. And it says that both an Execute or a Request should work. But it doesn't seem to work.
Can somebody send me an example of code to achieve what i said?
oh, btw, i'm not using MFC, and i'm using the DDEML library.
Gabriel Soubies, student in France
gabries.soubies@supelec.fr
|
|
|
|
|
Hi,
I successfully crea the .chm file. But i want GUI like MSDN help.
Like two panes, on clicking an item in the left pane should give its contents on
right pane.
Thanks,
- Koteswara
|
|
|
|
|
If you fire up HTML Help Workshop, and open your project, click on the 'Project' tab and then on the 'Window' icon (the third one down I think). Now fill in / edit the options to suit your needs. You will want to use the 'Navigation Pane' tab and chek the box that says somrthing like 'show navigation pane'.
Now hit recompile and you should see what you want.
|
|
|
|
|
Hello,
I'm using throughout my application the macros __FILE__ and __LINE__ to write the position of some code into a log file. Now the (probably quite stupid) question. Why does this not work on the client side. I get NULL and 0 where __FILE__ and __LINE__ should appear in my log file.
What am I missing?
Best wishes,
Matthias Steinbart
|
|
|
|
|
I have developped a drawing application like AUTOCAD.Using this application a user can draw a lot of shapes and save the picture to the disk.My application supports drawing area more than the client area.So my application supports scrolling to see all the objects in the drawing area.So I need a mechanism by which I can draw objects greater than the client area.ie,while drawing an object by dragging I must be able to scroll the view so that I can draw the object to any part of the draw area with out being limitted to the client area.
|
|
|
|
|
How do I remove the focus on a focused item in a MFC TreeCtrl? I've tried the SetItemState but the flag TVIS_FOCUSED is not implemented and can not be used.
Suggestions?
/Jens
|
|
|
|
|
I'm currently writing a FTP-client and I would like to implement a class which resumes downloads if they're broken. So what I need is an example of this (hopefully mfc...) or some links where I can get more info about this.
/XTSea
|
|
|
|
|
Hi,
I want to prepare one compiled HTML file.
Looks like MSDN help etc (it should contain one left pane, and right pane,
on clicking on any item in left pane, the related html file come into right pane).
Ex: MSDN help
How to do this?
Any one has an idea, tell me some APIs or related ideas to solve this problem.
thanks in advance,
Perumalla Koteswara Rao.
---------------------------------------------------------------------
Genius is one percent inspiration and ninety-nine percent
perspiration. --Thomas Alva Edison
|
|
|
|
|
Hi Koteswara,
You need to use the "HTML Help WorkShop", this is a freeware program from Microsoft, it includes an API to hook up the help to your program. Read the following article at codeguru to get started "Starting with HTML Help" by Joep Oude Veldhuis.
http://codeguru.earthweb.com/help/html_help.shtml
In the article there is a link to download the program.
Best regards
Jose
|
|
|
|
|
I mean that I need something like a CScrollView which make much of the work for scrolling with code ready to go (and also I need zoom capability, but this is easier to do). Unfortunately it is not possible to have a CScrollView created in a dialog because the class is to much linked with doc and so on. So actually I need a kindof simple and ideal CScrollZoomWnd.
I have tried to put a CSplitter with CView inside my dialog since there are some good examples on www.codetools.com. But I found that it is not possible to have a CSplitter object with only one row and one column. The programm crashes.
Other ideas ?
Thanks
Pierre
|
|
|
|
|
Why don't U try the above splitterwnd with 2 rows and 1 column and give the size of the second pane as CSize(0,0)???
|
|
|
|
|
Hi All,
I'm new to MFC and am trying to write a dialog-based application which accesses an ODBC database. Multiple dialogs are involved and I can't figure out how to access the same CRecordSet object from each dialog class. Any help would be greatly appreciated.
|
|
|
|
|
One way to do this would be to change the constructor of each of your CDialog derived classes so that you can pass in a pointer to your CRecordset object.
|
|
|
|
|
Hi Everyone,
I'm using Visual C++6 and I'm wondering if there is a code that allows me to call up the OPEN AND SAVE dialog boxes. (i.e when you want to open an existing document in Words, a dialog pop up.)
How do I write codes for those dialog boxes for OPEN, SAVE, AND SAVE AS??? And how do I Use those dialog boxes to save things inside my application?? Do I have to connect the dialog box to the application?? PLMK. THANKS AGAIN!
Steve
|
|
|
|
|
Read up on the GetOpenFileName() and GetSaveFileName() APIs. If you're using MFC, look at CFileDialog .
|
|
|
|
|
What is the best method of preventing the download of certain elements of a web page (ie .gif, .jpg, .mpeg). I'm sure it's relativly simple, but I'm not too up to date on COM so it gets very confusing trying to go thru the documentation and the samples are not too helpful. Any thoughts would be appreciated.
|
|
|
|
|
I need a MFC class implementing a scrollable window inside a dialog. Any idea ?
|
|
|
|
|
Even a CWnd could be OK... It depends on what you want to do with that window!
If you are more specific you get more specific answers
|
|
|
|
|
I have MSVC++ 5.0 I want a RELIABLE method of detecting the number of buttons a mouse has within my program (inclusive of the Intellimouse Explorer), that will work under Windows 95/98/2000 and NT! I already know the following:
1.)Win32 will always report 2 mouse buttons no matter what type of mouse is connected to the system.
2.)Attempting to use the following code:
if ((hMouse = GetModuleHandle ("MOUSE")) != NULL)
lpfnInquire = (LPFNINQUIRE) GetProcAddress( hMouse, "Inquire" );
This technique will only work if MOUSE.EXE is specified as being loaded under the WIN.INI file! (Most people don't do this anyway, at least under 95. And I don't want to mess up other people's systems by writing to the WIN.INI!)
3.)I DO NOT want to have a list of every possible mouse type that can be connected to the system! (hoplessly dating my program!)
There should be a way (short of writing my own mouse driver) that I can detect the mouse driver and obtain this (number of buttons) information. What is it?
|
|
|
|