|
Excellent, very good, nice work, good skill, ...
Yeah, i wrote "ATDP118\015\012", this code will work.
By the way, ATDT is for Tone dialing and ATDP is for Pulse dialing ...
Thanks alooooot again for your helps ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I have other question about MSCOMM ...
What is DTREnable and RTSEnable ???
I read MSDN, but i din't understand.
Please explain about it ...
And please explain to me, i must put true in DTREnable ??? or not ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
As far as I understand it, it's got something to do with the events MSComm generates...
If you put DTREnable to true, you will get a DTREnable-event on the moment the DTR light on your modem goes on or off. The same is true for the RTSEnable thingy.
Best practice is to put both values on true. This can help you a lot if you implement the communication on an event-driven manner... If you're sure you're never going to use the event anyway, I think it's okay to put it to false..
Structured programming vs. chaotic mind boggling
|
|
|
|
|
hmmm,
You write *event* in your reply ...
What is thease events ???
Does it is: Recivieing and sending events ???
So, please explain about thease events ...
Thanks.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
MSComm can fire a function (let's say an event handler) every time something happens, like when the input or output buffer is full...
You can catch these events by adding an event handler to the MSComm object on your dialog using the classwizard. It also fires events for state-changes in the modem like the DTR or RTS light going on or off...
I can't help you that much on events, though, because I wrote around these events. I never liked events that much because they only make things more difficult to understand....
Structured programming vs. chaotic mind boggling
|
|
|
|
|
hmmm,
I think best way is using of MsComm defualt ...
In MsComm defalts: DTREnable is true and RTSEnable is false ...
In last thank you again for all helps ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi again.
I wrote sending data section in my program ...
Now, i want to create getting data section, just i want to know for do it, i must use of GetInput() or SetInput() or ... ???
For example for sending, we used of SetOutput(), now for getting ???
I'm watting for your reply ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I have written an ATL com dll that manipulates some data, but now I want to add a Dialoge to the Dll to display the data ect... I have gon through the wizard and inserted an ATL dialoge but I am not too sure what I have to do now. It does not have an interface or anything like that so how am I supposed to display the dialoge from the calling application. How do I add any of my com objects to the dialog class, its doen't seem to like it at the moment.
If anybody has any any demos that would be great
Cheers
AndyC
|
|
|
|
|
Could someone please tell me how I know when user clicks on a bitmap (object of CStatic) in a dialog? I have got as far as making a dialog with a picture on it and dialog class with bunch of mouse message functions like OnLButtonDown and OnMouseMove and so on. I've also turned on Notify option for the static and given it a unique ID. ...Now what do I do?
Thank you.
|
|
|
|
|
I would just use GetWindowRect on the static and check if I am inside the rect using PtInRect and the mouse pos ( in LButtonDown).
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
Once you give the static control the SS_NOTIFY style, it sends its parent an STN_CLICKED notification when the user clicks it.
--Mike--
http://home.inreach.com/mdunn/
#include "buffy_sig"
|
|
|
|
|
Thank you very much Christian and Michael, I didn't know message was sent automatically. On a related note, but different aspect of it, there is something I don't quite understand.
By trial and error, I figured today that things like Slider controls message goes to OnNotify, and Static messages go to OnCommand. What I don't understand is, how do they differ? In Class Wizard, there are:
OnChildNotify
OnCmdMsg
OnCommand
How do I know what message goes to where? How do I pick the right one in the future, without trial and error?
Thank you
|
|
|
|
|
I have a question I am running a dual processor Xeon processor running IIS 5.0 and serving pages / info from an Access DB. I havnt run into any problems yet, but here is my question.
Is there a maximum of concurrent users that can query the DB at one time?
Are there any relevant restrictions that using an Access DB over say SQL server that I should be aware of.
Can anyone provide me with information as to the benefits related with running a SQL Server over an access DB?
It seems that when I am page loading from a MAC the server really chugs? any insight? I can use many PC's concurrently, but when I access the website with a MAC its quite a different story.. Any Help / Finger pointing to help would be appreciated.
recurse.org - Recusion For the Rest Of Us.
|
|
|
|
|
Hello, the codegurus around the world.;)
Really? Did you use Access Database?
Access Database isn't the thread-safe.
That is, Access Database can't deal with con-corrent aceess on the web service.
SQL server or Oracle actually use TCP/IP, meaning Socket level exchange.
Or as long as you write the program with thread, Access database may be
the thread safe.
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
Just a question, I have created a group box with check boxes in it. I would like to use the graying out effect to gray out the rest of the check boxes. Can anyone help me know where to do this at. Do I do it in the function OnInitDialog() or where. I know to use the EnableWindow method, but am unsure as to where specifically to do that in my program. I have each check box defined as a member variable and I have a pointer to each check box. THanks for any help in advance.
|
|
|
|
|
If you disable ( grey out ) the other check boxes, you will not be able to click on them to select them, as they will be disabled. If they were being disabled based on sub choices depending on which one is clicked, then set it up in OnInit and set it to what it should become in the handler for clicking wach check box.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
On the surface this seems like a case where you might want to consider using radio buttons instead of check boxes, as it seems like you're trying to get the same functionality out of the checks that is built into a group of radios.
JMHO.
|
|
|
|
|
Hi,,
I have a function,,
CPoint Coordinates(CPoint pStart, CPoint pEnd)
{
return result;
result.x = pStart.x + pEnd.x;
result.y = pStart.y + pEbd.y;
return result;
}
and in my CView class, i have :
.
.
.
.
CPoint test = Coordinates(Start, End)
the compiler gives me the following error:
error C2664: 'Coordinates' : cannot convert parameter 1 from 'const class CPoint' to 'class CPoint &'Conversion loses qualifiers
what should i do?
Ehsan Behboudi
|
|
|
|
|
First, change Your coordinates function to create result first, then return it. As I suspect You have done this in code.
CPoint Coordinates(CPoint pStart, CPoint pEnd)
{
CPoint result;
result.x = pStart.x + pEnd.x;
result.y = pStart.y + pEnd.y;
return result;
}
Everything looks ok. But check, whether the method from within You are calling Coordinates function is const. This may be the source of the problem.
One more thing: I think that CPoint has already +CPoint operator defined:
void operator+=(POINT point);
CPoint operator+(POINT point) const;
|
|
|
|
|
You should also get rid of the return at the top so your code executes ;0)
If you need to, you can do a const_cast<cpoint> to remove the const-ness ( if it's coming in const from somewhere you cannot control). I'm sure operator + is defined for CPoint in any case.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
How can I manually set the height of the drop-down area for a CComboBox?
I've dynamically created a number of combo boxes to put on a dialog (they don't exist on the dialog resource), but when they are displayed the drop-down does not show the list because it's only about 1 pixel high. The list items are there because I can scroll between them using the arrow keys.
|
|
|
|
|
To change the ComboBox Drop-down Height all you need to do is press the arrow in the right of the comboBox. This will cause it to open. There you can change its height and compile.
I Hope this can help
Santiago Suárez R.
|
|
|
|
|
The comboboxes don't exist on a dialog resource for me to be able to change the drop-down height as you suggest (I am well aware of this approach!).
I need to be able to set the drop-down height from the code, becuase the comboboxes are created dynamically.
|
|
|
|
|
You can set the height of combo box dropdown by changing the height of the combobox.
Like:
m_wndCombo.SetWindowPos(NULL,0,0,200,40,SWP_NOMOVE|SWP_NOZORDER|SWP_NOACTIVATE);
But If you make height too small their seem to be no effect.
Also the hright is rounded to integral value if CBS_NOINTEGRALHEIGHT style is not set.
|
|
|
|
|
Thanks very much
|
|
|
|