|
memcpy(m_buffer+6, bAnswer+6, 1000-6);
this will copy all 1000-6 BYTES from bAnswer to m_buffer starting from the 6'th BYTE.
|
|
|
|
|
Same thing but:
memcpy(m_buffer, BAnswer+6, 1000-6);
Thank's...
|
|
|
|
|
ohadp wrote:
memcpy(m_buffer+6, bAnswer+6, 1000-6);
I know what you meant, but I just wanted to offer a minor clarification. Since the first byte is at position 0, and the second byte is at position 1, the sixth byte would be at position 5.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hello,
Some time ago there was a poll on the Code Project about "What do you use for authoring installations?". One of the possible answers was "Visual Studio (MSI)", and it took most of votes (24%). Most of the tools I know (InstallShield, Wise, VISE, InnoSetup, NSIS) were far behind. I wonder what they meant by "Visual Studio (MSI)". May be I am stupid, but I never heard about authoring installations this way.
Thanks
|
|
|
|
|
In Visual Studio* open the New Project dialog, select "Setup and Deployment" projects from the tree on the left and then you can select a variety of project types on the right. The "Setup Project" produces an MSI (+ Setup.exe + setup.ini) as its output.
* This may only be for Visual Studio 7.x (I can't recall if VS6.0 had it)
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
|
|
|
|
|
Thank you. I think this is about VS.NET. I use Visual C++ 6.0 and cannot find such feature.
|
|
|
|
|
Microsoft Installer, maybe?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi
I have a header file x.h in this I have #include "y.h"
In y.h file I want to use the class declared in x.h. But if I include x.h in y.h file, it is giving me an error saying class X is not decalred.
Could anyone tell me how to solve this?
Regards
Neha
|
|
|
|
|
x , y , y , x , ... *uggg*
put this line where you using it.
class X;
MSN Messenger.
prakashnadar@msn.com
Tip of the day of visual C++ IDE.
"We use it before you do! Visual C++ was developed using Visual C++"
|
|
|
|
|
Thanks for the reply.
Here is the code
In X.h
#include "y.h"
Class X
{
}
In Y.h
#include "X.h"
Class X;
Class Y
{
X m_Item;
}
In this case I will get a error as
'm_Item' uses undefined class 'X'
How to slove this?
|
|
|
|
|
Instead of using the class X, use a pointer to the class:
Class Y<br />
{<br />
X* m_Item;<br />
}
This will solve your problem because you won't have to include the X.h header in the Y.h file (you'll have to include it in the Y.cpp file instead).
Hope this helps
|
|
|
|
|
Just remove line
#include "y.h"
from X.h file
it should work
greatest thing is to do wot others think you cant suhredayan@omniquad.com>
messenger :suhredayan@hotmail.com
|
|
|
|
|
How do i set the size of column/row of the grid?. Also, is there a way when i click on a cirtain column, the data sort itself?
|
|
|
|
|
MFGrid.ColWidth(0) = xxx;
greatest thing is to do wot others think you cant suhredayan@omniquad.com>
messenger :suhredayan@hotmail.com
|
|
|
|
|
ColWidth is not a member of msflexgrid but SetColWidth is but what the parameter to use?
|
|
|
|
|
Hi,
How does LVA_SNAPTOGRID (The Arrange function) work in a CListCtrl?
I am trying to e.g. have a grid of images displayed.
Lets say 6x5 in a CListCtrl but even when I use SetIconSpacng the vertical spacing
is not correct. The horizontal spacing is ok though.
Ideally I would like to have one list ctrl with grid lines drawn on.
Then the user can put the desired image inside the relevant portion of the grid.
At the moment there is a large space between each image on the vertical.
If I could just work out how to align 4 images in a 2x2 grid then I could probably move on from there.
Thanks,
|
|
|
|
|
Have I not explained this sufficently enough?
The basic question is that I would like to have 4 images in a list ctrl but I would like
to remove the text description for each image. I would like to arrange then with two on top and two images below.
Regards,
|
|
|
|
|
i have made an application in which multiple clients can send messages using CAsynSocket. Now i want to add a functionality that when a client tries to connect to the server then an alert is given from system try. just like on msn messenger some new body signs in then an alert message is genrated. Can some body help me about that.
|
|
|
|
|
|
I have a very complex dialog. Sometimes OnOK() doesn't work, meaning that when OnOK() is called, the dialog still there. Sometimes OnTimer() wasn't called, seems that the dialog hangs in somewhere. Any suggestion?
Thanks!
|
|
|
|
|
before exiting the OnOk method call the baseclass OnOk() like this CDialog::OnOk();
ykg888@yahoo.com wrote:
seems that the dialog hangs in somewhere. Any suggestion?
Yeah one suggestion, debug the app and find out where it is hanging.
MSN Messenger.
prakashnadar@msn.com
Tip of the day of visual C++ IDE.
"We use it before you do! Visual C++ was developed using Visual C++"
|
|
|
|
|
ykg888@yahoo.com wrote:
...when OnOK() is called, the dialog still there.
How are you verifying that OnOK() has been called?
ykg888@yahoo.com wrote:
...seems that the dialog hangs in somewhere.
At this point, is the dialog still visible?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I am Working on TAPI 2.0 and I develop a Software like Predictive Dialer IN Visual C++ 6 and
Facing Some Problems.
Problem 1: Problem is that I want to Detect Any Tone e.g(Fax Tone, Ringing Tone, Busy Tone.....)
Problem 2: My program also skip few Events (Ringning, Accepted).
I Used these Steps
Line Initialize:
----------------
lparams = new LINEINITIALIZEEXPARAMS;
lparams->dwOptions =LINEINITIALIZEEXOPTION_USEHIDDENWINDOW;
lparams->dwTotalSize = sizeof (LINEINITIALIZEEXPARAMS);
lparams->dwNeededSize = sizeof (LINEINITIALIZEEXPARAMS)*2;
lparams->Handles.hEvent = MyCallBack;
1>lineInitializeEx(&hLineApp,hcurr,MyCallBack,szAppName,&no,&ApiVersion,lparams)
.....(Few Line of Code)
2>lineOpen(hLineApp,dwDeviceID,&hLine, ApiVersion,0, (DWORD)MyCallBack,
LINECALLPRIVILEGE_MONITOR,LINEMEDIAMODE_INTERACTIVEVOICE , 0)
......(Few Line of Code)
Select Device
-------------
lineGetDevCaps(hLineApp,i,dwAPIVersion,0,lpLineDevCaps)
.....(Few Line of Code)
Dial Number
-----------
lineMakeCall(hLine,&lphCall,lpsz ,0,NULL);
On Event Line_Reply
-------------------
lineSetCallPrivilege(*lphCall,LINECALLPRIVILEGE_MONITOR);
On Event LINECALLSTATE_CONNECTED
--------------------------------
LINEMONITORTONE LineTone[10];
LineTone[0].dwAppSpecific = CallBackInst;
LineTone[0].dwDuration = 750;
LineTone[0].dwFrequency1 = 400;
......(Few Line of Code)
lineMonitorTones(lphCall,LineTone,0);
I Use MODEM
Maze InterNal 56k Fax Modem ITU-T V.92/90
|
|
|
|
|
Ahmed Jahanzeb wrote:
Problem 1: Problem is that I want to Detect Any Tone e.g(Fax Tone, Ringing Tone, Busy Tone.....)
Problem 2: My program also skip few Events (Ringning, Accepted).
I think the problem is more likely to be the modem than your code. Modems only tend to support a small-subset of the TAPI interfaces. A lot depends on the TSPI used. I've rarely seen a modem that gives anything other than a LINECALLSTATE_CONNECTED when making outgoing calls.
I'd recommend downloading some of the test apps (EnumTapi/Phone) from JulMar samples[^]
These should give you a clearer idea of what your modem supports.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
How can I send a fax programmatically?I am very interested in this subject.
|
|
|
|