|
Hi!
I would like to play an audio CD and be able to manipulate the datas from the CDRom drive(put them in frames and send them through a network).
I m a bit lost... what should I use:MCI or AVIStream?
If you have codes on which I can start learning...PLEASE send them to me...
(sorry for the english, I speak french...)
starn@skynet.be
Thanks a lot!!!!
|
|
|
|
|
My app is COM using WTL. On the main menu, we have a Reports pulldown menu. On the Reports options, there are right arrows indicating another pulldown menu. For other dialogs, we have buttons on the bottom (standard OK, Apply, Cancel), including a Reports button. They tried to implement it so that a context menu appears upon pushing the Reports button, but they had no luck. Right now that bottom button just brings up another dialog displaying options. Has anyone done this kind of stuff before?
Please help if you can
Thanks,
Lilian
|
|
|
|
|
That's simple, check out the Buttons section at this site for menu button samples. It just involves handling the WM_COMMAND message and calling TrackPopupMenu().
--Mike--
"There are only a limited number of jobs where they will ask to see the sausage. Most of them are in movies."
-- Christian Graus, 2/11/2002
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
I have a CMsFlxGrid control in a CFormView. I have two (2) questions which I am struggling with.
1. Is there any way to make a row in a grid two lines deep? That is, they can type information on the first line of the row, hit enter and continue typing information on the second line of the same row. So you have something like:
-----------------------------------
line 1 text | just one 1 of text
line 2 text |
-----------------------------------
So there are two (2) columns and one grid row, but the single grid row has two (2) lines of text.
2. Is there any way of adding a push button to a cell? Examples are cherished
Please, please, any response any one can give me will be greatly appreciated. There is not much documentation on this control.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
It's very difficult to make all of them...
The first option is not possible.
And the second one, is possible using a simple trick, only put the button, over the grid, in the point that you want. You can get the cordinated of a cell, and with that you can put the button in the correct place, usin SetWindowPlacement...
Regards....
Carlos Antollini.
Sonork ID 100.10529 cantollini
"The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a software patch and a user with an idea."
|
|
|
|
|
i have used INTtoHEX to convert some text to HEX but now I need to convert it back to read able text any cues?
AnsiString EditText = RichEdit1->Lines->Text;
for (int i=1;i<=EditText.Length();i++) {
RichEdit2->Lines->Text = RichEdit2->Lines->Text + IntToHex(EditText[i],2);
}
RichEdit1->Lines->Text = "";
RichEdit1->Lines->Text = RichEdit2->Lines->Text;
RichEdit2->Lines->Text = "";
|
|
|
|
|
There some articles in CP.
Check this
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Very crude, but i think this should work (send 2 chars at a time in your case)
int Hex2Int(char* hex)
{if (!*hex) return 0;
int tmp = 0;
if (*hex >= '0' && *hex <= '9')
tmp = *hex - '0';
else if (*hex >= 'A' && *hex <= 'F')
tmp = *hex - 'A' + 10;
else if (*hex >= 'a' && *hex <= 'f')
tmp = *hex - 'a' + 10;
return (tmp << (4*(strlen(hex)-1))) + Hex2Int(hex+sizeof(char));
}
/moliate
|
|
|
|
|
sorry i am not sure how to implement this on to a decrypt button?
when i press encrypt i get something like this:
68
65
72
65
73
20
77
68
61
74
20
68
61
70
70
65
6E
73
0D
0A
and that says: heres what happens
so i need the button to change it back from numbers to the text?
|
|
|
|
|
Perhaps it is not the best solution for you. Anyway, what the function does is taking a string like |6|8|\0| and turn it into the number 104 decimal - the ascii code for 'h'. If you can access each line as a string, you can send it to the function and get back a char. The string must be null-terminated, though.
/moliate
|
|
|
|
|
Those are all ASCII character values displayed in hex. Try sprintf with a %c format specifier to get the text character.
See the docs on sprintf for more details.
|
|
|
|
|
right heres what i have now:
Encrypt:
AnsiString EditText = RichEdit1->Lines->Text;
for (int i=1;i<=EditText.Length();i++) {
Form1->Tmp = Form1->Tmp + IntToHex(EditText[i],2);
}
RichEdit1->Lines->Text = "";
RichEdit1->Lines->Text = Form1->Tmp;
Form1->Tmp = "";
Decrypt:
AnsiString DeCrypt = Form1->RichEdit1->Lines->Text;
int i = 1;
int l = 2;
for ( ;i<decrypt.length() &&="" l<decrypt.length();i="i" +="" 2="" ,="" l="l" 2)="" {
="" form1-="">Tmp = DeCrypt[i];
Form1->Tmp = Form1->Tmp + DeCrypt[l];
Form1->RichEdit1->Lines->Append (Form1->Tmp);
}
so now: hello when encrypted =
68656C6C6F0D0A
and on decrypt i get:
68
65
6C
6C
6F
0D
0A
so tmp contains the temp string for each letter i now just need tmp to be converted?
|
|
|
|
|
Hi,
I need to give as a param a metafile created with my MFC application to an ActiveX object that I´ve created with ATL ( my idea is to display that Metafile in the ActiveX Object).
Sorry but I´m, a little bit novice in COM, what is the good way to do that ?, Thanks
Braulio
|
|
|
|
|
How to make a view in the main frame to have a flat look, not sunken? Same with splitters. Playing with window styles does not do. If any one knows a tested solution, please reply. Thanks in advance.
|
|
|
|
|
I think you have to deselect a checkbox in step 5 when you create your project,it was in VC6 an I can't remeber it properly,but in VC7 I don't know it!
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Also look for 'Window Styles' in MSDN.
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
WS_EX_CLIENTEDGE gives the effect of the suken edge
Remove this bit from windows styles and you should be good.
Cheer!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
It's early in the morning here, so you all only get one cheer. yeah thats right signular NOT plural...i'm too tired...
Ooops! I did it again...blah blah..I'm singing Britney Spears...oh god...maybe if i'm lucky though...i'll have 'sweet' dreams...
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I'm working with eMbedded Visual C++ 3.0 and I'm having the following problem: I need to compile a project for HPC2000 device / Win32 (WCE ARM) Debug CPU using MFC in a Shared DLL. But when I compile with this option or MFC in a Static Library, I have the same executable file size. I notice that when I use Shared DLL option, it's linking statically too.
I would appreciate your help.
Thank you
Vanessa
|
|
|
|
|
Hi,
it's the first time i try to create a dll application which could be used from excel. So i try to do it by creating a MFC dynamically linked dll, where i put a simply code for a simply function:
/////////////////////////////////////////////////////////////////////////////
// The one and only CEssai2App object
CEssai2App theApp;
extern "C" __declspec(dllexport) int Maximum(int a,int b)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
int max;
if(a
|
|
|
|
|
I guess you forgot the __stdcall (aka WINAPI ) specifier.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
could you more explicit? because i'm a beginner in this kind of application...
|
|
|
|
|
Of course. Define your function as follows:
extern "C" __declspec(dllexport) int <font color=#ff0000>WINAPI</font> Maximum(int a,int b) If you're curious about that WINAPI thing, have a look at Nemanja Trifunovic's Calling Conventions Demystified
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I tried to do it, and it didn't work, so do you have any other suggestion, because i'm lost
|
|
|
|
|
Try to add the .def file, in it you can define the function to export. Sometimes VB can't access to the function.
How you are declaring the function un VB or vba??
Regards...
Carlos Antollini.
Sonork ID 100.10529 cantollini
"There is an old saying that if a million monkeys typed on a million keyboards for a million years, eventually all the works of Shakespeare would be produced. Now, thanks to Usenet, we know this is not true."
|
|
|
|