|
an int array, assume length is 10:
int ary[10];
now i need to display all of them - 5 of them every time as arrangement - no repeat, no missing.
i.e.
ary[0],ary[3],ary[6],ary[7],ary[8]
is one of them to be displayed.
any idea?
A nice tool for optimizing your Microsoft html-help contents.
Includeh10
|
|
|
|
|
What u mean by this???
>>>>> 5 of them every time as arrangement - no repeat, no missing.
|
|
|
|
|
Hi,
I am new to VC++, I just need to know how to print something in the child view that i have stored in the document class?? cn i use the archive object??
please help me wid this one
rMb
|
|
|
|
|
if u want to print them by printer, use SetMapMode(MM_LOENGLISH) to dc.
1n this mode, 100 pxels equal to 1 inch, Y direction is up.
A nice tool for optimizing your Microsoft html-help contents.
Includeh10
|
|
|
|
|
I'm tring to write a program that can control an opticam m1 webcam. I've installed it's driver, but I can't find an API I can use. does anyone know where I can find such an API?
Is it possable that the componey that made these device doesn't want to give out it's api?
|
|
|
|
|
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.
|
|
|
|