|
Hello Chaos,
Have you try for this. Use all Macros starting with cap .
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
the opticam has a built in motor; I'm looking for an api to control that motor. The macros on that site (as far as I can tell) only deal with the normal webcam functions on the cam (unless I'm over looking something).
Thanks anyway.
|
|
|
|
|
Hi everyone
I downloaded visual C++ express edition from the internet, somehow i dont have the build operation, is there any other way to compile the program or should I download something else.....any link or info would be helpful
Thanks!
ashira
|
|
|
|
|
what do you mean "dont have build operation" - build is failing or you don't know how to build.
-Saurabh
|
|
|
|
|
well, there is no build tab. There are all the other tabs including debug but no build tab...so how do I compile the program in the express edition
|
|
|
|
|
I think you are opening a source file(s) without a project. In visual studio you must create a project and add files to it to be able to compile. To create project use File->New->Project.
-Saurabh
|
|
|
|
|
first set the project and workspace settings properly. then try doing it.
Vasanth
|
|
|
|
|
I would like to write values to a file, and now the member of Class A is
const valueType *getValues(int start) const
{ evaluate(); return (const valueType *)(values + start); }
I tried to use CString/_gcvt to convert it to string/charm=, but failed.
Anyone can help me how to realize it?
thanks
|
|
|
|
|
Hi,
I think sprintf will do the trick for your Question. I didnt try it.
#include <stdio.h>
#include <string.h>
char *DoubletoStr(char *s, double dd);
int main(void)
{
double values2[] = {34709.22, 3746.55, 23456};
char value[32];
int i;
DoubletoStr(value,values2[i]));
return 0;
}
char *DoubletoStr(char *s, double dd)
{
char *endp;
sprintf(s,"%f",dd);
for(endp = s+strlen(s); endp!=s;endp--)
{
if(*(endp-1) != '0'&& *(endp-1) != '.')
{
*endp = '\0';
break;
}
}
return s;
}
Good Luck.
Helping others satisfies you...
|
|
|
|
|
not sure I understood the problem. if you have an array and you want to simply DUMP it to a file, you don't need to do any convertions. the data (in the memory) is already stored in bytes (and bytes are the same, memory wise, as chars). just use the sizeof(float) * the number of elements, and cast that array to a char* variable.
If you want to convert the data to a text data, you'll need to format it. either use CString, of sprintf
Hope this helps.
|
|
|
|
|
I am new to DLL. I am developing a directshow filter (DLL project), and I need to use some functions from other DLL, can I develop the DLL based on other DLL? Thanks
|
|
|
|
|
|
I am using the DSOFramer control to try in insert an Excel Chart into an MFC Dialog. I can get a chart with sample data to appear, but am not sure how to get my data into it or customize the graph. I have read the microsoft article explaining it, but need a little more help! Any info would be greatly appreciated! Thanks!
Jen
|
|
|
|
|
I try to edit xml UTF-8 documents using a CRichEditCtrl. If I set the text without the magic code for UTF-8 it's all ok, but I cannot see UTF-8 characters from cyrillic codes correctly. Ok, using the magic code in front of the text the characters are shown correctly. The control removes the magic code itself.
But: If I use the magic code, the character at 0x1FFB and each 0xFFFE further is destroyed. I've checked that with SetWindowText() and GetWindowText(). The size is set using LimitText().
I've checked that with "RICHEDIT", "RICHEDIT20" and the RichText-ActiveX-Control. With VC 6.0 and VC 8.0. Always the same behaviour.
Anyone told me this bug had the RICHTX32.OCX before Windows 2000 SP4 too (belongs to insert or delete characters from the control). But it's now solved.
I cannot use the ocx. It seems the bug is in CRichEditCtrl(2).?
Thanks for any help.
P.S. The program itself doesn't use UNICODE.
-- modified at 14:31 Monday 13th March, 2006
|
|
|
|
|
i want to pack my vc++ project's executables and the supporting dlls as an installable pack. is it possible. if so how can i make it
Vasanth
-- modified at 13:00 Sunday 12th March, 2006
|
|
|
|
|
You have to create an installer package. There are many programs out there for doing this, I use InnoSetup[^].
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
thank you for ur suggestion. i will try it and reply you.
Vasanth
|
|
|
|
|
Hi
I have a listview control, created with single selection, the list contains the names of printers, port names etc. When I right click an item how can I display the context menu that is displayed when you right click a printer object in Printers and Faxes ? i.e the user sees the same menu to be able to delete/rename printer, click the properties item etc.
I'm using Visual C++ 6.0 on Windows XP, and know how to obtain a handle and open the printer in question and use the PrinterProperties call, but I want to display the menu as you can in Printers and Faxes.
Thanks in advance
|
|
|
|
|
Hi pgibson007700 ,
Can you see to view context_menu in the right click?
|
|
|
|
|
I have not written any code yet to process the right click, all I want to do is what Printers and faxes does i.e displays menu with Open, Printing Preferences..., Properties etc, remember my list control with only contain a text item, which is the name of the printer. Therefore I can obtain server name etc and use OpenPrinter to obtain a handle etc.
|
|
|
|
|
if you want to view Context_menu in the right click
CMenu menu;
menu.LoadMenu(IDR_MAINFRAME);
CMenu *pContextMenu=menu.GetSubMenu(0);
BOOL o=pContextMenu->InsertMenu(0, MF_BYPOSITION | MF_STRING | MF_DISABLED, 0, "StL OBJECT");
pContextMenu->TrackPopupMenu(TPM_LEFTALIGN|TPM_LEFTBUTTON|TPM_RIGHTBUTTON,point.x,point.y,AfxGetMainWnd());
/*{
CPoint point;
GetCursorPos(&point);
}*/
this section BOOL o=pContextMenu->InsertMenu(0, MF_BYPOSITION | MF_STRING | MF_DISABLED, 0, _T("or anything"));
I reply to question and this is here it can to delete
-- modified at 13:22 Sunday 12th March, 2006
|
|
|
|
|
Hello,
I am to do something as simple as browse the network neighborhood and return the path selected... After a bunch of research the only thing I found that really fits my needs is an article by Paul DiLascia.
http://msdn.microsoft.com/msdnmag/issues/05/06/CAtWork/
Anyway, I am trying to modify his code to only display the network neighborhood and nothing else... He provides 2 functions for filtering out items. I have been playing around with this for hours and I can't seem to figure it out. Can anyone help me out? I only want to display the network neighborhood.
HRESULT CFolderDialog::OnGetEnumFlags(
IShellFolder* psf,
LPCITEMIDLIST pidlFolder,
DWORD *pgrfFlags)
{
BFTRACE(_T("CFolderDialog::OnGetEnumFlags(%p): %s\n"),
psf, GetPathName(pidlFolder));
return S_OK;
}
HRESULT CFolderDialog::OnShouldShow(
IShellFolder* psf,
LPCITEMIDLIST pidlFolder,
LPCITEMIDLIST pidlItem)
{
BFTRACE(_T("CFolderDialog::OnShouldShow(%p): %s: %s\n"), psf,
GetDisplayNameOf(psf, pidlFolder, SHGDN_NORMAL),
GetDisplayNameOf(psf, pidlItem, SHGDN_NORMAL));
return S_OK;
}
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
|
Thanks, I have looked at that before but I would prefer to use this other method.
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Actually I have to override these functions.. Here is the following but I am still unsure on how to filter...
HRESULT CMyFolderDialog::OnGetEnumFlags(IShellFolder* psf, LPCITEMIDLIST pidlFolder,
DWORD *pgrfFlags)
{
BFTRACE(_T("CMyFolderDialog::OnGetEnumFlags\n"));
*pgrfFlags = SHCONTF_FOLDERS;
return S_OK;
}
HRESULT CMyFolderDialog::OnShouldShow(IShellFolder* psf,
LPCITEMIDLIST pidlFolder,
LPCITEMIDLIST pidlItem)
{
BFTRACE(_T("CMyFolderDialog::OnShouldShow(%p): %s: %s"),
psf, GetPathName(pidlFolder), GetDisplayNameOf(psf, pidlItem, SHGDN_NORMAL));
SFGAOF attrs;
psf->GetAttributesOf(1, &pidlItem, &attrs);
BOOL bShow = attrs & (SFGAO_FILESYSTEM | SFGAO_HASSUBFOLDER);
BFTRACE(_T(" [attrs: %08x]: %s\n"), attrs, bShow ? _T("Yes") : _T("No"));
return bShow ? S_OK : S_FALSE;
}
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|