|
Here is the answer
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
|
|
|
|
|
Thanks Michael. That's me up an running now.
|
|
|
|
|
Hi
I need to be able to store extremely long values temporarly for encryption. The problem at the moment is i can't find anyway of doing it and a ULONG is far to small. I also can't just put it into a string since i need to be able to performs some mathematical functions on it.
Basically what i need to do is have a variable capable of storing a Unsigned Long to the power if a 100 digit number. I also need to be able to store the number that is going to be the power.
So far i have wondered if there is anyway of declaring a pointer and manually designanting its size in bytes rather then defining it to store a unsigned long etc.
The other idea i had is if there is anyway to define your own data types and specify there size or if i could somehow add two existing variables together like to unsigned longs that would give me a whole new data type that stored 64bits rather then 32.
Thanks for all the Help
Peter
|
|
|
|
|
Hello,
How would it be possible to "extend" any SIP of any appplication ? I mean I would like to insert a processing that would modify/verify each user input from any kind of SIP, of any application, before the input string is sent to the application currently owning the SIP.
Do I have to write a DLL, how could it work ? I plan this of course under Windows CE. Do one need something related to hooking (I know that is very restricted under Windows CE) ?
Thank's in advance.
--Francois
|
|
|
|
|
You should get the book "Programming Microsoft Windows CE" by Douglas Boling, from MS Press. It explains a lot about SIP's, also how to make them...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Hi,
I have this book (unfortunaltely not physically accessible for the moment )
And if I remember it describes how to create a new kind of SIP, but not how to extend an already existing one, isn't it ?
--Francois
|
|
|
|
|
You might be right about that. It's a long time since I read about SIP programming. It's just that it's the best source I have been able to find about that.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Hello,
How would it be possible to "extend" any SIP of any appplication ? I mean I would like to insert a processing that would modify/verify each user input from any kind of SIP, of any application, before the input string is sent to the application currently owning the SIP.
Do I have to write a DLL, how could it work ? I plan this of course under Windows CE. Do one need something related to hooking (I know that is very restricted under Windows CE) ?
Thank's in advance.
--Francois
|
|
|
|
|
Hi,,
I have a loop which draws a certain number of(user defined) lines(sets of lines). I like to draw each set line after one second.
Below is the source code of my loop.
item* ptr;
//this is the loop,
for(int i=1; i<= End_Of_Loop ; i++)
{
//This is where it should wait for 1 second, and then draw the next
//set of lines
pDoc= GetTheDocument(i);
ptr=pDoc->myList.GetStartList();
if( ptr != NULL)
{
CClientDC dc(this);
for( ptr=pDoc->myList.GetStartList(); ptr->next!=NULL; ptr=ptr->next)
{
dc.MoveTo(ptr->Coord);
if(ptr->next == NULL)
dc.LineTo(pDoc->myList.GetStartList()->Coord);
else
dc.LineTo(ptr->next->Coord);
}
dc.MoveTo(ptr->Coord);
dc.LineTo(pDoc->myList.GetStartList()->Coord);
}
//clear the View, for the next set of lines.
Invalidate(FALSE);
}
any ideas how can I do that...
Thanks
Ehsan Behboudi
|
|
|
|
|
|
You should setup a timer and a function to handle the timer event. Call your draw function from there.
|
|
|
|
|
Does anyone know how to set the color of entries that appear in a CListBox... I am adding entries on the fly from a database and want to set different types to be different colors. [I've tried using GetDC and then SetTextColor but it doesn't seem to work... OnCtlColor almost works but since my program reads the entries from a database the entries lose the color on subsequent calls of OnCtlColor (of which there are lots).]
Also - does anyone know how to get the data from a CDateTimeCtrl to Data Exchange with a RecordSet? The DDX code that ClassWizard adds ( DDX_FieldDateTimeCtrl(pDX, IDC_DOB, m_pSet->m_Date_of_birth, m_pSet); ) doesn't seem to work - it doesn't recognise the FieldDateTimeCtrl on compilation.
Any help much appreciated, i'm new to this VC++ malarky from C...
Cheers.
Simon
meru.co.uk
|
|
|
|
|
Dear friends how can i get the current path of my dll \
at run time. i have used GetModuleFileName which is returning the full path with the dll name. is there any way to find out only the path of the application.
|
|
|
|
|
well, look for the last occurrence of '\' and trim to the right.
char *pslash=strrchr(full_path,'\\');
pslash[1]=0;
|
|
|
|
|
Hi,
I want to write a project like some media players that can broadcast
media stream such as *avi ,*mpg,*dat,*.mp3 to the local LAN.But few men
discuss or write such a programme.Who can help me if you have some suggestions
or some codes in this subject.Thanks!
Oh,add more message about it,It work like this:When I select a song form the server,I set a broadcast IP address,and the client soft can search the channal and received the stream that I want(IP) form the server soft.
Can use the DX6 Media SDK or higher version?another suggections?Thanks a lot!
|
|
|
|
|
I am writing a similar app w/ direct sound as the player. I'm not really sure what or how I am going to stream it but I will let you know what I can come up with. Any ideas you have would be a major help.
-Matt Newman
|
|
|
|
|
Thank you for your help!If I have the ability to help you and provide a major
help to you,I will be grad to.But I am weak in Internet Programme.That is beacuse I am just want to mast it.So if you have some programme direction or any suggestion in the internet programme area,just told me.thanks!
And this question ,I eager you can give me advice on how to write such a difficult thing. Thanks very much!
|
|
|
|
|
I really am not that far on it. I am trying to find a good mp3 player to base it on, I think I have a good lan setup that will need some tweaking and as far as streaming I haven't really found a good solution.
-Matt Newman
|
|
|
|
|
I found some ActiveX about Windows Media player,it is for multicast and
broadcast ocx in the Visual C++.But I don't know how to do.And use the DX6 or higher version can also solute some problems.But I don't know how to use them.
Maybe MSDN can provide some help,I think.
|
|
|
|
|
Can anyone tell me how to make these colorful windows like winamp player or MSN explorer
|
|
|
|
|
skin technology.samples are too many!like freeamp!
|
|
|
|
|
I'm trying to change the font in the OnDraw function in a view:
if (m_fontLarge == NULL)
m_fontLarge->CreatePointFont (10 * (m_nLeftWidth-2), "Tahoma", pDC);
CFont *old_font = pDC->SelectObject (m_fontLarge);
and win2k just tells me that it won't allow this to happen and shuts down the application... and the same thing happens when I try setting a new brush...
Any ideas of why?
Andreas Philipson
|
|
|
|
|
You need to use "new" to allocate the font object before calling CreatePointFont. Ie...
if (m_fontLarge == NULL)
{
m_fontLarge = new CFont;
bla.bla.bla.
}
|
|
|
|
|
That's because you're only executing your font code if m_fontLarge is NULL, and the first thing you do is dereference the NULL pointer with m_fontLarge->CreatePointFont(), which is where your exception comes from. m_fontLarge is NULL, so any pointer dereference on it will likely crash.
if m_fontLarge is a CFont* then you need to allocate storage for it with new, if it's just a CFont, then it should never be NULL.
|
|
|
|
|
I'm looking for free TFTP server code I could incorporate into an MFC application?
Thanks.
|
|
|
|