|
hi,
I want use TAPI3 to transfer & conference a call. How to do it?
anybody has a sample?
hi
|
|
|
|
|
|
Well i wan to learn more about programing so i am going to need help like tutorials and things like that. Well i am new so email me or post here to help me. I have experiance in some programing so i now the basic but need more to do.
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.
- The Jedi Code
|
|
|
|
|
Well, there's plenty of info on the site - why not try working through some of it and post questions when you get stuck ? Have you had experience in C++ ? If not, you should get some before trying any Windows specific stuff.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I am a beginner programmer and I don't know much about debugging but I get KERNAL32 errors when I hit the close button now and have no idea what to do. When I hit close I get this error box:
%Name% has caused an error in
KERNAL32.DLL
%Name% will now close
When I hit debug I get another one that says:
Unhandled exception in %Name%.exe (KERNAL32.DLL): 0xC0000005: Access Violation.
Then a yellow arrow is pointing at the following code:
BFF64346 xadd dword ptr [ecx],eax
Where should I be looking and what should I look for? I tried commenting out all functions etc except:
CDialog::OnOK();
Please help
-Matt Newman
|
|
|
|
|
One place to start is to display the call stack (alt+7 if memory serves). You may (or may not) be able to dclick back to some area in your apps exit code that gives you a clue.
|
|
|
|
|
Hi,
I'm trying to set the lparam of a TV_INSERTSTRUCT to an integer value and everytime I call GetTreeCtrl()->GetItemData(hItem) I always get back 0. Following is my code:
TV_INSERTSTRUCT tvInsert;
tvInsert.hInsertAfter = TVI_LAST;
tvInsert.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
tvInsert.item.hItem = NULL;
tvInsert.item.stateMask = 0;
tvInsert.item.state = 0;
tvInsert.item.iImage = 4;
tvInsert.item.iSelectedImage = 0;
int inputId = 17;
tvInsert.item.lParam = (LPARAM)inputId;
CString szName("Hello World");
tvInsert.item.pszText = (LPTSTR) (LPCTSTR) szName;
HTREEITEM hParent = GetTreeCtrl().InsertItem(&tvInsert);
CString szText(GetTreeCtrl().GetItemText(hParent));
int iId = GetTreeCtrl().GetItemData(hParent);
Does anyone know why I always get back a 0 in iId? This is very frustrating.
Thanks for any help you can provide,
Craig
|
|
|
|
|
tvInsert.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
Add TVIF_PARAM to that.
--Mike--
http://home.inreach.com/mdunn/
Ford: How would you react if I said that I'm not from Guildford after all, but from a small planet somewhere in the vicinity of Betelguese?
Arthur: I don't know. Why, do you think it's the sort of thing you're likely to say?
|
|
|
|
|
Thanks Michael,
Something so easy that I totally overlooked, works great...
Thanks again,
Craig
|
|
|
|
|
Hi,
I've create a very little bitmap button (that class is derived from CButton) and I don't want it draw a focus rect. In fact the focus Rect is draw over the bitmap and my button is so small that we are unable to understand it
so if you find a way to remove it, tell me please
thanks
Remi Morin
Rmorin@Operamail.com
Remi.Morin@Lyrtech.com
|
|
|
|
|
You need to override the DrawItem function to handle your own drawing.
There are many owner-drawn buttons that have bitmap support here already, e.g. CButtonSSL, which I wrote It would only take a few small changes to prevent the focus rectangle being drawn (just comment out the call to DrawFocusRect ).
Derek Lakin.
Salamander Software Ltd.
|
|
|
|
|
Hi
thanks for the tips but it's a big implementation for something so simple. I did'nt find what I'm searching for but I will. This is for a commercial application, in fact a application that we sold whit hardware, but this application will need modification/update very often, the reason why I'm doing it now (and i'm not using the old one) it's because modification/update are too hard. So I want to minimize the code. I'm doing a scroll bar derived from CWnd to get strange functionality, and I'm doing the little arrow at each end of my scroll bar. For these button, I don't want any Focus rect, everything else work already very well whitout so much code.
So I don't want add a big button class when CButton do already the job very well, except for that f*** focus rect.
Remi Morin
Rmorin@Operamail.com
Remi.Morin@Lyrtech.com
|
|
|
|
|
Dumb question from a beginer.. Whats the advantage of using this on your strings?
Rob Jones
|
|
|
|
|
if you use this, when you switch from non-Unicode to Unicode builds, your string constants will convert accordingly.
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
I want to add items to a tree which have incremental numerical labels, how can I do this?
I want my items to consist of the CString "Section" + the short value generated by a FOR loop.
i.e. "Section 0"
"Section 1"
......
"Section 120"
Please help!
Pete T
|
|
|
|
|
see one of the following:
CString::Format
sprintf
itoa
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
My money in CString::Format
Carlos Antollini.
|
|
|
|
|
Hi,
I'm currently using some code that I found in the forum to write a file to a database and it almost works. It appears that I have some memory leaks that I can't seem to find. Following is the code I'm using which is in a loop. I loop through a directory of images so I can load them into a database.
CFile tmpFile(fileName, CFile::modeRead);
LONG nTotalBytes = tmpFile.GetLength();
BYTE * inputBuf = new BYTE[nTotalBytes];
UINT nBytesRead = tmpFile.Read(inputBuf, nTotalBytes);
CLongBinary cx_LongBinaryImage;
cx_LongBinaryImage.m_dwDataLength = nTotalBytes;
BYTE* pITemp = (BYTE*) GlobalLock(cx_LongBinaryImage.m_hData);
memcpy(pITemp, inputBuf, nTotalBytes);
GlobalUnlock(cx_LongBinaryImage.m_hData);
CImageRs* cxTableImage = new CImageRs();
if (cxTableImage->Open(NULL))
{
cxTableImage->AddNew();
cxTableImage->m_MAKE = "Yamaha";
cxTableImage->m_MODEL = "YZF600RK/RKC";
cxTableImage->m_YEAR = 1998;
cxTableImage->m_NAME = FindFileData.cFileName;
cxTableImage->m_IMAGE.m_dwDataLength = cx_LongBinaryImage.m_dwDataLength;
cxTableImage->m_IMAGE.m_hData = cx_LongBinaryImage.m_hData;
cxTableImage->SetFieldNull(&cxTableImage->m_IMAGE, FALSE);
cxTableImage->SetFieldDirty(&cxTableImage->m_IMAGE, TRUE);
if(!cxTableImage->Update())
{
AfxMessageBox( "Record not added; no field values were set." );
}
cxTableImage->Close();
}
delete[] inputBuf;
If I call GlobalFree on cx_LongBinaryImage.m_hData I get an error because the CLongBinary calls GlobalFree in it's destructor. Also, when I run this code in the loop I get an error, "Could not update; currently locked by user 'admin' on machine 'MYMACHINE'." This happens when the loop is halfway through the directory, I'm not sure why this is happening. I'm currently developing on Win2000 with VC++ 6.0.
Thanks for any help you can provide,
Craig
|
|
|
|
|
I don't see a delete of cxTableImage ?
|
|
|
|
|
Tim,
Thanks for the reply, that's what it was. Sorry for the trouble on such a simple mistake.
Thanks again,
Craig
|
|
|
|
|
Why is it always easier to see the other guys bug?
|
|
|
|
|
How can i register a .dll or .ocx file in my program similar register it using regsvr32.exe?
is using the DllRegisterServer() function,which dll file will i load when i use the function?
|
|
|
|
|
You can find the answer somewhere in this forum.
There was some example-code in a thread in the last few days.
Search the Topics and Replies, then you'll find the code
regards
|
|
|
|
|
That might have been me..
http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=55401&tid=55395#xx55401xx
|
|
|
|
|
I want to retrieve icon like "my documents" in explorer but ...
My init function:
CShellUtil::CShellUtil()
{
SHFILEINFO shFinfo;
HIMAGELIST hImgList = NULL;
LPITEMIDLIST itemlist = 0;
bError=FALSE;
if (SHGetSpecialFolderLocation(0,
SIDL_DESKTOP , &itemlist) == NOERROR)
{
hImgList = (HIMAGELIST)SHGetFileInfo((LPCTSTR)
itemlist, 0, &shFinfo,
sizeof(shFinfo ),
SHGFI_SYSICONINDEX |
SHGFI_PIDL |
SHGFI_SMALLICON );
if(!hImgList)
{
bError=TRUE;
return;
}
m_SysImgList.m_hImageList=hImgList;
}
else
{
bError=TRUE;
return;
}
Function to display icon into Tree
HTREEITEM CShellUtil::AddSpecialItem(HTREEITEM hParent, int nFolder)
{
SHFILEINFO shFinfo;
int iIcon;
BOOL bIsCDROM=FALSE;
HTREEITEM hItem;
LPITEMIDLIST pIDL;
LPMALLOC pMem;
if(SHGetSpecialFolderLocation(NULL, nFolder, &pIDL) == NOERROR)
{
if(SHGetFileInfo((LPCTSTR)pIDL, 0, &shFinfo, sizeof(shFinfo),
SHGFI_DISPLAYNAME | SHGFI_PIDL |
SHGFI_ICON | SHGFI_SMALLICON))
{
if(SHGetMalloc(&pMem)==NOERROR)
{
pMem->Free(pIDL);
pMem->Release();
}
}
}
Icon = shFinfo.iIcon;
hItem=m_TreeCtrl.InsertItem(_T("Test"), iIcon, iIcon, hParent);
return hItem;
}
When i call 'AddSpecialItem', it's OK to insert special folder
from "CSIDL_DESKTOP" to "CSIDL_STARTMENU" and
from "CSIDL_DESKTOPDIRECTORY" to "CSIDL_LOCAL_APPDATA"-> DislplayName and Icon are OK
But there is a problem from "CSIDL_MYDOCUMENTS" to "CSIDL_MYVIDEO"
No icon and no display name and SHGetSpecialFolderLocation(..) return an error
I try with
if(SHGetFolderLocation(NULL, nFolder, NULL, 0, &pIDL) == S_OK)
but no success (return E_INVALIDARG)
I use lib from microsoft SDK august 2001 on win2000 Sp2 plateform with visual sp5
Please help
|
|
|
|