|
Thanks for the reply,
No, I don't want somebody else to handle my project, that's why I asked for information on some kind of framework. I've looked over the dll's secton a long time ago, and I know about the 2 examples present there. I was trying to get as far as possible from COM
Thanks again
|
|
|
|
|
OK you dont want COM - in which case the 'framework' is 'whatever you want it to be'
The only other working instance of a plugin DLL 'framework' I know of is :-
http://csl.sourceforge.net/[^]
Its well documented and worth taking a look at..
I think wether you are using COM or not, to a certain extent you still have the same issues, but they are made easier or harder by your choice of implementation base - to some extent with DLL you have to be a bit more rigid in that every dll has the same functions with the same parameters unless you set up some sort or registration interface (isnt that COM ???) .. In COM, you can hide that and check the Component Category registry or query IUnknown to see if a particular interface is supported ...
'G'
|
|
|
|
|
|
Thank you all for the help ))!
|
|
|
|
|
How can I show 'Greek' character like phi, delta ... in static control and Flexgrid control.
When I tried in my home, looks OK, but when I run that program in other computer. That become starnge character.
in source code I write 'rho' like this "¥ñ"
very strange..
|
|
|
|
|
It probably has to do with fonts. Make sure you are using a "standard" font that comes with Windows, and make sure you explicitly set the font of the edit box in question.
"I'd be up a piece if I hadn't swallowed my bishop." Mr. Ed, playing chess
|
|
|
|
|
i think you need the right codepages on your system. changing your default codepage to the egyptian would make you see pyramids, birds and 2-d men dancing to "Rock The Boat".
|
|
|
|
|
hi i'm tring to insert 4 values in one go on a char array, the values are set in my code, when i try to write on the arrray from the console I use
cin.getline (array,100)
that works but I don't know what to use for my code
thanks
|
|
|
|
|
Do you want to read in a stream of data or one line of string from a file? For one list of string, one solution is std::getline() and string object.
std::string sInput;
std::getline(cin, sInput);
Kuphryn
|
|
|
|
|
no i want it to write some staff i say on the array like if I have something like this
if (array [3] == a)
then i want it to write on a different array ccd@
|
|
|
|
|
Then use the '=' (assignment) operator.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
VC++ 6
Compiling .c based modules.
Linking .objs
I would appreciate anyones help regarding this warning
warning LNK4070: /OUT:TENGINE.EXE directive in .EXP differs from output filename "c:\winisv\t_engine.exe"; ignoring directive
I found this on the HP web site but cannot find any name conflicts in Project->Settings
HP listing:
Linker Tools Warning LNK4070
/OUT:filename directive in .EXP differs from output filename "filename"; ignoring directive
The filename specified in the NAME or LIBRARY statement when the .EXP file was created differs from the output filename that was either assumed by default or specified with the /OUT option. A client program that uses the resulting DLL might encounter problems.
thanks in advance
Carl
|
|
|
|
|
You probably have a disagreement in your .DEF file's LIBRARY statement.
|
|
|
|
|
Hi,
I have an existing binary file. My requirement is to insert user specifed number of bytes(data) at any given offset so that data following that point is not overwritten. Can this be implemented without rewriting whole file every time?
I'm looking for efficent way to do this. My files are huge and there will be multiple number of insersions. Any sample code will be appriciated.
Thanks,
Anunay
|
|
|
|
|
You could use a memory-mapped file to eliminate some of the disk I/O.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
But can I do this without rewriting the whole file every time ?
|
|
|
|
|
At the best you can avoid rewriting everything up to the point of insertion. If you need to insert often, and into very big files, then I would suggest an alternative file format/algorithm that better supports random insertion.
|
|
|
|
|
I built a simple graph, (mpeg2 file as source -> mpeg2 demultiplexer -> 2 outputs (null renderes for audio and video)).
After graph has finished i wanted to relase all filters, and when i tried to call : pGraph->RemoveFilter(pDemux) , i got access violation.
The other filters got released and removed with no problem. Only this filter got me an access violation. (I tried replacing this demux in another demux (Elecard Mpeg2 demux) i had, and got same result).
When i tried to enumerate all pins of that filter just before i remove it, everything worked just fine. (Even though the enumration itself got no side effects..)
Someone encountered this problem before or have any idea what can cause this?
I tried googling, and nada, no results.
Thanks for ur help.
|
|
|
|
|
Hi! I want to change the Color of the Text in some of my Buttons.
Can anybody help me?
Thanks!
|
|
|
|
|
|
Thats the way I tried first, but it dont´t work. I don´t know why.
I wrote the following Code:
HBRUSH CDialogProgKonf::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
int nId = pWnd->GetDlgCtrlID();
if ( nId == IDOK) pDC->SetTextColor(RGB(255,1,2));
return hbr;
} // OnCtlColor
I don´t see me fault. It would be nice if anybody can help me. Thanks
|
|
|
|
|
Did you read the example from Microsoft?
// This OnCtlColor handler will change the color of a static control
// with the ID of IDC_MYSTATIC. The code assumes that the CMyDialog
// class has an initialized and created CBrush member named m_brush.
// The control will be painted with red text and a background
// color of m_brush.
You need to return m_brush.
HBRUSH CDialogProgKonf::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
int nId = pWnd->GetDlgCtrlID();
if ( nId == IDOK)
{
pDC->SetTextColor(RGB(255,1,2));
CBrush m_brush;
m_brush.CreateSolidBrush(RGB(255, 255, 255));
or
COLORREF crSys = ::GetSysColor(COLOR_BTNFACE);
m_brush.CreateSolidBrush(crSys);
hbr = (HBRUSH)m_brush;
m_brush.Detach();
}
return hbr;
}
|
|
|
|
|
I´m sorry to ask you again, but it doesn´t work. I put your Code in mine in both versions, but there is no change.
The button I want to change is a standard button in an dialog, both created with the Ressource-Editor of MS Visual C++ 6.0. Are there any properties I have to change? The ID of the button is IDOK. The Dialog-Class is CDialogProgKonf.
Thanks again!
|
|
|
|
|
|
Thank you for your efforts. I´ll have a look on the web site you posted. If I find a way, I´ll lett you know.
|
|
|
|